/* ============================================================
   Academia Delfines — Overrides de marca
   Tailwind CDN provee las utilidades; aquí viven solo:
   1) Tokens de marca (paleta + fuentes)
   2) Componentes legacy del wireframe (se irán migrando paso a paso)
   ============================================================ */

:root {
  /* ---- Paleta de marca (sincronizada con tailwind.config en index.html) ---- */
  --brand-50:  #EFF0F9;
  --brand-100: #E0E0F7;
  --brand-200: #CBD1ED;
  --brand-300: #9CA9DD;
  --brand-400: #6C82CC;
  --brand-500: #3837BF; /* primario · CTAs */
  --brand-600: #2E3E6D;
  --brand-700: #1F1F77;
  --brand-800: #16203C;
  --brand-900: #0A0938;

  --lila-100: #E9E8F2;
  --lila-200: #C3BDDA;
  --lila-300: #9E94C3; /* acento */
  --lila-400: #7B6CAA;
  --lila-500: #584986;
  --lila-600: #362C54;
  --lila-700: #161127;

  --ink:   #161616;
  --paper: #FFFFFF;
  --mist:  #EBEBEB;

  /* ---- Greys del wireframe (legacy — usados por componentes aún sin migrar) ---- */
  --g-0: #ffffff;
  --g-50: #f7f7f7;
  --g-100: #efefef;
  --g-200: #d9d9d9;
  --g-300: #bdbdbd;
  --g-500: #8a8a8a;
  --g-700: #555555;
  --g-900: #222222;

  --border: 1px solid var(--g-300);
  --border-strong: 2px solid var(--g-700);
  --border-dashed: 1px dashed var(--g-500);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --content-max: 1200px;
  --nav-h: 60px;

  /* ---- Tipografía ---- */
  --font-display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font:         var(--font-body); /* alias legacy */
}

/* Reset mínimo */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ol, ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand-800);
}
p { margin: 0; font-weight: 400; }

/* ------------------------------------------------------------
   Bloques placeholder (texto + cajas)
   ------------------------------------------------------------ */
.placeholder {
  font-size: 14px;
  color: var(--g-700);
  margin: var(--space-2) 0;
}
.placeholder--small { font-size: 12px; color: var(--g-500); }
.placeholder--label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--g-700); }
.placeholder--lg    { font-size: 18px; color: var(--g-900); }
.placeholder--xl    { font-size: 22px; color: var(--g-900); }

.box {
  border: var(--border-dashed);
  background: var(--g-50);
  color: var(--g-500);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  padding: var(--space-3);
  min-height: 48px;
}
.box--logo        { min-height: 32px; min-width: 64px; padding: var(--space-2) var(--space-3); }
.box--logo-strip  { min-height: 40px; flex: 1 0 100px; }
.box--icon        { width: 48px; height: 48px; min-height: 48px; padding: 0; }
.box--image       { min-height: 240px; }
.box--portrait    { aspect-ratio: 1 / 1; width: 100%; min-height: 0; }
.box--map         { min-height: 320px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: var(--border);
  border-radius: 4px;
  font-size: 13px;
  background: var(--g-0);
  color: var(--g-900);
  white-space: nowrap;
  min-height: 44px;
}
.btn:hover  { border: var(--border-strong); }
.btn--solid { background: var(--g-900); color: var(--g-0); border-color: var(--g-900); }
.btn--solid:hover { background: var(--g-700); border-color: var(--g-700); }
.btn--outline { background: var(--g-0); }
.btn--xl    { padding: var(--space-4) var(--space-12); font-size: 16px; min-height: 56px; }

/* ------------------------------------------------------------
   0 · Sticky navbar — mobile menu toggle (Tailwind hace el resto)
   ------------------------------------------------------------ */
.navbar.is-open .navbar__nav {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--mist);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.75rem;
  box-shadow: 0 12px 24px -16px rgba(22, 32, 60, 0.18);
}
.navbar__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--brand-800);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.navbar.is-open .navbar__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar.is-open .navbar__burger span:nth-child(2) { opacity: 0; }
.navbar.is-open .navbar__burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ------------------------------------------------------------
   Section base
   ------------------------------------------------------------ */
.section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-12) var(--space-4);
  border-bottom: var(--border);
}
.section--lg { padding: var(--space-16) var(--space-4); }
.section__cta { margin-top: var(--space-8); display: flex; justify-content: center; }
.section__note { margin-top: var(--space-4); color: var(--g-500); font-style: italic; }

