/* ============================================================
   EL ESPEJO — Horse Power Coaching
   Cinematic editorial luxury · dark brand film
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #101010;
  --bg-2: #141414;
  --bg-3: #0C0C0C;
  --ink: #EDEBE7;
  --ink-dim: rgba(237, 235, 231, 0.72);
  --gold: #E9A21A;
  --gold-2: #F2B33D;
  --gray: #B9B7B2;
  --line: rgba(237, 235, 231, 0.12);
  --line-gold: rgba(233, 162, 26, 0.45);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2.5rem;
  --s5: 4rem;
  --s6: 6.5rem;
  --s7: 10rem;

  --container: 1360px;
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.83, 0, 0.17, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-color: #3A3B40 #0C0C0C;
}
html.reduced { scroll-behavior: auto; }
/* Lenis owns the scroll — never let native smooth double-ease its frames */
html.lenis, .lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: var(--ink); text-decoration: none; }

::selection { background: var(--gold); color: #101010; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0C0C0C; }
::-webkit-scrollbar-thumb {
  background: #3A3B40;
  border-radius: 8px;
  border: 2px solid #0C0C0C;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
}

.hl {
  font-style: italic;
  color: var(--gold);
  font-variation-settings: "opsz" 144;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0C0C0C;
  display: none;
  place-items: center;
}
.js .preloader { display: grid; }
.reduced .preloader,
.boot-failsafe .preloader { display: none !important; }

.preloader-inner { text-align: center; }

.preloader-words {
  position: relative;
  height: 4.2rem;
  margin-bottom: var(--s3);
}
.pw {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-variation-settings: "opsz" 144;
  font-size: clamp(1.9rem, 5vw, 3rem);
  color: var(--ink);
  opacity: 0;
  white-space: nowrap;
}
.pw-gold { color: var(--gold); }

.preloader-line {
  width: min(320px, 56vw);
  height: 1px;
  margin-inline: auto;
  background: rgba(237, 235, 231, 0.14);
  overflow: hidden;
}
.preloader-line-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- Cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 10000;
  opacity: 0;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out);
}
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }
.cursor-on, .cursor-on a, .cursor-on button { cursor: none; }
.cursor-ring.is-hover {
  width: 70px;
  height: 70px;
  border-color: var(--gold-2);
}
.cursor-ring.is-media {
  width: 46px;
  height: 60px;
  border-color: var(--gold-2);
  mix-blend-mode: normal;
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Grain + vignette ---------- */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='240'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.82'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3C/filter%3E%3Crect%20width='240'%20height='240'%20filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  animation: grain-shift 0.9s steps(6) infinite;
  will-change: transform;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -2%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 8990;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 62%, rgba(6, 6, 6, 0.5) 100%);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 16, 16, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.js:not(.reduced) .nav { opacity: 0; transform: translateY(-100%); }
.js:not(.reduced) .nav.is-in,
.js.boot-failsafe .nav { opacity: 1; transform: none; }
.nav { transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }

.nav-logo img { height: 26px; width: auto; }

.nav-chapters { display: flex; gap: clamp(0.9rem, 2.4vw, 1.75rem); }
.nav-chapters a {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gray);
  padding: 0.4rem 0.1rem;
  position: relative;
  transition: color 0.35s var(--ease-out);
}
.nav-chapters a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease-out);
}
.nav-chapters a:hover { color: var(--ink); }
.nav-chapters a.is-active { color: var(--gold); }
.nav-chapters a.is-active::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  will-change: transform;
}
.hero-img, .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.reduced .hero-video { display: none; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(12, 12, 12, 0.92) 0%, rgba(12, 12, 12, 0.35) 38%, rgba(12, 12, 12, 0.12) 60%, rgba(12, 12, 12, 0.42) 100%);
}

.hero-copy {
  position: relative;
  padding-bottom: clamp(6rem, 14vh, 9.5rem);
  padding-top: 7rem;
}
.hero-kicker { margin-bottom: var(--s3); color: var(--gray); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 340;
  font-variation-settings: "opsz" 144;
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 12ch;
  text-wrap: balance;
}
.hero-sub {
  margin-top: var(--s3);
  max-width: 44ch;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
}

