/* ============================================================
   ESCUELA DELTA — Academia de Ciencias Online
   Estilos · Estilo Apple minimalista premium
   ============================================================ */

/* ──────────────────────────────────────────
   1. CUSTOM PROPERTIES
   ────────────────────────────────────────── */
:root {
  --cream:       #FAF9F6;
  --white:       #FFFFFF;
  --blue-light:  #A8C8E8;
  --blue-mid:    #7BADD4;
  --blue-dark:   #3A7BB8;
  --navy:        #1B2A41;
  --terracota:   #C9622E;
  --text:        #1D1D1F;
  --text-sec:    #6E6E73;
  --text-ter:    #98989D;
  --border:      rgba(0, 0, 0, .07);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, .05);
  --shadow-lift: 0 8px 28px rgba(0, 0, 0, .09);
  --radius-card: 16px;
  --radius-pill: 980px;
  --banner-h:    44px;
  --nav-h:       64px;
  --container:   1160px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --font:        'Inter', system-ui, -apple-system, sans-serif;
}

/* ──────────────────────────────────────────
   2. RESET & BASE
   ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ──────────────────────────────────────────
   3. LAYOUT UTILITIES
   ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 760px;
}

/* ──────────────────────────────────────────
   4. TYPOGRAPHY
   ────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 14px;
}

/* Min 56px in desktop (≥1018px) */
.section-title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.08;
  color: var(--text);
}

.text-left { text-align: left; }

.section-sub {
  margin-top: 18px;
  font-size: 1.125rem;
  color: var(--text-sec);
  max-width: 560px;
  line-height: 1.7;
  font-weight: 400;
}

/* ──────────────────────────────────────────
   5. SECTION BASE
   ────────────────────────────────────────── */
.section {
  padding: 120px 0;
}

.section-white { background: var(--white); }
.section-cream { background: var(--cream); }

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header .section-sub {
  margin: 18px auto 0;
}

/* ──────────────────────────────────────────
   6. BUTTONS
   ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: opacity .18s var(--ease), transform .18s var(--ease), background .18s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .88; }

/* Dark primary */
.btn-primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.btn-primary:hover { background: #2d2d2f; }

/* Outline */
.btn-outline {
  background: transparent;
  border-color: rgba(0,0,0,.22);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

/* White (dark card context) */
.btn-white {
  background: #fff;
  color: var(--text);
  border-color: #fff;
}
.btn-white:hover { background: #f2f2f2; border-color: #f2f2f2; }

/* WhatsApp green */
.btn-wa {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.btn-wa:hover { background: #1ebe5d; border-color: #1ebe5d; }

/* Large */
.btn-large { padding: 17px 38px; font-size: 1.0625rem; }

/* Full-width */
.btn-full { width: 100%; justify-content: center; }

.btn-icon { width: 19px; height: 19px; flex-shrink: 0; }

/* ──────────────────────────────────────────
   7. LOGO
   ────────────────────────────────────────── */
.logo-delta {
  width: 23px;   /* viewBox 112×158 → 23×32 px */
  height: 32px;
  flex-shrink: 0;
}

/* Logo completo en footer */
.footer-logo-img {
  display: block;
  width: 72px;
  height: auto;
}

.logo-name {
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1;
}

.logo-name-footer {
  color: #fff;
  font-size: 1rem;
}

/* ──────────────────────────────────────────
   7b. BANNER DE ANUNCIO
   ────────────────────────────────────────── */
.announcement-bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--banner-h);
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 950;
  padding: 0 20px;
}

.announcement-text {
  font-size: .875rem;
  color: rgba(255,255,255,.58);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  letter-spacing: .01em;
}

.announcement-highlight {
  color: #fff;
  font-weight: 600;
}

.announcement-dot {
  color: rgba(255,255,255,.25);
  font-weight: 300;
}

.announcement-cta {
  margin-left: 4px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: var(--radius-pill);
  padding: 3px 13px;
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transition: background .18s, border-color .18s;
}

.announcement-cta:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.42);
}

/* ──────────────────────────────────────────
   8. NAVIGATION
   ────────────────────────────────────────── */
.nav-header {
  position: fixed;
  inset: var(--banner-h) 0 auto 0;
  height: var(--nav-h);
  z-index: 900;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.nav-header.nav-scrolled {
  background: rgba(250, 249, 246, 0.90);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 7px 13px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-sec);
  border-radius: var(--radius-pill);
  transition: color .18s, background .18s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(0, 0, 0, .04);
}

.nav-cta {
  margin-left: 8px;
  padding: 8px 18px;
  background: var(--text);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: opacity .18s;
}

.nav-cta:hover { opacity: .82; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ──────────────────────────────────────────
   9. HERO
   ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--cream);
  overflow: hidden;
  padding: calc(var(--banner-h) + var(--nav-h) + 60px) 24px 80px;
}

