/* ==========================================================================
   Tonal Producciones — hoja de estilos del sitio público
   ========================================================================== */

/* ---------- Fuentes (autoalojadas, licencia OFL) ---------- */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/jost-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Gelasio"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/gelasio-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2191, U+2193; }
@font-face { font-family: "Gelasio"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/gelasio-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: "Gelasio"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/gelasio-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Gelasio"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/gelasio-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: "Gelasio"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/gelasio-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Gelasio"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/gelasio-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  /* Fondo */
  --carbon: #21242A;
  --carbon-2: #2A2E35;          /* superficies elevadas (derivado del fondo) */
  --carbon-3: #33373F;

  /* Paleta corporativa */
  --azul: #56C8E2;      --azul-dark: #49ACC5;
  --aqua: #74C9BC;      --aqua-dark: #58C0A2;
  --lima: #ADD136;      --lima-dark: #95C93D;
  --amarillo: #FDE900;  --amarillo-dark: #DDCB23;
  --gris-oscuro: #686868; --gris-claro: #A09F9F;

  /* Texto */
  --ink: #F4F1EC;
  --ink-soft: #D9D5CE;
  --muted: var(--gris-claro);
  --line: rgba(244, 241, 236, .13);
  --line-strong: rgba(244, 241, 236, .26);
  --accent: var(--amarillo-dark);

  --serif: Georgia, "Gelasio", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --header-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--carbon); color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--amarillo-dark); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
::selection { background: var(--amarillo-dark); color: var(--carbon); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--carbon); font-weight: 500; }
.skip-link:focus { top: 16px; }
main:focus { outline: none; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-top: clamp(32px, 5vw, 56px); }
.section + .section { padding-top: 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section__head .eyebrow { margin-bottom: 0; }

/* ---------- Elementos tipográficos ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 32px;
  font: 500 12px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--amarillo-dark); flex: none; }
.meta { font: 400 13px/1.4 var(--sans); letter-spacing: .06em; color: var(--muted); }
.meta__sep { margin: 0 .5em; }
.tag {
  display: inline-block; margin: 0; padding: 3px 9px 2px; border: 1px solid var(--line-strong); border-radius: 999px;
  font: 500 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.label { font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.label--estreno { color: var(--amarillo-dark); }
.label--prensa { color: var(--aqua); }
.label--festival { color: var(--azul); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font: 500 14px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); padding: 4px 0; border-bottom: 1px solid var(--line-strong);
  transition: color .25s var(--ease), border-color .25s var(--ease), gap .25s var(--ease);
}
.link-arrow:hover { color: var(--amarillo-dark); border-color: var(--amarillo-dark); gap: .7em; }
.link-arrow--large { font-size: 16px; }
.link-list { list-style: none; display: grid; gap: 14px; justify-items: start; margin-top: 32px; }
.link-list--inline { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 0; }

.lede, .lede p { font: 400 clamp(22px, 2.4vw, 31px)/1.45 var(--serif); color: var(--ink); letter-spacing: -.005em; }
.lede p { margin-bottom: .8em; }

.prose { max-width: 70ch; color: var(--ink-soft); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font: 400 clamp(24px, 2.6vw, 32px)/1.25 var(--serif); color: var(--ink); margin: 1.8em 0 .6em; }
.prose h3 { font: 500 19px/1.35 var(--serif); color: var(--ink); margin: 1.7em 0 .5em; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--ink); }
.prose a:hover { color: var(--amarillo-dark); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose ul li::marker { color: var(--amarillo-dark); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--amarillo-dark); color: var(--ink); }
.prose--large { font-size: 19px; line-height: 1.7; }
.prose--intro { margin-bottom: clamp(40px, 6vw, 72px); font: 400 clamp(20px, 2.1vw, 26px)/1.55 var(--serif); color: var(--ink); max-width: 60ch; }
.prose--legal { max-width: 74ch; font-size: 16px; }
.table-wrap { position: relative; overflow-x: auto; margin: 1.5em 0 2em; border-top: 1px solid var(--line-strong); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.prose th { text-align: left; font: 500 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 14px 16px 12px 0; border-bottom: 1px solid var(--line-strong); }
.prose td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose td:first-child { color: var(--ink); font-family: var(--serif); font-size: 17px; }

.callout {
  margin: clamp(40px, 6vw, 64px) 0 0; padding: clamp(24px, 3vw, 36px); max-width: 70ch;
  background: var(--carbon-2); border-left: 2px solid var(--amarillo-dark); color: var(--ink-soft);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong, .callout a { color: var(--ink); font-weight: 500; }
.callout a { white-space: nowrap; }

.footnote { margin-top: clamp(48px, 7vw, 88px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; max-width: 70ch; }
.footnote em { font-family: var(--serif); }
.empty { color: var(--muted); padding: 48px 0; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(33, 36, 42, .96); border-bottom: 1px solid var(--line);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
}
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgba(33, 36, 42, .86); backdrop-filter: blur(14px); } }
.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; }
.has-hero .site-header::before {
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(20, 22, 26, .6), rgba(20, 22, 26, 0)); transition: opacity .35s;
}
.has-hero .site-header.is-solid { background: rgba(33, 36, 42, .9); border-color: var(--line); }
@supports (backdrop-filter: blur(1px)) { .has-hero .site-header.is-solid { backdrop-filter: blur(14px); } }
.has-hero .site-header.is-solid::before { opacity: 0; }

.site-header__inner { height: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 32px; }
.site-header__logo { flex: none; display: block; }
.site-header__logo img { height: 38px; width: auto; }
.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav ul { list-style: none; display: flex; gap: clamp(18px, 2.6vw, 40px); }
.site-nav a {
  position: relative; display: block; padding: 8px 0; text-decoration: none;
  font: 500 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  transition: color .25s var(--ease);
}
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--amarillo-dark); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }

.lang-switch { list-style: none; display: flex; gap: 2px; flex: none; font: 500 12px/1 var(--sans); letter-spacing: .14em; }
.lang-switch li + li::before { content: "·"; color: var(--gris-oscuro); margin: 0 6px; }
.lang-switch li { display: flex; align-items: center; }
.lang-switch a { text-decoration: none; color: var(--muted); padding: 6px 2px; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { color: var(--ink); }

.menu-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; z-index: 60; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle__bars { top: 21px; }
.menu-toggle__bars::before { content: ""; left: 0; top: -7px; }
.menu-toggle__bars::after { content: ""; left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--carbon);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__list { list-style: none; display: grid; gap: 6px; }
.mobile-menu__list a { display: block; padding: 8px 0; text-decoration: none; font: 400 clamp(30px, 8vw, 44px)/1.15 var(--serif); color: var(--ink-soft); }
.mobile-menu__list a[aria-current] { color: var(--ink); }
.mobile-menu__list a[aria-current]::before { content: ""; display: inline-block; width: 18px; height: 1px; margin: 0 14px 0 0; vertical-align: middle; background: var(--amarillo-dark); }
.mobile-menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.mobile-menu__lang { list-style: none; display: flex; gap: 24px; font: 500 14px/1 var(--sans); letter-spacing: .16em; }
.mobile-menu__lang a { text-decoration: none; color: var(--muted); }
.mobile-menu__lang a[aria-current] { color: var(--ink); }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { z-index: 60; background: var(--carbon); border-color: transparent; }
body.menu-open .site-header::before { opacity: 0; }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .site-nav, .site-header__inner > .lang-switch { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .site-header__logo img { height: 32px; }
}

/* Redes sociales: encabezado (pantallas anchas), menú del celular y pie */
.social-links { list-style: none; display: flex; align-items: center; gap: 2px; }
.social-links a { display: grid; place-items: center; width: 36px; height: 36px; color: var(--muted); transition: color .25s var(--ease); }
.social-links a:hover { color: var(--amarillo-dark); }
.social-links svg { display: block; width: 20px; height: 20px; }
.social-links--header { flex: none; margin-right: -12px; padding-right: 20px; border-right: 1px solid var(--line); }
.social-links--header a { width: 32px; height: 32px; color: var(--ink-soft); }
.social-links--header svg { width: 18px; height: 18px; }
@media (max-width: 1099px) { .site-header__inner > .social-links { display: none; } }
.social-links--menu { margin-right: -10px; }
.social-links--menu a { width: 44px; height: 44px; }
.social-links--menu svg { width: 24px; height: 24px; }
.site-footer__col .social-links--footer { display: flex; gap: 2px; margin: 4px 0 0 -8px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font: 400 13px/1.4 var(--sans); letter-spacing: .04em; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin: 0 .6em; color: var(--gris-oscuro); }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink-soft); }

