/* Omega Dance Studio — academia de baile urbano.
   Identidad: negro de escenario + acentos de luz (cian eléctrico / magenta),
   tipografía geométrica (Clash Display + Satoshi vía Fontshare), inspirada
   en el isotipo Ω y en las fotos reales de shows de la academia. */

:root {
  --ink: #08080A;
  --ink-soft: #121216;
  --ink-elevated: #19191F;
  --paper: #F4F3F6;
  --white: #F7F7FA;
  --muted: rgba(247, 247, 250, 0.72);
  --muted-strong: rgba(247, 247, 250, 0.82);
  --line: rgba(247, 247, 250, 0.12);
  --line-strong: rgba(247, 247, 250, 0.24);

  --cyan: #3FE1FF;
  --cyan-dim: #1FA8C4;
  --magenta: #FF3B7D;
  --magenta-dim: #C22459;

  --display: 'Clash Display', 'Arial Narrow', sans-serif;
  --sans: 'Satoshi', 'Segoe UI', sans-serif;

  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
  line-height: 0.96;
  letter-spacing: 0.005em;
}
p { margin: 0; }
button { font-family: inherit; }
::selection { background: var(--magenta); color: var(--ink); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; padding: 0 1.5rem; }
.section-head.left { margin: 0 0 3rem; text-align: left; }
.section-head h2 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.02rem; }

section { position: relative; padding: 6.5rem 0; }
.section-alt { background: var(--ink-soft); }

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem 1.9rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.02em; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-3px); } }
.btn-primary { background: var(--cyan); color: var(--ink); }
.btn-primary:hover { background: #6BE9FF; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ============== Loader ============== */
/* El loader sale como un telón que sube, no con un fundido. */
.loader {
  position: fixed; inset: 0; z-index: 300; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.9s var(--ease-in-out), visibility 0s linear 0.9s;
}
.loader.is-hiding { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader.is-hiding .loader-inner { transform: translateY(-40px); opacity: 0; }
.loader-inner { transition: transform 0.7s var(--ease-in-out), opacity 0.5s ease; }
@media (prefers-reduced-motion: reduce) {
  .loader { transition: opacity 0.2s ease, visibility 0s linear 0.2s; clip-path: none; }
  .loader.is-hiding { opacity: 0; clip-path: none; }
}
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 1.3rem; }
.loader-mark {
  width: 84px; height: 84px; object-fit: contain; opacity: 0; transform: scale(0.86);
  animation: loaderMarkIn 0.9s var(--ease-out) 0.05s forwards;
}
.loader-bar { width: 150px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 0.2rem; }
.loader-bar-fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--magenta)); transition: width 1.4s var(--ease-standard); }
@keyframes loaderMarkIn { to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .loader-mark { animation-duration: 0.01s; animation-delay: 0s; }
}
body.loading { overflow: hidden; }

/* ============== Reveal ============== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="left"].is-visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="right"].is-visible { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { transition-duration: 0.01s; transform: none !important; } }

/* ============== Header ============== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1.4rem 0;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(8, 8, 10, 0.95); padding: 0.9rem 0; border-color: var(--line); }
/* Header no-fijo para páginas secundarias (login/panel) que llevan el preview-banner arriba --
   evita que el header fixed se superponga al banner y bloquee los clics del menú. */
.site-header--static {
  position: static; background: rgba(8, 8, 10, 0.95);
  padding: 0.9rem 0; border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.4rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { font-family: var(--display); font-size: 1rem; letter-spacing: 0.1em; }
.main-nav { display: flex; align-items: center; gap: 1.8rem; }
.nav-link { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; color: var(--muted-strong); position: relative; padding: 0.2rem 0; transition: color 0.25s ease; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--cyan); transition: right 0.3s var(--ease-out); }
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 0.9rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.4rem; position: relative; z-index: 11; }
.nav-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: flex; order: -1; }
  .main-nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(82vw, 340px);
    background: var(--ink-soft); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.6rem; padding: 2rem 2.2rem; transform: translateX(-100%); transition: transform 0.5s var(--ease-standard);
    box-shadow: 20px 0 48px rgba(0,0,0,0.4); z-index: 10; border-right: 1px solid var(--line);
  }
  .main-nav.open { transform: translateX(0); }
  .nav-link { font-size: 1.1rem; }
  .header-actions .btn-ghost { display: none; }
}