/* ─── Collage fotográfico de fondo ─── */
.hero-collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* .hero-photo controla posición/tamaño en el collage y el parallax (JS,
   vía transform). La animación de entrada vive en .hero-photo-frame, un
   elemento aparte, para que ambos transforms no se pisen entre sí. */
.hero-photo {
  position: absolute;
  will-change: transform;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(27, 42, 65, .18);
  opacity: 0;
  transform: translateY(26px) scale(.96);
  animation: hero-photo-in 1s var(--ease) forwards;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(1.02);
}

/* Degradado de marca (crema → navy → terracota) para unificar las fotos,
   muy ligero a propósito para que se aprecien sus colores originales */
.hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(250, 249, 246, .03) 0%, rgba(27, 42, 65, .16) 55%, rgba(201, 98, 46, .1) 100%);
}

/* Dos fotos del mismo tamaño, ancladas a esquinas opuestas del hero
   (izquierda-abajo / derecha-arriba): se limita su alto en "vh" (no solo
   en anchura) para que la de arriba nunca invada la zona del menú fijo,
   sea cual sea la proporción de la ventana. El texto centrado queda
   equilibrado entre ambas. */
.hero-photo-1,
.hero-photo-2 {
  width: clamp(340px, 44vw, 600px);
  height: clamp(340px, 54vh, 640px);
}

.hero-photo-2 { bottom: 0; left: 0; }
.hero-photo-1 { top: calc(var(--banner-h) + var(--nav-h)); right: 0; }

.hero-photo-2 .hero-photo-frame { animation-delay: .15s; }
.hero-photo-1 .hero-photo-frame { animation-delay: .25s; }

/* Sin tarjeta/sombra: ambas se funden con el fondo mediante un corte
   diagonal, sólido en su esquina y desvanecido hacia el texto central */
.hero-photo-2 .hero-photo-frame,
.hero-photo-1 .hero-photo-frame {
  border-radius: 0;
  box-shadow: none;
}