.master-block {
  margin-top: var(--space-8);
  border: var(--border-dashed);
  background: var(--g-50);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}
.master-block__title { font-weight: 600; font-size: 15px; margin: var(--space-1) 0; }
@media (min-width: 768px) {
  .master-block { flex-direction: row; align-items: center; justify-content: space-between; }
  .master-block__body { flex: 1; }
}

@media (min-width: 768px) {
  .section { padding: var(--space-16) var(--space-8); }
  .section--lg { padding: 5rem var(--space-8); }
}

/* ------------------------------------------------------------
   1 · Hero — animaciones de ondas decorativas
   ------------------------------------------------------------ */
@keyframes wave-drift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}
.hero__wave {
  animation: wave-drift 18s linear infinite;
  will-change: transform;
}
.hero__wave--slow { animation-duration: 28s; opacity: 0.55; }
@media (prefers-reduced-motion: reduce) {
  .hero__wave { animation: none; }
}

/* ------------------------------------------------------------
   2 · Niveles · Ruta progresiva (marca aplicada)
   ------------------------------------------------------------ */
.route {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

/* Stage card · acento superior por etapa */
.route__stage {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--brand-100);
  border-radius: 18px;
  padding: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 24px -20px rgba(22, 32, 60, 0.35);
}
.route__stage::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
}
.route__stage[data-stage="1"]::before { background: linear-gradient(90deg, var(--brand-300), var(--brand-400)); }
.route__stage[data-stage="2"]::before { background: linear-gradient(90deg, var(--lila-300), var(--lila-400)); }
.route__stage[data-stage="3"]::before { background: linear-gradient(90deg, var(--brand-500), var(--lila-400)); }

.route__stage-head { margin-bottom: 1.25rem; padding-top: 0.25rem; }
.route__stage-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.route__stage[data-stage="1"] .route__stage-label { color: var(--brand-500); }
.route__stage[data-stage="2"] .route__stage-label { color: var(--lila-400); }
.route__stage[data-stage="3"] .route__stage-label { color: var(--brand-700); }

.route__stage-age {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-800);
  background: var(--mist);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  margin: 0.25rem 0 0.875rem;
}
.route__stage-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--brand-800);
  opacity: 0.82;
  margin-top: 0.5rem;
}

.route__milestones {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/* Milestone card */
.milestone {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  display: grid;
  grid-template-columns: 14px 1fr;
  column-gap: 0.875rem;
  row-gap: 0.125rem;
  align-items: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.milestone:hover {
  border-color: var(--brand-300);
  box-shadow: 0 10px 24px -14px rgba(56, 55, 191, 0.28);
  transform: translateY(-2px);
}
.milestone__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-500);
  margin-top: 0.4rem;
}
.milestone__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-800);
  margin: 0;
  grid-column: 2;
}
.milestone__goal {
  margin: 0;
  grid-column: 2;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--brand-800);
  opacity: 0.78;
}

/* Variantes por etapa */
.route__stage[data-stage="2"] .milestone        { background: var(--lila-100); border-color: var(--lila-200); }
.route__stage[data-stage="2"] .milestone:hover  { border-color: var(--lila-300); box-shadow: 0 10px 24px -14px rgba(123, 108, 170, 0.32); }
.route__stage[data-stage="2"] .milestone__dot   { background: var(--lila-400); }

.route__stage[data-stage="3"] .milestone        { background: var(--brand-50); border-color: var(--brand-200); }
.route__stage[data-stage="3"] .milestone:hover  { border-color: var(--brand-500); }
.route__stage[data-stage="3"] .milestone__dot   { background: var(--brand-700); }

/* Programa Formativo · hito final destacado */
.milestone--formativo {
  background: linear-gradient(135deg, var(--lila-100), var(--brand-100)) !important;
  border: 1px dashed var(--brand-500) !important;
}
.milestone__dot--formativo {
  background: var(--brand-700) !important;
  border-radius: 3px;
  width: 14px;
  height: 14px;
  margin-top: 0.3rem;
}

/* Mobile defaults · sin tabs ni flechas */
.route-nav { display: none; }
.route-carousel { display: block; }
.route-carousel__arrow { display: none; }

