/* ═══════════════════════════════════════════════════════════
   éxodo bpo — NOSOTROS CINEMÁTICA
   Identidad de página: rojo #E31610 · misma gramática que el home
   Carga DESPUÉS de home-cine.css (hereda nav, footer, loader, grain, cursor)
   ═══════════════════════════════════════════════════════════ */
:root { --rojo: #E31610; --rojo-d: #8f0d09; }
.red { color: var(--rojo); }

/* nav: sin blend (el rojo + difference daría cian) */
#nav { mix-blend-mode: normal; color: #fff; }
#nav.scrolled {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
.n-links li.active a { opacity: 1; }
.n-links li.active a::after { transform: scaleX(1); }

/* ═ HERO ROJO ═ */
.pgh {
  height: 100vh; height: 100svh; position: relative;
  display: flex; align-items: flex-end; overflow: hidden;
  background: var(--rojo);
}
#heroCanvas { position: absolute; inset: 0; z-index: 0; }
.pgh-vig {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 110%, rgba(90, 7, 4, 0.5), transparent 55%),
    radial-gradient(ellipse 140% 110% at 50% 50%, transparent 38%, rgba(80, 6, 3, 0.65) 100%);
}
.pgh ::selection { background: #fff; color: var(--rojo); }
.pgh-ct { position: relative; z-index: 3; width: 100%; padding: 0 var(--pad) clamp(72px, 12vh, 140px); }
.pgh-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.75); margin-bottom: clamp(20px, 3vh, 36px);
  opacity: 0; transform: translateY(14px);
}
.pgh-badge i {
  width: 6px; height: 6px; background: #fff; border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite; box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}
.pgh-h {
  font-size: clamp(42px, min(8.4vw, 13.5svh), 138px);
  font-weight: 760; letter-spacing: -0.045em; line-height: 0.97;
  color: #fff; margin-bottom: clamp(26px, 4vh, 44px);
}
.pgh-h .hl { display: block; overflow: hidden; padding-bottom: 0.07em; margin-bottom: -0.06em; }
.pgh-h .hl-in { display: block; transform: translateY(112%); will-change: transform; }
.pgh-h .em { font-size: 1.04em; line-height: 0.9; color: rgba(255, 255, 255, 0.92); }
.pgh-p {
  font-size: clamp(14px, 1.15vw, 17px); font-weight: 300; line-height: 1.85;
  color: rgba(255, 235, 233, 0.78); max-width: 440px;
  opacity: 0; transform: translateY(16px);
}
.pgh-meta {
  position: absolute; z-index: 3; top: 50%; right: var(--pad);
  transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  color: rgba(255, 255, 255, 0.4); opacity: 0;
}
.pgh-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0;
}
.pgh-scroll .mono { font-size: 8px; color: rgba(255, 255, 255, 0.45); letter-spacing: 0.3em; }
.pgh-scroll .sc-line { background: rgba(255, 255, 255, 0.18); }
.pgh-scroll .sc-line::after { background: rgba(255, 255, 255, 0.7); }

