/* ============================================================
   MOUSSMEDIA · sistema de diseño «Enfoque»
   Editorial y sobrio. Un único motivo gráfico: el recuadro de enfoque
   de la cámara (sale de nuestro propio rodaje) marca lo importante.
   ============================================================ */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 500; font-display: swap; src: url(/fonts/fraunces-latin.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 400; font-display: swap; src: url(/fonts/fraunces-italic-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2"); }

:root {
  /* Color */
  --paper: #F3F0E9;
  --surface: #FAF9F6;
  --ink: #292A28;
  --ink-2: #625A50;
  --stone: #D8D4CC;
  --taupe: #8A8175;          /* solo decorativo: no alcanza 4.5:1 para texto */
  --accent: #4E5236;         /* oliva: solo la llamada principal */
  --on-dark: #F3F0E9;
  --on-dark-2: #B3ACA1;
  --error: #8C2F25;

  /* Tipografía */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lead: clamp(1.125rem, 1rem + 0.45vw, 1.3rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-h2: clamp(2.4rem, 1.4rem + 3.6vw, 4.75rem);
  --fs-hero: clamp(3.6rem, 0.9rem + 10.4vw, 10.75rem);

  /* Espacio */
  --s1: 0.5rem; --s2: 0.75rem; --s3: 1rem; --s4: 1.5rem; --s5: 2rem; --s6: 3rem; --s7: 4.5rem; --s8: clamp(5rem, 3rem + 7vw, 9.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.4vw, 2.5rem);
  --g: clamp(0.75rem, 0.4rem + 1.4vw, 1.75rem);
  --max: 1320px;
  --line: 1px solid rgba(41, 42, 40, 0.16);
  --line-dark: 1px solid rgba(243, 240, 233, 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0, 1);
  --header-h: 4.25rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--fs-base); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 340; line-height: 1.05; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; text-wrap: balance; }
em { font-style: italic; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s3); top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s3); }
.skip:focus { top: var(--s3); }
.muted { color: var(--ink-2); }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.link:hover { text-decoration-color: var(--accent); }
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 46ch; }
.section { padding-block: var(--s8); }
.eyebrow, .kicker { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.kicker span { font-family: var(--serif); font-style: italic; font-size: 0.95rem; letter-spacing: 0; text-transform: none; margin-right: 0.5em; color: var(--ink); }

/* ---------- Botones y enlaces ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 3.25rem; padding: 0 1.5rem; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font-family: var(--sans); font-size: 0.95rem; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.btn span[aria-hidden] { transition: transform 0.35s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 2.6rem; padding: 0 1.1rem; font-size: 0.875rem; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.35rem 0; border: 0; background: none; font-size: 0.95rem; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.35em; text-decoration-color: rgba(41, 42, 40, 0.35); cursor: pointer; transition: text-decoration-color 0.3s var(--ease); }
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow span[aria-hidden] { transition: transform 0.35s var(--ease); }
.link-arrow:hover span[aria-hidden] { transform: translate(3px, 0); }

/* ---------- Motivo: recuadro de enfoque ---------- */
.focus, .af { --c: currentColor; --l: 14px; --t: 1.5px; position: absolute; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l) no-repeat; }
.af { left: var(--x); top: var(--y); width: clamp(44px, 5vw, 64px); aspect-ratio: 1; transform: translate(-50%, -50%); transition: transform 0.5s var(--ease); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(243, 240, 233, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: transform 0.45s var(--ease), border-color 0.3s; }
.site-header.scrolled { border-bottom-color: rgba(41, 42, 40, 0.1); }
.site-header.hide { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--serif); font-size: 1.2rem; font-weight: 400; letter-spacing: -0.01em; }
.brand img { width: 30px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); font-size: 0.9rem; }
.nav a { text-decoration: none; color: var(--ink-2); padding-block: 0.4rem; background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 1px no-repeat; transition: color 0.3s, background-size 0.4s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); background-size: 100% 1px; }
.nav .nav-cta { color: var(--surface); background: var(--accent); padding: 0.55rem 1.1rem; transition: background-color 0.3s; }
.nav .nav-cta:hover { background: var(--ink); color: var(--surface); }
.menu-btn { display: none; border: var(--line); background: transparent; padding: 0.45rem 0.9rem; font-size: 0.875rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(1rem, 3vh, 2rem); padding-bottom: var(--s7); overflow: clip; }
.hero-meta { display: flex; justify-content: space-between; gap: var(--s3); padding-bottom: var(--s3); border-bottom: var(--line); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.hero-stage { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding-top: clamp(1.5rem, 4vh, 3rem); }
.hero-title { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 3; font-family: var(--serif); font-variation-settings: "opsz" 144; font-size: var(--fs-hero); font-weight: 300; line-height: 0.92; letter-spacing: -0.045em; text-wrap: nowrap; }
.hero-title .line { display: block; overflow: hidden; padding: 0 0.12em 0.06em 0; margin-bottom: -0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-weight: 300; letter-spacing: -0.035em; }
.hero-frame { grid-column: 6 / span 4; grid-row: 1 / span 2; position: relative; z-index: 2; }
.hero-media { position: relative; overflow: hidden; aspect-ratio: 3 / 4; width: 100%; max-height: 78svh; background: var(--ink); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-ghost { display: none; position: absolute; left: var(--gx, 0); top: var(--gy, 0); width: var(--gw, auto); margin: 0; color: var(--paper); pointer-events: none; }
.ghost-ready .hero-ghost { display: block; }
.ghost-ready .hero-stage > .hero-title { z-index: 1; }
.hero-frame figcaption { display: flex; justify-content: space-between; gap: var(--s3); padding-top: 0.6rem; font-size: 0.75rem; color: var(--ink-2); }
.hero-foot { grid-column: 10 / -1; grid-row: 1 / span 2; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s6); position: relative; z-index: 3; padding: 0.4rem 0 2.2rem var(--g); }
.hero-index p { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--s2); }
.hero-index ol { border-top: var(--line); }
.hero-index a { display: flex; gap: 0.9rem; padding-block: 0.7rem; border-bottom: var(--line); text-decoration: none; font-family: var(--serif); font-size: 1.08rem; transition: padding 0.4s var(--ease); }
.hero-index a span { font-style: italic; font-size: 0.9rem; color: var(--ink-2); padding-top: 0.2rem; }
.hero-index a:hover { padding-left: 0.4rem; }
.hero-sub { font-size: var(--fs-lead); color: var(--ink-2); max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-top: var(--s5); }
.focus { z-index: 4; color: #fff; mix-blend-mode: difference; opacity: 0; --l: clamp(12px, 1.6vw, 22px); --t: 2px; }

/* Entrada del titular: cada línea sube desde su máscara */
.js .hero-title .line > span { transform: translateY(105%); }
.js .hero.ready .hero-title .line > span { transform: none; transition: transform 1.1s var(--ease) calc(var(--i) * 0.11s); }
.hero.ready .focus { animation: af-lock 0.9s steps(1, end) 1s forwards, af-in 0.6s var(--ease) 1s forwards; }
@keyframes af-in { from { transform: scale(1.45); } 55% { transform: scale(0.94); } to { transform: scale(1); } }
@keyframes af-lock { 0% { opacity: 1; } 55% { opacity: 1; } 65% { opacity: 0.25; } 75% { opacity: 1; } 85% { opacity: 0.25; } 100% { opacity: 1; } }

/* ---------- Secciones ---------- */
.section-head { display: grid; gap: var(--s3); margin-bottom: var(--s7); }
.section-head h2 { font-size: var(--fs-h2); max-width: 16ch; }
.section-note { color: var(--ink-2); max-width: 40ch; }

/* 01 · Enfoque */
.statement { padding-block: var(--s8); border-top: var(--line); }
.statement-title { font-size: clamp(2rem, 1.1rem + 3.3vw, 4.4rem); font-weight: 300; line-height: 1.08; max-width: 22ch; margin-top: var(--s5); }
.statement-title em { font-weight: 300; }
.statement-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: end; }
.statement-text { grid-column: 1 / span 7; }
.statement-points { display: grid; gap: 0; margin-top: var(--s7); max-width: 34rem; }
.statement-points li { padding-block: 0.9rem; border-top: var(--line); color: var(--ink-2); }
.statement-figure { grid-column: 9 / -1; position: relative; }
.statement-media.statement-inset { position: absolute; width: 46%; left: -32%; bottom: 16%; box-shadow: 0 0 0 10px var(--paper); }
.statement-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone); }
.statement-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.statement-figure figcaption { display: flex; justify-content: space-between; gap: var(--s3); padding-top: 0.6rem; font-size: 0.75rem; color: var(--ink-2); }