/* ============== Hero ============== */
.hero {
  position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; padding: 8rem 1.5rem 4.5rem; text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg video, .hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,10,0.55) 0%, rgba(8,8,10,0.35) 40%, rgba(8,8,10,0.94) 96%);
}
.hero-shade { position: absolute; inset: 0; z-index: 1; background: var(--ink); opacity: 0; pointer-events: none; }
.hero-title {
  position: relative; z-index: 2; color: var(--white); margin-bottom: 3.2rem;
  font-size: clamp(3.4rem, 13.5vw, 11rem); line-height: 0.9; letter-spacing: -0.02em;
  text-shadow: 0 12px 60px rgba(0,0,0,0.55);
  perspective: 900px; will-change: transform;
}
.hero-line { display: block; }
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .char { display: inline-block; transform-origin: 50% 100%; }

/* ============== Sobre nosotros ============== */
.about-copy h2, .shows-grid h2, .contact-grid h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 0.98; letter-spacing: -0.01em;
}
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
.about-media { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4/5; background: var(--ink-elevated); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; left: 1.2rem; bottom: 1.2rem; background: var(--ink); border: 1px solid var(--line-strong);
  border-radius: 16px; padding: 0.9rem 1.2rem; display: flex; align-items: center; gap: 0.7rem;
}
.about-badge .mark { width: 26px; height: 26px; flex-shrink: 0; }
.about-badge strong { display: block; font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.02em; }
.about-badge small { color: var(--muted); font-size: 0.72rem; }
.about-copy p { color: var(--muted-strong); margin-bottom: 1.2rem; font-size: 1.02rem; }
.about-copy p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ============== Clases — escenas a pantalla completa que se apilan (sticky + GSAP scrub) ============== */
.styles-stage { padding-bottom: 8rem; }
.scene-stack { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.scene {
  position: sticky; top: 9vh; height: 82vh; min-height: 520px; margin-bottom: 6vh;
  border-radius: 28px; overflow: hidden; isolation: isolate; background: var(--ink-elevated);
  transform-origin: 50% 0%; will-change: transform;
  /* Borde de luz en vez de una sombra difusa de 60px: la sombra se re-rasterizaba en
     cada frame mientras la escena escala/rota, era el mayor costo medido del scroll. */
  border-top: 1px solid rgba(247,247,250,0.1);
}
.scene:last-child { margin-bottom: 0; }
.scene-media { position: absolute; inset: 0; z-index: -1; }
.scene-media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.scene::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,8,10,0.92) 0%, rgba(8,8,10,0.55) 45%, rgba(8,8,10,0.05) 80%),
              linear-gradient(0deg, rgba(8,8,10,0.7) 0%, transparent 45%);
}
.scene-copy {
  position: absolute; left: clamp(1.5rem, 5vw, 4rem); bottom: clamp(1.8rem, 6vh, 4rem);
  max-width: 520px;
}
.scene-index { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--magenta); }
.scene-copy h3 { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 0.92; margin-top: 0.7rem; letter-spacing: -0.015em; }
.scene-copy p { margin-top: 1.2rem; color: var(--muted-strong); font-size: 1rem; max-width: 440px; }
.scene-meta {
  display: inline-block; margin-top: 1.4rem; font-size: 0.82rem; font-weight: 700; color: var(--white);
  padding: 0.55rem 1rem; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(8,8,10,0.72);
}
@media (max-width: 700px) {
  .scene { top: 8vh; height: 78vh; min-height: 480px; border-radius: 22px; }
  .scene::after { background: linear-gradient(0deg, rgba(8,8,10,0.95) 0%, rgba(8,8,10,0.6) 50%, rgba(8,8,10,0.1) 100%); }
  .scene-copy p { font-size: 0.92rem; }
}