/* ---------- Encabezado de página ---------- */
.page-header { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-header .breadcrumb { margin-bottom: 28px; }
.page-header__title { font: 400 clamp(42px, 6.4vw, 88px)/1.02 var(--serif); letter-spacing: -.02em; max-width: 16ch; }
.page-header__subtitle { margin: 22px 0 0; max-width: 46ch; font: italic 400 clamp(19px, 1.9vw, 24px)/1.45 var(--serif); color: var(--ink-soft); }
.page-header__motif {
  position: absolute; right: max(-60px, calc((100vw - var(--max)) / 2 - 140px)); top: 50%; transform: translateY(-46%);
  width: clamp(240px, 32vw, 460px); height: auto; color: var(--amarillo-dark); opacity: .16; pointer-events: none;
}
@media (max-width: 700px) { .page-header__motif { right: -90px; width: 240px; opacity: .1; } }

/* ---------- Chips de filtro ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 5vw, 56px); }
.chip {
  padding: 9px 16px 8px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none;
  font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  transition: border-color .2s, color .2s, background-color .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--carbon); }

/* ---------- Still (imagen horizontal de obra) ---------- */
.still { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--carbon-2); }
.still__img { width: 100%; height: 100%; object-fit: cover; }
.still__bg { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; filter: blur(28px) saturate(.9) brightness(.55); transform: scale(1.05); }
.still__poster { position: relative; height: 86%; width: auto; margin: 3.5% auto 0; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.still--empty { display: grid; place-items: center; }
.still--empty svg { width: 22%; color: var(--amarillo-dark); opacity: .35; }

/* ---------- Home: hero ---------- */
.home-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.home-hero__media { position: absolute; inset: 0; z-index: -2; background: var(--carbon); }
.home-hero__video { width: 100%; height: 100%; object-fit: cover; }
.home-hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(20, 22, 26, .55) 0%, rgba(20, 22, 26, 0) 28%, rgba(20, 22, 26, 0) 45%, rgba(33, 36, 42, .92) 100%); }
.home-hero__content { padding-bottom: clamp(96px, 14vh, 150px); }
.home-hero__title img { width: clamp(220px, 44vw, 600px); height: auto; filter: drop-shadow(0 2px 18px rgba(0, 0, 0, .35)); }
.home-hero__subtitle { margin: clamp(16px, 2vw, 26px) 0 0; font: italic 400 clamp(19px, 2.2vw, 28px)/1.35 var(--serif); color: var(--ink); max-width: 30ch; text-shadow: 0 1px 14px rgba(0, 0, 0, .4); }
.home-hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft);
  white-space: nowrap; padding: 10px 4px;
}
.home-hero__scroll span { display: inline-block; margin-left: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .home-hero__scroll span { animation: nudge 2.4s var(--ease) infinite; }
  @keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(5px); } }
}
.home-hero__scroll:hover { color: var(--amarillo-dark); }

