/* Direccion A: cine + acotaciones. El render manda; el texto anota. Romax enmarca (pestaña granate y cierre). */
:root {
  color-scheme: dark;
  --noche: #05081c;
  --tinta: #F3F4F8;
  --gris: #AEB3C8;
  --linea: rgba(243, 244, 248, .18);
  --granate: #7A1F2E;
  --granate-2: #8B2435;
  --plate: rgba(6, 10, 36, .62);
  --ff: 'Montserrat', 'Gotham', system-ui, sans-serif;
  --g: max(clamp(16px, 6vw, 120px), env(safe-area-inset-left, 0px));
  --gr: max(clamp(16px, 6vw, 120px), env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--noche); color: var(--tinta); font: 400 17px/1.55 var(--ff); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; }
.ph { color: var(--gris); font-style: italic; }
.wrap { padding-left: var(--g); padding-right: var(--gr); }

/* firma Romax: pestaña de esquina, como en las laminas */
.tab { position: fixed; top: 0; right: 0; z-index: 50; width: clamp(150px, 17vw, 300px); aspect-ratio: 330 / 206; pointer-events: none;
  filter: drop-shadow(-5px 9px 12px rgba(0, 0, 0, .45)); animation: tabIn 1.1s cubic-bezier(.65, 0, .35, 1) both; }
.tab::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--granate-2) 0%, var(--granate) 55%, #5E1622 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 64% 100%); }
.tab img { position: absolute; right: 17.5%; top: 14.5%; height: 62%; width: auto; }
@keyframes tabIn { from { transform: translate(100%, -100%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise 1s cubic-bezier(.16, 1, .3, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .12s; } .hero-copy > :nth-child(3) { animation-delay: .24s; } .hero-copy > :nth-child(4) { animation-delay: .36s; }
.mark { position: fixed; z-index: 49; left: var(--g); top: calc(22px + env(safe-area-inset-top, 0px)); height: clamp(30px, 3vw, 42px); width: auto; opacity: .95; }

.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border: 0; background: var(--tinta); color: var(--noche);
  font: 600 16px/1 var(--ff); cursor: pointer; transition: background .3s, color .3s; }
.btn:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1px var(--linea); }
.btn-ghost:hover { background: var(--tinta); color: var(--noche); }
.lnk { color: var(--tinta); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--linea); padding-bottom: 3px; }
.lnk:hover { border-color: var(--tinta); }