.scroll-cue {
  position: absolute;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.scroll-cue-line {
  display: block;
  width: 1px;
  height: 58px;
  background: var(--gold);
  transform-origin: top center;
  animation: cue 2.4s var(--ease-inout) infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: top center; }
  45%  { transform: scaleY(1); transform-origin: top center; }
  55%  { transform: scaleY(1); transform-origin: bottom center; }
  100% { transform: scaleY(0); transform-origin: bottom center; }
}
.scroll-cue-text {
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ---------- Chapters (shared) ---------- */
.chapter { position: relative; padding-block: clamp(6rem, 14vh, 10rem); }
.manifiesto { background: var(--bg-2); }
.oportunidad { background: var(--bg); }
.metodo { background: var(--bg-3); padding-bottom: 0; }
.trayectoria { background: var(--bg-2); padding-bottom: 0; }
.equipo { background: var(--bg); }
.contacto { background: var(--bg-3); padding-bottom: 0; overflow: hidden; }

.chap-head {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
.chap-num {
  display: grid;
  place-items: center;
  width: 58px;
  height: 40px;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--gold);
  flex: none;
}
.chap-title {
  font-family: var(--font-display);
  font-weight: 340;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 22ch;
  text-wrap: balance;
}
.chap-intro {
  margin-top: var(--s3);
  max-width: 52ch;
  color: var(--ink-dim);
}

/* ---------- Oval masks ---------- */
.oval-mask {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  transform: translateZ(0);
  isolation: isolate;
}
.oval-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
/* "Espejos vivos": cinemagraph layer injected by JS in full-motion mode only.
   Sits above the img (its poster/fallback) and fades in once actually playing. */
.oval-mask video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.oval-mask video.is-playing { opacity: 1; }

/* ---------- Interludio: banda de película (caballo corriendo) ---------- */
.film-band {
  position: relative;
  height: clamp(340px, 72vh, 640px);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
}
.film-band img,
.film-band video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
.film-band video {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.film-band video.is-playing { opacity: 1; }
.film-band-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, var(--bg, #101010) 0%, rgba(16, 16, 16, 0) 24%, rgba(16, 16, 16, 0) 70%, var(--bg, #101010) 100%),
    radial-gradient(ellipse at center, rgba(16, 16, 16, 0) 42%, rgba(16, 16, 16, 0.38) 100%);
}
.film-band-line {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 340;
  font-variation-settings: "opsz" 144;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.2;
  text-align: center;
  color: #EDEBE7;
  max-width: 18ch;
  padding-inline: 24px;
  text-shadow: 0 2px 28px rgba(16, 16, 16, 0.65);
}
.film-band-line em {
  font-style: italic;
  color: var(--gold, #E9A21A);
}

/* ---------- Cap. 01 Manifiesto ---------- */
.manifiesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.manifiesto-lead {
  font-family: var(--font-display);
  font-weight: 340;
  font-variation-settings: "opsz" 100;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1.22;
  letter-spacing: -0.005em;
}
.manifiesto-body {
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
  font-family: var(--font-display);
  font-weight: 320;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.35;
  color: var(--ink-dim);
  max-width: 34ch;
}
.manifiesto-close {
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
  max-width: 46ch;
  color: var(--ink-dim);
}
.manifiesto-eye { margin-inline: auto; width: min(100%, 460px); }
.manifiesto-eye figcaption {
  margin-top: var(--s2);
  text-align: center;
}

/* ---------- Cap. 02 La oportunidad ---------- */
.op-list {
  counter-reset: op;
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
  border-top: 1px solid var(--line);
}
.op-row {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 5fr) minmax(0, 4fr);
  align-items: baseline;
  gap: var(--s3);
  padding-block: clamp(1.4rem, 3.4vh, 2.1rem);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.5s var(--ease-out);
}
.op-row:hover { background: rgba(237, 235, 231, 0.025); }

.op-num {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 3.4rem;
  height: 2.3rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
}
.op-oval {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6) rotate(-14deg);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.op-row:hover .op-oval { opacity: 1; transform: scale(1) rotate(0deg); }

.op-title {
  font-family: var(--font-display);
  font-weight: 380;
  font-variation-settings: "opsz" 80;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.12;
  transition: transform 0.55s var(--ease-out), color 0.4s var(--ease-out);
}
.op-row:hover .op-title { transform: translateX(0.6rem); color: var(--gold-2); }
.op-desc { color: var(--ink-dim); font-size: 1rem; }

.op-close {
  margin-top: clamp(2rem, 5vh, 3rem);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  text-align: right;
}

/* ---------- Cap. 03 El método ---------- */
.metodo-intro { padding-bottom: clamp(3rem, 8vh, 5rem); }

.met-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--bg-3);
}
.met-mini {
  position: absolute;
  top: 5.5rem;
  left: var(--gutter);
  z-index: 3;
}
.met-numerals {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.met-n {
  position: absolute;
  right: clamp(1rem, 8vw, 9rem);
  bottom: -0.12em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(16rem, 46vh, 30rem);
  line-height: 1;
  color: rgba(233, 162, 26, 0.13);
  opacity: 0;
}
.met-n[data-n="0"] { opacity: 1; }

.met-track {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  width: 600%;
  will-change: transform;
}
.met-panel {
  width: calc(100% / 6);
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: var(--gutter);
  padding-bottom: 4rem;
}
.met-step { margin-bottom: var(--s3); }
.met-phase { letter-spacing: 0.18em; }
.met-phase-a { color: rgba(185, 183, 178, 0.55); }
.met-phase-b { color: var(--gold); }
.met-title {
  font-family: var(--font-display);
  font-weight: 340;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.met-panel-diff .met-title { color: var(--gold-2); }
.met-desc {
  margin-top: var(--s3);
  max-width: 38ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-dim);
}

.met-divider { display: none; }

.met-threshold {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 18%, var(--gold) 82%, transparent);
  box-shadow: 0 0 24px rgba(233, 162, 26, 0.35);
  pointer-events: none;
}