.hero-photo-2 .hero-photo-frame {
  -webkit-mask-image: linear-gradient(45deg, #000 0%, #000 42%, transparent 82%);
  mask-image: linear-gradient(45deg, #000 0%, #000 42%, transparent 82%);
}

/* Foto de arriba a la derecha: sólida en su esquina (arriba-derecha),
   desvanecida hacia abajo-izquierda, en el mismo criterio que la otra */
.hero-photo-1 .hero-photo-frame {
  -webkit-mask-image: linear-gradient(225deg, #000 0%, #000 42%, transparent 82%);
  mask-image: linear-gradient(225deg, #000 0%, #000 42%, transparent 82%);
}

@keyframes hero-photo-in {
  from { opacity: 0; transform: translateY(26px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Halo central en crema para que el texto mantenga contraste máximo */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 58% at 50% 46%, var(--cream) 0%, rgba(250, 249, 246, .88) 38%, rgba(250, 249, 246, 0) 72%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo-frame {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Very subtle science decorations — almost invisible */
.hero-decorations {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.deco { position: absolute; }

.deco-atom-1 {
  width: 280px;
  top: 6%;
  right: 2%;
  opacity: .055;
}

.deco-molecule {
  width: 140px;
  bottom: 10%;
  left: 3%;
  opacity: .06;
}

.deco-sym {
  position: absolute;
  font-family: var(--font);
  font-weight: 200;
  color: var(--text);
  user-select: none;
  line-height: 1;
}

.deco-pi    { font-size: 8rem;  top: 18%;    left: 4%;    opacity: .04; }
.deco-int   { font-size: 11rem; bottom: 8%;  right: 5%;   opacity: .04; }
.deco-sigma { font-size: 6rem;  top: 58%;    left: 1.5%;  opacity: .04; }
.deco-sqrt  { font-size: 5rem;  top: 22%;    right: 16%;  opacity: .04; }

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(44px, 6vw, 68px);
  aspect-ratio: 112 / 158;
  flex-shrink: 0;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1.02;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(1.625rem, 3.5vw, 2.75rem);
  font-weight: 400;
  color: #3a3a3c;
  letter-spacing: -.02em;
  margin-bottom: 28px;
  line-height: 1.3;
}

.hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-ter);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ──────────────────────────────────────────
   10. NIVELES
   ────────────────────────────────────────── */
.niveles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.nivel-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .25s;
  position: relative;
}

.nivel-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(0,0,0,.10);
}

/* Subtle featured Bachillerato card */
.nivel-card-featured {
  border-color: rgba(168, 200, 232, .5);
}

.nivel-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background: linear-gradient(145deg, #E9EDF1 0%, #D9E1E8 100%);
}

.nivel-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nivel-img-empty {
  background: linear-gradient(145deg, #E9EDF1 0%, #D9E1E8 100%);
}

.nivel-age-tag {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-sec);
  margin-bottom: 8px;
}

.nivel-name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: 10px;
  color: var(--text);
}

.nivel-desc {
  font-size: .9375rem;
  color: var(--text-sec);
  line-height: 1.65;
  margin-bottom: 20px;
}

.nivel-subjects {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nivel-subjects li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
}

.subj-sym {
  font-size: .9375rem;
  color: var(--blue-dark);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 400;
}

/* ──────────────────────────────────────────
   11. TARIFAS — TAB SELECTOR + PANELS
   ────────────────────────────────────────── */

/* Tab row */
.nivel-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.nivel-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 28px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.nivel-tab:hover {
  border-color: rgba(0,0,0,.15);
}

.tab-age {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-ter);
  transition: color .2s var(--ease);
}

.tab-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
  transition: color .2s var(--ease);
}

.nivel-tab.active {
  background: var(--text);
  border-color: var(--text);
}

.nivel-tab.active .tab-age  { color: rgba(255,255,255,.45); }
.nivel-tab.active .tab-name { color: #fff; }

/* Panel content */
.nivel-panel-subjects {
  text-align: center;
  font-size: .9375rem;
  color: var(--text-ter);
  margin-bottom: 36px;
  letter-spacing: -.005em;
}

/* Grid for the 3 pricing cards inside each panel */
.tarifas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 36px;
}

.tarifa-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.tarifa-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

/* Dark featured card — same size as others, just dark */
.tarifa-featured {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.tarifa-featured:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
}

.tarifa-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-light);
  color: var(--text);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.tarifa-top { margin-bottom: 28px; }

.tarifa-name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}

.tarifa-desc {
  font-size: .9375rem;
  color: var(--text-sec);
  line-height: 1.6;
}

.tarifa-featured .tarifa-desc { color: rgba(255,255,255,.55); }

.tarifa-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 20px;
}

.price-num {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}

.price-meta {
  display: flex;
  flex-direction: column;
  padding-bottom: 5px;
  gap: 1px;
}

.price-cur  { font-size: 1.125rem; font-weight: 600; }
.price-unit { font-size: .875rem; color: var(--text-sec); }

.tarifa-featured .price-unit { color: rgba(255,255,255,.45); }

.tarifa-saving {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(168, 200, 232, .14);
  color: var(--blue-dark);
  margin-bottom: 28px;
  letter-spacing: -.01em;
}

.tarifa-featured .tarifa-saving {
  background: rgba(168, 200, 232, .22);
  color: var(--blue-light);
}

.tarifa-feats {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 32px;
}

.tarifa-feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9375rem;
  color: var(--text-sec);
}

.tarifa-featured .tarifa-feats li { color: rgba(255,255,255,.62); }