/* Tablero sobre imagen de rodaje propio */
.board-plan::before { background: none; }
.board-plan .plan { position: absolute; inset: 6% 4% 14%; width: 92%; height: 80%; }
.board-plan .af { color: var(--ink); }
.project-b.project-real .project-media { grid-column: 6 / span 6; aspect-ratio: auto; max-height: none; background: none; }
.project-b.project-real .project-photo { aspect-ratio: 3 / 4; }
.project-photo { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.9s var(--ease); }
.project-media:hover .project-photo { transform: scale(1.015); }
.dialog-media img.project-photo { aspect-ratio: auto; max-height: calc(100svh - 2 * var(--gutter)); object-fit: contain; }
.board-footage::before { background: none; }
.board-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.board-footage .board-grid { opacity: 0.18; }
.board-footage .board-top { opacity: 1; }
.board-footage .af { color: var(--surface); }
.board-cap-light { justify-self: start; align-self: flex-start; padding: 0.5rem 0.7rem; background: rgba(243, 240, 233, 0.86); color: var(--ink); }
.board-footage .board-top span { padding: 0.15rem 0.45rem; background: rgba(243, 240, 233, 0.78); }

/* 02 · Proyectos */
.work { padding-block: var(--s8); border-top: var(--line); }
.work .section-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: end; }
.work .section-head .kicker, .work .section-head h2 { grid-column: 1 / span 8; }
.work .section-head .section-note { grid-column: 9 / -1; grid-row: 2; justify-self: end; text-align: right; }
.projects { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: clamp(5rem, 3rem + 7vw, 10rem); }
.project { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start; }
.project-media { position: relative; overflow: hidden; }
.project-n { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink-2); }
.tag { display: inline-block; justify-self: start; padding: 0.2rem 0.6rem; border: var(--line); border-radius: 999px; font-size: 0.75rem; color: var(--ink-2); }
.tag-real { border-color: var(--ink); color: var(--ink); }
.project-info { display: grid; justify-items: start; gap: var(--s2); }
.project-info h3 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem); font-weight: 300; margin-top: var(--s2); }
.project-line { font-family: var(--serif); font-style: italic; font-size: var(--fs-lead); max-width: 30ch; }
.project-roles { font-size: var(--fs-sm); color: var(--ink-2); }
.project-info .link-arrow { margin-top: var(--s3); }