/* ============== Instructores — lista tipo cartelera ============== */
.roster-list { border-top: 1px solid var(--line); }
.roster-row {
  position: relative; overflow: hidden; display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; padding: 1.7rem 0.5rem; border-bottom: 1px solid var(--line);
}
.roster-row::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(63,225,255,0.1), transparent 60%);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .roster-row:hover::before { transform: scaleX(1); }
  .roster-row:hover .roster-name h3 { color: var(--cyan); }
}
.roster-name { position: relative; z-index: 1; }
.roster-name h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); transition: color 0.3s ease; }
.roster-role { display: block; margin-top: 0.3rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.roster-sched { position: relative; z-index: 1; font-size: 0.9rem; color: var(--muted-strong); white-space: nowrap; }
@media (max-width: 620px) {
  .roster-row { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}

/* ============== Precios ============== */
.pricing-note { text-align: center; margin-top: 1.6rem; font-size: 0.84rem; color: var(--muted); }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ============== Horarios ============== */
.schedule-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; }
table.schedule { width: 100%; border-collapse: collapse; min-width: 640px; }
table.schedule th, table.schedule td { padding: 1rem 1.3rem; text-align: left; font-size: 0.9rem; }
table.schedule thead th {
  font-family: var(--display); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.72rem;
  color: var(--muted); background: var(--ink-elevated); border-bottom: 1px solid var(--line);
}
table.schedule tbody tr { border-bottom: 1px solid var(--line); transition: background 0.25s ease; }
table.schedule tbody tr:last-child { border-bottom: none; }
table.schedule tbody tr:hover { background: var(--ink-elevated); }
table.schedule td.style-name { font-weight: 700; }
table.schedule td.instructor { color: var(--muted-strong); }
table.schedule td .day-pill {
  display: inline-block; background: rgba(63,225,255,0.12); color: var(--cyan); font-size: 0.72rem; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: 999px; margin: 0.1rem 0.2rem 0.1rem 0;
}

/* ============== Galería (scroll horizontal) ============== */
.gallery-pin { position: relative; }
.gallery-scroll { overflow: hidden; }
.gallery-scroll.is-native { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gallery-scroll.is-native::-webkit-scrollbar { display: none; }
.gallery-track { display: flex; gap: 1.2rem; width: max-content; padding: 0 1.5rem; will-change: transform; }
.gallery-item { position: relative; width: 340px; height: 460px; border-radius: 18px; overflow: hidden; flex-shrink: 0; background: var(--ink-elevated); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(8,8,10,0.92));
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
}
.gallery-hint { text-align: center; margin-top: 1.4rem; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) { .gallery-item { width: 78vw; height: 60vw; max-height: 420px; } }

/* ============== Campos de formulario (compra, cuenta) ============== */
.field-row { display: flex; flex-direction: column; gap: 0.4rem; }
.field-row label { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.field-row input, .field-row select, .field-row textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--ink); color: var(--white); font-size: 0.92rem; font-family: inherit;
}
.field-row textarea { resize: vertical; min-height: 90px; }
.field-row input:focus, .field-row select:focus, .field-row textarea:focus { outline: none; border-color: var(--cyan); }
.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 860px) { .field-row-2 { grid-template-columns: 1fr; } }

/* ============== Shows y eventos ============== */
.shows-section { position: relative; }
.shows-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.shows-media { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1/1; }
.shows-media img { width: 100%; height: 100%; object-fit: cover; }
.shows-list { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.shows-list li {
  background: var(--ink-elevated); border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1rem;
  font-size: 0.85rem; color: var(--muted-strong); display: flex; align-items: center; gap: 0.6rem;
}
.shows-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--magenta); flex-shrink: 0; }
@media (max-width: 900px) { .shows-grid { grid-template-columns: 1fr; } .shows-list { grid-template-columns: 1fr; } }

