/* ─────────────────────────────────────────────────────────────────────
   inicio-scroll.css — Scrollytelling cinematográfico (home InterClubesPerú)
   Reusa tokens de styles.css (:root). Identidad de marca: rojo/negro/Oswald.
   ───────────────────────────────────────────────────────────────────── */

html { scroll-behavior: auto; }
body.inicio-scroll {
  background: var(--black);
  color: #fff;
  overflow-x: hidden;
}

/* Capa de fondo: glow de acento por sección (transiciona suave) */
.bg-tint {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(227,6,19,0.10), transparent 60%),
    #0A0A0A;
  transition: background 0.9s ease;
  pointer-events: none;
}
body[data-accent="red"]  .bg-tint { background: radial-gradient(120% 90% at 50% 6%, rgba(227,6,19,0.42), transparent 62%), #120203; }
body[data-accent="deep"] .bg-tint { background: radial-gradient(120% 90% at 50% 10%, rgba(140,2,12,0.50), transparent 64%), #0A0204; }
body[data-accent="ink"]  .bg-tint { background: radial-gradient(120% 90% at 50% 8%, rgba(255,255,255,0.06), transparent 60%), #141414; }
body[data-accent="black"].bg-tint,
body[data-accent="black"] .bg-tint { background: radial-gradient(120% 90% at 50% 8%, rgba(227,6,19,0.14), transparent 60%), #0A0A0A; }

/* Capa fija de fotos scroll-driven (detrás de todo el contenido) */
.photo-canvas { position: fixed; inset: 0; z-index: 1; width: 100vw; height: 100vh; display: block; pointer-events: none; }

/* Canvas WebGL fijo, detrás del contenido */
.canvas-3d {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
}

/* Telón de transición entre secciones */
.wipe { position: fixed; inset: 0; z-index: 50; pointer-events: none; background: var(--red); transform: scaleY(0); transform-origin: top; will-change: transform; }

/* Grano global */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.6s steps(2) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0,0); }
  50% { transform: translate(-4%, 3%); }
  100% { transform: translate(3%, -2%); }
}

/* ── Topbar: glass oscuro flotante ──────────────────────────────────── */
body.inicio-scroll .topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(10,10,10,0.42);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body.inicio-scroll .topbar-title small { color: rgba(255,255,255,0.6); }
body.inicio-scroll .topbar-nav a { color: rgba(255,255,255,0.82); }
body.inicio-scroll .topbar-nav a:hover { background: rgba(255,255,255,0.10); color: #fff; }
body.inicio-scroll .topbar-nav a.is-active { background: #fff; color: #0A0A0A; }
body.inicio-scroll .topbar-cta {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 999px;
  background: var(--red); color: #fff;
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background 0.18s;
}
body.inicio-scroll .topbar-cta:hover { background: var(--red-dark); }

/* ── Estructura de scroll ───────────────────────────────────────────── */
.scrolly {
  position: relative;
  z-index: 3;
}
.s {
  position: relative;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(104px, 14vh, 150px) clamp(24px, 6vw, 120px) clamp(96px, 12vh, 130px);
}

/* Tipografía display gigante */
.s-eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.s-eyebrow::before {
  content: ""; width: 38px; height: 1px; background: var(--red);
}
.dot-live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(227,6,19,0.7);
  animation: live 1.6s infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(227,6,19,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(227,6,19,0); }
  100% { box-shadow: 0 0 0 0 rgba(227,6,19,0); }
}

.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.82;
  letter-spacing: -0.01em;
  margin: 0;
}

/* HERO */
.hero-s { align-items: flex-start; text-align: left; }
.hero-title {
  font-size: clamp(72px, 16vw, 260px);
}
.hero-title .ln { display: block; overflow: hidden; }
.hero-title .ln span { display: block; }
.hero-title .accent { color: var(--red); -webkit-text-stroke: 0; }
.hero-lead {
  margin-top: 32px;
  max-width: 540px;
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
}
.hero-cta { margin-top: 34px; }
.scroll-cue {
  position: absolute;
  bottom: 38px; left: clamp(24px, 6vw, 120px);
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--body); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
}
.scroll-cue .bar { position: relative; width: 1px; height: 46px; background: rgba(255,255,255,0.2); overflow: hidden; }
.scroll-cue .bar::after {
  content: ""; position: absolute; inset: 0; background: var(--red);
  transform: translateY(-100%); animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* Indicador "Scroll Down" del hero */
.scroll-down { position: absolute; bottom: 38px; right: clamp(24px, 6vw, 120px); z-index: 4; display: inline-flex; flex-direction: column; align-items: center; gap: 14px; text-decoration: none; color: rgba(255,255,255,0.55); transition: color 0.3s ease; }
.scroll-down:hover { color: #fff; }
.sd-label { font-family: var(--body); font-weight: 500; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; writing-mode: vertical-rl; }
.sd-arrow { display: block; width: 18px; height: 30px; animation: sd-float 2.4s cubic-bezier(.45,0,.25,1) infinite; }
.sd-arrow svg { width: 100%; height: 100%; display: block; }
.scroll-down:hover .sd-arrow { animation-duration: 1.5s; }
@keyframes sd-float { 0%,100% { transform: translateY(-5px); opacity: 0.45; } 50% { transform: translateY(5px); opacity: 1; } }
@media (max-width: 760px) { .scroll-down { display: none; } }
@media (prefers-reduced-motion: reduce) { .sd-arrow { animation: none; } }

/* Secciones de keyword */
.kw-eyebrow {
  font-family: var(--body); font-weight: 600;
  font-size: clamp(12px, 1vw, 14px); letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--red); margin-bottom: 24px;
}
.kw-title { font-size: clamp(54px, 10vw, 170px); }
.kw-title .o { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.55); }
.kw-body {
  margin-top: 30px; max-width: 620px;
  font-size: clamp(17px, 1.6vw, 23px); font-weight: 300; line-height: 1.5;
  color: rgba(255,255,255,0.78);
}