.tarifa-feats li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background: var(--border);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.tarifa-featured .tarifa-feats li::before { background: rgba(255,255,255,.3); }

.tarifas-note {
  text-align: center;
  font-size: .9375rem;
  color: var(--text-ter);
}

.tarifas-note a {
  color: var(--text-sec);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Etiqueta de nivel (edad) */
.tarifa-level-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-ter);
  margin-bottom: 10px;
}

.tarifa-featured .tarifa-level-tag { color: rgba(255,255,255,.38); }

/* Filas de bonos */
.tarifa-packs {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.tarifa-featured .tarifa-packs { border-color: rgba(255,255,255,.12); }

.tarifa-pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pack-label {
  font-size: .8rem;
  color: var(--text-sec);
  white-space: nowrap;
}

.tarifa-featured .pack-label { color: rgba(255,255,255,.5); }

.pack-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.pack-price {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}

.tarifa-featured .pack-price { color: #fff; }

.pack-perh {
  font-size: .6875rem;
  color: var(--text-ter);
}

.tarifa-featured .pack-perh { color: rgba(255,255,255,.32); }

.pack-save {
  font-size: .6875rem;
  font-weight: 600;
  color: var(--blue-dark);
  background: rgba(168,200,232,.16);
  border-radius: var(--radius-pill);
  padding: 2px 7px;
  white-space: nowrap;
}

.tarifa-featured .pack-save {
  color: var(--blue-light);
  background: rgba(168,200,232,.18);
}

/* ──────────────────────────────────────────
   12. OPINIONES
   ────────────────────────────────────────── */
.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.reviews-score {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.04em;
  line-height: 1;
}

.reviews-summary-stars {
  color: #F59E0B;
  font-size: 1.25rem;
  letter-spacing: 3px;
  line-height: 1;
}

.reviews-summary-sep {
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
}

.reviews-summary-label {
  font-size: 1rem;
  color: var(--text-ter);
}

.reviews-track {
  position: relative;
}

/* Fade derecha — indica que hay más tarjetas */
.reviews-track::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px;
  height: calc(100% - 20px);
  background: linear-gradient(to right, transparent, var(--cream));
  pointer-events: none;
  z-index: 1;
}

.reviews-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 20px;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.reviews-grid::-webkit-scrollbar {
  display: none;
}

.reviews-grid.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none;
}

.review-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 16px rgba(0,0,0,.055);
  transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}

.review-card:hover {
  box-shadow: 0 6px 32px rgba(0,0,0,.10);
  transform: translateY(-2px);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(168,200,232,.25);
  color: var(--text);
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .03em;
}

/* Variación de color por reseña, al estilo de los avatares de Google */
.review-card:nth-child(2) .review-avatar { background: rgba(168, 216, 200, .35); }
.review-card:nth-child(3) .review-avatar { background: rgba(232, 200, 168, .35); }
.review-card:nth-child(4) .review-avatar { background: rgba(216, 180, 220, .32); }
.review-card:nth-child(5) .review-avatar { background: rgba(232, 168, 168, .3); }
.review-card:nth-child(6) .review-avatar { background: rgba(180, 200, 232, .35); }
.review-card:nth-child(7) .review-avatar { background: rgba(200, 216, 160, .35); }

.review-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.review-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}

.review-role {
  font-size: .8125rem;
  color: var(--text-ter);
}