/* ============== Testimonios ============== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.testimonial-card {
  margin: 0; background: var(--ink-elevated); border: 1px solid var(--line); border-radius: 20px; padding: 1.8rem 1.6rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.testimonial-stars { color: var(--cyan); font-size: 0.9rem; letter-spacing: 0.15em; }
.testimonial-card blockquote { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--muted-strong); }
.testimonial-card figcaption { font-size: 0.82rem; font-weight: 700; color: var(--white); margin-top: auto; }
.testimonial-card figcaption span { font-weight: 500; color: var(--muted); }
@media (max-width: 980px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ============== FAQ ============== */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 0.8rem; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--ink-elevated); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--white); cursor: pointer;
  padding: 1.2rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 0.98rem; font-weight: 700;
}
.faq-q .icon { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-q .icon::before, .faq-q .icon::after { content: ''; position: absolute; background: var(--cyan); border-radius: 2px; transition: transform 0.3s var(--ease-out); }
.faq-q .icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-q .icon::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-item.open .faq-q .icon::after { transform: translateX(-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-standard); }
.faq-item.open .faq-a { max-height: 260px; }
.faq-a p { padding: 0 1.4rem 1.3rem; color: var(--muted-strong); font-size: 0.9rem; }

/* ============== Contacto ============== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list a, .contact-list .row {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 16px;
  text-decoration: none; color: var(--white); transition: border-color 0.3s ease, background 0.3s ease;
  background: var(--ink-elevated);
}
.contact-list a:hover { border-color: var(--cyan); }
.contact-list .icn { width: 40px; height: 40px; border-radius: 50%; background: rgba(63,225,255,0.12); color: var(--cyan); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-list strong { display: block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-list span.value { font-size: 0.98rem; font-weight: 600; }
.contact-map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.3) invert(0.92) contrast(0.9); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============== Footer ============== */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding: 4.5rem 0 2rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-brand .mark { width: 40px; height: 40px; }
.footer-brand-word { font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.06em; }
.footer-tag { color: var(--muted); font-size: 0.88rem; margin-top: 0.6rem; max-width: 280px; }
.footer-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-col h3, .footer-col h4 { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--muted-strong); text-decoration: none; font-size: 0.9rem; margin-bottom: 0.7rem; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid var(--line); }
.footer-bottom p { font-size: 0.78rem; color: var(--muted); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex;
  align-items: center; justify-content: center; text-decoration: none; color: var(--muted-strong); transition: all 0.25s ease;
}
.footer-social a:hover { border-color: var(--cyan); color: var(--cyan); }

/* ============== Floating WhatsApp ============== */
.whatsapp-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(37,211,102,0.4); transition: transform 0.3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .whatsapp-fab:hover { transform: scale(1.08); } }

/* ============== Toast ============== */
.toast {
  position: fixed; bottom: 1.6rem; left: 50%; transform: translateX(-50%) translateY(12px); z-index: 250;
  background: var(--white); color: var(--ink); padding: 0.85rem 1.4rem; border-radius: 999px; font-size: 0.86rem;
  font-weight: 700; opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============== Utility responsive section padding ============== */
@media (max-width: 640px) { section { padding: 4.5rem 0; } }

/* ============== Preview banner (login/panel — sin backend todavía) ============== */
.preview-banner {
  position: relative; z-index: 101; background: var(--magenta); color: var(--ink); text-align: center;
  padding: 0.7rem 1.5rem; font-size: 0.82rem; font-weight: 700;
}
.preview-banner strong { text-transform: uppercase; letter-spacing: 0.04em; }

/* ============== Auth (login) ============== */
.auth-section { min-height: 80vh; display: flex; align-items: center; padding: 4rem 1.5rem; }
.auth-wrap { max-width: 420px; margin: 0 auto; width: 100%; }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; margin-bottom: 2.2rem; text-align: center; }
.auth-brand .mark { width: 48px; height: 48px; }
.auth-card {
  background: var(--ink-elevated); border: 1px solid var(--line); border-radius: 22px; padding: 2.2rem;
  display: grid; gap: 1.2rem;
}
.auth-card h1 { font-size: 1.5rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: -0.6rem; }
.auth-links { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; }
.auth-links button { background: none; border: none; color: var(--cyan); cursor: pointer; font-size: 0.82rem; padding: 0; }
.auth-links button:hover { text-decoration: underline; }
.auth-foot { text-align: center; margin-top: 1.6rem; font-size: 0.86rem; color: var(--muted); }
.auth-foot a { color: var(--cyan); text-decoration: none; font-weight: 700; }
.auth-foot a:hover { text-decoration: underline; }

