/* ==========================================================================
   Casa Montaño — hoja de estilos
   Paleta: negro #0a0a0a / blanco #fff. Tipografías: Archivo + IBM Plex Mono.
   ========================================================================== */

/* --------------------------------------------------------------- Tokens -- */
:root {
  --pad: clamp(20px, 4vw, 32px);
  --header-h: 74px;

  /* Superficie oscura (por defecto) */
  --bg: #0a0a0a;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --dim: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.45);
  --line: rgba(255, 255, 255, 0.14);
  --line-2: rgba(255, 255, 255, 0.18);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Superficie clara: invierte los tokens sin tocar el resto del CSS */
.on-paper {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: rgba(10, 10, 10, 0.72);
  --dim: rgba(10, 10, 10, 0.62);
  --faint: rgba(10, 10, 10, 0.45);
  --line: rgba(10, 10, 10, 0.16);
  --line-2: rgba(10, 10, 10, 0.2);
  background: var(--bg);
  color: var(--fg);
}

/* ---------------------------------------------------------------- Reset -- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: #0a0a0a;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #0a0a0a;
  color: #fff;
  font-family: Archivo, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Los márgenes por omisión del navegador en <p> y <h*> se sumaban al `gap` de
   cada bloque y producían separaciones desiguales entre textos. El ritmo
   vertical lo fija cada contenedor; aquí se parte de cero. */
h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: #fff; color: #0a0a0a; }
input, textarea, button { font-family: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 14px 20px;
  background: #fff;
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------ Tipografía -- */
.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.h-display,
.h-section,
.h-casa,
.h-project {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.88;
  text-wrap: balance;
}

.h-display { font-size: clamp(46px, 10.6vw, 190px); line-height: 0.86; letter-spacing: -0.045em; }
.h-section { font-size: clamp(40px, 7.6vw, 132px); }
.h-section--m  { font-size: clamp(38px, 7vw, 120px); }
.h-section--s  { font-size: clamp(34px, 6.4vw, 112px); }
.h-section--xs { font-size: clamp(32px, 6vw, 104px); }
.h-section--contact { font-size: clamp(40px, 7.4vw, 128px); line-height: 0.86; letter-spacing: -0.045em; }
.h-section--about { font-size: clamp(30px, 4.6vw, 74px); line-height: 0.94; letter-spacing: -0.035em; max-width: 24ch; }
.h-casa    { font-size: clamp(38px, 6vw, 104px); }
.h-project { font-size: clamp(32px, 4.4vw, 72px); line-height: 0.9; }

.lead { margin: 0; max-width: 56ch; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--dim); text-wrap: pretty; }
.lead strong { color: var(--fg); font-weight: 700; }

.body-text { margin: 0; font-size: 17px; line-height: 1.64; color: var(--muted); text-wrap: pretty; }
.body-text strong { color: var(--fg); font-weight: 700; }

.body-sub { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--dim); text-wrap: pretty; }

.measure { max-width: 48ch; }

/* --------------------------------------------------------------- Botones -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 26px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover { background: rgba(255, 255, 255, 0.82); }
.on-paper .btn--solid:hover { background: rgba(10, 10, 10, 0.82); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.34); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ------------------------------------------------------------ Encabezado -- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px var(--pad);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 26px; width: auto; }
.brand span {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav a,
.nav button {
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s var(--ease);
}
.nav a:hover,
.nav button:hover,
.nav [aria-expanded="true"] { color: #fff; }

.nav-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.nav-trigger .caret { font-size: 8px; transition: transform 0.25s var(--ease); }
.nav-trigger[aria-expanded="true"] .caret { transform: rotate(180deg); }

.nav .nav-cta {
  padding: 11px 18px;
  background: #fff;
  color: #0a0a0a;
  font-weight: 500;
}
.nav .nav-cta:hover { background: rgba(255, 255, 255, 0.82); color: #0a0a0a; }

/* Menú de las seis casas */
.megamenu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a0a0a;
}
.megamenu[data-open="true"] { display: block; }