.review-google-mark {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: .85;
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-stars {
  color: #F59E0B;
  font-size: .875rem;
  letter-spacing: 2px;
  line-height: 1;
}

.review-quote {
  flex: 1;
  margin: 0;
}

.review-quote p {
  font-size: .9375rem;
  line-height: 1.72;
  color: var(--text);
  margin: 0;
}

/* ──────────────────────────────────────────
   13. FAQ
   ────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.faq-image-col {
  position: sticky;
  top: calc(var(--banner-h) + var(--nav-h) + 32px);
}

/* Sin marco ni tarjeta — la imagen se funde con el fondo blanco
   mediante un difuminado suave en los bordes (mismo criterio que
   el halo del hero / la foto de la CTA) */
.faq-image-frame {
  aspect-ratio: 3 / 4;
  -webkit-mask-image: radial-gradient(ellipse 78% 82% at 50% 50%, #000 0%, #000 52%, rgba(0, 0, 0, .45) 74%, transparent 92%);
  mask-image: radial-gradient(ellipse 78% 82% at 50% 50%, #000 0%, #000 52%, rgba(0, 0, 0, .45) 74%, transparent 92%);
}

.faq-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

/* <summary> actúa como cabecera clicable */
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  background: var(--white);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background .18s;
  letter-spacing: -.01em;
  list-style: none; /* elimina el triángulo nativo en Firefox */
}

/* Elimina el triángulo nativo en Safari/Chrome */
.faq-q::-webkit-details-marker { display: none; }

.faq-q:hover { background: rgba(0,0,0,.018); }

details[open] > .faq-q { background: rgba(0,0,0,.018); }

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--text-sec);
  transition: transform .3s var(--ease);
}

details[open] .faq-chevron {
  transform: rotate(180deg);
  stroke: var(--text);
}

.faq-a {
  padding: 0 28px 22px;
  background: rgba(0,0,0,.012);
  animation: faq-open .22s ease;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-a p {
  font-size: 1rem;
  color: var(--text-sec);
  line-height: 1.78;
  margin: 0;
}

/* ──────────────────────────────────────────
   13. SOBRE MÍ
   ────────────────────────────────────────── */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}

.sobre-image-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.profile-ring {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  flex-shrink: 0;
}

.profile-ring::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(168, 200, 232, .35);
}

.profile-placeholder {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #B8D8EE 0%, #85B4D0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .08em;
}

.profile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
}

.sobre-stats {
  display: flex;
  gap: 36px;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -.045em;
  color: var(--text);
  line-height: 1;
}

.stat-lbl {
  display: block;
  font-size: .875rem;
  color: var(--text-sec);
  margin-top: 5px;
}

.sobre-text-col {}

.sobre-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 26px;
  margin-bottom: 44px;
}

.sobre-paragraphs p {
  font-size: 1.0625rem;
  color: var(--text-sec);
  line-height: 1.78;
}


/* ──────────────────────────────────────────
   14. CTA FINAL
   ────────────────────────────────────────── */
.section-cta {
  position: relative;
  background: var(--text);
  padding: 128px 0;
  overflow: hidden;
}

/* Atom decoration — very subtle on dark */
.cta-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.deco-cta-atom {
  position: absolute;
  width: 380px;
  right: -80px;
  top: -80px;
}

.deco-sym-cta {
  position: absolute;
  font-family: var(--font);
  font-weight: 200;
  color: #fff;
  user-select: none;
  line-height: 1;
}

.deco-sym-cta-1  { font-size: 9rem;    bottom: -20px; left: 3%;   opacity: .04; }
.deco-sym-cta-2  { font-size: 7rem;    top: 10%;      right: 8%;  opacity: .045; }
.deco-sym-cta-3  { font-size: 5.5rem;  top: 30%;      left: 12%;  opacity: .04; }
.deco-sym-cta-4  { font-size: 6rem;    top: 58%;      right: 20%; opacity: .04; }
.deco-sym-cta-5  { font-size: 4.5rem;  bottom: 6%;    right: 34%; opacity: .045; }
.deco-sym-cta-6  { font-size: 5rem;    top: 4%;       left: 32%;  opacity: .035; }
.deco-sym-cta-7  { font-size: 3.5rem;  bottom: 16%;   left: 5%;   opacity: .05; }
.deco-sym-cta-8  { font-size: 4rem;    top: 46%;      left: 42%;  opacity: .03; }
.deco-sym-cta-9  { font-size: 6.5rem;  bottom: -24px; right: 44%; opacity: .035; }
.deco-sym-cta-10 { font-size: 3.75rem; top: 16%;      left: 46%;  opacity: .04; }

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.07;
  color: #fff;
  margin-bottom: 18px;
}

.cta-sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, .58);
  margin-bottom: 44px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  font-weight: 400;
}

/* ──────────────────────────────────────────
   15. FOOTER
   ────────────────────────────────────────── */
