/* Creative Circle Films · propuesta Claude
   Dirección: «hoja de rodaje» sobre la marca oficial: navy #152430, hueso #F7F7F7, degradado dorado
   #876C45→#AD936E→#D3BA97 y familia Noah. Detalles de cámara (timecode, visor, reporte, línea de tiempo). */

/* Noah (Fontfabric), tipografía oficial. Licencia web por confirmar antes de publicar. */
@font-face { font-family: "Noah Head"; src: url("brand/fonts/noah-head-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noah Head"; src: url("brand/fonts/noah-head-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Noah Text"; src: url("brand/fonts/noah-text-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Noah Text"; src: url("brand/fonts/noah-text-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noah Text"; src: url("brand/fonts/noah-text-regular-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Noah Text"; src: url("brand/fonts/noah-text-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* Mono solo como acento técnico pequeño: timecode, reporte de cámara, ids de toma y fotograma. */
@font-face { font-family: "Plex Mono"; src: url("brand/fonts/plexmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* Navy de marca y tonos derivados (mismo matiz 207°, solo cambia la luminosidad) */
  --ink: #152430;
  --deep: #0e1820;
  --ink-2: #1a2d3c;
  --ink-3: #223849;
  --bone: #f7f7f7;
  --mute: #aeb9c2;
  --line: rgba(247, 247, 247, .13);
  --line-2: rgba(247, 247, 247, .3);
  --sand: #d3ba97;
  --bronze: #876c45;
  --grad: linear-gradient(105deg, #876c45 0%, #ad936e 50%, #d3ba97 100%);
  /* Tramo claro del degradado oficial: lo uso donde hay texto encima o el texto es el degradado (≥ 5.4:1) */
  --grad-light: linear-gradient(105deg, #ad936e 0%, #d3ba97 100%);
  /* Sección clara: hueso + 15 % de arena, texto navy */
  --paper: #f2eee9;
  --paper-ink: #152430;
  --paper-mute: #44596a;
  --paper-accent: #766142;
  --error: #f0a58a;
  --display: "Noah Head", "Noah Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Noah Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --pad: clamp(16px, 4.5vw, 64px);
  --head: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
@media (min-width: 1000px) { :root { --head: 84px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; font-synthesis: none; scroll-padding-top: calc(var(--head) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
em { font-style: normal; } /* Noah Head no tiene itálica: el énfasis en titulares es color */
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
.paper :focus-visible { outline-color: var(--paper-ink); }
svg { flex: none; }
.ico { width: 20px; height: 20px; }
.flip { transform: scaleX(-1); }

.skip { position: absolute; left: var(--pad); top: -100px; z-index: 300; background: var(--sand); color: var(--ink); padding: 12px 18px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Type ---------- */
.label { font: 500 .75rem/1.35 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.mono { font-family: var(--mono); font-size: .8125rem; letter-spacing: .02em; }
.h2 { font: 400 clamp(2.1rem, 4.6vw, 4.4rem)/1.05 var(--display); letter-spacing: -.022em; text-wrap: balance; max-width: 16ch; }
.h2 em, .display em { color: var(--sand); }
.lead { font: 300 clamp(1.2rem, 1.7vw, 1.45rem)/1.45 var(--sans); color: var(--bone); max-width: 38ch; }
.body-m { color: var(--mute); max-width: 52ch; }
.grad-text {
  background: var(--grad-light); -webkit-background-clip: text; background-clip: text; color: transparent;
  /* El degradado solo pinta dentro de la caja: el relleno vertical cubre ascendentes, acentos y sup; clone lo repite en cada línea */
  padding-block: .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.sec-tag { display: flex; align-items: center; gap: .9rem; margin-bottom: clamp(20px, 2.4vw, 32px); }
.sec-tag .mono { color: var(--sand); display: inline-flex; align-items: center; gap: .9rem; }
.sec-tag .mono::after { content: ""; width: 40px; height: 1px; background: var(--line-2); }
.paper .sec-tag .mono { color: var(--paper-accent); }
.paper .sec-tag .mono::after { background: rgba(21, 36, 48, .35); }

.pending { display: inline-flex; justify-self: start; align-items: center; gap: .4em; font: 500 .8125rem/1.25 var(--sans); letter-spacing: .01em; color: var(--mute); border: 1px dashed var(--line-2); padding: 4px 8px; vertical-align: middle; }
.is-pending { color: var(--mute); font-style: italic; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1520px; margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(88px, 11vw, 168px); }
.p-info, .shoot-body, .quote-grid, .svc-intro, .bts-head, .menu-body, .page-head-grid, .p-sub, .studio-cols { grid-template-columns: minmax(0, 1fr); }
.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 52px; padding: 12px 1.6rem; border: 1px solid var(--line-2); background: transparent;
  text-decoration: none; cursor: pointer; text-align: center;
  font: 500 .8125rem/1.25 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.btn:hover { border-color: var(--sand); color: var(--sand); }
.btn--solid { background: var(--grad-light); border-color: transparent; color: var(--ink); }
.btn--solid:hover { color: var(--ink); border-color: transparent; transform: translateY(-2px); }
.btn .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none;
  font: 500 .8125rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-2); transition: color .3s, border-color .3s;
}
.link-arrow:hover { color: var(--sand); border-color: var(--sand); }
.link-arrow .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
.icon-btn {
  width: 52px; height: 52px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line-2); background: rgba(21, 36, 48, .4); cursor: pointer;
  transition: border-color .3s, color .3s, opacity .3s;
}
.icon-btn:hover:not([aria-disabled="true"]) { border-color: var(--sand); color: var(--sand); }
.icon-btn[aria-disabled="true"] { opacity: .3; cursor: default; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head);
  display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); padding-inline: var(--pad);
  background: linear-gradient(to bottom, rgba(21, 36, 48, .82), rgba(21, 36, 48, 0));
  border-bottom: 1px solid transparent; transition: background-color .4s, border-color .4s, box-shadow .4s;
}
/* Al bajar: vidrio esmerilado. El tinte navy al 55 % mantiene el texto del menú en AA aun sobre fotos claras. */
.site-header.is-solid {
  background: rgba(21, 36, 48, .55);
  border-color: rgba(247, 247, 247, .09);
  box-shadow: inset 0 1px 0 rgba(247, 247, 247, .05), 0 10px 30px -18px rgba(5, 12, 18, .6);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-solid { background: rgba(21, 36, 48, .92); }
}
.brand { display: block; margin-right: auto; padding: 6px 12px 6px 0; }
.brand img { height: 48px; width: auto; }
@media (min-width: 1000px) { .brand img { height: 58px; } }
.nav-inline { display: none; gap: clamp(18px, 2.4vw, 36px); }
.nav-inline a {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
  font: 500 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--bone); transition: color .3s;
}
.nav-inline a:hover, .nav-inline a[aria-current="page"] { color: var(--sand); }
@media (min-width: 1000px) { .nav-inline { display: flex; } }
@media (max-width: 1439px) { .nav-inline .nav-extra { display: none; } }
.site-header .brand { flex-shrink: 0; }
.menu-btn {
  display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; min-width: 44px; padding: 0 1rem;
  border: 1px solid var(--line-2); background: rgba(21, 36, 48, .45); text-decoration: none; cursor: pointer;
  font: 500 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  transition: border-color .3s, color .3s;
}
.menu-btn:hover { border-color: var(--sand); color: var(--sand); }

/* ---------- Dialogs (menú, reel, visor) ---------- */
.dlg {
  padding: 0; margin: 0; border: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  background: var(--ink); color: var(--bone); overflow-y: auto; overscroll-behavior: contain;
}
.dlg::backdrop { background: rgba(14, 24, 32, .8); }
@media (prefers-reduced-motion: no-preference) { .dlg[open] { animation: dlg-in .5s var(--ease); } }
@keyframes dlg-in { from { opacity: 0; } }
/* Sin JS: los diálogos se abren con :target para que nada quede inaccesible */
html:not(.js) .dlg:target { display: block; position: fixed; inset: 0; z-index: 100; }
.dlg-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--head); }

.menu-body { display: grid; gap: 48px; padding-block: clamp(24px, 5vw, 64px) 48px; }
@media (min-width: 1000px) { .menu-body { grid-template-columns: 1.3fr 1fr; align-items: start; gap: 6vw; } }
.menu-links li { border-bottom: 1px solid var(--line); }
.menu-links a {
  display: flex; align-items: baseline; gap: 1.1rem; padding: .25em 0; text-decoration: none;
  /* 11 renglones (portada + 9 secciones + reel): el tamaño depende de la altura para que quepan sin scroll */
  font: 400 clamp(1.5rem, min(4.2vw, 3.4vh), 3.4rem)/1.1 var(--display); letter-spacing: -.022em;
  transition: color .3s, padding-left .5s var(--ease);
}
.menu-links a .mono { color: var(--sand); font-size: .8125rem; letter-spacing: .02em; transform: translateY(-.9em); }
.menu-links a:hover, .menu-links a[aria-current="page"] { color: var(--sand); }
@media (hover: hover) { .menu-links a:hover { padding-left: .35em; } }
.menu-links a[aria-current="page"]::after { content: "· aquí"; font: 500 .8125rem var(--sans); color: var(--mute); letter-spacing: .02em; }
.menu-aside { display: grid; gap: 36px; }
.feature { display: grid; gap: 14px; text-decoration: none; }
.feature figure { position: relative; overflow: hidden; aspect-ratio: 2.39; }
.feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover img { transform: scale(1.04); }
.feature strong { font: 500 1.5rem/1.15 var(--display); letter-spacing: -.01em; }
.contact-list { display: grid; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li > span:last-child { overflow-wrap: anywhere; } /* el correo es largo para 390 px */
.contact-list .label { letter-spacing: .16em; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 100vh; min-height: max(100svh, 600px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--deep); view-timeline: --hero; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    /* Paradas en px desde abajo: el texto ocupa ≤ 440 px (dorado) y ≤ 580 px (kicker) en todos los anchos.
       Medido sobre los fotogramas reales del loop: dorado ≥ 3.3:1, texto pequeño ≥ 5.9:1 en el peor píxel. */
    linear-gradient(to top, var(--ink) 0, rgba(21, 36, 48, .9) 160px, rgba(21, 36, 48, .84) 440px, rgba(21, 36, 48, .7) 580px, rgba(21, 36, 48, .3) 760px, rgba(21, 36, 48, .5) 100%),
    linear-gradient(to right, rgba(21, 36, 48, .55), rgba(21, 36, 48, 0) 65%);
}
.hero-scrim::after { /* grano de película, estático */
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vf { position: absolute; inset: calc(var(--head) + 20px) var(--pad) 92px; pointer-events: none; display: none; }
.vf i { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(247, 247, 247, .55); }
.vf i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.vf i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.vf i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.vf i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
@media (min-width: 900px) { .vf { display: block; } }
.hero-content { width: 100%; max-width: 1520px; margin-inline: auto; padding: calc(var(--head) + 48px) var(--pad) clamp(28px, 4vw, 52px); }
@media (min-width: 900px) { .hero-content { padding-inline: calc(var(--pad) + 40px); } }
.hero-kicker { margin-bottom: clamp(18px, 2vw, 28px); color: var(--bone); }
.manifesto { font: 400 clamp(2.4rem, 6vw, 6.6rem)/1 var(--display); letter-spacing: -.03em; }
.manifesto > span { display: block; }
.manifesto-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: clamp(16px, 2vw, 24px); }
.manifesto-sub p { font: italic 400 clamp(1.05rem, 1.4vw, 1.25rem)/1.45 var(--sans); color: var(--bone); max-width: 40ch; }
.manifesto-swap { display: inline-flex; min-height: 36px; padding: 0; border: 1px solid var(--line-2); background: rgba(21, 36, 48, .4); cursor: pointer; font: 400 .6875rem/1 var(--mono); letter-spacing: .08em; color: rgba(247, 247, 247, .55); transition: border-color .3s; }
.manifesto-swap:hover { border-color: var(--sand); }
.manifesto-swap span { display: grid; place-items: center; min-width: 40px; padding-inline: 10px; transition: background .3s, color .3s; }
.manifesto-swap span.is-on { background: var(--sand); color: var(--ink); }
html:not(.js) .manifesto-swap { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin-top: clamp(28px, 3.4vw, 44px); }
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 1.2s var(--ease) both; animation-delay: calc(.15s + var(--i, 0) * .14s); }
}
@keyframes rise { from { opacity: 0; transform: translateY(.6em); } }

.reel-btn { display: inline-flex; align-items: center; gap: 1.1rem; min-height: 68px; padding-right: .5rem; text-decoration: none; }
.reel-ring { position: relative; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-light); color: var(--ink); transition: transform .5s var(--ease); }
.reel-ring .ico { width: 24px; height: 24px; margin-left: 3px; }
.reel-ring::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(211, 186, 151, .55); }
@media (prefers-reduced-motion: no-preference) { .reel-ring::after { animation: halo 2.6s var(--ease) infinite; } }
@keyframes halo { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.reel-btn:hover .reel-ring { transform: scale(1.07); }
.reel-btn strong { display: block; font: 500 1rem/1.1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.reel-btn small { display: block; margin-top: .4rem; font: 400 .8125rem var(--sans); color: var(--mute); }

.hero-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px clamp(14px, 3vw, 40px); width: 100%; max-width: 1520px; margin-inline: auto; padding: 12px var(--pad) 16px; border-top: 1px solid var(--line); font: 400 .75rem/1 var(--mono); color: var(--mute); }
.hero-bar > :last-child { margin-left: auto; }
.bg-toggle {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 1rem 0 .8rem; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(21, 36, 48, .5); color: var(--bone);
  font: 500 .6875rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
.bg-toggle:hover { border-color: var(--sand); }
.bg-toggle .ico { width: 16px; height: 16px; }
.bg-toggle[data-state="playing"] .i-play, .bg-toggle[data-state="paused"] .i-pause,
[data-cycle][data-state="playing"] .i-play, [data-cycle][data-state="paused"] .i-pause { display: none; }
.bg-toggle:not([data-state]) .i-pause { display: none; }
html:not(.js) .bg-toggle, html:not(.js) .tc { display: none; }
.tc { color: var(--bone); font-variant-numeric: tabular-nums; }
.rec::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .6em; border-radius: 50%; background: var(--sand); vertical-align: 1px; }
@media (prefers-reduced-motion: no-preference) { .rec::before { animation: blink 1.6s steps(2, jump-none) infinite; } }
@keyframes blink { 50% { opacity: .15; } }
.geo { display: none; }
@media (min-width: 700px) { .geo { display: inline; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-video { animation: hero-out linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    @keyframes hero-out { to { transform: scale(1.1); opacity: .35; } }
  }
}

/* ---------- Reveal (solo si app.js corre) ---------- */
.reveal { transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal-on .reveal:not(.is-in) { opacity: 0; transform: translateY(32px); }

/* ---------- Trabajos recientes (carril) ---------- */
.rail-ctrl { display: flex; align-items: center; gap: 10px; }
html:not(.js) .rail-ctrl .icon-btn, html:not(.js) .rail-progress { display: none; }
.rail {
  display: flex; gap: clamp(12px, 1.6vw, 24px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding: 4px var(--pad) 28px; margin-top: clamp(36px, 4.5vw, 64px);
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.rail > li { flex: 0 0 auto; width: 84vw; scroll-snap-align: start; }
.rail.is-dragging { scroll-snap-type: none; user-select: none; }
.rail.is-dragging, .rail.is-dragging * { cursor: grabbing; }
@media (pointer: fine) { .rail { cursor: grab; } }
.rail-progress { position: relative; height: 1px; margin: 0 var(--pad); background: var(--line); }
.rail-progress i { position: absolute; inset: -1px 0; background: var(--sand); transform-origin: left; transform: scaleX(.1); transition: transform .2s linear; }

.work { display: block; text-decoration: none; }
.work-media { position: relative; overflow: hidden; aspect-ratio: 5 / 4; background: var(--ink-2); }
.work-media img, .work-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-media img { transition: transform 1.4s var(--ease), filter .6s; }
.work-preview { opacity: 0; transition: opacity .5s; }
.work-media img.work-next { opacity: 0; transition: opacity .9s var(--ease), transform 1.4s var(--ease), filter .6s; }
.work-media img.work-next.is-in { opacity: 1; }
.work-media.is-playing .work-preview { opacity: 1; }
.work:hover .work-media img, .work:focus-visible .work-media img { transform: scale(1.05); }
.work-tag { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: .45em; padding: 6px 9px; background: rgba(21, 36, 48, .72); font: 400 .6875rem/1 var(--mono); letter-spacing: .04em; color: var(--bone); }
.work-tag .ico { width: 10px; height: 10px; }
.work-meta { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 4px 14px; padding-top: 14px; width: 0; min-width: 100%; }
.work-meta .idx { font: 400 .75rem var(--mono); color: var(--sand); }
.work-meta h3 { font: 500 clamp(1.2rem, 1.5vw, 1.45rem)/1.2 var(--display); letter-spacing: -.01em; transition: color .3s; }
.work:hover .work-meta h3 { color: var(--sand); }
.work-meta .fmt { font: 400 .75rem/1.4 var(--mono); color: var(--mute); text-align: right; }
@media (min-width: 768px) {
  .rail > li { width: auto; }
  .rail .work-media { height: clamp(300px, 33vw, 480px); width: auto; aspect-ratio: var(--ar, 4 / 3); }
}

/* ---------- Servicios ---------- */
.svc-intro { display: grid; gap: 28px; }
@media (min-width: 1000px) { .svc-intro { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.svc { margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: 3rem 1fr; gap: 14px 20px; align-items: center; padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
.svc-row .num { font: 400 1.25rem/1 var(--display); color: var(--sand); }
.svc-row h3 { font: 400 clamp(1.7rem, 3.1vw, 2.9rem)/1.06 var(--display); letter-spacing: -.02em; transition: color .4s; }
.svc-row p { color: var(--mute); grid-column: 2; max-width: 42ch; font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.5; }
.svc-thumb { grid-column: 1 / -1; aspect-ratio: 2.39; overflow: hidden; order: -1; }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s; }
@media (min-width: 900px) {
  .svc-row { grid-template-columns: 4.5rem minmax(0, 1.15fr) minmax(0, 1fr) clamp(200px, 22vw, 340px); gap: 32px; }
  .svc-row p { grid-column: auto; }
  .svc-thumb { grid-column: auto; order: 0; }
}
@media (hover: hover) and (min-width: 900px) {
  .svc-thumb img { filter: grayscale(1) brightness(.62) contrast(1.1); }
  .svc-row:hover .svc-thumb img { filter: none; transform: scale(1.05); }
  .svc-row:hover h3 { color: var(--sand); }
}
.also { display: grid; gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .also { grid-template-columns: minmax(4.5rem, max-content) 1fr; gap: 32px; } }
.also ul { display: flex; flex-wrap: wrap; gap: .2em 0; font: 300 clamp(1.1rem, 1.5vw, 1.35rem)/1.55 var(--sans); color: var(--bone); }
.also li:not(:last-child)::after { content: "/"; margin: 0 .55em; color: var(--bronze); }

/* Del concepto a la pantalla: preproducción, producción y post */
.phases { display: grid; gap: 36px clamp(24px, 3vw, 48px); margin-top: clamp(56px, 7vw, 104px); }
@media (min-width: 900px) { .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); } .phases-head { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; } }
.phases-head .body-m { margin-top: 12px; }
@media (min-width: 900px) { .phases-head .body-m { margin-top: 0; } }
.phase { border-top: 1px solid var(--line-2); padding-top: 20px; }
.phase h3 { display: flex; gap: 14px; align-items: baseline; font: 400 clamp(1.3rem, 1.8vw, 1.6rem)/1.15 var(--display); letter-spacing: -.01em; }
.phase h3 .mono { font-size: .75rem; color: var(--sand); }
.phase ul { margin-top: 16px; }
.phase li { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--mute); }

/* ---------- Rodajes foráneos ---------- */
.shoot { position: relative; }
.shoot-hero { position: relative; isolation: isolate; min-height: clamp(520px, 92vh, 960px); display: flex; align-items: flex-end; overflow: hidden; }
.shoot-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.shoot-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--ink) 0%, rgba(21, 36, 48, .78) 34%, rgba(21, 36, 48, .2) 70%, rgba(21, 36, 48, .45) 100%); }
.shoot-hero .wrap { padding-bottom: clamp(40px, 6vw, 88px); }
.shoot-title { font: 400 clamp(2.5rem, 7vw, 7.4rem)/.98 var(--display); letter-spacing: -.032em; max-width: 11ch; }
.shoot-en { margin-top: 20px; font: italic 400 clamp(1.1rem, 1.6vw, 1.35rem)/1.45 var(--sans); color: var(--sand); }
.cap { position: absolute; z-index: 1; right: var(--pad); top: calc(var(--head) + 16px); padding: 5px 8px; background: rgba(21, 36, 48, .72); font: 400 .6875rem var(--mono); color: var(--bone); }
.shoot-body { display: grid; gap: 56px; padding-top: clamp(40px, 5vw, 72px); }
@media (min-width: 1000px) { .shoot-body { grid-template-columns: 1fr 1fr; gap: 7vw; } }
.shoot-list { margin-top: 32px; border-top: 1px solid var(--line); counter-reset: s; }
.shoot-list li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 4px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.shoot-list li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 400 .75rem var(--mono); color: var(--sand); padding-top: .55em; grid-row: span 2; }
.shoot-list strong { font: 500 1.25rem/1.3 var(--display); letter-spacing: -.005em; }
.shoot-list span { color: var(--mute); font-size: .95rem; }
.shoot-note { margin-top: 20px; }
.shoot-side { display: grid; gap: clamp(8px, 1.2vw, 16px); align-content: start; }
/* Stills de rodaje bajo el camera report: llenan la columna derecha (pedido de Saulo). */
.shoot-stills { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.2vw, 16px); margin-top: clamp(8px, 2vw, 24px); }
.shoot-stills li { overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); }
.shoot-stills li:first-child { grid-column: 1 / -1; }
.shoot-stills img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Infraestructura ---------- */
.infra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: clamp(40px, 5vw, 72px); background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .infra { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.infra li { display: grid; gap: 18px; align-content: space-between; min-height: clamp(120px, 11vw, 168px); padding: clamp(18px, 2vw, 28px); background: var(--ink); font: 400 clamp(1.15rem, 1.7vw, 1.6rem)/1.15 var(--display); letter-spacing: -.01em; }
.infra .mono { font-size: .75rem; color: var(--sand); }
.pillars { display: grid; gap: 32px clamp(24px, 3vw, 48px); margin-top: clamp(48px, 6vw, 88px); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillars h3 { font: 400 clamp(1.3rem, 1.8vw, 1.6rem)/1.15 var(--display); letter-spacing: -.01em; color: var(--sand); }
.pillars p { margin-top: 12px; color: var(--mute); }
.shoot-cta { margin-top: 36px; }

.kit { border: 1px solid var(--line-2); background: var(--ink-2); font-family: var(--mono); font-size: .8125rem; line-height: 1.6; align-self: start; }
.kit-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); color: var(--sand); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.kit-note { padding: 16px 18px; border-bottom: 1px solid var(--line-2); color: var(--bone); font-size: .875rem; }
.kit dl > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 16px; padding: 16px 18px; border-bottom: 1px dashed var(--line); }
.kit dl > div:last-child { border-bottom: 0; }
.kit dt { color: var(--mute); text-transform: uppercase; letter-spacing: .08em; font-size: .6875rem; padding-top: .2em; }
.kit dd { color: var(--bone); }

/* ---------- Proceso (papel) ---------- */
.paper { background: var(--paper); color: var(--paper-ink); }
.paper .label { color: var(--paper-mute); }
.paper .h2 em { color: var(--paper-accent); }
.timeline { position: relative; margin-top: clamp(48px, 6vw, 88px); view-timeline: --tl; }
.ruler {
  position: relative; height: 30px; border-bottom: 1px solid rgba(21, 36, 48, .45);
  background:
    linear-gradient(to right, rgba(21, 36, 48, .6) 1px, transparent 1px) 0 0 / 120px 100% repeat-x,
    linear-gradient(to right, rgba(21, 36, 48, .28) 1px, transparent 1px) 0 100% / 12px 38% repeat-x;
}
.ruler span { position: absolute; top: 0; font: 400 .625rem var(--mono); color: var(--paper-mute); transform: translateX(4px); }
.ruler::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--grad); transform-origin: left; transform: scaleX(1); }
.playhead { display: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ruler::after { animation: fill linear both; animation-timeline: --tl; animation-range: cover 20% cover 65%; }
    .playhead { display: block; position: absolute; top: -8px; height: 42px; left: 0; width: 1px; background: var(--paper-accent); animation: head linear both; animation-timeline: --tl; animation-range: cover 20% cover 65%; }
    .playhead::before { content: ""; position: absolute; top: 0; left: -6px; border: 6px solid transparent; border-top: 8px solid var(--paper-accent); }
    @keyframes fill { from { transform: scaleX(0); } }
    @keyframes head { from { left: 0%; } to { left: 100%; } }
  }
}
.steps { display: grid; gap: 0; margin-top: 8px; counter-reset: st; }
.steps li { position: relative; padding: 24px 0 24px 22px; border-left: 1px solid rgba(21, 36, 48, .22); }
.clip { display: block; height: 10px; margin: 0 0 22px -22px; background: var(--grad); opacity: calc(.35 + var(--i) * .16); }
.step-n { display: block; font: 400 clamp(2.4rem, 3.6vw, 3.2rem)/1 var(--display); letter-spacing: -.02em; color: var(--paper-accent); }
.steps h3 { margin: 14px 0 8px; font: 500 1.0625rem/1.3 var(--sans); }
.steps p { color: var(--paper-mute); font-size: .95rem; max-width: 30ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps li { padding: 0 24px 0 18px; }
  .clip { margin: 0 0 28px -18px; }
}

/* ---------- Estudio ---------- */
.statement { font: 400 clamp(2rem, 4.9vw, 4.9rem)/1.06 var(--display); letter-spacing: -.026em; text-wrap: balance; max-width: 19ch; }
.studio-cols { display: grid; gap: 24px 7vw; margin-top: clamp(36px, 4vw, 56px); }
@media (min-width: 900px) { .studio-cols { grid-template-columns: 1fr 1fr; max-width: 1100px; margin-left: auto; } }
.philosophy { margin-top: clamp(72px, 9vw, 136px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.philosophy .h2 { margin-top: 16px; }
.philosophy-line { margin-top: 20px; font: 400 clamp(1.2rem, 1.7vw, 1.5rem)/1.3 var(--display); color: var(--sand); }
#clientes .clients { margin-top: clamp(36px, 4vw, 56px); }
.band { position: relative; margin-block: clamp(64px, 8vw, 128px); height: max(260px, 41.8vw); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band .cap { top: auto; bottom: 16px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band img { animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1.02) translateY(3%); } }
  }
}
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 14px; padding: 28px 16px 32px 0; border-bottom: 1px solid var(--line); }
.stats > div:nth-child(odd) { border-right: 1px solid var(--line); }
.stats > div:nth-child(even) { padding-left: 16px; }
.stats dd { font: 400 clamp(3.4rem, 11vw, 10rem)/1 var(--display); letter-spacing: -.04em; }
.stats dd sup, .stats dd small { font-size: .42em; vertical-align: .95em; letter-spacing: 0; margin-left: .04em; }
.stats dt { color: var(--mute); max-width: 22ch; font-size: clamp(1rem, 1.6vw, 1.4rem); line-height: 1.35; }
/* 2×2 también en escritorio, con texto más grande (prueba pedida por Saulo, 5 oct; antes era una fila de 4). */
@media (min-width: 900px) {
  .stats > div { gap: 20px; padding: clamp(40px, 4vw, 64px) clamp(24px, 3vw, 48px); }
  .stats > div:nth-child(odd) { padding-left: 0; }
}