.megamenu-grid { display: grid; grid-template-columns: repeat(3, 1fr); }

.mm-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 34px var(--pad) 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.mm-item:nth-child(3n) { border-right: none; }
.mm-item:nth-child(n + 4) { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.mm-item:hover { background: #fff; color: #0a0a0a; }
.mm-item:hover .mm-kicker, .mm-item:hover .mm-sub { opacity: 1; color: rgba(10, 10, 10, 0.62); }

.mm-kicker {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.mm-title {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.mm-sub { font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* Botón hamburguesa y panel móvil */
.nav-burger {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: #fff;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.burger-lines { display: block; width: 22px; height: 10px; position: relative; }
.burger-lines::before,
.burger-lines::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.burger-lines::before { top: 0; }
.burger-lines::after { top: 8px; }
.nav-burger[aria-expanded="true"] .burger-lines::before { top: 4px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-lines::after { top: 4px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a0a0a;
  padding: 8px var(--pad) 32px;
}
.mobile-menu[data-open="true"] { display: block; }

.mobile-group + .mobile-group { margin-top: 26px; }
.mobile-group .eyebrow { display: block; padding: 18px 0 10px; }
.mobile-menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.mobile-menu a span { font-size: 12.5px; font-weight: 400; text-transform: none; color: rgba(255, 255, 255, 0.55); }
.mobile-menu .btn {
  width: 100%;
  margin-top: 26px;
  justify-content: center;
  border-bottom: none;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------------ Hero -- */
.hero {
  position: relative;
  height: 100vh;          /* respaldo para navegadores sin svh */
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  background: #141414;
  will-change: transform;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10, 10, 10, 0.5) 0%,
    rgba(10, 10, 10, 0.2) 42%,
    rgba(10, 10, 10, 0.93) 100%);
}

.hero-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) var(--pad) 34px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.hero-kicker::before {
  content: '';
  width: 30px;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* ---------------------------------------------------------------- Ticker -- */
.ticker {
  background: #fff;
  color: #0a0a0a;
  border-bottom: 1px solid rgba(10, 10, 10, 0.16);
  overflow: hidden;
  padding: 16px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: cm-ticker 26s linear infinite;
}
.ticker-group {
  display: flex;
  align-items: center;
  gap: 38px;
  padding-right: 38px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes cm-ticker {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* -------------------------------------------------------------- Secciones -- */
.band {
  padding: clamp(72px, 9vw, 120px) var(--pad);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
}
.band--flush { padding-bottom: 0; }

.rail {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}
.rail > .eyebrow { position: sticky; top: calc(var(--header-h) + 36px); }
.rail-body { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 46px); }

.statement {
  margin: 0;
  font-weight: 700;
  font-size: clamp(26px, 4.1vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 22ch;
  text-wrap: balance;
}

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 3vw, 48px); }
.cols-2--wide { max-width: 1100px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.section-head .eyebrow { display: block; margin-bottom: 18px; }
.section-head > div { max-width: 22ch; }
.section-head > p { margin: 0; max-width: 44ch; font-size: 16.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.section-head--spaced { padding-bottom: 56px; }

.measure-20 { max-width: 20ch; }
.measure-52 { max-width: 52ch; }

/* Página 404 */
.page-error {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  border-bottom: none;
}
.page-error .btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Valores */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2);
  margin-top: 12px;
}
.values > div { padding: 26px 24px 0 0; border-right: 1px solid var(--line-2); }
.values > div + div { padding-left: 24px; }
.values > div:last-child { border-right: none; padding-right: 0; }
.value-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.value-text { font-size: 13.5px; line-height: 1.55; color: var(--dim); }

/* Credenciales */
.creds { border-bottom: 1px solid var(--line); }
.creds > .eyebrow { display: block; padding: 34px var(--pad) 20px; }

.cred-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 40px;
  align-items: center;
  gap: 24px;
  padding: 26px var(--pad);
  border-top: 1px solid var(--line-2);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
a.cred-row:hover { background: #fff; color: #0a0a0a; }
a.cred-row:hover .cred-num, a.cred-row:hover .cred-note, a.cred-row:hover .cred-arrow { opacity: 0.6; }

.cred-num {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0.55;
}
.cred-title {
  font-size: clamp(19px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.cred-note { font-size: 15px; opacity: 0.65; }
.cred-arrow { text-align: right; font-size: 17px; opacity: 0.55; }

/* ------------------------------------------------------------- Las casas -- */
.casa {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  min-height: 92vh;
  background: var(--bg);
  color: var(--fg);
}

.casa-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  position: sticky;
  top: 0;
  height: 92vh;
  padding: 70px 40px 70px var(--pad);
  border-right: 1px solid var(--line);
}
.casa--reverse .casa-copy { padding: 70px var(--pad) 70px 40px; border-right: none; }

.casa-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.casa-role { font-size: 14px; letter-spacing: 0.02em; color: var(--dim); }

.casa-note {
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--dim);
  max-width: 48ch;
}
.casa-note b { color: var(--fg); font-weight: 600; }

.casa-media { position: relative; overflow: hidden; min-height: 92vh; }
.casa--reverse .casa-media { border-right: 1px solid var(--line); }
.casa-media img {
  position: absolute;
  inset: -14% 0;
  width: 100%;
  height: 128%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

/* Ficha de datos (asistencia, proyectos) */
.spec { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); max-width: 48ch; }
.spec-row { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: none; }
.spec-key {
  width: 120px;
  flex: none;
  padding-top: 3px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.spec-val { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------------------------------------------------------------- Legado -- */
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding: 48px 0;
  border-top: 1px solid var(--line-2);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.project:last-of-type { padding-bottom: 96px; }
.project-copy { display: flex; flex-direction: column; gap: 18px; }
.project-specs { display: flex; flex-direction: column; justify-content: center; }
.project-specs .spec-row {
  border-top: 1px solid var(--line-2);
  border-bottom: none;
  padding: 16px 0;
}
.project-specs .spec-row:last-child { border-bottom: 1px solid var(--line-2); }
.project-specs .spec-key { width: 150px; padding-top: 4px; }
.project-specs .spec-val { font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.8); }

.link-out {
  align-self: flex-start;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.link-out:hover { color: var(--fg); border-bottom-color: var(--fg); }

/* ------------------------------------------------------------ El momento -- */
.momento {
  position: relative;
  min-height: max(118vh, 700px);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.momento img {
  position: absolute;
  inset: -16% 0;
  width: 100%;
  height: 132%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}
.momento-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10, 10, 10, 0.9) 0%,
    rgba(10, 10, 10, 0.35) 45%,
    rgba(10, 10, 10, 0.95) 100%);
}
.momento-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: calc(var(--header-h) + 46px) var(--pad) 60px;
}
/* La medida va sobre el titular: en `ch` sobre el contenedor daría una columna
   de apenas 180 px y la frase se rompería palabra por palabra. */
.momento-inner > div { max-width: 100%; }
.momento-inner .h-section { max-width: 13ch; }
.momento-inner .eyebrow { display: block; margin-bottom: 20px; color: rgba(255, 255, 255, 0.6); }
.momento-inner > p {
  margin: 0;
  align-self: flex-end;
  max-width: 50ch;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- Relato -- */
.index-cols { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.index-col { display: flex; flex-direction: column; gap: 16px; padding: 28px 32px 0 0; }
.index-col:first-child { border-right: 1px solid var(--line-2); }
.index-col + .index-col { padding: 28px 0 0 32px; }
.index-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.index-link:last-child { border-bottom: none; }
.index-link:hover { color: var(--fg); }
.index-link b { font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; color: var(--fg); }
.index-link span { font-size: 13.5px; color: var(--dim); }

/* -------------------------------------------------------------- Sobre mí -- */
.sobre-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 3.4vw, 48px); align-items: start; }
.sobre-copy { display: flex; flex-direction: column; gap: 22px; font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 62ch; }
.sobre-copy p { margin: 0; text-wrap: pretty; }
.pull-quote {
  padding-top: 24px;
  border-top: 2px solid var(--fg);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.portrait { position: relative; overflow: hidden; height: 520px; border: 1px solid var(--line); }
.portrait img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  object-position: 50% 30%;
  will-change: transform;
}

/* ------------------------------------------------------------- Fundación -- */
.fund-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 3.4vw, 48px); align-items: start; }
.fund-copy { display: flex; flex-direction: column; gap: 26px; }
.fund-facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.fund-facts > div { padding: 22px 22px 0 0; border-right: 1px solid var(--line-2); }
.fund-facts > div + div { border-right: none; padding: 22px 0 0 22px; }
.fund-facts .eyebrow { display: block; margin-bottom: 8px; }
.fund-facts p { margin: 0; font-size: 15px; line-height: 1.5; }
.fund-cta { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.fund-cta a { border-bottom: 1px solid rgba(255, 255, 255, 0.5); }

figure.fund-figure { display: flex; flex-direction: column; gap: 14px; margin: 0; }
figure.fund-figure > div { position: relative; overflow: hidden; height: 520px; border: 1px solid var(--line-2); }
figure.fund-figure img {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}
figure.fund-figure figcaption {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* -------------------------------------------------------------- Contacto -- */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 26px; }
.contact-list { display: flex; flex-direction: column; margin-top: 12px; border-top: 1px solid var(--line-2); }
.contact-list > div { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list > div:last-child { border-bottom: none; }
.contact-list dt,
.contact-key {
  width: 120px;
  padding-top: 3px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.contact-list a { font-size: 16px; border-bottom: 1px solid rgba(10, 10, 10, 0.3); }

/* Tarjeta del formulario: siempre oscura */
.form-card {
  background: #0a0a0a;
  color: #fff;
  padding: clamp(26px, 3vw, 40px);
}
.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label,
.field > span.field-label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.field input,
.field textarea {
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  outline: none;
  transition: border-color 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field textarea:focus { border-bottom-color: #fff; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }

.field-error {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #fff;
  opacity: 0.8;
}
.field-error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip:hover { border-color: #fff; }
.chip[aria-pressed="true"] { background: #fff; color: #0a0a0a; }

.form-submit {
  margin-top: 6px;
  padding: 18px 22px;
  border: none;
  background: #fff;
  color: #0a0a0a;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.form-submit:hover { background: rgba(255, 255, 255, 0.82); }
.form-submit[disabled] { opacity: 0.6; cursor: progress; }

.form-fineprint {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.form-done { display: flex; flex-direction: column; gap: 18px; padding: 22px 0; }
.form-done .eyebrow { color: rgba(255, 255, 255, 0.55); }
.form-done h3 {
  margin: 0;
  font-weight: 800;
  font-size: 38px;
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.form-done p { margin: 0; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }
.form-done button {
  align-self: flex-start;
  margin-top: 8px;
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.form-done button:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

[hidden] { display: none !important; }

/* ------------------------------------------------------------------ Pie -- */
.site-footer { padding: 60px var(--pad) 0; border-top: 1px solid var(--line); overflow: hidden; }
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.footer-cols nav,
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols .footer-contact { text-align: right; }
.footer-cols a { color: rgba(255, 255, 255, 0.55); transition: color 0.2s var(--ease); }
.footer-cols a:hover { color: #fff; }

.wordmark {
  margin: 56px 0 0.2em;
  font-weight: 800;
  font-size: clamp(52px, 15.4vw, 280px);
  line-height: 0.78;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: #fff;
  transform: translateY(0.14em);
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding: 26px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------- Reveal / anim -- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay] { transition-delay: 0.1s; }

/* ---------------------------------------------------------- Responsive -- */
@media (max-width: 1180px) {
  .rail { grid-template-columns: 150px 1fr; gap: 32px; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .values > div:nth-child(2) { border-right: none; padding-right: 0; }
  .values > div:nth-child(n + 3) { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line-2); }
  .values > div:nth-child(3) { padding-left: 0; }
}

@media (max-width: 1023px) {
  :root { --header-h: 68px; }

  .nav { display: none; }
  .nav-burger { display: flex; }
  .megamenu { display: none !important; }

  .hero { height: auto; min-height: 100vh; min-height: 100svh; }
  .hero-inner { min-height: 100vh; min-height: 100svh; }
  /* En vertical el texto cae sobre la zona clara del vídeo: se refuerza el velo. */
  .hero-scrim {
    background: linear-gradient(to bottom,
      rgba(10, 10, 10, 0.58) 0%,
      rgba(10, 10, 10, 0.45) 30%,
      rgba(10, 10, 10, 0.9) 72%,
      rgba(10, 10, 10, 0.96) 100%);
  }
  .hero-foot { gap: 24px; }
  .hero-actions .btn { flex: 1 1 auto; }

  .casa,
  .casa--reverse { grid-template-columns: 1fr; min-height: 0; }
  .casa-copy,
  .casa--reverse .casa-copy {
    position: static;
    height: auto;
    padding: 56px var(--pad);
    border-right: none;
    border-top: 1px solid var(--line);
  }
  .casa-media,
  .casa--reverse .casa-media {
    order: -1;
    min-height: 0;
    height: 56vh;
    border-right: none;
  }
  .casa-media img { inset: -8% 0; height: 116%; }

  .project { grid-template-columns: 1fr; }
  .project-specs { justify-content: flex-start; }

  .sobre-grid,
  .fund-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .portrait,
  figure.fund-figure > div { height: 62vh; min-height: 360px; }

  .index-cols { grid-template-columns: 1fr; }
  .index-col:first-child { border-right: none; padding-right: 0; }
  .index-col + .index-col { padding: 28px 0 0; border-top: 1px solid var(--line-2); }

  .cred-row { grid-template-columns: 48px 1fr 28px; gap: 16px; row-gap: 4px; }
  .cred-note { grid-column: 2 / 3; }
  .cred-arrow { grid-row: 1 / 2; grid-column: 3 / 4; }

  .momento { height: auto; min-height: 0; }
  .momento-inner { gap: 56px; padding: calc(var(--header-h) + 80px) var(--pad) 80px; }
  .momento-inner > p { align-self: flex-start; }
}

@media (max-width: 720px) {
  .cols-2,
  .fund-facts { grid-template-columns: 1fr; gap: 26px; }
  .fund-facts > div,
  .fund-facts > div + div { padding: 22px 0 0; border-right: none; }
  .fund-facts > div + div { border-top: 1px solid var(--line-2); }

  .rail { grid-template-columns: 1fr; gap: 24px; }
  .rail > .eyebrow { position: static; }

  .values { grid-template-columns: 1fr; }
  .values > div,
  .values > div + div { padding: 22px 0 0; border-right: none; }
  .values > div + div { margin-top: 22px; border-top: 1px solid var(--line-2); }

  .spec-row { flex-direction: column; gap: 6px; }
  .spec-key,
  .project-specs .spec-key { width: auto; }

  .contact-list > div { flex-direction: column; gap: 6px; }
  .contact-key { width: auto; }

  .footer-cols { gap: 28px; }
  .footer-cols .footer-contact { text-align: left; }

  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }

  .form-done h3 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@media print {
  .site-header, .hero-media, .ticker { display: none; }
  body { background: #fff; color: #000; }
}