.footer {
  background: #111111;
  color: rgba(255, 255, 255, .5);
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

/* Footer logo link */
.footer-logo {
  display: inline-block;
  margin-bottom: 18px;
}

.footer-tagline {
  font-size: .9375rem;
  line-height: 1.7;
  margin-bottom: 22px;
  color: rgba(255,255,255,.45);
}

.footer-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 600;
  color: #4ADE7B;
  padding: 7px 16px;
  border: 1px solid rgba(74, 222, 123, .25);
  border-radius: var(--radius-pill);
  transition: background .2s, border-color .2s;
}

.footer-wa-link:hover {
  background: rgba(74, 222, 123, .08);
  border-color: rgba(74, 222, 123, .45);
}

.footer-wa-link svg { width: 15px; height: 15px; }

.footer-nav-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  margin-bottom: 16px;
}

.footer-nav ul,
.footer-legal-links ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-nav a,
.footer-legal-links button {
  font-size: .9375rem;
  color: rgba(255, 255, 255, .5);
  transition: color .18s;
  text-align: left;
  padding: 0;
  font-family: var(--font);
  cursor: pointer;
  background: none;
  border: none;
}

.footer-nav a:hover,
.footer-legal-links button:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: .875rem; }
.footer-heart { color: rgba(255,255,255,.3); }

/* ──────────────────────────────────────────
   16. WHATSAPP FLOAT
   ────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.wa-float svg { width: 28px; height: 28px; color: #fff; }

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, .45);
}

.wa-float-label {
  position: absolute;
  right: calc(100% + 12px);
  background: var(--text);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity .22s, transform .22s;
}

.wa-float-label::after {
  content: '';
  position: absolute;
  top: 50%; right: -5px;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--text);
  border-right: 0;
}

.wa-float:hover .wa-float-label { opacity: 1; transform: translateX(0); }

/* Pulse ring */
.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(37, 211, 102, .4);
  animation: wa-pulse 2.6s ease-out infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: .7; }
  70%  { transform: scale(1.5);  opacity: 0;  }
  100% { transform: scale(1);    opacity: 0;  }
}

/* ──────────────────────────────────────────
   17. MODALES
   ────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] { display: none; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 22px;
  padding: 48px;
  max-width: 540px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.18);
  animation: modal-in .3s var(--ease) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(.97) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 18px; right: 20px;
  font-size: 1.625rem;
  color: var(--text-ter);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 7px;
  transition: color .18s, background .18s;
}

.modal-close:hover { color: var(--text); background: rgba(0,0,0,.04); }

.modal-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: 24px;
}

.modal-body p {
  font-size: 1rem;
  color: var(--text-sec);
  line-height: 1.75;
  margin-bottom: 14px;
}

.modal-body p:last-child { margin-bottom: 0; }

/* ──────────────────────────────────────────
   18. ANIMACIONES
   ────────────────────────────────────────── */

/* Hero on-load fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .85s var(--ease) forwards;
}

.delay-1 { animation-delay: .05s; }
.delay-2 { animation-delay: .20s; }
.delay-3 { animation-delay: .35s; }
.delay-4 { animation-delay: .50s; }
.delay-5 { animation-delay: .65s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered */
.animate-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.animate-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger grid children */
.niveles-grid .nivel-card:nth-child(1)  { transition-delay: .00s; }
.niveles-grid .nivel-card:nth-child(2)  { transition-delay: .09s; }
.niveles-grid .nivel-card:nth-child(3)  { transition-delay: .18s; }
.niveles-grid .nivel-card:nth-child(4)  { transition-delay: .27s; }

.tarifas-grid .tarifa-card:nth-child(1) { transition-delay: .00s; }
.tarifas-grid .tarifa-card:nth-child(2) { transition-delay: .09s; }
.tarifas-grid .tarifa-card:nth-child(3) { transition-delay: .18s; }