/* ---------- Home: obras destacadas ---------- */
.featured__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.feature-card__media { display: block; overflow: hidden; }
.feature-card__media .still { transition: transform .8s var(--ease); }
.feature-card:hover .feature-card__media .still { transform: scale(1.025); }
.feature-card__body { padding-top: 22px; }
.feature-card__body .meta { margin-bottom: 10px; }
.feature-card__title { font: 400 clamp(26px, 2.4vw, 34px)/1.12 var(--serif); margin-bottom: 12px; letter-spacing: -.01em; }
.feature-card__title a { text-decoration: none; }
.feature-card__title a:hover { color: var(--amarillo-dark); }
.feature-card__line { color: var(--ink-soft); font-size: 16px; line-height: 1.6; margin-bottom: 20px; }
@media (max-width: 900px) { .featured__grid { grid-template-columns: 1fr; gap: 56px; } }

/* La disposición se adapta a la cantidad de obras destacadas */
@media (min-width: 901px) {
  .featured__grid[data-count="1"] { grid-template-columns: 1fr; }
  .featured__grid[data-count="1"] .feature-card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
  .featured__grid[data-count="1"] .feature-card__body { padding-top: 0; }
  .featured__grid[data-count="1"] .feature-card__title { font-size: clamp(34px, 3.6vw, 52px); }
  .featured__grid[data-count="2"], .featured__grid[data-count="4"] { grid-template-columns: repeat(2, 1fr); }
  .featured__grid[data-count="4"] { row-gap: clamp(48px, 5vw, 72px); }
  .featured__grid[data-count="5"] { grid-template-columns: repeat(3, 1fr); row-gap: clamp(48px, 5vw, 72px); }
}