.project-real .project-media { grid-column: 1 / span 5; aspect-ratio: 9 / 16; max-height: 86svh; background: var(--ink); }
.work-video { width: 100%; height: 100%; object-fit: cover; }
.project-side { grid-column: 7 / -1; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s7); align-self: stretch; }
.filmstrip { display: grid; grid-template-columns: 1fr 0.9fr 1.15fr; gap: var(--g); align-items: end; }
.still-img { overflow: hidden; background: var(--stone); }
.still figcaption { padding-top: 0.5rem; font-size: 0.75rem; color: var(--ink-2); }
.still figcaption span { font-family: var(--serif); font-style: italic; margin-right: 0.3em; }
.still img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.still-img:hover img { transform: scale(1.04); }
.still-af .still-img { aspect-ratio: 4 / 5; }
.still-face .still-img { aspect-ratio: 4 / 5; }
.still-face { margin-bottom: 14%; }
.still-hand .still-img { aspect-ratio: 4 / 5; }

.project-a .project-media { grid-column: 2 / span 5; }
.project-a .project-info { grid-column: 8 / span 4; align-self: center; }
.project-b .project-media { grid-column: 5 / -1; grid-row: 1; }
.project-b .project-info { grid-column: 1 / span 4; grid-row: 1; align-self: end; }