/* Desktop carousel ≥ 900px */
@media (min-width: 900px) {
  .route-carousel-wrap { margin-top: 2.5rem; }

  /* Tabs en píldoras */
  .route-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
  }
  .route-nav__tab {
    padding: 0.625rem 1.375rem;
    border: 1px solid var(--brand-100);
    background: var(--paper);
    color: var(--brand-800);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }
  .route-nav__tab:hover { background: var(--brand-50); border-color: var(--brand-300); transform: translateY(-1px); }
  .route-nav__tab.is-active {
    background: var(--brand-500);
    color: var(--paper);
    border-color: var(--brand-500);
    box-shadow: 0 8px 20px -10px rgba(56, 55, 191, 0.55);
  }

  /* Pista del carrusel · prev / etapa / next */
  .route-carousel {
    display: flex;
    align-items: stretch;
    gap: 1rem;
  }
  .route { flex: 1; margin-top: 0; gap: 0; }

  /* Solo la etapa activa visible */
  .route__stage { display: none; }
  .route__stage.is-active {
    display: block;
    padding: 2rem 2.25rem;
    min-height: 380px;
  }

  /* Grid expandido de milestones */
  .route__stage.is-active .route__milestones {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
    margin-top: 1.25rem;
  }
  .route__stage[data-stage="3"].is-active .route__milestones {
    grid-template-columns: repeat(3, 1fr);
  }
  .route__stage.is-active .milestone { padding: 1rem 1.125rem; min-height: 96px; }
  .route__stage.is-active .milestone--formativo { grid-column: 1 / -1; }

  /* Flechas circulares */
  .route-carousel__arrow {
    display: flex;
    flex-shrink: 0;
    align-self: center;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--brand-200);
    background: var(--paper);
    font-size: 16px;
    color: var(--brand-700);
    border-radius: 9999px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }
  .route-carousel__arrow:hover:not(:disabled) {
    background: var(--brand-500);
    border-color: var(--brand-500);
    color: var(--paper);
    transform: scale(1.08);
  }
  .route-carousel__arrow:disabled { opacity: 0.3; cursor: default; }
}

/* ------------------------------------------------------------
   Galería diferida por etapa (carrusel desplegable)
   ------------------------------------------------------------ */
.route-gallery { margin-top: 1.25rem; }

.route-gallery__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--brand-200);
  background: var(--paper);
  color: var(--brand-700);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.route-gallery__toggle:hover {
  background: var(--brand-50);
  border-color: var(--brand-300);
  transform: translateY(-1px);
}
.route-gallery__toggle.is-loading { opacity: 0.65; cursor: progress; }
.route-gallery__icon { width: 18px; height: 18px; flex-shrink: 0; }
.route-gallery__chevron { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.25s ease; }
.route-gallery.is-open .route-gallery__chevron { transform: rotate(180deg); }

.route-gallery__panel { margin-top: 1rem; }

.route-gallery__carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--brand-50);
  box-shadow: 0 12px 30px -18px rgba(22, 32, 60, 0.45);
  animation: routeGalleryIn 0.35s ease;
}
@keyframes routeGalleryIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.route-gallery__track { position: absolute; inset: 0; }
.route-gallery__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.route-gallery__slide.is-active { opacity: 1; }

.route-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--brand-200);
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-700);
  border-radius: 9999px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px rgba(26, 41, 128, 0.14);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.route-gallery__arrow svg { width: 18px; height: 18px; }
.route-gallery__arrow:hover {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: var(--paper);
  transform: translateY(-50%) scale(1.08);
}
.route-gallery__arrow--prev { left: 0.6rem; }
.route-gallery__arrow--next { right: 0.6rem; }

.route-gallery__dots {
  position: absolute;
  left: 0; right: 0; bottom: 0.7rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}
.route-gallery__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.route-gallery__dot.is-active { background: #fff; transform: scale(1.3); }

@media (min-width: 768px) {
  .route-gallery__carousel { aspect-ratio: 16 / 10; }
  .route-gallery__arrow { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .route-gallery__slide { transition: none; }
  .route-gallery__carousel { animation: none; }
}

/* Variante oscura (sección Entrenamiento / Máster) */
.route-gallery--dark .route-gallery__toggle {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.route-gallery--dark .route-gallery__toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}
.route-gallery--dark .route-gallery__carousel {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.55);
}

/* ------------------------------------------------------------
   3 · Academia de Entrenamiento
   ------------------------------------------------------------ */
.training-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.training-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-3px);
}
.training-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(56,55,191,0.45);
  color: var(--lila-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.training-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--paper);
  margin: 0;
}
.training-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.training-card__list li {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}
.training-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.525em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lila-300);
}