/* Carrusel en móvil (4 o más destacadas): deslizar con el dedo, la siguiente se asoma */
@media (max-width: 900px) {
  .featured__grid[data-carousel] {
    /* relative: contiene los .sr-only (absolutos) de las tarjetas; si no, ensanchan la página */
    position: relative; display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px;
    scrollbar-width: none;
  }
  .featured__grid[data-carousel]::-webkit-scrollbar { display: none; }
  .featured__grid[data-carousel] > .feature-card { flex: 0 0 85%; scroll-snap-align: start; }
  .featured__grid[data-carousel]:focus-visible { outline-offset: -2px; }
  .featured__dots { display: flex; justify-content: center; gap: 4px; margin-top: 26px; }
  .featured__dots[hidden] { display: none; }
  .featured__dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
  .featured__dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--gris-oscuro); transition: background-color .25s, transform .25s; }
  .featured__dots button[aria-current]::before { background: var(--amarillo-dark); transform: scale(1.25); }
}
@media (min-width: 901px) { .featured__dots { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .featured__grid[data-carousel] { scroll-behavior: auto; } }

/* ---------- Home: estudio ---------- */
.studio__grid {
  display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; align-items: start; gap: 32px clamp(32px, 6vw, 96px);
  padding-top: clamp(48px, 6vw, 80px);
  /* filete superior alineado con el contenido, no con el borde de la ventana */
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.studio__grid .eyebrow { margin-top: .9em; }
.studio__text .lede { max-width: 36ch; margin-bottom: 28px; }
.studio__text .lede, .studio__text .lede p { font-size: clamp(21px, 2.1vw, 28px); }
@media (max-width: 800px) { .studio__grid { grid-template-columns: 1fr; } }

/* ---------- Home: servicios ---------- */
.services-teaser__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.services-teaser__media { overflow: hidden; aspect-ratio: 4 / 5; background: var(--carbon-2); }
.services-teaser__media img, .services-teaser__media .still { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.services-teaser__text .prose { max-width: 46ch; color: var(--ink); }
@media (max-width: 800px) { .services-teaser__grid { grid-template-columns: 1fr; } .services-teaser__media { aspect-ratio: 16 / 10; } }

/* ---------- Home: actualidad ---------- */
.news-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.mini-card { display: flex; gap: 18px; padding: 24px 24px 24px 0; background: var(--carbon); }
.mini-card + .mini-card { padding-left: 24px; }
.mini-card__thumb { flex: none; width: 76px; aspect-ratio: 2 / 3; overflow: hidden; background: var(--carbon-2); display: grid; place-items: center; }
.mini-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-card__thumb svg { width: 60%; color: var(--amarillo-dark); opacity: .4; }
.mini-card__head { margin-bottom: 8px; }
.mini-card__title { font: 400 19px/1.3 var(--serif); margin-bottom: 8px; }
.mini-card__title a { text-decoration: none; }
.mini-card__title a:hover { color: var(--amarillo-dark); }
@media (max-width: 900px) {
  .news-mini { grid-template-columns: 1fr; }
  .mini-card, .mini-card + .mini-card { padding: 22px 0; }
}

/* ---------- Filmografía ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.work-card__link { display: block; text-decoration: none; }
.work-card__poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--carbon-2); }
.work-card__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.work-card__poster::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none; }
.work-card__link:hover .work-card__poster img { transform: scale(1.03); }
.work-card__empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px; text-align: center; }
.work-card__empty svg { width: 36%; color: var(--amarillo-dark); opacity: .4; }
.work-card__empty span { font: 500 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.work-card__body { padding-top: 18px; }
.work-card__title { font: 400 clamp(22px, 2vw, 27px)/1.15 var(--serif); letter-spacing: -.005em; margin-bottom: 10px; transition: color .25s; }
.work-card__link:hover .work-card__title { color: var(--amarillo-dark); }
.work-card__meta { display: flex; align-items: center; gap: 12px; margin: 0; }
.work-card__hook {
  margin: 14px 0 0; max-width: 46ch; font-size: 15px; line-height: 1.55; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } .work-card__poster { max-width: 420px; } }

/* ---------- Ficha de obra ---------- */
.work-hero { position: relative; min-height: min(86vh, 860px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.work-hero__media { position: absolute; inset: 0; z-index: -2; background: var(--carbon-2); }
.work-hero__media > img { width: 100%; height: 100%; object-fit: cover; }
.work-hero__blur { position: absolute; inset: -8%; width: 116% !important; height: 116% !important; max-width: none; filter: blur(40px) saturate(.85) brightness(.5); }
.work-hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(20, 22, 26, .6) 0%, rgba(20, 22, 26, 0) 30%),
  linear-gradient(0deg, var(--carbon) 0%, rgba(33, 36, 42, .7) 30%, rgba(33, 36, 42, 0) 62%),
  linear-gradient(90deg, rgba(20, 22, 26, .55) 0%, rgba(20, 22, 26, 0) 60%); }
.work-hero__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(40px, 6vw, 72px); }
.work-hero__text { max-width: 760px; }
.work-hero__text .breadcrumb { margin-bottom: 28px; }
.work-hero__title { font: 400 clamp(44px, 7vw, 104px)/.98 var(--serif); letter-spacing: -.02em; margin-bottom: 22px; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.work-hero__meta { font: 500 14px/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.work-hero__credits { font: italic 400 18px/1.5 var(--serif); color: var(--ink-soft); margin: 0; }
/* Dónde verla: botones «Ver en …» (cabecera de la ficha y destacadas del inicio) */
.watch-links { display: flex; flex-wrap: wrap; gap: 10px; }
.watch-link {
  display: inline-flex; align-items: center; gap: .55em; padding: 12px 20px; border-radius: var(--radius);
  background: var(--amarillo-dark); color: var(--carbon); text-decoration: none;
  font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; transition: background-color .2s, color .2s;
}
.watch-link:hover { background: var(--ink); }
.work-hero__watch { margin-top: 24px; }
.feature-card__watch { margin-top: 16px; }
.work-hero__poster { flex: none; width: clamp(200px, 22vw, 320px); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.work-hero__poster img { width: 100%; }
@media (max-width: 760px) {
  .work-hero { min-height: 0; }
  .work-hero__inner { flex-direction: column-reverse; align-items: flex-start; gap: 32px; }
  .work-hero__poster { width: 58%; max-width: 260px; }
}

.trailer { display: flex; justify-content: center; padding-top: clamp(40px, 6vw, 72px); }
.trailer__button { display: grid; justify-items: center; gap: 18px; text-decoration: none; width: min(100%, 620px); }
.trailer__thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--carbon-2); }
.trailer__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .4s, transform .8s var(--ease); }
.trailer__thumb--poster { object-position: center 30%; filter: saturate(.8); }
.trailer__button:hover .trailer__thumb img { opacity: 1; transform: scale(1.02); }
.trailer__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 1.5px solid var(--ink); border-radius: 50%; background: rgba(20, 22, 26, .35); transition: border-color .3s, background-color .3s; }
.trailer__play::after { content: ""; position: absolute; left: 29px; top: 23px; border-style: solid; border-width: 13px 0 13px 20px; border-color: transparent transparent transparent var(--ink); }
.trailer__button:hover .trailer__play { border-color: var(--amarillo-dark); background: rgba(20, 22, 26, .6); }
.trailer__label { font: 500 14px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.trailer__button:hover .trailer__label { color: var(--amarillo-dark); }

/* Más videos: tarjetas con miniatura */
.video-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.video-card { display: grid; gap: 14px; text-decoration: none; }
.video-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--carbon-2); }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .4s, transform .8s var(--ease); }
.video-card__poster { object-position: center 30%; filter: saturate(.8); }
.video-card:hover .video-card__thumb img { opacity: 1; transform: scale(1.03); }
.video-card__play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.video-card__play::after { left: 22px; top: 17px; border-width: 11px 0 11px 16px; }
.video-card:hover .video-card__play { border-color: var(--amarillo-dark); background: rgba(20, 22, 26, .6); }
.video-card__label { font: 400 19px/1.3 var(--serif); }
.video-card:hover .video-card__label { color: var(--amarillo-dark); }