.met-annotation {
  position: absolute;
  left: var(--gutter);
  bottom: 4.5rem;
  z-index: 3;
  height: 1.6rem;
}
.met-ann {
  position: absolute;
  left: 0;
  bottom: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gray);
  opacity: 0;
}
.met-ann-a { opacity: 0.75; }
.met-ann-b { color: var(--gold); font-style: italic; }

.met-counter {
  position: absolute;
  right: var(--gutter);
  bottom: 4.5rem;
  z-index: 3;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
}
.met-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3rem;
  height: 1px;
  margin-inline: var(--gutter);
  background: rgba(237, 235, 231, 0.12);
  z-index: 3;
}
.met-progress-fill {
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}

/* Método — stacked fallback (mobile / no pin) */
@media (max-width: 768px) {
  .met-stage { height: auto; overflow: visible; }
  .met-mini, .met-annotation, .met-counter, .met-progress, .met-numerals, .met-threshold { display: none; }
  .met-track { display: block; width: auto; }
  .met-panel {
    width: auto;
    padding-block: clamp(2.5rem, 7vh, 3.5rem);
    border-bottom: 1px solid var(--line);
  }
  .met-panel:last-child { border-bottom: none; }
  .met-divider {
    display: block;
    padding-block: 1.6rem;
    border-bottom: 1px solid var(--line-gold);
    font-family: var(--font-display);
    font-size: 1.05rem;
    padding-inline: var(--gutter);
  }
  .met-divider-a { color: var(--gray); }
  .met-divider-b { color: var(--gold); display: block; }
}