.master-highlight {
  border: 1px solid rgba(158,148,195,0.30);
  border-radius: 20px;
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(56,55,191,0.22), rgba(88,73,134,0.30));
  position: relative;
  overflow: hidden;
}
.master-highlight::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lila-300), var(--brand-300));
}
.master-highlight__badge {
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lila-300);
  background: rgba(158,148,195,0.18);
  border: 1px solid rgba(158,148,195,0.30);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}
.master-highlight__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}
.master-highlight__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--lila-300);
  color: var(--brand-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
.master-highlight__cta:hover {
  background: var(--lila-200);
  transform: translateY(-1px);
}
@media (min-width: 768px) {
  .master-highlight { padding: 2rem 2.5rem; }
  .master-highlight__body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

/* ------------------------------------------------------------
   5 · Por qué elegirnos + Logros
   ------------------------------------------------------------ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 639px) { .why-grid .why-card:last-child { grid-column: 1 / -1; } }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(5, 1fr); } }

.why-card {
  background: var(--paper);
  border: 1px solid var(--brand-100);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.why-card:hover {
  border-color: var(--brand-300);
  box-shadow: 0 10px 28px -14px rgba(56,55,191,0.25);
  transform: translateY(-2px);
}
.why-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.why-card:hover .why-card__icon {
  background: var(--brand-500);
  color: var(--paper);
}
.why-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-800);
  margin: 0;
  line-height: 1.3;
}
.why-card__desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--brand-800);
  opacity: 0.68;
  line-height: 1.5;
  margin: 0;
}

.logros-strip {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--brand-100);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logros-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 900px) { .logros-grid { grid-template-columns: repeat(4, 1fr); } }

.logro-card {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.logro-card:hover {
  border-color: var(--brand-300);
  box-shadow: 0 8px 24px -14px rgba(56,55,191,0.28);
}
.logro-card__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  background: linear-gradient(135deg, var(--brand-500), var(--lila-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin: 0;
}
.logro-card__label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--brand-800);
  opacity: 0.78;
  line-height: 1.45;
  margin: 0;
  max-width: 180px;
}

/* ------------------------------------------------------------
   Grids genéricos (cards)
   ------------------------------------------------------------ */
.grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--5 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 600px) {
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--5 { grid-template-columns: repeat(5, 1fr); }
}

.card {
  border: var(--border);
  padding: var(--space-6);
  background: var(--g-0);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.card__title { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.card--why   { align-items: center; text-align: center; }
.card--price { gap: var(--space-2); }
.card--price .btn { margin-top: auto; }

/* ------------------------------------------------------------
   6 · Por qué + Historia (timeline)
   ------------------------------------------------------------ */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-12) 0 var(--space-6);
  position: relative;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--g-300);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-left: var(--border);
  padding-left: var(--space-6);
}
.timeline__item { position: relative; padding-bottom: var(--space-4); }
.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--space-6) - 5px);
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--g-900);
}
.timeline__year { font-weight: 700; font-size: 16px; }

@media (min-width: 768px) {
  .timeline {
    flex-direction: row;
    justify-content: space-between;
    border-left: none;
    border-top: var(--border);
    padding-left: 0;
    padding-top: var(--space-8);
    gap: var(--space-4);
    overflow-x: auto;
  }
  .timeline__item {
    flex: 1 0 140px;
    text-align: center;
    padding-bottom: 0;
  }
  .timeline__dot {
    position: absolute;
    left: 50%;
    top: calc(-1 * var(--space-8) - 5px);
    transform: translateX(-50%);
  }
}

/* ------------------------------------------------------------
   6 · Equipo / Entrenadores
   ------------------------------------------------------------ */
.coaches-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 580px) {
  .coaches-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
  }
}

.coach-card {
  background: var(--paper);
  border: 1px solid var(--brand-100);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.coach-card:hover {
  border-color: var(--brand-300);
  box-shadow: 0 16px 40px -20px rgba(56,55,191,0.28);
  transform: translateY(-3px);
}

.coach-card__portrait {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-100), var(--lila-200));
}
.coach-card__portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.coach-card__portrait-img--cesar {
  object-position: center;
}
.coach-card__portrait-img--richard {
  object-position: center;
}