/* Tableros de dirección de arte (conceptos) */
.board { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 5; padding: clamp(1rem, 2vw, 1.6rem); background: var(--stone); color: var(--ink); transition: transform 0.9s var(--ease); }
.board::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, transparent 34%, rgba(250, 249, 246, 0.6) 44%, transparent 56%), linear-gradient(118deg, transparent 52%, rgba(250, 249, 246, 0.35) 58%, transparent 66%); }
.board > :not(.af):not(.board-grid):not(.board-line):not(.board-video):not(.plan) { position: relative; }
.board-ink { aspect-ratio: 16 / 9; background: var(--ink); color: var(--on-dark); }
.board-ink::before { background: none; }
.board-grid { position: absolute; inset: 0; opacity: 0.14; pointer-events: none;
  background:
    linear-gradient(currentColor, currentColor) 33.333% 0 / 1px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 66.666% 0 / 1px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 0 33.333% / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 66.666% / 100% 1px no-repeat; }
.board-top { display: flex; justify-content: space-between; gap: var(--s3); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }
.board-big { font-family: var(--serif); font-weight: 300; font-size: clamp(4rem, 2rem + 7vw, 9rem); line-height: 0.85; letter-spacing: -0.04em; font-variant-numeric: lining-nums; }
.board-cap { font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem); line-height: 1.35; max-width: 26ch; }
.board-line { position: absolute; left: 0; right: 0; bottom: 4%; width: 100%; height: 26%; color: var(--on-dark-2); opacity: 0.75; }
.board-ink { padding-bottom: 17%; }
.board-ink .af { color: var(--on-dark); }
.board-ink .board-big { font-size: clamp(3.5rem, 2rem + 6vw, 8rem); }
.project-media:hover .board { transform: scale(1.015); }
.project-media:hover .af { transform: translate(-50%, -50%) scale(0.8); }

/* Hueco 04 */
.project-next { grid-column: 7 / -1; position: relative; display: grid; justify-items: start; align-content: center; gap: var(--s2); min-height: clamp(18rem, 30vw, 24rem); padding: clamp(2rem, 5vw, 4rem); }
.af-big { left: 0; top: 0; width: 100%; height: 100%; aspect-ratio: auto; transform: none; --l: 28px; color: var(--ink); }
.project-next:hover .af-big { transform: scale(0.98); }
.project-next h3 { font-size: clamp(2.4rem, 1.4rem + 3vw, 4rem); font-weight: 300; font-style: italic; }
.project-next p:not(.project-n) { color: var(--ink-2); max-width: 30ch; }

/* 03 · Servicios */
.services-section { padding-block: var(--s8); border-top: var(--line); }
.services { border-top: var(--line); }
.service { display: grid; grid-template-columns: 4rem minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "n t d" "n t c"; column-gap: var(--g); row-gap: var(--s3); align-items: start; padding-block: clamp(2rem, 1.4rem + 2vw, 3.25rem); border-bottom: var(--line); }
.service-n { grid-area: n; font-family: var(--serif); font-style: italic; color: var(--ink-2); padding-top: 0.6rem; }
.service h3 { grid-area: t; justify-self: start; position: relative; font-size: clamp(2.1rem, 1.2rem + 3vw, 4rem); font-weight: 300; transition: transform 0.5s var(--ease); }
.service h3::after { content: ""; position: absolute; inset: -0.12em -0.25em -0.08em; opacity: 0; transform: scale(1.06); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
  --c: var(--ink); --l: 12px; --t: 1.5px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l) no-repeat; }