.work-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: clamp(40px, 6vw, 96px); padding-top: clamp(56px, 7vw, 96px); }
.work-body__main { min-width: 0; }
.work-section { margin-bottom: clamp(48px, 6vw, 72px); }
/* Filete superior alineado con el contenido (el .container incluye el margen lateral) */
.work-section--rule, .work-nav {
  padding-top: clamp(40px, 5vw, 56px);
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.work-body__aside { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { .work-body { grid-template-columns: 1fr; } .work-body__aside { position: static; } }

.specs div, .credits div { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs div:first-child, .credits div:first-child { border-top: 1px solid var(--line-strong); }
.specs dt, .credits dt { font: 500 11px/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.specs dd, .credits dd { margin: 0; font-size: 16px; color: var(--ink); }
.credits div { grid-template-columns: minmax(160px, 34%) 1fr; }
.credits dd { font-family: var(--serif); font-size: 18px; }
.cast { list-style: none; columns: 2; column-gap: 32px; font: 400 18px/1.9 var(--serif); }

.awards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 40px; }
.award { padding-left: 18px; border-left: 1px solid var(--amarillo-dark); }
.award__result { font: 500 12px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--amarillo-dark); margin-bottom: 6px; }
.award__festival { font: 400 20px/1.35 var(--serif); margin: 0; }

.press-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.press-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px; background: var(--carbon-2); text-decoration: none; transition: background-color .25s; }
a.press-card:hover { background: var(--carbon-3); }
.press-card__logo { display: flex; align-items: center; min-height: 40px; }
.press-card__logo img { max-height: 36px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .85; }
.press-card__outlet { font: 500 13px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.press-card__headline { font: 400 17px/1.4 var(--serif); color: var(--ink-soft); }
.press-card__more { margin-top: auto; padding-top: 6px; font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
a.press-card:hover .press-card__more { color: var(--amarillo-dark); }
.press-outlets { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 0; margin: 28px 0 0; max-width: 90ch; }
.press-outlets .meta { margin-right: 18px; }
.press-outlets__name { font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.press-outlets__name + .press-outlets__name::before { content: "·"; margin: 0 12px; color: var(--gris-oscuro); }
.press-list__title { margin: clamp(32px, 4vw, 44px) 0 4px; }
.press-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); border-top: 1px solid var(--line); }
.press-list__item { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); gap: 4px 18px; height: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.press-list__outlet { grid-row: span 2; padding-top: 3px; font: 500 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.press-list__headline { font: 400 16px/1.4 var(--serif); color: var(--ink-soft); transition: color .25s; }
.press-list__date { font-size: 13px; color: var(--muted); }
a.press-list__item:hover .press-list__headline { color: var(--amarillo-dark); }
@media (max-width: 760px) {
  .press-list { grid-template-columns: 1fr; }
  .press-list__item { grid-template-columns: 1fr; gap: 6px; }
  .press-list__outlet { grid-row: auto; padding-top: 0; }
}

.downloads { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.downloads a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 22px; background: var(--carbon); text-decoration: none; transition: background-color .2s; }
.downloads a:hover { background: var(--carbon-2); }
.downloads__label { font: 400 18px/1.3 var(--serif); }
.downloads__label::before { content: "↓"; font-family: var(--sans); margin-right: 10px; color: var(--amarillo-dark); }

.work-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; margin-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(64px, 8vw, 112px); }
.work-nav a { text-decoration: none; }
.work-nav__prev a, .work-nav__next a { display: grid; gap: 6px; }
.work-nav__next { text-align: right; }
.work-nav__title { font: 400 clamp(19px, 2vw, 24px)/1.25 var(--serif); transition: color .25s; }
.work-nav a:hover .work-nav__title { color: var(--amarillo-dark); }
@media (max-width: 700px) {
  .work-nav { grid-template-columns: 1fr 1fr; }
  .work-nav__back { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

/* ---------- Modal de video ---------- */
.video-modal { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 13, 16, .96); color: var(--ink); }
.video-modal::backdrop { background: rgba(12, 13, 16, .9); }
.video-modal[open] { display: grid; place-items: center; }
.video-modal__frame { width: min(92vw, calc(84vh * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.video-modal__frame video, .video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.video-modal__close:hover { border-color: var(--amarillo-dark); color: var(--amarillo-dark); }

/* ---------- Servicios ---------- */
.service-cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; padding: clamp(28px, 3vw, 44px) clamp(24px, 2.6vw, 36px) 64px; background: var(--carbon); text-decoration: none; transition: background-color .3s var(--ease); }
.service-card:hover { background: var(--carbon-2); }
.service-card__num { font: 400 13px/1 var(--sans); letter-spacing: .14em; color: var(--amarillo-dark); }
.service-card__title { font: 400 clamp(26px, 2.4vw, 32px)/1.15 var(--serif); }
.service-card__text { color: var(--ink-soft); font-size: 16px; }
.service-card__arrow { position: absolute; left: clamp(24px, 2.6vw, 36px); bottom: 24px; font-size: 20px; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.service-card:hover .service-card__arrow { transform: translateX(8px); color: var(--amarillo-dark); }
.service-card--compact { padding: 28px 28px 60px; }
.service-card--compact .service-card__title { font-size: 24px; }
@media (max-width: 900px) { .service-cards { grid-template-columns: 1fr; } }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: clamp(56px, 7vw, 96px); background: var(--line); border: 1px solid var(--line); }
@media (max-width: 700px) { .related { grid-template-columns: 1fr; } }
.page-next { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Actualidad ---------- */
.news-feed { display: grid; border-top: 1px solid var(--line-strong); }
.news-item { display: grid; grid-template-columns: 140px 1fr; gap: clamp(20px, 3vw, 40px); padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); }
.news-item__media { aspect-ratio: 2 / 3; overflow: hidden; background: var(--carbon-2); display: grid; place-items: center; }
.news-item__media img { width: 100%; height: 100%; object-fit: cover; }
.news-item__media svg { width: 50%; color: var(--amarillo-dark); opacity: .4; }
.news-item__media--logo { aspect-ratio: 1; background: var(--carbon-2); padding: 18px; }
.news-item__media--logo img { object-fit: contain; filter: grayscale(1) brightness(1.5); }
.news-item__monogram { font: 500 12px/1.35 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-align: center; color: var(--ink-soft); }
.news-item__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.news-item__head time { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.news-item__title { font: 400 clamp(26px, 2.8vw, 36px)/1.12 var(--serif); margin-bottom: 10px; max-width: 26ch; }
.news-item__title--sm { font-size: clamp(22px, 2.2vw, 28px); max-width: 34ch; }
.news-item__source { font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.news-item__detail { color: var(--ink-soft); margin-bottom: 14px; }
.news-item__result { font: italic 400 19px/1.4 var(--serif); color: var(--ink); margin-bottom: 8px; }
@media (max-width: 600px) {
  .news-item { grid-template-columns: 84px 1fr; }
  .news-item__media--logo { padding: 6px; }
  .news-item__monogram { font-size: 9px; letter-spacing: .03em; hyphens: auto; overflow-wrap: anywhere; }
}

.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 48px; font: 500 13px/1 var(--sans); letter-spacing: .1em; }
.pager__pages { list-style: none; display: flex; gap: 4px; }
.pager a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 6px; text-decoration: none; color: var(--muted); }
.pager a:hover { color: var(--ink); }
.pager a[aria-current] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--amarillo-dark); }
.pager__step { text-transform: uppercase; }

/* ---------- Equipo ---------- */
.team { display: grid; gap: clamp(56px, 7vw, 96px); }
.member { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.member:last-child { border-bottom: 0; padding-bottom: 0; }
.member__portrait { aspect-ratio: 1; overflow: hidden; background: var(--carbon-2); display: grid; place-items: center; }
.member__portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease); }
.member:hover .member__portrait img { filter: grayscale(0); }
.member__portrait svg { width: 40%; color: var(--amarillo-dark); opacity: .35; }
.member__name { font: 400 clamp(30px, 3.4vw, 44px)/1.08 var(--serif); margin-bottom: 14px; letter-spacing: -.01em; }
.member__body .tag { margin-bottom: 24px; }
.member__credits-title { font: 500 11px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }
.member__credits { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font: italic 400 17px/1.5 var(--serif); color: var(--ink-soft); }
@media (max-width: 700px) { .member { grid-template-columns: 1fr; } .member__portrait { max-width: 260px; } }

/* ---------- Contacto ---------- */
/* Un solo correo (el de Tonal Producción) junto a los datos de la empresa, y el formulario */
.contact-lower { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: clamp(40px, 6vw, 96px); }
.contact-general { display: flex; flex-direction: column; gap: 18px; }
.contact-general address { color: var(--ink-soft); font-size: 16px; }
.contact-general strong { color: var(--ink); font-weight: 500; }
.contact-general__email { font: 400 clamp(19px, 1.75vw, 24px)/1.3 var(--serif); margin: 0; overflow-wrap: anywhere; }
.contact-general__email a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact-general__email a:hover { color: var(--amarillo-dark); border-color: var(--amarillo-dark); }
.contact-general__note { font-size: 14px; color: var(--muted); display: grid; gap: 8px; }
.contact-general__note p { margin: 0; }
.contact-general__note em { font-family: var(--serif); }
.contact-form__title { font: 400 clamp(28px, 3vw, 40px)/1.1 var(--serif); margin-bottom: 28px; }
@media (max-width: 800px) { .contact-lower { grid-template-columns: 1fr; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; margin-bottom: 28px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 0; background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  font: 400 17px/1.4 var(--sans); transition: border-color .2s;
}
.field select { appearance: none; background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 6px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--muted) 50%) right 0 center / 6px 6px no-repeat; padding-right: 24px; }
.field select option { background: var(--carbon); color: var(--ink); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amarillo-dark); }
.field [aria-invalid="true"] { border-color: #E8806B; }
.field__error { margin: 0; font-size: 14px; color: #F0A090; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.button {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 34px; cursor: pointer;
  background: var(--ink); color: var(--carbon); border: 1px solid var(--ink); border-radius: var(--radius);
  font: 500 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; transition: background-color .2s, color .2s, border-color .2s;
}
.button:hover { background: var(--amarillo-dark); border-color: var(--amarillo-dark); }
.form-legal { margin-top: 24px; font-size: 13px; color: var(--muted); max-width: 60ch; }
.form-legal a { color: var(--ink-soft); }
.notice { padding: 16px 20px; margin-bottom: 24px; border-left: 2px solid; background: var(--carbon-2); }
.notice--ok { border-color: var(--lima); }
.notice--error { border-color: #E8806B; }

/* ---------- 404 ---------- */
.not-found { position: relative; min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.not-found__motif { width: 120px; color: var(--amarillo-dark); opacity: .5; margin-bottom: 32px; }

/* ---------- Pie ---------- */
.site-footer { margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line-strong); font-size: 14px; color: var(--ink-soft); }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 48px clamp(32px, 5vw, 80px); padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.site-footer__logo { display: inline-block; margin-bottom: 28px; }
.site-footer__logo img { width: 128px; height: auto; }
.site-footer address p { margin: 0 0 .5em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--amarillo-dark); }
.site-footer__title { font: 500 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.site-footer__col ul { list-style: none; display: grid; gap: 10px; }
.site-footer__group { max-width: 40ch; margin-bottom: 18px; }
.site-footer__group a { text-decoration: underline; text-decoration-color: var(--line-strong); }
.site-footer .link-arrow { font-size: 13px; }
.site-footer__bar { border-top: 1px solid var(--line); }
.site-footer__bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 22px; padding-bottom: 22px; font-size: 13px; color: var(--muted); }
.site-footer__bar-inner p { margin: 0; }
.site-footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.lang-switch--footer { margin-left: auto; }
@media (max-width: 800px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .lang-switch--footer { margin-left: 0; }
}

/* ---------- Aparición al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-menu, .site-footer, .trailer, .video-modal { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   Servicios — editorial con cifras
   ========================================================================== */
.section--flush { padding-top: 0; }

/* Cabecera amplia sin imagen */
.page-header--wide { padding-top: clamp(72px, 12vw, 168px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-header--wide .page-header__title { font-size: clamp(46px, 7.4vw, 104px); }
.page-header--wide .page-header__motif { width: clamp(280px, 38vw, 560px); opacity: .2; }

/* Cabecera con fotografía a sangre */
.page-hero { position: relative; min-height: min(72vh, 760px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero__media { position: absolute; inset: 0; z-index: -2; background: var(--carbon-2); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(33, 36, 42, .95) 0%, rgba(33, 36, 42, .45) 45%, rgba(20, 22, 26, .25) 100%); }
.page-hero__inner { padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero .breadcrumb { margin-bottom: 24px; }
.page-hero .page-header__title { text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }

/* Introducción y cifras */
.services-intro__text { max-width: 40ch; margin-bottom: clamp(48px, 7vw, 88px); }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px clamp(20px, 3vw, 44px); margin: 0; }
.figures[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.figures[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.figure { position: relative; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.figure::before { content: ""; position: absolute; left: 0; top: -1px; width: 32px; height: 2px; background: var(--amarillo-dark); }
.figure__value { font: 400 clamp(36px, 4vw, 58px)/1 var(--serif); letter-spacing: -.02em; color: var(--ink); margin-bottom: 14px; }
.figure__label { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); max-width: 26ch; }
.figures--band { padding: clamp(36px, 5vw, 64px) 0; border-block: 1px solid var(--line); grid-template-columns: 1fr !important; }
.figures--band .figure { border: 0; padding: 0; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 12px clamp(24px, 4vw, 56px); align-items: end; }
.figures--band .figure::before { display: none; }
.figures--band .figure__value { font-size: clamp(48px, 7vw, 104px); color: var(--amarillo-dark); margin: 0; }
.figures--band .figure__label { font: italic 400 clamp(18px, 1.8vw, 24px)/1.45 var(--serif); max-width: 40ch; padding-bottom: .4em; }
@media (max-width: 900px) {
  .figures, .figures[data-count="3"] { grid-template-columns: repeat(2, 1fr); }
  .figures--band .figure { grid-template-columns: 1fr; }
}

/* Índice de servicios */
.service-index { list-style: none; border-bottom: 1px solid var(--line); }
.service-index__item {
  position: relative; display: grid; grid-template-columns: 88px minmax(0, 1.1fr) minmax(0, 1.4fr) 40px; align-items: baseline; gap: 12px clamp(20px, 3vw, 48px);
  padding: clamp(28px, 3.6vw, 44px) clamp(4px, 1vw, 16px); border-top: 1px solid var(--line); text-decoration: none;
  transition: background-color .35s var(--ease);
}
.service-index__item:hover { background: var(--carbon-2); }
.service-index__num { font: 400 15px/1 var(--sans); letter-spacing: .14em; color: var(--amarillo-dark); }
.service-index__title { font: 400 clamp(28px, 3.2vw, 44px)/1.08 var(--serif); letter-spacing: -.01em; transition: color .3s; }
.service-index__text { color: var(--ink-soft); font-size: 16px; max-width: 44ch; }
.service-index__arrow { justify-self: end; font-size: 22px; color: var(--muted); transition: transform .35s var(--ease), color .3s; }
.service-index__item:hover .service-index__title, .service-index__item:hover .service-index__arrow { color: var(--amarillo-dark); }
.service-index__item:hover .service-index__arrow { transform: translateX(8px); }
.service-index--related .service-index__title { font-size: clamp(24px, 2.4vw, 32px); }
@media (max-width: 760px) {
  .service-index__item { grid-template-columns: 1fr auto; }
  .service-index__num { grid-column: 1 / -1; }
  .service-index__title { grid-column: 1; }
  .service-index__arrow { grid-column: 2; grid-row: 2; }
  .service-index__text { grid-column: 1 / -1; }
}
.related-services { margin-top: clamp(56px, 7vw, 96px); }

/* Banda de contacto */
.contact-band { margin-top: clamp(16px, 3vw, 40px); background: var(--carbon-2); border-block: 1px solid var(--line); }
.contact-band__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; padding-block: clamp(40px, 6vw, 80px); }
.contact-band__text .eyebrow { margin-bottom: 20px; }
.contact-band__email { margin: 0 0 14px; font: 400 clamp(18px, 3.4vw, 46px)/1.15 var(--serif); overflow-wrap: anywhere; }
.contact-band__email a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact-band__email a:hover { color: var(--amarillo-dark); border-color: var(--amarillo-dark); }
.contact-band__note { color: var(--ink-soft); max-width: 60ch; }
.contact-band__note p:last-child { margin-bottom: 0; }
.contact-band__button { flex: none; }

/* Dos columnas con columna lateral fija */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--sticky .split__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.lede--small, .lede--small p { font-size: clamp(19px, 1.8vw, 24px); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--sticky .split__aside { position: static; } }

/* Línea de tiempo del proceso */
.timeline { list-style: none; position: relative; }
.timeline__step { position: relative; display: grid; grid-template-columns: clamp(72px, 10vw, 140px) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); padding-bottom: clamp(44px, 6vw, 72px); }
.timeline__step::before { content: ""; position: absolute; left: clamp(22px, 3.2vw, 44px); top: clamp(64px, 8vw, 104px); bottom: 12px; width: 1px; background: var(--line-strong); }
.timeline__step:last-child { padding-bottom: 0; }
.timeline__step:last-child::before { display: none; }
.timeline__num {
  font: 400 clamp(52px, 7.4vw, 104px)/.9 var(--serif); letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1px var(--amarillo-dark);
}
@supports not (-webkit-text-stroke: 1px black) { .timeline__num { color: var(--amarillo-dark); } }
.timeline__title { font: 400 clamp(26px, 2.6vw, 36px)/1.15 var(--serif); margin: .25em 0 14px; }
.timeline__body .prose { font-size: 18px; }

/* Frase destacada */
.statement { margin: clamp(32px, 5vw, 56px) 0 0; padding: clamp(28px, 4vw, 48px) 0 clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px); border-left: 2px solid var(--amarillo-dark); }
.statement p { font: italic 400 clamp(22px, 2.4vw, 32px)/1.45 var(--serif); color: var(--ink); max-width: 44ch; margin: 0; }

/* Cash rebate: cifra protagonista */
.rebate-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.rebate-lead__value { margin: 0; font: 400 clamp(88px, 14vw, 208px)/1 var(--serif); letter-spacing: -.04em; color: var(--amarillo-dark); white-space: nowrap; }
.rebate-lead__label { margin: 18px 0 0; font: italic 400 clamp(17px, 1.6vw, 21px)/1.5 var(--serif); color: var(--ink-soft); max-width: 34ch; }
.rebate-lead--text { grid-template-columns: 1fr; gap: 4px; }
.rebate-lead--text .lede { max-width: 38ch; }
@media (max-width: 900px) { .rebate-lead { grid-template-columns: 1fr; } }

/* Filas título | texto */
.row-split:last-child { border-bottom: 1px solid var(--line); }
.row-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px clamp(32px, 6vw, 96px); padding-block: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line); }
.row-split__title { font: 400 clamp(24px, 2.4vw, 32px)/1.2 var(--serif); }
@media (max-width: 760px) { .row-split { grid-template-columns: 1fr; } }

/* Encabezado de sección */
.section-intro { display: grid; gap: 14px; margin: clamp(56px, 7vw, 96px) 0 clamp(28px, 4vw, 44px); max-width: 70ch; }
.section > .container > .section-intro:first-child { margin-top: 0; }
.section-intro__title { font: 400 clamp(30px, 3.6vw, 48px)/1.1 var(--serif); letter-spacing: -.01em; }

/* Umbrales */
.threshold-cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.threshold-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3vw, 40px); background: var(--carbon); }
.threshold-card__type { margin: 0; font: 500 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.threshold-card__amount { margin: 0; font: 400 clamp(32px, 3.2vw, 44px)/1.05 var(--serif); color: var(--ink); }
.threshold-card__detail { color: var(--ink-soft); font-size: 16px; }
.threshold-card__detail p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .threshold-cards { grid-template-columns: 1fr; } }