/* ──────────────────────────────────────────
   19. RESPONSIVE — TABLET (≤1024px)
   ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-photo-1,
  .hero-photo-2 { width: clamp(280px, 42vw, 440px); height: clamp(280px, 48vh, 460px); }
  .hero-photo-2 { bottom: 0; left: 0; }
  .hero-photo-1 { top: calc(var(--banner-h) + var(--nav-h)); right: 0; }

  .niveles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sobre-grid {
    gap: 56px;
  }

  .faq-grid {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 32px;
  }

}

/* ──────────────────────────────────────────
   20. RESPONSIVE — MOBILE (≤768px)
   ────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Banner móvil — ocultar texto secundario para que quepa en una línea */
  .announcement-dot,
  .announcement-desc { display: none; }

  /* Nav mobile: sin backdrop-filter para que el menú fixed no quede atrapado
     dentro del containing block del nav (backdrop-filter lo crea) */
  .nav-header,
  .nav-header.nav-scrolled {
    background: var(--cream);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-header.nav-scrolled {
    border-bottom: 1px solid var(--border);
    box-shadow: none;
  }

  /* Nav mobile */
  .nav-toggle { display: flex; z-index: 10; }

  .nav-menu {
    position: fixed;
    top: calc(var(--banner-h) + var(--nav-h));
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 850;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
    padding: 16px 20px 24px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .38s var(--ease), opacity .28s var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    padding: 11px 16px;
    font-size: 1rem;
    border-radius: 12px;
  }

  /* Ocultar el botón "Reserva tu clase" en móvil — el enlace de WhatsApp ya está en el banner */
  .nav-cta { display: none; }

  /* Hero */
  .section { padding: 80px 0; }
  .hero { padding: calc(var(--banner-h) + var(--nav-h) + 40px) 20px 64px; }
  .hero-desc br { display: none; }

  /* Collage → una sola foto de fondo completo, atenuada (se oculta la
     segunda para no sobrecargar la pantalla) */
  .hero-photo-1 { display: none; }

  .hero-photo-2 {
    /* Empieza justo debajo del banner + menú fijo, nunca detrás */
    inset: calc(var(--banner-h) + var(--nav-h)) 0 0 0;
    width: auto;
    height: auto;
    aspect-ratio: auto;
  }

  .hero-photo-2 .hero-photo-frame {
    border-radius: 0;
    box-shadow: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-photo-2 .hero-photo-frame::after {
    background: linear-gradient(175deg, rgba(250, 249, 246, .4) 0%, rgba(27, 42, 65, .62) 60%, rgba(201, 98, 46, .38) 100%);
  }

  .hero-vignette {
    background: radial-gradient(ellipse 85% 70% at 50% 42%, var(--cream) 0%, rgba(250, 249, 246, .82) 45%, rgba(250, 249, 246, .55) 100%);
  }

  .deco-atom-1 { width: 180px; opacity: .04; }
  .deco-pi     { font-size: 5rem; }
  .deco-int, .deco-sigma { display: none; }

  /* Sections */
  .section-header { margin-bottom: 56px; }

  /* Niveles */
  .niveles-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Tarifas */
  .tarifas-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tarifa-featured { order: -1; }

  /* Sobre mi */
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .sobre-image-col { order: 1; }
  .sobre-text-col  { order: 2; }

  .profile-ring {
    width: 260px;
    height: 260px;
  }

  .profile-placeholder { font-size: 2.25rem; }

  /* CTA */
  .section-cta { padding: 96px 0; }
  .cta-title br { display: none; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* WhatsApp float */
  .wa-float { bottom: 20px; right: 20px; }

  /* Reviews */
  .reviews-summary { gap: 10px; }
  .reviews-summary-sep { display: none; }
  .review-card { flex: 0 0 min(300px, 78vw); padding: 24px 20px; }

  /* FAQ */
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .faq-image-col {
    position: static;
    max-width: 280px;
    margin: 0 auto;
  }

  .faq-list { max-width: none; }

  .faq-q { padding: 18px 20px; }
  .faq-a { padding: 0 20px 18px; }

  /* Modals */
  .modal-box { padding: 32px 22px; }
}

/* ──────────────────────────────────────────
   21. RESPONSIVE — SMALL (≤480px)
   ────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .sobre-stats { flex-direction: column; gap: 16px; align-items: center; }
  .tarifa-card { padding: 32px 22px; }
}

/* ──────────────────────────────────────────
   22. REDUCED MOTION
   ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .wa-float::before { animation: none; }
}