/* ---------- Detrás de cámaras (sin señal) ---------- */
.bts-head { display: grid; gap: 24px; }
@media (min-width: 1000px) { .bts-head { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.slots { display: grid; gap: 16px; margin-top: clamp(36px, 4vw, 56px); }
@media (min-width: 760px) { .slots { grid-template-columns: 1.5fr 1fr 1fr; } }
.slot {
  position: relative; display: grid; place-items: center; text-align: center; min-height: clamp(220px, 24vw, 340px); overflow: hidden;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, rgba(247, 247, 247, .025) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, var(--ink-3) 0%, var(--deep) 75%);
}
.slot::before { content: ""; position: absolute; inset: 11% 9%; border: 1px dashed rgba(247, 247, 247, .16); }
.slot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); background: linear-gradient(var(--line-2), var(--line-2)) center / 1px 100% no-repeat, linear-gradient(var(--line-2), var(--line-2)) center / 100% 1px no-repeat; opacity: .6; }
.slot > span { position: absolute; font: 400 .6875rem var(--mono); color: var(--mute); }
.slot-id { top: 14px; left: 16px; }
.slot-state { bottom: 14px; right: 16px; }
.slot-what { bottom: 14px; left: 16px; text-align: left; }
.slot strong { position: relative; z-index: 1; margin-top: 64px; font: 400 clamp(1.2rem, 1.8vw, 1.6rem)/1.1 var(--display); letter-spacing: -.01em; color: var(--bone); }