/* Locaciones */
.location-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 3vw, 44px); }
.location-card { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.location-card__media { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 20px; background: var(--carbon-2); }
.location-card__media img { width: 100%; height: 100%; object-fit: cover; }
.location-card__num { display: block; font: 500 12px/1 var(--sans); letter-spacing: .14em; color: var(--amarillo-dark); margin-bottom: 14px; }
.location-card__name { font: 400 clamp(24px, 2.2vw, 30px)/1.15 var(--serif); margin-bottom: 10px; }
.location-card__text { color: var(--ink-soft); font-size: 16px; }
.location-card__text p:last-child { margin-bottom: 0; }
@media (max-width: 1000px) { .location-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .location-grid { grid-template-columns: 1fr; } }

/* Producciones internacionales */
.productions { list-style: none; border-top: 1px solid var(--line-strong); }
.production { display: grid; grid-template-columns: 80px minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.production__year { font: 500 14px/1 var(--sans); letter-spacing: .08em; color: var(--amarillo-dark); }
.production__title { font: 400 clamp(20px, 1.8vw, 24px)/1.25 var(--serif); }
.production__credit { color: var(--ink-soft); font-size: 15px; }
.production__location { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .production { grid-template-columns: 56px minmax(0, 1fr); }
  .production__credit, .production__location { grid-column: 2; }
}

/* Atajo «Editar esta página» (solo con sesión en el administrador) */
.edit-shortcut {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--carbon); text-decoration: none;
  font: 500 13px/1 var(--sans); letter-spacing: .04em; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.edit-shortcut:hover { background: var(--amarillo-dark); color: var(--carbon); }
@media print { .edit-shortcut { display: none; } }