.coach-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.coach-card__experience {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-500);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  width: fit-content;
}
.coach-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand-800);
  margin: 0;
  line-height: 1.2;
}
.coach-card__specialty {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--brand-800);
  opacity: 0.72;
  line-height: 1.55;
  margin: 0;
}
.coach-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.125rem;
}
.coach-card__tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--lila-500);
  background: var(--lila-100);
  border: 1px solid var(--lila-200);
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
}

/* ------------------------------------------------------------
   7 · Nuestras sedes
   ------------------------------------------------------------ */
.sedes-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 900px) {
  .sedes-layout { grid-template-columns: 1fr 360px; gap: 1.5rem; }
}

.sedes-map-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--brand-100);
  aspect-ratio: 4 / 3;
  background: var(--brand-50);
  box-shadow: 0 8px 24px -16px rgba(22,32,60,0.18);
}
@media (min-width: 900px) {
  .sedes-map-wrap {
    aspect-ratio: auto;
    height: 520px;
    position: sticky;
    top: calc(72px + 1.25rem);
  }
}
.sedes-map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

.sedes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sede-item {
  border: 1px solid var(--brand-100);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.15s ease;
}
.sede-item:hover { border-color: var(--brand-300); }
.sede-item--active {
  border-color: var(--brand-500);
  background: var(--brand-50);
  box-shadow: 0 4px 16px -8px rgba(56,55,191,0.2);
}

.sede-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.sede-item__info { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }

.sede-item__badge {
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand-500);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 0.1rem;
}
.sede-item--active .sede-item__badge { background: rgba(56,55,191,0.1); }

.sede-item__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-800);
  line-height: 1.3;
  transition: color 0.15s ease;
}
.sede-item--active .sede-item__name { color: var(--brand-500); }

.sede-item__meta {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--brand-800);
  opacity: 0.6;
  line-height: 1.4;
}

.sede-item__arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--brand-300);
  transition: color 0.15s ease, transform 0.15s ease;
}
.sede-item--active .sede-item__arrow { color: var(--brand-500); transform: rotate(90deg); }

/* Carrusel desplegable de cada sede (reutiliza .route-gallery__carousel) */
.sede-gallery__panel { padding: 0 0.75rem 0.75rem; }
.sede-gallery__panel .route-gallery__carousel {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  box-shadow: 0 8px 22px -16px rgba(22, 32, 60, 0.4);
}

.sede-note {
  margin: 1.75rem auto 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--brand-800);
  opacity: 0.42;
  font-style: italic;
  line-height: 1.65;
  max-width: 740px;
}

/* ------------------------------------------------------------
   9 · Testimonios
   ------------------------------------------------------------ */
.testimonial-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--brand-100);
  border-radius: 20px;
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}
.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--lila-400));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.testimonial-card:hover {
  border-color: var(--brand-300);
  box-shadow: 0 18px 40px -22px rgba(56,55,191,0.35);
  transform: translateY(-3px);
}
.testimonial-card:hover::before { opacity: 1; }

.testimonial-card__quote {
  width: 36px;
  height: 36px;
  color: var(--brand-200);
  flex-shrink: 0;
  transition: color 0.25s ease;
}
.testimonial-card:hover .testimonial-card__quote { color: var(--brand-400); }

.testimonial-card__text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--brand-800);
  opacity: 0.85;
  margin: 0;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--brand-100);
}
.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.testimonial-card__avatar--brand {
  background: var(--brand-50);
  color: var(--brand-500);
  border: 1px solid var(--brand-100);
}
.testimonial-card__avatar--lila {
  background: var(--lila-100);
  color: var(--lila-500);
  border: 1px solid var(--lila-200);
}
.testimonial-card__avatar--gradient {
  background: linear-gradient(135deg, var(--brand-500), var(--lila-400));
  color: var(--paper);
}
.testimonial-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.testimonial-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-800);
  margin: 0;
  line-height: 1.2;
}
.testimonial-card__role {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--brand-800);
  opacity: 0.6;
  margin: 0;
  line-height: 1.3;
}

/* ------------------------------------------------------------
   10 · CTA final
   ------------------------------------------------------------ */
.cta-final__wa {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--paper);
  color: var(--brand-900);
  border-radius: 999px;
  padding: 0.875rem 1.5rem 0.875rem 1rem;
  text-decoration: none;
  box-shadow: 0 18px 48px -18px rgba(255,255,255,0.35),
              0 0 0 0 rgba(56,55,191,0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease;
  max-width: 100%;
}
.cta-final__wa:hover {
  transform: translateY(-2px);
  background: var(--brand-50);
  box-shadow: 0 22px 56px -16px rgba(255,255,255,0.45),
              0 0 0 6px rgba(255,255,255,0.06);
}
.cta-final__wa:active { transform: translateY(0); }