.service:hover h3 { transform: translateX(0.4rem); }
.service:hover h3::after { opacity: 1; transform: none; }
.service > p { grid-area: d; color: var(--ink-2); max-width: 36ch; padding-top: 0.6rem; }
.service .chips { grid-area: c; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li { padding: 0.25rem 0.7rem; border: var(--line); border-radius: 999px; font-size: 0.8rem; color: var(--ink-2); }

/* 04 · Método */
.method { padding-block: var(--s8); background: var(--ink); color: var(--on-dark); }
.method .kicker { color: var(--on-dark-2); }
.method .kicker span { color: var(--on-dark); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); padding-top: var(--s5); }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--on-dark-2); transform-origin: left; transition: transform 1.6s var(--ease) 0.2s; }
.js .steps:not(.in)::before { transform: scaleX(0); }
.steps li { position: relative; display: grid; gap: var(--s2); padding-right: var(--s3); }
.steps li::before { content: ""; position: absolute; top: calc(-1 * var(--s5) - 4px); left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--on-dark); }
.step-n { font-family: var(--serif); font-style: italic; color: var(--on-dark-2); }
.steps h3 { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.5rem); font-weight: 300; }
.steps p { color: var(--on-dark-2); max-width: 24ch; }
.method-loop { margin-top: var(--s7); font-family: var(--serif); font-style: italic; font-size: var(--fs-lead); color: var(--on-dark-2); }
.method-loop span { font-style: normal; margin-right: 0.4em; color: var(--on-dark); }
.cine-band { margin-top: var(--s7); }
.cine-band img { width: 100%; height: auto; aspect-ratio: 2.39 / 1; object-fit: cover; }
.cine-band figcaption { display: flex; justify-content: space-between; gap: var(--s3); padding-top: 0.6rem; font-size: 0.75rem; color: var(--on-dark-2); }

/* 05 · Inversión */
.invest { padding-block: var(--s8); }
.invest-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s7) var(--g); align-items: start; }
.price { font-family: var(--serif); font-weight: 300; font-size: clamp(4.4rem, 1.6rem + 10vw, 11.5rem); line-height: 0.9; letter-spacing: -0.045em; margin-top: var(--s5); white-space: nowrap; }
.price-text { font-size: clamp(3.6rem, 1.4rem + 8vw, 9rem); font-style: italic; }
.price-from { display: block; font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--s3); }
.price-unit { margin-top: var(--s4); color: var(--ink-2); }
.invest-detail { display: grid; justify-items: start; gap: var(--s3); padding-top: var(--s5); }
.invest-detail h3 { font-family: var(--sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-top: var(--s4); }
.invest-detail h3:first-child { margin-top: 0; }
.included { display: grid; width: 100%; }
.included li { display: flex; gap: 0.75rem; padding-block: 0.7rem; border-bottom: var(--line); font-size: 1.05rem; }
.included li::before { content: "—"; color: var(--taupe); }
.aside { font-size: var(--fs-sm); color: var(--ink-2); max-width: 44ch; }
.invest-detail .btn { margin-top: var(--s4); }

/* 06 · Preguntas */
.faq-section { padding-block: var(--s8); border-top: var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--g); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq details { border-bottom: var(--line); }
.faq details:first-child { border-top: var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding-block: 1.3rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem); font-weight: 360; letter-spacing: -0.01em; font-variation-settings: "opsz" 36; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ink-2); transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.4rem; color: var(--ink-2); max-width: 60ch; }