/* ═ NARRATIVA (hueso) — lectura cinematográfica ═ */
.narr { background: var(--bone); color: var(--ink); padding: clamp(90px, 13vh, 180px) var(--pad); }
.narr-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(48px, 8vw, 140px); align-items: start; }
.narr-left { position: sticky; top: 24vh; }
.narr-h {
  font-size: clamp(28px, 3.4vw, 52px); font-weight: 750; letter-spacing: -0.035em;
  line-height: 1.08; margin-bottom: 28px;
}
.narr-h em { font-size: 1.05em; }
.narr-flow { display: flex; flex-direction: column; gap: clamp(40px, 6vh, 64px); }
.narr-block { position: relative; padding-left: clamp(30px, 3.2vw, 56px); }
.narr-bn {
  position: absolute; left: 0; top: 0.55em;
  color: #b3afa6; font-size: 9px;
}
.narr-p {
  font-size: clamp(16px, 1.5vw, 21px); font-weight: 300; line-height: 1.9;
  color: #57544e; margin: 0; max-width: 580px; text-wrap: pretty;
}
.narr-p .qw { display: inline-block; opacity: 0.13; will-change: opacity; }
.narr-p strong { font-weight: 600; color: var(--ink); }
/* resaltador rojo que barre las frases clave */
.mk {
  font-weight: 600; color: var(--ink);
  background-image: linear-gradient(rgba(227, 22, 16, 0.16), rgba(227, 22, 16, 0.16));
  background-repeat: no-repeat; background-position: 0 68%; background-size: 0% 0.5em;
  transition: background-size 1.1s var(--ease) 0.15s;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.mk.on { background-size: 100% 0.5em; }
.narr-quote {
  position: relative; padding-left: clamp(24px, 3vw, 44px);
  font-size: clamp(22px, 2.4vw, 36px); font-weight: 300; letter-spacing: -0.015em;
  line-height: 1.5; margin-top: clamp(8px, 2vh, 24px); text-wrap: pretty;
}
.narr-quote::before {
  content: ''; position: absolute; left: 0; top: 0; width: 2px; height: 100%;
  background: var(--rojo); transform: scaleY(0); transform-origin: top;
  transition: transform 1.2s var(--ease);
}
.narr-quote.draw::before { transform: scaleY(1); }
.narr-quote .qw { display: inline-block; opacity: 0.13; will-change: opacity; }
.narr-quote em { font-size: 1.06em; }
.narr-quote .red { color: var(--rojo); }

/* ═ HISTORIA — odómetro pinneado (tinta) ═ */
.tl-w { height: 440vh; position: relative; }
.tl {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; padding: clamp(90px, 13vh, 140px) var(--pad) clamp(40px, 6vh, 64px);
}
.tl-head { flex-shrink: 0; }
.tl-stage {
  flex: 1; display: grid; grid-template-columns: auto 1fr;
  gap: clamp(32px, 6vw, 110px); align-items: center; min-height: 0;
}
.tl-year {
  font-size: clamp(110px, 19vw, 300px); font-weight: 210; letter-spacing: -0.055em;
  line-height: 0.9; color: var(--rojo); font-variant-numeric: tabular-nums;
  will-change: transform, opacity, filter; white-space: nowrap;
}
.tl-items { position: relative; min-height: 220px; }
.tl-item {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(28px); pointer-events: none;
  will-change: transform, opacity;
}
.tl-item.on { pointer-events: auto; }
.tl-item h3 { font-size: clamp(22px, 2.4vw, 38px); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 14px; }
.tl-item p { font-size: 14px; font-weight: 300; line-height: 1.9; color: var(--mut); max-width: 460px; text-wrap: pretty; }
.tl-rail { flex-shrink: 0; display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.tl-line { flex: 1; height: 1px; background: var(--hair-d); position: relative; }
.tl-line i {
  position: absolute; inset: 0; background: var(--rojo);
  transform: scaleX(0); transform-origin: left; display: block;
}
.tl-dots { display: flex; gap: 10px; }
.tl-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(242, 240, 235, 0.15); transition: background 0.4s, transform 0.4s; }
.tl-dot.on { background: var(--rojo); transform: scale(1.3); }
.tl-idx { color: var(--mut-d); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ═ VALORES (hueso) — marea roja ═ */
.vals { background: var(--bone); color: var(--ink); padding: clamp(90px, 13vh, 180px) var(--pad); }
.val-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair-l); border: 1px solid var(--hair-l); }
.val-card {
  background: var(--bone); padding: clamp(28px, 3vw, 46px); min-height: 250px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  opacity: 0; transform: translateY(30px);
}
.val-card::before {
  content: ''; position: absolute; inset: 0; background: var(--rojo);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.55s var(--ease);
}
.val-card:hover::before { transform: scaleY(1); }
.val-card > * { position: relative; z-index: 1; }
.val-num {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em;
  color: #b3afa6; margin-bottom: auto; transition: color 0.45s;
}
.val-ti {
  font-size: clamp(17px, 1.7vw, 24px); font-weight: 700; letter-spacing: -0.02em;
  margin: 48px 0 10px; transition: color 0.45s;
}
.val-de { font-size: 13px; font-weight: 300; line-height: 1.85; color: #8d897f; transition: color 0.45s; text-wrap: pretty; }
.val-card:hover .val-num { color: rgba(255, 255, 255, 0.65); }
.val-card:hover .val-ti { color: #fff; }
.val-card:hover .val-de { color: rgba(255, 235, 233, 0.85); }

/* ═ CTA (hueso) ═ */
.cta-btn.rojo { background: var(--rojo); color: #fff; }
.cta-btn.rojo:hover { box-shadow: 0 24px 70px rgba(227, 22, 16, 0.35); }
.cta-h .red em, .cta-h em.red { color: var(--rojo); }

/* ═ RESPONSIVE ═ */
@media (max-width: 1024px) {
  .narr-grid { grid-template-columns: 1fr; }
  .narr-left { position: static; }
  .tl-stage { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .tl-year { font-size: clamp(80px, 22vw, 160px); }
  .tl-items { min-height: 260px; }
  .val-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .pgh-meta { display: none; }
  .val-grid { grid-template-columns: 1fr; }
  .tl { padding-top: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .pgh-h .hl-in, .pgh-badge, .pgh-p, .pgh-scroll, .pgh-meta,
  .val-card, .tl-item { opacity: 1 !important; transform: none !important; }
  .narr-quote .qw, .narr-p .qw { opacity: 1 !important; }
  .mk { background-size: 100% 0.5em; }
  .tl-w { height: auto; }
  .tl { position: static; height: auto; }
  .tl-items { min-height: 0; }
  .tl-item { position: static; padding: 24px 0; pointer-events: auto; }
}

/* ═ palabras-acento siempre en rojo ═ */
.narr-h em, .vals-h em, .cta-h em { color: var(--rojo); }
.tl-h2 em { color: var(--rojo); }