/* ---------- Clientes ---------- */
.clients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 1000px) { .clients { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.clients li { container-type: inline-size; display: grid; place-items: center; min-height: clamp(112px, 11vw, 168px); padding: 24px clamp(16px, 2vw, 32px); background: var(--ink); }
.clients-wide { grid-column: span 2; --span: 2; } /* Logos muy anchos (Honey Hive 11:1, LiuMaq, LiuGong, SERMEP): dos celdas, así las filas cierran completas */
/* Peso visual parejo: --h (px a 1440) ∝ 1/√proporción, corregido por densidad de tinta.
   Escala con la celda: 1 a ≥ 200 px de ancho útil, proporcional por debajo; nunca pasa de --h. */
.clients img { width: auto; max-width: 100%; object-fit: contain; height: calc(var(--h) * .72px); height: calc(var(--h) * min(1px, 1cqi / (2 * var(--span, 1)))); }

/* ---------- Cotizar ---------- */
.quote { border-top: 1px solid var(--line); background: radial-gradient(120% 80% at 0% 100%, rgba(135, 108, 69, .1), transparent 60%), var(--ink); }
.quote-grid { display: grid; gap: 64px; }
@media (min-width: 1000px) { .quote-grid { grid-template-columns: 5fr 7fr; gap: clamp(56px, 7vw, 120px); } }
.quote-intro .body-m { margin-top: 24px; }
.quote-intro .contact-list { margin-top: 40px; }
.form { display: grid; gap: 30px 28px; align-content: start; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } }
.field--full, .form-foot { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font: 500 .75rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.field label i { font-style: normal; color: var(--sand); }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; color: var(--bone); font: 400 1.125rem/1.3 var(--sans);
  transition: border-color .3s, box-shadow .3s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23d3ba97' stroke-width='1.5'%3E%3Cpath d='M2 5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 4px center; }
.field select option { background: var(--ink-2); color: var(--bone); }
.field input::placeholder { color: rgba(174, 185, 194, .8); }
.field input:focus, .field select:focus { outline: none; border-color: var(--sand); box-shadow: 0 1px 0 var(--sand); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 1px 0 var(--error); }
.err { min-height: 1.3em; margin-top: 6px; font-size: .875rem; color: var(--error); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 8px; }
.form-foot p { color: var(--mute); max-width: 38ch; font-size: .875rem; line-height: 1.45; }
.form-done { border: 1px solid var(--line-2); padding: clamp(28px, 4vw, 48px); background: var(--ink-2); }
.form-done:focus { outline: none; }
.form-done h3 { margin: 12px 0 16px; font: 400 clamp(1.8rem, 3.2vw, 2.6rem)/1.08 var(--display); letter-spacing: -.02em; }
.form-done p { color: var(--mute); max-width: 48ch; }
.form-done .btn { margin-top: 28px; }
.pending-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pending-actions span { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 1.1rem; border: 1px dashed var(--line-2); color: var(--mute); font: 500 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(64px, 8vw, 112px) 28px; }
.foot-top { display: grid; gap: 40px; align-items: end; }
@media (min-width: 900px) { .foot-top { grid-template-columns: auto 1fr; gap: 6vw; } }
.foot-top img { height: clamp(110px, 12vw, 168px); width: auto; margin-block: 12px; }
.foot-quote { font: 400 clamp(1.6rem, 3.4vw, 3.3rem)/1.08 var(--display); letter-spacing: -.024em; max-width: 22ch; justify-self: end; text-align: right; }
@media (max-width: 899px) { .foot-quote { justify-self: start; text-align: left; } }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; margin-top: clamp(48px, 6vw, 88px); padding-top: 36px; border-top: 1px solid var(--line); }
.foot-cols .label { margin-bottom: 12px; }
.foot-cols a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; transition: color .3s; }
.foot-cols a:hover { color: var(--sand); }
.foot-cols li { color: var(--bone); }
.foot-cols li span.pending { margin: 8px 0; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font: 400 .8125rem var(--sans); letter-spacing: .02em; color: var(--mute); }