/* 07 · Contacto */
.contact { padding-block: var(--s8); border-top: var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--s7) clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-intro { display: grid; gap: var(--s4); position: sticky; top: calc(var(--header-h) + 2rem); }
.contact-intro h2 { font-size: var(--fs-h2); }
.contact-intro > p:not(.kicker) { color: var(--ink-2); max-width: 36ch; }
.next-steps { counter-reset: n; display: grid; gap: 0.5rem; margin-top: var(--s2); }
.next-steps li { counter-increment: n; display: flex; gap: 0.8rem; font-size: var(--fs-sm); }
.next-steps li::before { content: counter(n, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: var(--ink-2); }
.contact-mail { font-size: var(--fs-sm); }

.form { display: grid; gap: var(--s4); padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--surface); border: var(--line); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.field { display: grid; gap: 0.4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 500; padding: 0; }
.opt { color: var(--ink-2); font-weight: 400; font-size: 0.8rem; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea { width: 100%; min-height: 3rem; padding: 0.7rem 0.85rem; border: 1px solid rgba(41, 42, 40, 0.3); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color 0.2s, background-color 0.2s; }
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--ink); }
.radios { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.2rem; }
.radio { display: flex; align-items: center; gap: 0.7rem; min-height: 3rem; padding: 0.5rem 1rem; border: 1px solid rgba(41, 42, 40, 0.3); background: var(--paper); font-weight: 400 !important; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.radio input, .check input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; margin: 0; flex: none; }
.check label { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 0.2rem; }
.err { display: none; font-size: 0.8rem; color: var(--error); }
.field.invalid .err { display: block; }
.field.invalid input:not([type="radio"]):not([type="checkbox"]), .field.invalid select { border-color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
/* Formulario por pasos (solo con JavaScript; sin él se ven todas las preguntas) */
.steps-head { display: none; }
.form-steps .step { display: grid; gap: var(--s4); }
.form-steps:not(.is-steps) .step + .step { padding-top: var(--s4); border-top: var(--line); }
.step-title { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-2); }
.is-steps .steps-head { display: flex; align-items: center; gap: var(--s3); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.steps-bar { flex: 1; height: 1px; background: var(--stone); position: relative; }
.steps-bar span { position: absolute; left: 0; top: -0.5px; height: 2px; width: 20%; background: var(--ink); transition: width 0.5s var(--ease); }
.is-steps .step:not([hidden]) { animation: step-in 0.45s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.is-steps .step-title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); font-style: normal; font-weight: 300; color: var(--ink); }
.form-steps legend { margin-bottom: 0.3rem; }
.form-foot .step-back { margin-right: auto; }
.form-status { display: none; font-size: var(--fs-sm); flex-basis: 100%; padding: 0.8rem 1rem; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(78, 82, 54, 0.1); border-left: 2px solid var(--accent); }
.form-status.error { background: rgba(140, 47, 37, 0.07); border-left: 2px solid var(--error); color: var(--error); }

/* ---------- Diálogo de proyecto ---------- */
.project-dialog { width: min(1100px, calc(100% - 2 * var(--gutter))); max-height: calc(100svh - 2 * var(--gutter)); padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: auto; }
.project-dialog::backdrop { background: rgba(41, 42, 40, 0.62); }
.project-dialog[open] { animation: dlg-in 0.45s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.dialog-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dialog-media { background: var(--stone); display: grid; place-items: center; min-height: 100%; }
.dialog-media video { width: 100%; max-height: calc(100svh - 2 * var(--gutter)); object-fit: contain; background: var(--ink); }
.dialog-media .board { width: 100%; height: 100%; aspect-ratio: auto; min-height: 26rem; }
.dialog-body { display: grid; align-content: start; justify-items: start; gap: var(--s3); padding: clamp(1.5rem, 4vw, 3rem); }
.dialog-meta { display: flex; align-items: center; gap: var(--s2); font-family: var(--serif); font-style: italic; color: var(--ink-2); }
.dialog-meta .tag { font-family: var(--sans); font-style: normal; }
.dialog-body h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); font-weight: 300; }
.dialog-line { font-family: var(--serif); font-style: italic; font-size: var(--fs-lead); }
.dialog-body dl { display: grid; gap: 0.3rem; margin-top: var(--s3); }
.dialog-body dt { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-top: var(--s3); }
.dialog-body dd { max-width: 44ch; }
.dialog-nav { display: flex; gap: var(--s5); margin-top: var(--s4); }
.dialog-body .btn { margin-top: var(--s3); }
.dialog-close { position: absolute; top: 0.6rem; right: 0.6rem; width: 2.75rem; height: 2.75rem; border: 0; background: var(--paper); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ---------- Pie ---------- */
.site-footer { padding-block: var(--s7) var(--s5); border-top: var(--line); }
.footer-sign { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 1rem + 5.5vw, 6.5rem); line-height: 1; letter-spacing: -0.04em; margin-bottom: var(--s7); text-wrap: balance; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s5); }
.footer-desc { margin-top: var(--s3); font-size: var(--fs-sm); max-width: 30ch; }
.site-footer h2 { font-family: var(--sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--s3); }
.site-footer ul { display: grid; gap: 0.45rem; font-size: var(--fs-sm); }
.site-footer ul a, .site-footer ul button { text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.site-footer ul a:hover, .site-footer ul button:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); margin-top: var(--s7); padding-top: var(--s4); border-top: var(--line); font-size: 0.8rem; color: var(--ink-2); }