/* ============== Panel de alumno ============== */
.panel-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.panel-welcome h1 { font-size: 1.9rem; }
.panel-welcome p { color: var(--muted); margin-top: 0.4rem; font-size: 0.92rem; }
.panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2.4rem; }
.panel-stat {
  background: var(--ink-elevated); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem 1.5rem;
}
.panel-stat .label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.panel-stat .value { font-family: var(--display); font-size: 2rem; margin-top: 0.3rem; }
.panel-stat .value small { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.panel-section { margin-bottom: 2.4rem; }
.panel-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.panel-section-head h2 { font-size: 1.15rem; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-weight: 800; }
.panel-class-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem;
  background: var(--ink-elevated); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 0.7rem;
}
.panel-class-row .name { font-weight: 700; font-size: 0.94rem; }
.panel-class-row .meta { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.status-pill { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; padding: 0.3rem 0.8rem; border-radius: 999px; text-transform: uppercase; }
.status-pill.paid { background: rgba(63,225,255,0.14); color: var(--cyan); }
.status-pill.pending { background: rgba(255,59,125,0.14); color: var(--magenta); }
.attendance-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4rem; max-width: 400px; }
.attendance-day {
  aspect-ratio: 1; border-radius: 8px; background: var(--ink-elevated); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: var(--muted);
}
.attendance-day.present { background: rgba(63,225,255,0.16); border-color: var(--cyan); color: var(--white); font-weight: 700; }

/* =====================================================================
   ESCENARIO — capa global: reflector, grano, progreso, textos partidos
   ===================================================================== */

/* Reflector: un haz de luz suave que sigue el cursor (desktop) o deriva
   con el scroll (touch). Cambia de color según data-stage de cada sección. */
.stage-spotlight {
  position: fixed; left: 0; top: 0; z-index: 95; width: 720px; height: 720px;
  margin: -360px 0 0 -360px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at center, var(--spot, rgba(63,225,255,0.16)) 0%, transparent 62%);
  opacity: 0; transition: opacity 0.8s ease; will-change: transform;
}
.stage-spotlight.is-on { opacity: 1; }
.stage-spotlight[data-tone="magenta"] { --spot: rgba(255,59,125,0.15); }
@media (max-width: 700px) { .stage-spotlight { width: 460px; height: 460px; margin: -230px 0 0 -230px; } }

/* Grano de película: ruido SVG fijo, muy sutil, con micro-jitter. */
.stage-grain {
  position: fixed; inset: 0; z-index: 96; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Barra de progreso de lectura, arriba de todo. */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none;
  background: linear-gradient(90deg, var(--cyan), var(--magenta)); transform-origin: 0 50%; transform: scaleX(0);
}

/* Títulos partidos por palabra: cada palabra sube desde detrás de una máscara. */
[data-split] .split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
[data-split] .split-i { display: inline-block; will-change: transform; }

/* Telones para fotos: el clip-path lo anima GSAP; sin JS la foto queda visible. */
[data-curtain] { will-change: clip-path; }

/* Galería: barra de avance del recorrido horizontal. */
.gallery-progress { max-width: 320px; height: 2px; margin: 2rem auto 0; background: var(--line); border-radius: 2px; overflow: hidden; }
.gallery-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--magenta)); transform-origin: 0 50%; transform: scaleX(0); }
.gallery-item { will-change: transform; }
.gallery-item img { transform: scale(1.15); }

/* Superficies del navegador tematizadas con la paleta. */
html { scrollbar-color: var(--line-strong) var(--ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2a2a31; border-radius: 10px; border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-dim); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
input, textarea { caret-color: var(--cyan); }
table.schedule td:last-child { font-variant-numeric: tabular-nums; }

/* Lenis (scroll suave). CSS oficial del paquete + el scroll-behavior nativo
   desactivado mientras Lenis está al mando, para que no peleen entre sí. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Aviso editable desde el panel (franja bajo la portada) */
.promo-bar { position: relative; z-index: 5; background: var(--magenta); color: var(--ink); text-align: center; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(.95rem, 2.6vw, 1.25rem); padding: .9rem 1.5rem; line-height: 1.15; }