/* ---------- Reel ---------- */
.reel-body { display: grid; gap: 24px; padding-bottom: 40px; }
.reel-title { font: 400 clamp(1.5rem, 2.7vw, 2.3rem)/1.12 var(--display); letter-spacing: -.02em; }
.reel-title em { color: var(--sand); }
.reel-player { width: min(100%, calc((100dvh - 300px) * 16 / 9)); min-width: min(100%, 320px); aspect-ratio: 16 / 9; background: var(--deep); }
.reel-player video { width: 100%; height: 100%; }
.chapters { display: flex; flex-wrap: wrap; gap: 10px; }
.chapters a { display: inline-flex; align-items: center; gap: .9rem; min-height: 52px; padding: 0 1.1rem; border: 1px solid var(--line-2); text-decoration: none; transition: border-color .3s, background-color .3s; }
.chapters a:hover { border-color: var(--sand); }
.chapters a[aria-current="true"] { border-color: var(--sand); background: rgba(211, 186, 151, .1); }
.chapters .mono { color: var(--mute); }
.chapters a span:first-child { color: var(--sand); }
.reel-note { color: var(--mute); max-width: 60ch; font-size: .95rem; }

/* ---------- Visor (fotogramas) ---------- */
.viewer { display: none; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); background: var(--deep); }
.viewer[open] { display: grid; }
.viewer-top { display: flex; align-items: center; gap: 16px 24px; padding: 12px var(--pad); border-bottom: 1px solid var(--line); min-height: var(--head); }
.viewer-top h2 { font: 500 clamp(1.25rem, 2vw, 1.65rem)/1.15 var(--display); letter-spacing: -.01em; }
.viewer-top .mono { margin-left: auto; color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.viewer-top .menu-btn { flex: none; }
.viewer-top > div { min-width: 0; overflow-wrap: break-word; }
@media (max-width: 599px) { .viewer-top { gap: 10px 14px; } .viewer-top .menu-btn { padding-inline: .8rem; } }
.viewer-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 16px var(--pad); }
.viewer-stage img, .viewer-stage video { max-width: 100%; max-height: calc(100dvh - 2 * var(--head) - 72px); width: auto; height: auto; object-fit: contain; }
.viewer-stage video { width: min(100%, 1400px); aspect-ratio: 16 / 9; background: var(--deep); }
.viewer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 12px var(--pad) 16px; border-top: 1px solid var(--line); }
.viewer-note { color: var(--mute); font-size: .9rem; max-width: 60ch; }
.viewer-nav { display: flex; gap: 10px; }