/* portada */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.hero-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 8, 28, .86) 0%, rgba(5, 8, 28, .25) 45%, rgba(5, 8, 28, .15) 100%); }
.hero-copy { position: relative; padding: 0 var(--gr) clamp(48px, 10vh, 120px) var(--g); max-width: 1200px; }
.hero-k { font-weight: 300; font-size: clamp(17px, 1.6vw, 24px); opacity: .9; }
.hero h1 { margin-top: 12px; font-weight: 700; font-size: clamp(50px, 8.6vw, 148px); line-height: .95; letter-spacing: -.035em; text-wrap: balance; }
.hero-m { margin-top: 22px; color: var(--gris); font-size: clamp(15px, 1.3vw, 19px); }
.hero-a { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

/* plano */
.plano { padding: clamp(90px, 14vh, 160px) 0 0; }
.plano-h, .film-h { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 60px; margin-bottom: clamp(28px, 4vw, 48px); }
.plano-h h2, .film-h h2 { font-weight: 700; font-size: clamp(34px, 4.6vw, 72px); line-height: 1; letter-spacing: -.03em; max-width: 14ch; text-wrap: balance; }
.plano-h p, .film-h p { color: var(--gris); max-width: 44ch; font-size: clamp(16px, 1.25vw, 19px); }
.map { position: relative; aspect-ratio: 2160 / 1120; max-width: 100%; background: #000; overflow: hidden; }
.map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.route path { fill: none; stroke: var(--tinta); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; stroke-linejoin: round; opacity: .9; }
.spot { position: absolute; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(5, 8, 28, .78); box-shadow: inset 0 0 0 1.5px var(--tinta); color: var(--tinta); font: 600 14px/1 var(--ff); text-decoration: none;
  transition: background .25s, color .25s; }
.spot:hover, .spot:focus-visible { background: var(--tinta); color: var(--noche); }
.spot em { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap; font: 500 14px/1 var(--ff); font-style: normal;
  background: var(--tinta); color: var(--noche); padding: 8px 10px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.spot:hover em, .spot:focus-visible em { opacity: 1; }

/* zonas */
.zona { position: relative; padding-top: clamp(80px, 12vh, 140px); }
.stage { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: #000; }
.stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 8, 28, .75) 0%, rgba(5, 8, 28, 0) 38%); pointer-events: none; }
.stage[data-pos="tl"] .shade { background: linear-gradient(180deg, rgba(5, 8, 28, .7) 0%, rgba(5, 8, 28, 0) 38%); }
.ttl { position: absolute; left: var(--g); bottom: clamp(20px, 5vw, 80px); max-width: min(56%, 820px); text-shadow: 0 2px 22px rgba(0, 0, 0, .45); }
.stage[data-pos="tl"] .ttl { bottom: auto; top: clamp(70px, 6vw, 100px); }
.stage[data-pos="br"] .ttl { left: auto; right: var(--gr); text-align: right; }
.n { font-weight: 300; font-size: clamp(15px, 1.5vw, 26px); opacity: .9; font-variant-numeric: tabular-nums; }
.zt { margin-top: 6px; font-weight: 700; font-size: clamp(30px, 5.4vw, 92px); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.zd { margin-top: 12px; font-size: clamp(14px, 1.35vw, 22px); opacity: .92; }

.co { position: absolute; inset: 0; pointer-events: none; }
.co .dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff, 0 0 0 4px rgba(6, 10, 36, .35); }
.co .dot::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.co .dot b { display: none; }
.co .shelf { position: absolute; height: 1.5px; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.co .lab { position: absolute; display: flex; flex-direction: column; padding-bottom: 10px; }
.co .lab strong, .co .lab span { width: max-content; max-width: 100%; background: var(--plate); padding: 6px 11px 5px; }
.co .lab strong { font-weight: 600; font-size: clamp(12px, 1.25vw, 21px); }
.co .lab span { padding-top: 1px; padding-bottom: 7px; font-size: clamp(11px, .95vw, 16px); color: #E3E5EE; }

.ficha { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 32px; padding-top: 28px; }
.ficha > * { min-width: 0; }
.f-views { grid-column: 1 / span 5; display: flex; gap: 10px; flex-wrap: wrap; align-content: start; }
.f-views button { width: 112px; aspect-ratio: 16 / 9; padding: 0; border: 0; background: none; cursor: pointer; opacity: .5; transition: opacity .25s; }
.f-views button img { width: 100%; height: 100%; object-fit: cover; }
.f-views button[aria-pressed="true"] { opacity: 1; outline: 1.5px solid var(--tinta); outline-offset: 2px; }
.f-views button:hover { opacity: 1; }
.f-data { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.f-data h3 { margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--gris); }
.f-data ul { padding: 0; list-style: none; }
.f-data li, .f-data p { padding: 3px 0; font-size: 15px; }
.f-act { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; }
.notes { display: none; padding: 0; list-style: none; }
.notes li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--linea); font-size: 15px; }
.notes li b { font-weight: 600; }
.notes li i { flex: 0 0 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--tinta); display: grid; place-items: center; font: 600 12px/1 var(--ff); font-style: normal; }