/* ---------- Cookies ---------- */
.cookie { position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 60; display: none; max-width: 26rem; padding: 1.25rem; background: var(--surface); border: var(--line); box-shadow: 0 18px 50px rgba(41, 42, 40, 0.14); font-size: var(--fs-sm); color: var(--ink-2); }
.cookie.show { display: block; }
.cookie .actions { display: flex; gap: 0.6rem; margin-top: var(--s3); }

/* ---------- Aparición sutil ---------- */
.js .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .project-real .project-media { grid-column: 1 / span 6; }
  .project-side { grid-column: 7 / -1; }
  .project-a .project-media { grid-column: 1 / span 6; }
  .project-a .project-info { grid-column: 8 / -1; }
}

@media (max-width: 960px) {
  .hero-frame { grid-column: 5 / -1; }
  .hero-foot { grid-column: 1 / -1; grid-row: 3; padding: var(--s5) 0 0; }
  .hero-index { display: none; }
  .statement-text { grid-column: 1 / -1; }
  .statement-figure { grid-column: 4 / -1; margin-top: var(--s7); }
  .statement-media.statement-inset { left: -22%; width: 44%; }
  .project-b .project-media, .project-b.project-real .project-media { grid-column: 1 / -1; }
  .project-b .project-info { grid-column: 1 / span 8; grid-row: 2; margin-top: var(--s5); }
  .project-next { grid-column: 3 / -1; }
  .service { grid-template-columns: 3rem minmax(0, 1fr); grid-template-areas: "n t" "n d" "n c"; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: var(--s7); }
  .steps::before { display: none; }
  .steps li { padding-top: var(--s4); border-top: var(--line-dark); }
  .steps li::before { top: -5px; }
  .invest-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head, .contact-intro { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dialog-inner { grid-template-columns: 1fr; }
  .dialog-media video { max-height: 60svh; }
  .dialog-media .board { min-height: 18rem; }
}

@media (max-width: 760px) {
  :root { --header-h: 3.75rem; --fs-hero: clamp(3.4rem, 17.5vw, 5.6rem); }
  .menu-btn { display: inline-block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: var(--s3) var(--gutter) var(--s5); background: var(--paper); border-bottom: var(--line); font-size: 1.05rem; }
  .nav.open { display: flex; }
  .nav a { padding-block: 0.9rem; border-bottom: var(--line); background: none; }
  .nav .nav-cta { margin-top: var(--s4); text-align: center; border-bottom: 0; }
  .hero-meta { flex-wrap: wrap; letter-spacing: 0.1em; }
  .hero-meta p:nth-child(2) { display: none; }
  .hero-stage { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hero-title { grid-column: 1 / -1; }
  .hero-frame { grid-column: 3 / -1; grid-row: 1 / span 2; margin-top: calc(var(--fs-hero) * 0.97); }
  .hero-media { max-height: 64svh; }
  .hero-foot { grid-column: 1 / -1; grid-row: 3; padding: var(--s5) 0 0; }
  .hero-actions .btn { width: 100%; }
  .work .section-head .section-note { grid-column: 1 / -1; grid-row: auto; justify-self: start; text-align: left; }
  .work .section-head .kicker, .work .section-head h2 { grid-column: 1 / -1; }
  .project { row-gap: var(--s5); }
  .project-real .project-media { grid-column: 1 / span 10; max-height: none; }
  .project-side { grid-column: 1 / -1; gap: var(--s5); }
  .filmstrip { display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .filmstrip::-webkit-scrollbar { display: none; }
  .still { flex: none; width: 62%; scroll-snap-align: start; }
  .still-face { margin-bottom: 0; }
  .project-a .project-media { grid-column: 1 / span 11; }
  .project-a .project-info, .project-b .project-info { grid-column: 1 / -1; grid-row: auto; margin-top: 0; }
  .project-next { grid-column: 1 / -1; padding: var(--s6) var(--s5); }
  .board-top { font-size: 0.62rem; }
  .board-ink { aspect-ratio: 4 / 3; padding-bottom: 24%; }
  .row, .radios { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie { left: var(--gutter); max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero-title .line > span { opacity: 1; transform: none; }
  .hero.ready .focus { opacity: 1; }
}