/* ---------- Cap. 04 Trayectoria ---------- */
.tray-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.stats {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat dt { margin-bottom: var(--s2); }
.stat-num {
  font-family: var(--font-display);
  font-weight: 340;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-word em {
  font-style: italic;
  color: var(--gold);
}
.stats-note { margin-top: var(--s3); }

.tray-photo { width: min(100%, 440px); margin-inline: auto; }
.oval-portrait { aspect-ratio: 4 / 5; }

/* Clientes marquee */
.clientes {
  margin-top: clamp(4rem, 10vh, 7rem);
  padding-block: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.clientes-label { margin-bottom: var(--s3); }
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 64s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-seq {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.25;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 162, 26, 0.55);
  paint-order: stroke fill;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Cap. 05 Equipo ---------- */
.team-grid {
  margin-top: clamp(3rem, 8vh, 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.oval-duo {
  width: min(100%, 380px);
  aspect-ratio: 4 / 5;
  border-radius: 50%;
  overflow: hidden;
  background: #1B1B1B;
  isolation: isolate;
  margin-bottom: var(--s4);
}
.oval-duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.member:hover .oval-duo img { transform: scale(1.045); }
.oval-duo-sm img { object-position: center center; }

.member-name {
  font-family: var(--font-display);
  font-weight: 380;
  font-variation-settings: "opsz" 144;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.05;
}
.member-role { margin-top: var(--s1); color: var(--gold); }
.member-bio { margin-top: var(--s3); max-width: 44ch; color: var(--ink-dim); }
.member-quote {
  margin-top: var(--s3);
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}
.member-list { margin-top: var(--s4); border-top: 1px solid var(--line); max-width: 40ch; }
.member-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s2);
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.member-list .label { flex: none; }

.union {
  margin-top: clamp(4rem, 10vh, 6.5rem);
  padding-top: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid var(--line-gold);
  text-align: center;
}
.union-line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-variation-settings: "opsz" 120;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.35;
  max-width: 34ch;
  margin-inline: auto;
  text-wrap: balance;
}

/* ---------- Cap. 06 Contacto ---------- */
.contacto-hand {
  position: absolute;
  top: 50%;
  right: -12vmin;
  transform: translateY(-55%);
  width: 64vmin;
  opacity: 0.1;
  pointer-events: none;
}
.contacto-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 8vh, 5rem) clamp(5rem, 12vh, 8rem);
  text-align: center;
}
.contacto .chap-head { justify-content: center; }
.contacto-title {
  font-family: var(--font-display);
  font-weight: 340;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.9rem, 8vw, 7rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.contacto-sub {
  margin-top: var(--s3);
  color: var(--ink-dim);
  max-width: 44ch;
  margin-inline: auto;
}
.contacto-cta {
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
}
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 2.4rem;
  border-radius: 999px;
  background: var(--gold);
  color: #101010;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  animation: cta-glow 2.8s var(--ease-out) infinite;
  transition: background-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.cta-pill:hover { background: var(--gold-2); transform: translateY(-3px); }
.cta-pill:active { transform: translateY(-1px); }
@keyframes cta-glow {
  0%   { box-shadow: 0 0 0 0 rgba(233, 162, 26, 0.35); }
  70%  { box-shadow: 0 0 0 22px rgba(233, 162, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 162, 26, 0); }
}
.contacto-tel {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gray);
  transition: color 0.35s var(--ease-out);
}
.contacto-tel:hover { color: var(--gold); }

.contacto-links {
  margin-top: clamp(3rem, 8vh, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.contacto-links li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}
.contacto-links a, .contacto-plain { font-size: 0.9375rem; color: var(--ink); }
.contacto-links a {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: left 100%;
  transition: background-size 0.5s var(--ease-out), color 0.35s var(--ease-out);
  padding-bottom: 2px;
}
.contacto-links a:hover { color: var(--gold-2); background-size: 100% 1px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-3);
}
.footer-inner {
  padding-block: var(--s4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
}
.footer-logo { height: 30px; width: auto; }
.footer-meta { font-size: 0.8125rem; color: var(--gray); }
.footer-credit { font-size: 0.8125rem; color: var(--gray); }
.footer-credit a {
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.footer-credit a:hover { color: var(--gold-2); border-color: var(--gold-2); }

/* ---------- Split lines ---------- */
.split-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.split-line-inner { display: block; will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .manifiesto-grid, .tray-grid { grid-template-columns: 1fr; }
  .manifiesto-eye { width: min(100%, 380px); }
  .tray-photo { order: -1; }
  .op-row { grid-template-columns: 4rem minmax(0, 1fr); }
  .op-desc { grid-column: 2; }
  .team-grid { grid-template-columns: 1fr; gap: clamp(3.5rem, 9vh, 5rem); }
}
@media (max-width: 640px) {
  .nav-logo img { height: 20px; }
  .nav-chapters { gap: 0.75rem; }
  .hero-copy { padding-bottom: 7rem; }
  .scroll-cue { right: auto; left: var(--gutter); }
  .op-row { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .op-num { width: 2.9rem; height: 2rem; font-size: 0.9rem; }
  .stats { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .contacto-links { flex-direction: column; gap: 1.4rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .scroll-cue-line { animation: none; transform: scaleY(1); }
  .cta-pill { animation: none; }
  .marquee-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
  }
  .marquee-seq {
    white-space: normal;
    font-size: clamp(1.4rem, 4vw, 2.6rem);
  }
  .marquee-seq[aria-hidden="true"] { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
  .oval-mask video, .film-band video { display: none; }   /* espejos vivos obey the live media query */
  .oval-duo img, .op-title, .op-oval, .cta-pill, .nav { transition: none; }
  .met-stage { height: auto; overflow: visible; }
  .met-mini, .met-annotation, .met-counter, .met-progress, .met-numerals, .met-threshold { display: none; }
  .met-track { display: block; width: auto; }
  .met-panel {
    width: auto;
    padding-block: clamp(2.5rem, 7vh, 3.5rem);
    border-bottom: 1px solid var(--line);
  }
  .met-divider {
    display: block;
    padding-block: 1.6rem;
    padding-inline: var(--gutter);
    border-bottom: 1px solid var(--line-gold);
    font-family: var(--font-display);
  }
  .met-divider-a { color: var(--gray); }
  .met-divider-b { color: var(--gold); display: block; }
}