/* ---------- Página: Trabajos ---------- */
.page-head { padding-top: calc(var(--head) + clamp(56px, 9vw, 140px)); padding-bottom: clamp(40px, 5vw, 72px); }
.display { font: 400 clamp(3.6rem, 13vw, 12.5rem)/.9 var(--display); letter-spacing: -.04em; }
.page-head-grid { display: grid; gap: 28px; margin-top: clamp(28px, 3vw, 44px); }
@media (min-width: 900px) { .page-head-grid { grid-template-columns: 1fr auto; align-items: end; } }
.filters-bar { position: sticky; top: var(--head); z-index: 20; background: rgba(21, 36, 48, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
html:not(.js) .filters-bar { display: none; }
.filters { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 1rem; flex: none; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: var(--mute);
  font: 500 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  transition: color .3s, border-color .3s, background-color .3s;
}
.filters button:hover { color: var(--bone); border-color: var(--line-2); }
.filters button[aria-pressed="true"] { color: var(--ink); background: var(--grad-light); }
.filters button span { font: 400 .6875rem var(--mono); letter-spacing: 0; opacity: .8; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) clamp(14px, 2vw, 28px); padding-block: clamp(40px, 5vw, 72px) clamp(88px, 10vw, 160px); }
.tile { grid-column: span 12; }
.tile .work-media { aspect-ratio: 16 / 10; }
@media (min-width: 760px) {
  .tile { grid-column: span 6; }
  .tile:nth-child(3n + 1 of :not([hidden])),
  .tile:nth-child(3n + 2 of :not([hidden])):nth-last-child(1 of :not([hidden])) { grid-column: span 12; }
  .tile:nth-child(3n + 1 of :not([hidden])) .work-media,
  .tile:nth-child(3n + 2 of :not([hidden])):nth-last-child(1 of :not([hidden])) .work-media { aspect-ratio: 2.39; }
}
.tile .work-meta { grid-template-columns: auto 1fr auto; }
.tile .work-meta h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.tile .hint { grid-column: 2 / -1; font: 400 .8125rem var(--sans); color: var(--mute); }
.empty { display: grid; justify-items: start; gap: 18px; padding-block: clamp(40px, 6vw, 96px) clamp(96px, 10vw, 160px); }
.empty[hidden] { display: none; }
.empty-frame { position: relative; width: min(100%, 520px); aspect-ratio: 2.39; margin-bottom: 18px; border: 1px solid var(--line); background: radial-gradient(ellipse at center, var(--ink-3), var(--deep) 75%); display: grid; place-items: center; }
.empty-frame::before { content: ""; position: absolute; inset: 12% 9%; border: 1px dashed rgba(247, 247, 247, .16); }
.empty-frame span { font: 400 .75rem var(--mono); color: var(--mute); }
.empty h2 { font: 400 clamp(1.8rem, 3.6vw, 3.2rem)/1.08 var(--display); letter-spacing: -.022em; max-width: 20ch; }
.empty h2 em { color: var(--sand); }
.empty p { color: var(--mute); max-width: 52ch; }
.empty .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* ---------- Página: Proyecto ---------- */
.p-head { padding-top: calc(var(--head) + clamp(48px, 8vw, 120px)); padding-bottom: clamp(32px, 4vw, 56px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 28px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--mute); }
.crumbs a:hover { color: var(--sand); }
.crumbs [aria-current] { color: var(--bone); }
.p-title { font: 400 clamp(3.4rem, 12vw, 11rem)/.92 var(--display); letter-spacing: -.04em; }
.p-title em { font-size: .3em; color: var(--sand); letter-spacing: .02em; vertical-align: 1.2em; margin-left: .2em; }
.p-sub { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 900px) { .p-sub { grid-template-columns: 1fr auto; align-items: end; } }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; font: 400 .9375rem var(--sans); color: var(--mute); }
.p-meta b { font-weight: 500; color: var(--bone); }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--deep); }
.player video { width: 100%; height: 100%; }
.player-facade { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 18px; padding: 0; border: 0; cursor: pointer; color: var(--bone); background: linear-gradient(to top, rgba(21, 36, 48, .7), rgba(21, 36, 48, .1) 60%); }
.js .player-facade { display: grid; }
.js .player-facade[hidden] { display: none; }
.player-facade .reel-ring { width: clamp(72px, 9vw, 112px); height: clamp(72px, 9vw, 112px); }
.player-facade .reel-ring .ico { width: 32px; height: 32px; }
.player-facade:hover .reel-ring { transform: scale(1.07); }
.player-facade .mono { padding: 6px 10px; background: rgba(21, 36, 48, .72); text-transform: uppercase; letter-spacing: .12em; }
.player-wrap { position: relative; }
.player-wrap .vf { display: none; }