/* Sección AMBIENTE — palabras apiladas */
.ambiente { gap: 0; }
.amb-word {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  line-height: 0.9; font-size: clamp(44px, 11vw, 168px);
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.5);
  transition: color 0.4s;
}
.amb-word.on { color: #fff; -webkit-text-stroke: 0; }
.amb-word .pt { color: var(--red); -webkit-text-stroke: 0; }
.amb-intro { font-family: var(--body); font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-size: clamp(12px,1vw,14px); margin-bottom: 28px; }

/* VALORES — galería horizontal pineada */
.valores { padding: 0; min-height: 100vh; min-height: 100dvh; overflow: hidden; }
.valores-inner { height: 100vh; height: 100dvh; display: flex; align-items: center; }
.valores-track {
  display: flex; align-items: stretch; gap: clamp(24px, 4vw, 64px);
  padding: 0 clamp(24px, 6vw, 120px); will-change: transform;
}
.valor-card {
  flex: 0 0 auto;
  width: min(78vw, 560px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 62vh;
}
.valor-idx {
  font-family: var(--display); font-weight: 700; font-size: 20px;
  color: var(--red); letter-spacing: 0.04em;
}
.valor-name {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, 4.4vw, 68px); line-height: 0.92; margin: 18px 0 0;
}
.valor-text { margin-top: 18px; font-weight: 300; font-size: clamp(15px,1.3vw,19px); line-height: 1.55; color: rgba(255,255,255,0.76); }
.valores-rail {
  position: absolute; top: 50%; right: clamp(24px,6vw,120px);
  transform: translateY(-50%); writing-mode: vertical-rl;
  font-family: var(--body); font-size: 12px; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  z-index: 4; padding: 14px 6px; border-radius: 999px;
  background: rgba(10,10,10,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.valores-head {
  position: absolute; top: clamp(90px, 12vh, 150px); left: clamp(24px,6vw,120px); z-index: 3;
}

/* FINALIDAD — stats */
.finalidad { align-items: flex-start; }
.stats-grid {
  margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 56px); width: 100%; max-width: 1100px;
}
.stat { border-top: 2px solid var(--red); padding-top: 16px; }
.stat-num {
  font-family: var(--display); font-weight: 700; line-height: 1;
  font-size: clamp(44px, 6vw, 92px);
  background: linear-gradient(180deg, #fff 0%, #c9c9c9 60%, #8f8f8f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { margin-top: 10px; font-family: var(--body); font-weight: 500; font-size: clamp(12px,1vw,14px); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.stat-note { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 36px; letter-spacing: 0.04em; }

/* COMUNIDAD DE CLUBES — bandas de escudos */
.clubes { align-items: center; text-align: center; overflow: hidden; padding-bottom: clamp(40px, 6vh, 70px); }
.clubes-head { width: 100%; max-width: 720px; }
.clubes-title { font-size: clamp(36px, 5.2vw, 84px); }
.clubes-title .o { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.5); }
.clubes-lead { margin: 18px auto 0; max-width: 540px; font-weight: 300; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; color: rgba(255,255,255,0.62); }
.clubes-count { display: inline-flex; align-items: baseline; gap: 12px; margin-top: 22px; }
.clubes-count span { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 46px); line-height: 1; color: #fff; }
.clubes-count small { font-family: var(--body); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.clubes-band { position: relative; width: 100vw; margin: clamp(20px, 4vh, 44px) 0; display: flex; flex-direction: column; gap: clamp(14px, 2vh, 26px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.club-row { overflow: hidden; }
.club-track { display: flex; gap: clamp(20px, 2.4vw, 34px); width: max-content; animation: clubMarquee var(--dur, 46s) linear infinite; }
.club-row:nth-child(2) .club-track { animation-direction: reverse; }
.clubes-band:hover .club-track { animation-play-state: paused; }
@keyframes clubMarquee { to { transform: translateX(-50%); } }
.club-disc { flex: 0 0 auto; width: clamp(54px, 6.6vw, 82px); aspect-ratio: 1; border-radius: 50%; background: #fff; padding: 10px; box-sizing: border-box; object-fit: contain; display: block; opacity: 0.92; transition: opacity 0.25s ease, transform 0.25s cubic-bezier(.2,.7,.2,1); }
.club-disc:hover { opacity: 1; transform: scale(1.08); }
.clubes.has-hover .club-disc { opacity: 0.4; }
.clubes.has-hover .club-disc:hover { opacity: 1; }
.clubes-foot { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.clubes-veil { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 48px); padding: 0 clamp(24px, 6vw, 120px); background: rgba(8,8,8,0.9); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); opacity: 0; pointer-events: none; transition: opacity 0.32s ease; }
.clubes.has-hover .clubes-veil { opacity: 1; }
.cs-logo { flex: 0 0 auto; width: clamp(74px, 9vw, 132px); aspect-ratio: 1; border-radius: 50%; background: #fff; padding: 12px; box-sizing: border-box; object-fit: contain; opacity: 0; transform: scale(0.82); transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.2,.7,.2,1); }
.cs-name { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(38px, 7vw, 116px); line-height: 0.9; letter-spacing: -0.01em; color: #fff; text-align: left; text-wrap: balance; opacity: 0; transform: translateY(18px); transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.2,.7,.2,1); }
.clubes.has-hover .cs-logo, .clubes.has-hover .cs-name { opacity: 1; transform: none; }
@media (max-width: 700px) { .clubes-veil { flex-direction: column; gap: 20px; } .cs-name { text-align: center; } }
@media (prefers-reduced-motion: reduce) { .club-track { animation: none; } }


/* CIERRE */
.cierre { align-items: center; text-align: center; }
.cierre-title { font-size: clamp(48px, 9vw, 150px); }
.cierre-lead { margin: 26px auto 0; max-width: 560px; font-weight: 300; font-size: clamp(17px,1.5vw,22px); line-height: 1.5; color: rgba(255,255,255,0.78); }
.cierre-cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn-x {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; text-decoration: none;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  transition: transform 0.15s, background 0.18s, border-color 0.18s;
}
.btn-x:active { transform: scale(0.97); }
.btn-x.solid { background: var(--red); color: #fff; }
.btn-x.solid:hover { background: var(--red-dark); }
.btn-x.ghost { border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.btn-x.ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* Reveal helper (estado inicial; el engine anima. Fallback si no hay JS/anim) */
.reveal { opacity: 1; }
body.anim-ready .reveal { opacity: 0; transform: translateY(28px); }

/* ── Footer oscuro para cohesión ────────────────────────────────────── */
body.inicio-scroll .site-footer {
  position: relative; z-index: 2;
  background: #050505; color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.08);
}
body.inicio-scroll .site-footer h4 { color: #fff; }
body.inicio-scroll .site-footer a,
body.inicio-scroll .site-footer .sf-link,
body.inicio-scroll .site-footer .sf-contact { color: rgba(255,255,255,0.7); }
body.inicio-scroll .site-footer a:hover { color: #fff; }
body.inicio-scroll .site-footer .sf-tag { color: rgba(255,255,255,0.5); }
body.inicio-scroll .site-footer-bar { color: rgba(255,255,255,0.4); border-top-color: rgba(255,255,255,0.08); }

/* Mounts */
#nav-mount, #footer-mount { position: relative; z-index: 70; }
#footer-mount { z-index: 3; }

/* Responsive */
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: clamp(58px, 19vw, 120px); }
  body.inicio-scroll .topbar-nav { display: none; }
}

/* Reduce motion: muestra todo estático */
@media (prefers-reduced-motion: reduce) {
  body.anim-ready .reveal { opacity: 1; transform: none; }
  .grain, .dot-live, .scroll-cue .bar::after, .hold-btn::after { animation: none; }
  .wipe { display: none; }
}


/* NUESTROS SPONSORS */
.sponsors { align-items: center; text-align: center; }
.sponsors-title { font-size: clamp(32px, 4.6vw, 76px); line-height: 1; max-width: 22ch; }
.sponsors-title .o { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.5); }
.sponsors-grid {
  margin-top: clamp(34px, 5vh, 62px); display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 38px);
  width: min(880px, 88vw);
}
.sponsor-plate {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(26px, 3.4vw, 46px) clamp(20px, 3vw, 40px);
  background: #fff; border-radius: 28px; transition: transform 0.3s ease;
}
.sponsor-plate:hover { transform: translateY(-4px); }
.sponsor-plate img { width: auto; max-width: clamp(150px, 17vw, 240px); max-height: clamp(48px, 5.4vw, 78px); object-fit: contain; }
.sponsor-plate.is-square img { max-height: clamp(96px, 11vw, 150px); max-width: clamp(96px, 11vw, 150px); margin: -10px 0; }
.sponsors-foot { margin-top: clamp(30px, 4vh, 50px); }
@media (max-width: 700px) { .sponsors-grid { grid-template-columns: 1fr; width: min(420px, 86vw); } }


/* ═══ RESPONSIVE ═══════════════════════════════════════════════════════ */
/* Valores: en táctil deja de estar anclada y se desliza con el dedo */
@media (max-width: 900px) {
  .valores { overflow: visible; }
  .valores-inner { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; touch-action: pan-x; overscroll-behavior-x: contain; }
  .valores-inner::-webkit-scrollbar { display: none; }
  .valores-track { transform: none !important; width: max-content; padding: 0 clamp(18px, 6vw, 40px); }
  .valor-card { scroll-snap-align: center; }
  .clubes-band { margin-left: 0; margin-right: 0; }
}
@media (max-width: 600px) {
  .s { padding-bottom: calc(clamp(40px, 6vh, 70px) + env(safe-area-inset-bottom)); }
  .valor-card { width: min(80vw, 330px); }
  .club-disc { width: 54px; padding: 8px; }
  .clubes-band { gap: 12px; }
  .btn-x { min-height: 46px; }
  .cierre-cta { gap: 12px; width: 100%; }
  .cierre-cta .btn-x { flex: 1 1 auto; justify-content: center; }
  .stats-grid { gap: 24px 16px; }
  .amb-word { line-height: 0.92; }
  .valores-rail { padding-bottom: env(safe-area-inset-bottom); }
}

/* Menú móvil sobre fondo oscuro */
body.inicio-scroll .topbar-burger span { background: #fff; }
body.inicio-scroll .nav-sheet { background: rgba(10,10,10,0.98); }
body.inicio-scroll .nav-sheet-list a { color: #fff; border-bottom-color: rgba(255,255,255,0.12); }
body.inicio-scroll .nav-sheet-list a.is-active { color: var(--red); }