.cta-final__wa-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--lila-400));
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-final__wa-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  padding-right: 0.5rem;
}
.cta-final__wa-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.15;
  color: var(--brand-900);
}
.cta-final__wa-sub {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.2;
  color: var(--brand-700);
  opacity: 0.85;
}

@media (min-width: 768px) {
  .cta-final__wa { padding: 1rem 2rem 1rem 1.25rem; gap: 1.25rem; }
  .cta-final__wa-icon { width: 56px; height: 56px; }
  .cta-final__wa-title { font-size: 18px; }
  .cta-final__wa-sub { font-size: 13px; }
}

.cta-final__alt {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.25rem;
}
.cta-final__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}
.cta-final__phone:hover { color: var(--paper); }
.cta-final__phone svg { color: var(--lila-300); }

.cta-final__divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.2);
}

.cta-final__social {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.cta-final__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.cta-final__social-link:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--brand-900);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------
   Footer enteramente con utilidades Tailwind en index.html.
   Bloque reservado por si más adelante se requieren ajustes
   personalizados que no sean expresables con utilities.
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   ∞ · Floating WhatsApp
   ------------------------------------------------------------ */
.floating-wa {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  height: 56px;
  min-width: 56px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #25D366;
  color: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(37,211,102,0.55),
              0 4px 12px -4px rgba(0,0,0,0.18);
  transition: background-color 0.2s ease,
              transform 0.25s ease,
              box-shadow 0.25s ease,
              padding 0.3s ease;
  isolation: isolate;
}
.floating-wa:hover,
.floating-wa:focus-visible {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(37,211,102,0.65),
              0 6px 16px -4px rgba(0,0,0,0.22);
}
.floating-wa:focus-visible {
  outline: 3px solid rgba(37,211,102,0.35);
  outline-offset: 3px;
}

.floating-wa__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Etiqueta: oculta en móvil (no invasiva), aparece al hover en desktop */
.floating-wa__label {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.3s ease, opacity 0.25s ease, margin 0.3s ease;
  position: relative;
  z-index: 1;
}

/* Anillo de pulso muy sutil (cada 3s) */
.floating-wa__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.4;
  z-index: 0;
  animation: floating-wa-pulse 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes floating-wa-pulse {
  0%   { transform: scale(1);    opacity: 0.45; }
  70%  { transform: scale(1.6);  opacity: 0;    }
  100% { transform: scale(1.6);  opacity: 0;    }
}

/* Desktop: ensancha con label al hacer hover/focus */
@media (min-width: 768px) {
  .floating-wa {
    right: 1.5rem;
    bottom: 1.5rem;
    height: 60px;
    min-width: 60px;
    padding: 0 18px 0 18px;
    gap: 0;
  }
  .floating-wa__icon { width: 30px; height: 30px; }
  .floating-wa__label { display: inline-block; }
  .floating-wa:hover .floating-wa__label,
  .floating-wa:focus-visible .floating-wa__label {
    max-width: 140px;
    opacity: 1;
    margin-left: 12px;
  }
}

/* Respeta usuarios con motion reducido */
@media (prefers-reduced-motion: reduce) {
  .floating-wa,
  .floating-wa__label,
  .floating-wa__pulse {
    transition: none;
    animation: none;
  }
}

/* ------------------------------------------------------------
   Carrusel de fondo del Hero
   ------------------------------------------------------------ */
.hero-carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-carousel__slide.is-active {
  opacity: 1;
}

.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--brand-200);
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-700);
  border-radius: 9999px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px rgba(26, 41, 128, 0.12);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hero-carousel__arrow:hover {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: var(--paper);
  transform: translateY(-50%) scale(1.08);
}
.hero-carousel__arrow--prev { left: 0.75rem; }
.hero-carousel__arrow--next { right: 0.75rem; }

@media (min-width: 768px) {
  .hero-carousel__arrow { width: 52px; height: 52px; }
  .hero-carousel__arrow--prev { left: 1.5rem; }
  .hero-carousel__arrow--next { right: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel__slide {
    transition: none;
  }
  .hero-carousel__arrow {
    transition: none;
  }
}