.p-info { display: grid; gap: 56px; }
@media (min-width: 1000px) { .p-info { grid-template-columns: 1fr 1fr; gap: 7vw; } }
.spec { border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 400 .6875rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.spec dd { font: 400 1.125rem/1.4 var(--sans); }
.spec dd .pending { margin: 6px 0 0; white-space: normal; }
.p-about .lead { margin-bottom: 20px; }
.p-about p + p { margin-top: 16px; }

/* Detrás de cámaras en el proyecto: texto a la izquierda, videos verticales a la derecha */
.bts-split { display: grid; gap: 32px; }
.bts-split .body-m { margin-top: 20px; }
@media (min-width: 900px) { .bts-split { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: clamp(32px, 5vw, 80px); } }
.bts-videos { display: flex; gap: clamp(8px, 1.2vw, 16px); }
.bts-videos li { flex: 1 1 0; min-width: 0; max-width: 360px; }
@media (min-width: 900px) { .bts-videos li { flex: 0 0 clamp(240px, 22vw, 340px); } }
.bts-videos video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ink-2); }
.frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); margin-top: clamp(36px, 4vw, 56px); }
.frames li { grid-column: span 2; }
.frames .f-half { grid-column: span 1; }
.frames a { position: relative; display: block; height: 100%; overflow: hidden; background: var(--ink-2); }
.frames img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform 1.2s var(--ease), opacity .4s; }
.frames .f-wide img { aspect-ratio: 2.39; }
.frames a:hover img { transform: scale(1.04); }
.frames a::after { content: attr(data-n); position: absolute; left: 10px; bottom: 8px; font: 400 .6875rem var(--mono); color: var(--bone); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
@media (min-width: 760px) {
  .frames { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .frames .f-wide { grid-column: span 6; }
  .frames .f-half { grid-column: span 3; }
  .frames .f-two { grid-column: span 4; }
  .frames .f-one { grid-column: span 2; }
  .frames .f-one img { aspect-ratio: auto; }
}

.pn { display: grid; border-block: 1px solid var(--line); }
@media (min-width: 760px) { .pn { grid-template-columns: 1fr 1fr; } }
.pn a { position: relative; isolation: isolate; display: grid; align-content: end; gap: 8px; min-height: clamp(260px, 32vw, 440px); padding: clamp(24px, 3vw, 44px); overflow: hidden; text-decoration: none; }
.pn a + a { border-top: 1px solid var(--line); }
@media (min-width: 760px) { .pn a + a { border-top: 0; border-left: 1px solid var(--line); text-align: right; justify-items: end; } }
.pn img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.7) brightness(.5); transition: filter .8s, transform 1.2s var(--ease); }
.pn a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(21, 36, 48, .85), rgba(21, 36, 48, .15)); }
.pn a:hover img { filter: none; transform: scale(1.04); }
.pn .label { color: var(--bone); display: inline-flex; align-items: center; gap: .6rem; }
.pn strong { font: 400 clamp(1.8rem, 3.8vw, 3.4rem)/1.02 var(--display); letter-spacing: -.025em; }
.pn .mono { color: var(--bone); opacity: .85; }