/* stands: cuadricula 2x2 */
.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.grid4 figure { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.grid4 img { width: 100%; height: 100%; object-fit: cover; }
.grid4 figcaption { position: absolute; left: 18px; bottom: 14px; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.grid4 figcaption b { display: block; font-size: clamp(14px, 1.7vw, 28px); font-weight: 700; }
.grid4 figcaption span { font-size: clamp(11px, 1vw, 17px); }
.ttlrow { padding-bottom: 24px; }
.ttlrow .zd { color: var(--gris); opacity: 1; }

/* video */
.film { padding: clamp(100px, 14vh, 170px) 0; }
.film-f { aspect-ratio: 16 / 9; background: #000; max-width: 100%; }
.film-f video { width: 100%; height: 100%; }
.chap { list-style: none; padding: 0; margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.chap button { width: 100%; display: flex; gap: 12px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--linea); background: none; color: var(--gris); font: 400 15px/1.3 var(--ff); text-align: left; cursor: pointer; }
.chap button:hover { color: var(--tinta); }
.chap .t { margin-left: auto; font-variant-numeric: tabular-nums; }

/* cierre Romax */
.fin { position: relative; overflow: hidden; min-height: 100svh; background: radial-gradient(120% 120% at 15% 100%, var(--granate-2) 0%, #6A1826 55%, #4A101B 100%);
  display: flex; flex-direction: column; justify-content: center; padding: 120px var(--gr) 40px var(--g); }
.fin-r { position: absolute; left: -4vw; bottom: -12vh; height: 108vh; width: auto; max-width: none; opacity: .96; }
.fin-c { position: relative; margin-left: auto; text-align: right; }
.fin-rx { width: clamp(220px, 26vw, 440px); height: auto; margin-left: auto; }
.fin-t { margin-top: 30px; font-size: clamp(17px, 1.6vw, 24px); font-weight: 300; }
.fin-ct { margin-top: 10px; font-size: 15px; opacity: .85; }
.fin-ct .ph { color: #fff; opacity: .8; }
.caj { position: relative; margin-top: auto; margin-left: auto; padding-top: 80px; width: min(100%, 980px); display: grid; grid-template-columns: repeat(4, auto) minmax(0, 1.6fr); }
.caj > div { padding: 10px 18px; border-left: 1px solid rgba(255, 255, 255, .28); }
.caj dt { font-size: 12px; opacity: .75; }
.caj dd { margin-top: 4px; font-size: 15px; font-weight: 500; }
.caj dd img { height: 16px; width: auto; margin-top: 3px; }
.caj p { padding: 10px 0 10px 18px; border-left: 1px solid rgba(255, 255, 255, .28); font-size: 11.5px; line-height: 1.45; opacity: .72; }

.player { width: min(1500px, 94vw); padding: 0; border: 0; background: #000; overflow: visible; }
.player::backdrop { background: rgba(3, 5, 18, .92); }
.player video { width: 100%; }
.player-x { position: absolute; top: -46px; right: 0; padding: 10px 0; border: 0; background: none; color: var(--tinta); font: 500 15px var(--ff); cursor: pointer; }

@media (max-width: 900px) {
  .co .lab, .co .shelf { display: none; }
  .co .dot { width: 24px; height: 24px; margin: -12px 0 0 -12px; background: rgba(6, 10, 36, .7); }
  .co .dot::after { display: none; }
  .co .dot b { display: grid; place-items: center; height: 100%; font: 600 11px/1 var(--ff); }
  .notes { display: block; }
  .ttl { position: static; max-width: none; padding: 18px 0 0; text-align: left !important; text-shadow: none; }
  .stage { overflow: visible; aspect-ratio: auto; background: none; }
  .stage > img { position: relative; aspect-ratio: 16 / 9; }
  .stage .co { bottom: auto; aspect-ratio: 16 / 9; }
  .stage .shade { display: none; }
  .zona .stage .ttl { padding-left: var(--g); padding-right: var(--gr); }
  .ficha { grid-template-columns: 1fr; }
  .f-views, .f-data, .f-act { grid-column: auto; }
  .f-data { grid-template-columns: 1fr; }
  .chap { grid-template-columns: 1fr 1fr; }
  .caj { grid-template-columns: 1fr 1fr; }
  .caj p { grid-column: 1 / -1; }
  .fin-r { height: 70vh; bottom: -6vh; opacity: .45; }
}
@media (max-width: 520px) { .chap { grid-template-columns: 1fr; } .f-views button { width: 84px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