.cta-band { display: grid; gap: 28px; justify-items: start; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: end; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Integración en el sitio real (idiomas, YouTube, formulario, vista previa)
   ========================================================================== */
.nav-inline .lang-switch { color: var(--bone); border-left: 1px solid var(--line-2); padding-left: clamp(18px, 2.4vw, 36px); }
.menu-lang { margin-top: 24px; }
.menu-lang .lang-switch { display: inline-flex; align-items: center; min-height: 44px; font: 500 .8125rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sand); text-decoration: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: 16px; color: var(--error); }
.form-error:empty { display: none; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.contact-list a, .foot-base a { color: inherit; }
.contact-list a:hover, .foot-base a:hover { color: var(--sand); }
.preview-banner { position: sticky; top: 0; z-index: 400; margin: 0; padding: 8px 16px; background: var(--sand); color: var(--ink); text-align: center; font: 500 .8125rem var(--sans); }
.reel-player { position: relative; }
.yt { position: absolute; inset: 0; background: var(--deep); }
.yt img, .yt iframe, figure.player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
figure.player { margin: 0; overflow: hidden; }
.legal { max-width: 72ch; }
.legal h2 { margin: 48px 0 12px; font: 400 clamp(1.4rem, 2.4vw, 2rem)/1.15 var(--display); letter-spacing: -.01em; }
.legal h2:first-child { margin-top: 0; }

/* ==========================================================================
   Vista explosionada de cámara (Producción de servicio) · cuadros de video que avanzan con el scroll
   ========================================================================== */
/* Antes de montar: copy + lista. Sin JS se oculta (la ficha de equipo de abajo ya trae la misma información). */
.xcam { position: relative; background: var(--xcam-bg, #0e1e2c); } /* mismo color que el fondo del video */
.xcam-stage { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.xcam-canvas, .xcam-leaders, .xcam-bar { display: none; }
.xcam-copy { position: relative; z-index: 2; max-width: 30rem; }
.xcam-copy .body-m { margin-top: 18px; color: var(--mute); }
.xcam-labels { display: grid; gap: 24px; margin-top: 40px; padding: 0; list-style: none; }
.xcam-labels li { border-top: 1px solid var(--line-2); padding-top: 14px; max-width: 26rem; }
.xcam-labels .mono { color: var(--sand); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.xcam-labels strong { display: block; margin: 6px 0 4px; font: 400 1.35rem/1.15 var(--display); color: var(--bone); }
.xcam-labels p { color: var(--mute); font-size: .9375rem; line-height: 1.5; }

/* Montada: escena fija mientras la sección se recorre (sin secuestrar el scroll). */
.xcam--ready { height: 330vh; }
.xcam--ready .xcam-stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; overflow: hidden; }
.xcam--ready .xcam-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.xcam--ready .xcam-leaders { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.xcam-leaders polyline { fill: none; stroke: var(--sand); stroke-width: 1; opacity: 0; transition: opacity .5s; }
.xcam-leaders circle { fill: var(--sand); opacity: 0; transition: opacity .5s; }
.xcam-leaders .is-on { opacity: .85; }
.xcam--ready .xcam-copy { position: absolute; top: clamp(96px, 12vh, 140px); left: var(--pad); }
.xcam--ready .xcam-labels { position: absolute; inset: 0; margin: 0; z-index: 3; pointer-events: none; }
.xcam--ready .xcam-labels li { position: absolute; width: min(22rem, 30vw); padding: 14px 16px 16px; border: 1px solid var(--line-2); background: rgba(14, 24, 32, .72); backdrop-filter: blur(6px); opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.xcam--ready .xcam-labels li.is-on { opacity: 1; transform: none; }
.xcam--ready [data-part="lens"] { top: 16%; right: var(--pad); }
.xcam--ready [data-part="sensor"] { bottom: 14%; right: 24%; }
.xcam--ready [data-part="card"] { bottom: 14%; left: var(--pad); }
.xcam--ready .xcam-bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 22px; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--mute); font: 400 .75rem var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.xcam-bar::before { content: ""; order: 1; flex: 1; height: 1px; background: linear-gradient(90deg, var(--bronze), var(--sand)); opacity: .5; }
.xcam-bar span:last-child { order: 2; color: var(--sand); }

/* Celular: sin líneas guía; la etiqueta de la pieza activa queda abajo como subtítulo. */
@media (max-width: 699px) {
  .xcam--ready { height: 300vh; }
  .xcam--ready .xcam-copy { top: 84px; right: var(--pad); }
  .xcam--ready .xcam-copy .body-m { display: none; }
  .xcam--ready .xcam-labels li { left: var(--pad); right: var(--pad); top: auto; bottom: 64px; width: auto; }
  .xcam--ready .xcam-labels li.is-on { opacity: 0; }
  .xcam--ready[data-active="0"] .xcam-labels [data-part="lens"],
  .xcam--ready[data-active="1"] .xcam-labels [data-part="sensor"],
  .xcam--ready[data-active="2"] .xcam-labels [data-part="card"] { opacity: 1; transform: none; }
}

/* Movimiento reducido: una sola imagen fija, ya despiezada, sin recorrido largo. */
.xcam--static { height: auto; }
.xcam--static .xcam-stage { position: relative; height: 100vh; height: 100svh; }
html:not(.js) .xcam { display: none; }
/* Transiciones suaves con el navy del sitio arriba y abajo. */
.xcam::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 24vh; background: linear-gradient(var(--ink), rgba(14, 30, 44, 0)); pointer-events: none; }
.xcam + .shoot-body, .xcam ~ .shoot-body { position: relative; }
.shoot:has(.xcam) .shoot-body { margin-top: 0; padding-top: clamp(56px, 7vw, 96px); background: linear-gradient(var(--xcam-bg, #0e1e2c), var(--ink) 260px); }
.xcam-title { max-width: 12ch; }
.xcam--ready .xcam-copy { opacity: var(--xcam-copy, 1); }
