/* ============================================
   COHABRENACA PRO - ESTILOS PRINCIPALES
   ============================================
   
   Diseño: Minimalismo Corporativo Moderno
   Tipografía: Playfair Display (headlines) + Inter (body)
   Colores: Blanco, Negro profundo, Grises sofisticados
   
   ============================================ */

/* ============================================
   VARIABLES Y RESET
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colores */
  --color-white: #FFFFFF;
  --color-black: #1A1A1A;
  --color-dark-gray: #3A3A3A;
  --color-light-gray: #F5F5F5;
  /* Mismo gris que "Nuestras Clases" en todo el sitio */
  --color-section-bg: var(--color-light-gray);
  --color-border: #E8E8E8;
  --color-accent: #5BBAD5;

  /* Colores de cinturones */
  --color-belt-white: #F0F0F0;
  --color-belt-blue: #2563EB;
  --color-belt-purple: #9333EA;
  --color-belt-brown: #92400E;
  --color-belt-black: #000000;

  /* Tipografía */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Transiciones */
  --transition: all 0.3s ease;

  /* ============================================
     SISTEMA TIPOGRÁFICO (escala reutilizable)
     ============================================ */
  --fs-h1: clamp(2.75rem, 7vw, 4.25rem);   /* Hero / título principal */
  --fs-h2: clamp(2rem, 4vw, 2.75rem);      /* Títulos de sección */
  --fs-h3: clamp(1.35rem, 2.4vw, 1.6rem);  /* Títulos de cards / subsecciones */
  --fs-h4: clamp(1.1rem, 1.8vw, 1.2rem);   /* Encabezados menores / footer */
  --fs-body-lg: 1.125rem;                  /* Texto destacado / subtítulos */
  --fs-body: 1rem;                         /* Texto base */
  --fs-sm: 0.9rem;                         /* Texto pequeño */
  --fs-caption: 0.8rem;                    /* Captions / legales */

  --lh-tight: 1.1;      /* display grande */
  --lh-heading: 1.2;    /* títulos */
  --lh-snug: 1.35;      /* subtítulos */
  --lh-body: 1.7;       /* texto de apoyo */

  --tracking-tight: -0.02em;    /* display grande */
  --tracking-heading: -0.01em;  /* títulos */
  --tracking-wide: 0.08em;      /* labels/eyebrows en mayúsculas */

  /* ============================================
     SISTEMA DE INTERACCIÓN (microinteracciones)
     ============================================ */
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 220ms;
  --dur-slow: 300ms;
  --hover-lift: -6px;
  --hover-scale: 1.02;
  --img-zoom: 1.05;
  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 18px 40px rgba(0, 0, 0, 0.14);
  --focus-ring: 0 0 0 3px rgba(91, 186, 213, 0.55);
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-section-bg);
}

body {
  font-family: var(--font-body);
  color: var(--color-black);
  background-color: var(--color-section-bg);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0 !important;
  padding: 0 !important;
  padding-top: 72px;
}

/* ============================================
   CONTENEDOR Y LAYOUT
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ============================================
   MOBILE (CELULAR)
   ============================================ */

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* HEADER */
  .header-content {
    display: flex;
    justify-content: center;
  }
  .logo-img {
    position: static;
    transform: none;
    text-align: center;
  }
  .logo-img img {
    height: 50px;
    width: auto;
  }
  /* HERO */
  .hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
    text-align: center;
  }
  .hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  /* TÍTULO */
  .hero-title {
    font-size: 1.8rem;
  }
  /* 🔥 SUBTÍTULO (EDITA SOLO ESTO) */
  .hero-subtitle {
    max-width: 600px;
    margin: 30px auto 40px;
    text-align: center;
  }
  /* BOTONES */
  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
  }
  /* GRIDS */
  .belts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .benefits {
    grid-template-columns: 1fr;
  }
  .classes-grid {
    flex-direction: column;
  }
  .classes-grid .class-card {
    flex-basis: auto;
  }
  .contact-grid {
    margin: 0 auto 40px;
  }
  /* IMÁGENES */
  .instalaciones-img img {
    height: 250px;
  }
}

/* ============================================
   HAMBURGUESA (SOLO MOBILE)
   ============================================ */

.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin: 0;
  /* Objetivo táctil accesible (>=44px) */
  min-width: 44px;
  min-height: 44px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  /* Blanco sobre el hero (header transparente); oscuro al hacer scroll */
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.header.scrolled .hamburger span {
  background-color: var(--color-black);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Cuando el menú está abierto la "X" queda sobre el panel claro: líneas oscuras */
.hamburger.active span {
  background-color: var(--color-black);
}

/* Bloqueo de scroll del fondo mientras el menú móvil está abierto
   (se fija el body y JS preserva/restaura la posición de scroll).
   html también se bloquea: en iOS Safari el <html> puede seguir siendo
   scrollable aunque el body esté fijo, dejando "fugas" de scroll por
   detrás del menú. Bloquear ambos elementos lo evita. */
html.menu-open,
body.menu-open {
  overflow: hidden;
  height: 100%;
}
body.menu-open {
  position: fixed;
  width: 100%;
}

/* DESKTOP: hamburguesa y overlay ocultos, nav horizontal visible */
@media (min-width: 769px) {
  .hamburger,
  .menu-overlay {
    display: none !important;
  }
  .nav {
    display: flex !important;
    flex-direction: row !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    max-height: none !important;
    margin: 0 !important;
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* Estado TOP: completamente transparente, la navegación flota sobre el hero */
  background-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  padding: var(--spacing-md) 0;
  overflow: visible;
  width: 100%;
  transition:
    background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-backdrop-filter 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Estado tras dejar atrás el hero: más sólido y legible sobre contenido claro.
   Fondo ~15% más transparente que antes (0.72 -> 0.61), con blur reforzado
   para compensar y mantener la legibilidad; sombra ligeramente más suave. */
.header.scrolled {
  background-color: rgba(255, 255, 255, 0.61);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

/* Logo del header: solo mobile (ver media query más abajo). En escritorio
   la navegación ya lleva los enlaces de texto, así que se mantiene oculto. */
.header-logo {
  display: none;
}

.header .container {
  max-width: 100%;
  overflow: visible;
}

.nav {
  display: flex;
  gap: 35px;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  /* Sobre el hero el texto es blanco; cambia a oscuro al hacer scroll */
  color: var(--color-white);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  position: relative;
  transition: var(--transition);
}
.nav-link:hover {
  color: var(--color-white);
}
/* Sobre contenido claro (scrolled): texto oscuro, sin sombra */
.header.scrolled .nav-link {
  color: var(--color-black);
  text-shadow: none;
}
.header.scrolled .nav-link:hover {
  color: var(--color-dark-gray);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  /* La línea sigue el color del texto: blanca sobre el hero, negra al hacer scroll */
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.nav-link:hover::after {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  /* Estado inicial inmersivo: el hero arranca desde el borde superior,
     sin barra blanca. El header flota transparente sobre la imagen. */
  body {
    padding-top: 0;
  }

  .header {
    background-color: transparent;
    border-bottom: 1px solid transparent;
  }

  .header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end; /* hamburguesa alineada a la derecha */
    width: 100%;
    position: relative;
    /* Más aire arriba y a la derecha para que el icono (y la "X" al abrir)
       nunca queden recortados ni pegados al borde, incluso con notch/
       dynamic island. */
    padding: max(14px, calc(env(safe-area-inset-top, 0px) + 12px)) max(env(safe-area-inset-right, 0px), 18px) max(6px, env(safe-area-inset-bottom, 0px)) max(env(safe-area-inset-left, 0px), 18px);
    min-height: auto;
  }

  /* Logo (favicon) centrado en el header móvil: posicionado en absoluto
     respecto a .header (fixed, ancho completo del viewport), NO respecto
     al espacio libre del flex de .header-content. Así el centrado es
     matemático sobre el ancho del dispositivo y la hamburguesa —anclada
     aparte, a la derecha— nunca lo desplaza del centro. */
  .header-logo {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 32px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none; /* marca visual, no interactiva */
  }

  /* Botón hamburguesa visible en móvil/tablet, al extremo derecho */
  .hamburger {
    display: flex;
    position: relative;
    z-index: 120;
    margin-left: auto;
    border-radius: 50%;
    transition: background-color 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }
  /* El color de las líneas lo gobiernan las reglas base: blancas sobre el
     hero (header transparente) y oscuras al hacer scroll (.header.scrolled).
     Así el icono destaca sobre la imagen y recupera su color al aparecer. */

  /* Con el menú abierto la "X" queda sobre el glass oscuro: líneas blancas,
     y un fondo circular sutil la contiene visualmente para que nunca se
     perciba recortada, sin depender de lo que haya detrás. */
  .hamburger.active {
    background-color: rgba(255, 255, 255, 0.14);
  }
  .hamburger.active span {
    background-color: #ffffff;
  }

  /* NAV convertido en panel deslizable desde la derecha (glassmorphism) */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(80vw, 320px);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 6px;
    padding: calc(env(safe-area-inset-top, 0px) + 108px) 22px
      calc(env(safe-area-inset-bottom, 0px) + 32px);
    margin: 0;
    /* Glassmorphism oscuro y más transparente: deja ver el blur, evita el
       blanco sólido y da máximo contraste a los enlaces blancos. */
    background: rgba(16, 16, 18, 0.42);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    backdrop-filter: blur(26px) saturate(150%);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    z-index: 110;
    visibility: hidden;
    overflow-y: auto;
  }
  .nav.active {
    transform: translateX(0);
    visibility: visible;
  }

  /* Enlaces dentro del panel: blanco puro, sin divisores, limpios y con aire.
     El panel es un glass oscuro en cualquier estado del header, así que los
     enlaces se mantienen blancos siempre para máxima legibilidad. */
  .nav .nav-link {
    color: #ffffff;
    text-shadow: none;
    width: 100%;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 16px 14px;
    text-transform: uppercase;
    border-radius: 10px;
    opacity: 1;
    transform: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    display: block;
    text-align: left;
    margin: 0;
    border: none; /* sin líneas ni separadores entre opciones */
  }
  /* El enlace de la sección actual conserva el color institucional, con alto
     contraste sobre el glass oscuro. */
  .nav .nav-link[href="#tipos-clases"] {
    color: var(--color-accent);
    text-shadow: none;
  }

  .logo-img {
    display: none;
  }
  .logo-img img {
    height: 60px;
  }

  .nav-link::after {
    display: none;
  }

  .nav .nav-link:hover,
  .nav .nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.1);
  }

  /* Overlay/scrim: cierra al tocar fuera y oscurece el fondo.
     z-index por debajo de .header (100): el header crea su propio contexto
     de apilamiento, así que un z-index mayor aquí (ej. 105) pintaba el
     overlay ENCIMA de todo el header —incluido el panel del menú— y
     capturaba los taps de los enlaces antes de que llegaran a ellos. */
  .menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(0, 0, 0, 0.32);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.3s;
  }
  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* ============================================
   HERO SECTION (PRO + ESTABLE)
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center; 
  padding: 0;
  margin: 0;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../images/instalaciones1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: var(--color-white);

  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFade 1s ease forwards;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--spacing-lg);
  white-space: nowrap;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
}

/* =========================
   ABOUT PRO (IMAGEN DE FONDO REAL)
========================= */

.about {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: stretch;
}

.about-item {
  position: relative;
  border-radius: 10px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.about-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  position: relative;
  z-index: 1;
  transition: transform var(--dur-slow) var(--ease-premium),
    filter var(--dur-slow) var(--ease-premium);
}

.about-item:hover img {
  transform: scale(var(--img-zoom));
  filter: brightness(0.9);
}

.about-box {
  background: white;
  padding: 30px;
  width: 85%;
  position: relative;
  margin: -60px auto 0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-align: center;
  z-index: 5;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.about-box h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-heading);
  margin-bottom: 10px;
}

.about-box p {
  color: var(--color-dark-gray);
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.6;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-box ul {
  list-style: none;
  padding: 0;
}

.about-box li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .about-item img {
    height: 180px;
  }
  .about-box {
    width: 90%;
    margin: -35px auto 0;
    padding: 20px 15px;
  }
  .about-box h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .about-box p {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }
  .about-box li {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
}

/* ============================================
   HISTORIA
   ============================================ */

.historia {
  padding: 100px 0;
}

.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

/* TEXTO */
.historia-text h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  margin-bottom: 20px;
}
.historia-text p {
  color: var(--color-dark-gray);
  line-height: 1.8;
  margin-bottom: 15px;
}

/* IMAGEN */
.historia-img {
  display: flex;
  justify-content: center;
}
.historia-img img {
  width: 100%;
  max-width: 500px;
  opacity: 0.95;
  transition: transform var(--dur-slow) var(--ease-premium),
    opacity var(--dur-slow) var(--ease-premium);
}
.historia-img img:hover {
  transform: scale(var(--img-zoom));
  opacity: 1;
}

/* ANIMACIÓN ENTRADA */
.historia-text,
.historia-img {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease forwards;
}

.historia-img {
  animation-delay: 0.2s;
}

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

@media (max-width: 768px) {
  .historia-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .historia-img img {
    width: 60%;
  }
}

/* ============================================
   SISTEMA - CINTURÓN ÚNICO
   ============================================ */

.belt-single {
  margin: 50px 0 70px;
  display: flex;
  justify-content: center;
}
.belt-single img {
  width: 100%;
  max-width: 500px;
  height: 100px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  transition: transform 0.4s ease;
}
.belt-single img:hover {
  transform: scale(1.03);
}

/* ============================================
   BOTONES BASE (ESTRUCTURA)
   ============================================ */

.btn {
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease-premium),
    box-shadow var(--dur) var(--ease-premium),
    background-color var(--dur) var(--ease-premium),
    background var(--dur) var(--ease-premium),
    filter var(--dur) var(--ease-premium);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}

.cta-center .btn-primary {
  background: transparent;
  color: #111;
  border: none;
  box-shadow: none;
  border-radius: 6px;
}
.cta-center .btn-primary:hover {
  background: rgba(0,0,0,0.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #111, #333);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.btn-secondary {
  background: #111;
  color: #fff;
}
.btn-secondary:hover {
  background: #333;
  transform: translateY(-2px);
}

.btn-transparent {
  background: transparent;
  color: #111;
  border: 2px solid rgba(0,0,0,0.2);
  box-shadow: none;
}
.btn-transparent:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.hero .btn {
  background: transparent;
  color: white;
  border: none;
  box-shadow: none;
  letter-spacing: 1px;
  font-weight: 500;
  border-radius: 0;
  padding: 12px 26px;
  transition: all 0.25s ease;
}
.hero .btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
.hero .btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

@media (max-width: 640px) {
  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    width: 100%;
  }
  .hero-buttons {
    flex-direction: column;
  }
}

/* ============================================
   SECCIONES GENERALES (SCROLL PRO LIMPIO)
   ============================================ */

section {
  padding: var(--spacing-2xl) 0;
  scroll-margin-top: 120px;
}

#tipos-clases {
  scroll-margin-top: 100px;
}
#contacto {
  scroll-margin-top: 100px;
}
#sistema {
  scroll-margin-top: 100px;
}

/* ============================================
   HEADER SECCIONES
   ============================================ */

.section-header {
  margin-bottom: var(--spacing-2xl);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-heading);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  letter-spacing: var(--tracking-heading);
}
#tipos-clases .section-title {
  color: var(--color-accent);
}
.nav-link[href="#tipos-clases"] {
  color: var(--color-accent);
}
.section-subtitle {
  font-size: var(--fs-body-lg);
  color: var(--color-dark-gray);
  max-width: 620px;
  line-height: var(--lh-body);
  font-weight: 400;
  margin: 14px auto 0;
  text-align: center;
}

/* ============================================
   MOBILE FIX SCROLL
   ============================================ */

@media (max-width: 768px) {
  section {
    padding: 80px 0;
    scroll-margin-top: 120px;
  }
  #contacto {
    scroll-margin-top: 100px;
  }
}

/* ============================================
   SISTEMA DE CINTURONES
   ============================================ */

.belts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.belt-card {
  text-align: center;
}
.belt-color {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  margin-bottom: var(--spacing-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}
.belt-card:hover .belt-color {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.belt-white {
}
.belt-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}
.belt-description {
  font-size: 0.875rem;
  color: var(--color-dark-gray);
}
.belt-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.4s ease;
}
.belt-card:hover .belt-img {
  transform: scale(1.15);
}

/* ============================================
   BENEFICIOS (SIN ANIMACIÓN)
   ============================================ */

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-top: var(--spacing-2xl);
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  align-items: stretch;
}
.benefit-item {
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--dur) var(--ease-premium),
    box-shadow var(--dur) var(--ease-premium),
    border-color var(--dur) var(--ease-premium);
}
.benefit-item:hover {
  transform: translateY(var(--hover-lift));
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0,0,0,0.15);
}
.benefit-item h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-heading);
  margin-bottom: 10px;
}
.benefit-item p {
  color: var(--color-dark-gray);
  line-height: 1.8;
  font-weight: 300;
  font-size: 1rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   🧪 TEST CINTURONES PRO (VERSION FINAL PRO)
   ============================================ */

.belt-animation {
  position: relative;
  width: 100%;
  min-height: 280px;
  padding: 60px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  margin: 60px 0;
  background: transparent;
  transition: min-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), padding 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.belt-animation:hover,
.belt-animation.is-active {
  min-height: 420px;
  padding: 80px 0;
}
.belt-final {
  position: absolute;
  width: 800px;
  height: 550px;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
  background: transparent;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
}
.belt-lines {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  background: transparent;
  width: 100%;
  height: auto;
  gap: 12px;
}
.belt-piece {
  width: min(90%, 580px);
  height: 52px;

  border-radius: 10px; /* 🔥 más natural */

  object-fit: cover;
  object-position: center;

  transform: translateY(0) scaleX(1);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);

  flex-shrink: 0;


  display: block;
}
/* DESPLIEGUE DE CINTURONES */
.belt-animation:hover .belt-final,
.belt-animation.is-active .belt-final {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.75);
}
.belt-animation:hover .belt-lines,
.belt-animation.is-active .belt-lines {
  opacity: 1;
}
.belt-animation:hover .belt-white,
.belt-animation.is-active .belt-white {
  transform: translateY(-28px) scaleX(1.08);
}
.belt-animation:hover .belt-blue,
.belt-animation.is-active .belt-blue {
  transform: translateY(-14px) scaleX(1.06);
}
.belt-animation:hover .belt-purple,
.belt-animation.is-active .belt-purple {
  transform: translateY(0px) scaleX(1.04);
}
.belt-animation:hover .belt-brown,
.belt-animation.is-active .belt-brown {
  transform: translateY(14px) scaleX(1.06);
}
.belt-animation:hover .belt-black,
.belt-animation.is-active .belt-black {
  transform: translateY(28px) scaleX(1.08);
}

/* ============================================
   CLASES
   ============================================ */

.clases {
  background-color: var(--color-section-bg);
}
.classes-grid {
  /* Flexbox con wrap: la última fila incompleta se centra automáticamente
     (5 cards -> 3 arriba + 2 centradas), manteniendo el mismo gap. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  overflow: visible;
  margin-bottom: var(--spacing-2xl);
  align-items: stretch;
}
.class-card {
  /* 3 por fila descontando los 2 gaps de 40px */
  flex: 0 1 calc((100% - 80px) / 3);
  background-color: var(--color-white);
  padding: var(--spacing-xl);
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  text-align: center;
  transition: transform var(--dur) var(--ease-premium),
    box-shadow var(--dur) var(--ease-premium),
    border-color var(--dur) var(--ease-premium);
  display: flex;
  flex-direction: column;
  height: auto;
}
.class-card:hover {
  transform: translateY(var(--hover-lift)) scale(var(--hover-scale));
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-dark-gray);
  z-index: 10;
}
.class-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-heading);
  margin-bottom: var(--spacing-lg);
}
.class-card p {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark-gray);
  font-size: 0.95rem;
}
.class-info p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-dark-gray);
  font-size: 0.95rem;
}
.cta-center {
  text-align: center;
  margin-top: var(--spacing-2xl);
}

/* ============================================
   EQUIPO / INSTRUCTORES (FIX PRO)
   ============================================ */

.equipo {
  background-color: var(--color-section-bg);
}
.instructor-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}
.instructor-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  transition: transform var(--dur-slow) var(--ease-premium),
    box-shadow var(--dur-slow) var(--ease-premium);
}
.instructor-image img:hover {
  transform: scale(var(--img-zoom));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.instructor-image {
  overflow: hidden;
  border-radius: 0.5rem;
}
.instructor-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  margin-bottom: var(--spacing-sm);
}
.instructor-title {
  font-size: var(--fs-body-lg);
  color: var(--color-accent);
  margin-bottom: var(--spacing-lg);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.instructor-bio {
  color: var(--color-dark-gray);
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
}
.instructor-specialties {
  margin-top: var(--spacing-lg);
}
.instructor-specialties p {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}
.instructor-specialties ul {
  list-style: none;
  padding-left: 0;
}
.instructor-specialties li {
  padding-left: var(--spacing-lg);
  position: relative;
  margin-bottom: var(--spacing-sm);
  color: var(--color-dark-gray);
  font-weight: 300;
}
.instructor-specialties li::before {
  content: '•';
  position: absolute;
  left: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .instructor-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    max-width: 100%;
  }
  .instructor-image {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0.5rem;
  }
  .instructor-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }
  .instructor-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  }
  .instructor-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  .instructor-title {
    font-size: 0.95rem;
    color: var(--color-dark-gray);
    margin-bottom: 1.25rem;
    font-weight: 400;
  }
  .instructor-bio {
    color: var(--color-dark-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 300;
    font-size: 0.9rem;
    max-width: 100%;
  }
  .instructor-specialties {
    margin-top: 1rem;
    width: 100%;
    padding: 0 1rem;
  }
  .instructor-specialties p {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }
  .instructor-specialties ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .instructor-specialties li {
    padding-left: 0;
    margin-bottom: 0.5rem;
    color: var(--color-dark-gray);
    font-weight: 300;
    font-size: 0.9rem;
    text-align: center;
    position: relative;
  }
  .instructor-specialties li::before {
    content: '✓';
    position: relative;
    left: 0;
    margin-right: 0.5rem;
    color: var(--color-accent);
    font-weight: 600;
  }
}

/* ============================================
   ANIMACIÓN REVEAL (CONTROLADA)
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   INSTALACIONES (FIX PRO)
   ============================================ */

.instalaciones {
  background-color: var(--color-section-bg);
}
.instalaciones-img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.instalaciones-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-premium);
}
.instalaciones-img:hover img {
  transform: scale(var(--img-zoom));
}
.instalaciones-description {
  max-width: 700px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-dark-gray);
}

/* ============================================
   BOTÓN FLOTANTE (GLASS / TRANSPARENTE)
   ============================================ */

.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  padding: 0.9rem 1.6rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}
.floating-cta:hover {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
  .floating-cta {
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* ============================================
   RESPONSIVE DESIGN (ORDENADO)
   ============================================ */

@media (max-width: 768px) {
  :root {
    --spacing-xl: 1.75rem;
    --spacing-2xl: 2.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-lg: 1.5rem;
    --spacing-xl: 1.5rem;
    --spacing-2xl: 2rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* ============================================
   ANIMACIONES (CONTROLADAS)
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ============================================
   HORARIO (PRO FIXED)
   ============================================ */

.schedule {
  overflow-x: auto;
  margin-top: 40px;
}
.schedule table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: center;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.schedule th {
  background: #0d0d0d;
  color: white;
  padding: 16px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.schedule td {
  padding: 18px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}
.schedule tr:last-child td {
  border-bottom: none;
}
.schedule td:first-child {
  font-weight: 700;
  background: #fafafa;
  color: #111;
  border-right: 1px solid #eee;
}
.schedule thead tr th:first-child {
  border-top-left-radius: 12px;
}
.schedule thead tr th:last-child {
  border-top-right-radius: 12px;
}

/* Cabeceras: nombre completo en escritorio, abreviado en móvil */
.schedule .day-abbr {
  display: none;
}
.cta-merch {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.btn-merch {
  background: transparent;
  color: #111;
  border: none;
  border-radius: 6px;
  padding: 12px 22px;
  box-shadow: none;
  transition: all 0.25s ease;
}
.btn-merch:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ============================================
   HEADER FIX FINAL
   ============================================ */

.header {
  padding: 20px 0;
}


/* ============================================
   MOBILE OPTIMIZATION PRO (CONSOLIDATED)
   ============================================ */

@media (max-width: 768px) {
  /* CONTAINER */
  .container {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  body {
    padding-top: 0 !important;
  }

  /* HERO */
  .hero {
    height: auto;
    padding: 50px 0;
    display: flex;
    justify-content: center;
    text-align: center;
  }
  .hero .container {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .hero-content {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-title {
    font-size: 1.6rem;
    white-space: normal;
    max-width: min(100%, 22rem);
    padding: 0 0.5rem;
    line-height: 1.2;
  }
  .hero-subtitle {
    max-width: 500px;
    margin: 20px auto;
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-buttons .btn {
    width: 100%;
  }

  /* SECTIONS */
  section {
    padding: 50px 0;
    scroll-margin-top: 88px;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
  }
  .left-space {
    display: none;
  }

  /* HISTORIA */
  .historia {
    padding: 50px 0;
  }
  .historia-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .historia-img img {
    width: 60%;
  }
  .historia-text h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  /* ABOUT */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: stretch;
  }
  .about-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 100%;
  }
  .about-item:nth-child(2n+1):nth-last-child(1) {
    grid-column: 1 / -1;
    max-width: 100%;
    margin: 0 auto;
  }
  .about-item img {
    height: 220px;
    border-radius: 10px;
  }
  .about-box {
    width: 100%;
    margin: -45px auto 0;
    padding: 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    gap: 8px;
  }
  .about-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
  }
  .about-box p {
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
  }
  .about-box li {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  /* BELTS & SISTEMA */
  .belts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .belt-img {
    width: 120px;
    height: 120px;
  }
  .belt-animation {
    width: 100%;
    min-height: 150px;
    padding: 40px 0;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: min-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), padding 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .belt-animation:hover,
  .belt-animation.is-active {
    min-height: 280px;
    padding: 60px 0;
  }
  .belt-final {
    position: absolute;
    width: 90vw;
    max-width: 360px;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
  }
  .belt-piece {
    width: 100% !important;
    max-width: 320px !important;
    height: 24px !important;
    border-radius: 12px;
  }
  .belt-lines {
    width: 100%;
    gap: 8px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .benefits {
    grid-template-columns: 1fr;
    gap: 24px;
    border-top: none;
    align-items: stretch;
  }
  .benefit-item {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .benefit-item h3 {
    margin-bottom: 10px;
  }
  .benefit-item p {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* CLASES */
  .classes-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
  }
  .class-card {
    display: flex;
    flex-direction: column;
    height: auto;
    width: 100%;
    padding: 24px 20px;
  }
  .class-card h3 {
    margin-bottom: 14px;
    font-size: 1.3rem;
  }
  .class-card p {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 60px;
  }
  .class-card:nth-child(2n+1):nth-last-child(1) {
    grid-column: 1 / -1;
    max-width: 100%;
    margin: 0 auto;
  }

  /* HORARIO */
  .schedule {
    margin-left: 0;
    margin-right: 0;
    overflow-x: hidden;
  }
  .schedule .day-full {
    display: none;
  }
  .schedule .day-abbr {
    display: inline;
  }
  .schedule table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: clamp(8px, 2.1vw, 11px);
  }
  .schedule th,
  .schedule td {
    padding: 5px 3px;
    line-height: 1.2;
    word-break: break-word;
    hyphens: auto;
    vertical-align: middle;
  }
  .schedule th {
    display: table-cell;
    padding: 8px 2px;
    font-size: 0.95em;
    letter-spacing: 0.02em;
    text-transform: none;
  }
  .schedule td {
    display: table-cell;
    font-size: 1em;
  }
  .schedule thead {
    display: table-header-group;
  }
  .schedule tr {
    display: table-row;
  }
  .schedule td:first-child {
    width: 19%;
    font-weight: 700;
    background: #fafafa;
    border-right: 1px solid #eee;
    white-space: normal;
  }

  /* VESTUARIO */
  .vestuario-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
  }

  .vestuario-row {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    gap: 16px !important;
    align-items: stretch;
    justify-content: flex-start;
    text-align: center;
  }

  .vestuario-row.reveal {
    transform: translateY(40px);
  }

  .vestuario-row.reveal.active {
    transform: translateY(0);
  }

  .vestuario-row.reverse {
    flex-direction: column !important;
  }

  .vestuario-row.reverse .vestuario-img {
    order: 1 !important;
  }

  .vestuario-row.reverse .vestuario-text {
    order: 2 !important;
  }

  .vestuario-row .vestuario-img {
    order: 1 !important;
    width: 100% !important;
  }

  .vestuario-row .vestuario-text {
    order: 2 !important;
    width: 100% !important;
  }

  .vestuario-img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
  }

  .vestuario-img img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  .vestuario-text {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px 16px;
    background: var(--color-white);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    text-align: center;
  }

  .vestuario-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
  }

  .vestuario-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-dark-gray);
    margin: 0;
  }

  /* IMÁGENES */
  .instalaciones-img img {
    height: 220px;
  }

  /* CONTACTO */
  .contact-item {
    display: flex;
    flex-direction: column;
    height: auto;
    width: 100%;
    padding: 20px 16px;
    text-align: center;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .contact-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }
  .contact-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.9;
    flex-shrink: 0;
  }
  .contact-item h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 700;
    flex-shrink: 0;
  }
  .contact-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark-gray);
  }
  .contact-map iframe {
    height: 320px;
  }
  .contact-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 24px;
    margin-bottom: 32px;
  }
  .contact-buttons .btn {
    width: 100%;
    max-width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  /* BOTONES */
  .btn,
  .hero .btn,
  button.floating-cta {
    touch-action: manipulation;
    min-height: 44px;
    padding: 0.65rem 1.4rem;
    font-size: 0.875rem;
  }
  .btn {
    width: 100%;
  }

  /* FOOTER */
  .footer-content {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  }

  /* Ocultar sección Enlaces en mobile */
  .footer-section:nth-child(2) {
    display: none !important;
  }

  .footer-brand {
    width: 100%;
  }

  .footer-brand h4 {
    font-size: 1.25rem;
  }

  .footer-brand p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
  }

  .footer-section {
    width: 100%;
  }

  .footer-section h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .footer-social {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
    font-size: 16px;
    transition: all 0.25s ease;
  }

  /* Colores activos en mobile para redes sociales */
  .footer-social a:nth-child(1) {
    background: #E1306C;
    color: #fff;
    border: none;
  }

  .footer-social a:nth-child(2) {
    background: #1877F2;
    color: #fff;
    border: none;
  }

  .footer-social a:nth-child(3) {
    background: #25D366;
    color: #fff;
    border: none;
  }

  .footer-bottom {
    grid-column: unset !important;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.75rem;
  }

  /* FLOATING CTA */
  .floating-cta {
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* ============================================
   CONTACTO (CARDS PRO COMO CLASES)
   ============================================ */

.contacto {
  background-color: var(--color-section-bg);
  text-align: center;
  padding: 60px 0;
  padding-bottom: 20px !important;
  padding-bottom: 0 !important;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 40px;
  align-items: stretch;
}

/* DESKTOP: 3 columnas */
@media (min-width: 769px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
  }

  /* FOOTER SIMPLIFICADO EN DESKTOP (IGUAL QUE MOBILE) */
  .footer-content {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    gap: 1.5rem !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Ocultar sección Enlaces en desktop también */
  .footer-section:nth-child(2) {
    display: none !important;
  }

  .footer-brand {
    width: 100%;
  }

  .footer-brand h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .footer-brand p {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    max-width: none;
  }

  .footer-section {
    width: 100%;
  }

  .footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0;
  }

  .footer-section:not(.footer-brand) h4::after {
    display: none;
  }

  .footer-social {
    display: flex !important;
    flex-direction: row !important;
    gap: 14px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-top: 0.5rem;
  }

  .footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none !important;
    background: var(--color-light-gray) !important;
    color: var(--color-dark-gray) !important;
  }

  /* Colores en hover para cada red social en desktop */
  .footer-social a:nth-child(1):hover {
    background: #E1306C !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.3);
  }

  .footer-social a:nth-child(2):hover {
    background: #1877F2 !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
  }

  .footer-social a:nth-child(3):hover {
    background: #25D366 !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  }

  .footer-bottom {
    grid-column: unset !important;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    width: 100%;
  }
}
.contact-item {
  text-align: center;
  background: var(--color-white);
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: transform var(--dur) var(--ease-premium),
    box-shadow var(--dur) var(--ease-premium);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.contact-item:hover {
  transform: translateY(var(--hover-lift)) scale(var(--hover-scale));
  box-shadow: var(--shadow-card-hover);
}
.contact-icon {
  font-size: 2rem;
  margin-bottom: 15px;
  opacity: 0.85;
  flex-shrink: 0;
}
.contact-item h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-heading);
  margin-bottom: 10px;
  flex-shrink: 0;
}
.contact-item p {
  color: var(--color-dark-gray);
  font-size: 1rem;
  line-height: 1.6;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-map {
  width: 100%;
  max-width: 1100px;
  margin: 30px auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.contact-map iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}
.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 3rem;
  margin-bottom: 4rem;
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}
.contact-buttons .btn {
  border-radius: 8px;
  padding: 14px 28px;
}


/* ============================================
   VESTUARIO PRO (FIX FINAL INTERCALADO + CARD + ANIMACIÓN)
   ============================================ */

.vestuario {
  background-color: var(--color-section-bg);
}
.vestuario-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 50px;
}
.vestuario-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  transition: all 0.8s ease;
}
.vestuario-row.reverse .vestuario-img {
  order: 2;
}
.vestuario-row.reverse .vestuario-text {
  order: 1;
  margin-left: auto;
}
.vestuario-row.reveal {
  opacity: 0;
  transform: translateX(-60px);
}
.vestuario-row.reveal.active {
  opacity: 1;
  transform: translateX(0);
}
.vestuario-row.reverse.reveal {
  transform: translateX(60px);
}
.vestuario-row.reverse.reveal.active {
  transform: translateX(0);
}
.vestuario-img {
  display: flex;
  justify-content: center;
}
.vestuario-img img {
  width: 100%;
  max-width: 380px;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.vestuario-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 45px rgba(0,0,0,0.2);
}
.vestuario-text {
  max-width: 420px;
  background: var(--color-white);
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vestuario-text:hover {
  transform: scale(1.04);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.vestuario-text h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-heading);
  margin-bottom: 15px;
}
.vestuario-text p {
  color: var(--color-dark-gray);
  line-height: var(--lh-body);
  font-size: var(--fs-body);
}
.vestuario-row.reverse .vestuario-text {
  margin-left: auto;
}

/* ============================================
   FIX FINAL ESPACIO
   ============================================ */

section {
  padding: 80px 0;
  scroll-margin-top: 120px;
}

section:last-of-type {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
html, body {
  overflow-x: hidden;
}

/* ============================================
   FOOTER — MARCO PROFESIONAL
   ============================================ */

.footer {
  background: var(--color-section-bg);
  color: var(--color-black);
  padding: 3.5rem 0 2.75rem;
  border-top: 1px solid rgba(26, 26, 26, 0.06);
}
.footer .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-frame {
  position: relative;
  background: var(--color-white);
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: 14px;
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 12px 40px rgba(0, 0, 0, 0.07),
    0 4px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  text-align: center;
}

.footer-section h4 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-heading);
  margin-bottom: 1rem;
  color: var(--color-black);
  position: relative;
  padding-bottom: 0.65rem;
}
.footer-brand h4 {
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding-bottom: 0;
  margin-bottom: 0.5rem;
}
.footer-brand p {
  max-width: 260px;
  margin: 0.35rem auto 0;
  line-height: 1.65;
}
.footer-logo {
  display: block;
  width: 160px;
  max-width: 60%;
  height: auto; /* respeta la relación de aspecto original */
  margin: 1.25rem auto 0; /* espacio bajo el texto + centrado */
}
.footer-section:not(.footer-brand) h4::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 2.25rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.footer-section p,
.footer-section li,
.footer-section a {
  color: var(--color-dark-gray);
  font-size: 0.92rem;
  line-height: 1.65;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-section ul {
  list-style: none;
  padding: 0;
}
.footer-section li {
  margin-bottom: 0.55rem;
}
.footer-section a {
  display: inline-block;
  border-bottom: 1px solid transparent;
}
.footer-section a:hover {
  color: var(--color-black);
  border-bottom-color: rgba(26, 26, 26, 0.25);
}

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--color-dark-gray);
  opacity: 0.92;
}

/* =========================
   REDES FOOTER
   ========================= */

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-light-gray);
  border: 1px solid rgba(26, 26, 26, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-black);
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    color 0.25s ease, border-color 0.25s ease;
}
.footer-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  background: var(--color-white);
  border-color: rgba(26, 26, 26, 0.1);
}
.footer-social a:nth-child(1):hover {
  background: #E1306C;
  color: #fff;
  border-color: transparent;
}
.footer-social a:nth-child(2):hover {
  background: #1877F2;
  color: #fff;
  border-color: transparent;
}
.footer-social a:nth-child(3):hover {
  background: #25D366;
  color: #fff;
  border-color: transparent;
}

/* ============================================
   MICROINTERACCIONES GLOBALES (SISTEMA UNIFICADO)
   Mismo lenguaje: transform/opacity, 180-300ms, curva premium.
   ============================================ */

/* Feedback sutil de fila en la tabla de horario */
.schedule tbody tr {
  transition: background-color var(--dur) var(--ease-premium);
}
.schedule tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.025);
}

/* Micro-lift consistente en el icono social ya coloreado */
.footer-social a {
  transition: transform var(--dur) var(--ease-premium),
    box-shadow var(--dur) var(--ease-premium),
    background var(--dur) var(--ease-premium),
    color var(--dur) var(--ease-premium),
    border-color var(--dur) var(--ease-premium);
}

/* Enlaces del footer: color + suavidad consistente */
.footer-section a {
  transition: color var(--dur) var(--ease-premium),
    border-color var(--dur) var(--ease-premium);
}

/* Botón flotante: mismo timing del sistema */
.floating-cta {
  transition: transform var(--dur) var(--ease-premium),
    box-shadow var(--dur) var(--ease-premium),
    background var(--dur) var(--ease-premium);
}

/* Accesibilidad: anillo de foco visible y consistente para teclado */
a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.btn:focus-visible,
.floating-cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-content {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============================================================================
   MOBILE-FIRST REDESIGN 2.0  ·  solo móvil (<= 768px)
   ----------------------------------------------------------------------------
   Reorganiza cada sección pensada para teléfono: ritmo vertical más compacto,
   composiciones alternadas (cards horizontales, grillas de 2 columnas,
   imágenes a ancho completo y filas con icono) para dar dinamismo y reducir la
   sensación de página larga. No cambia identidad, colores, tipografías ni
   contenido, y no afecta el escritorio (todo vive dentro del media query).
   ============================================================================ */
@media (max-width: 768px) {
  /* ---- Ritmo vertical general: más compacto, sin zonas muertas ---------- */
  section {
    padding: 44px 0;
    scroll-margin-top: 84px;
  }
  /* Secciones con padding propio (mayor) heredado del escritorio: se igualan
     al ritmo móvil para eliminar las grandes zonas en blanco. */
  .about {
    padding: 44px 0;
  }
  .historia {
    padding: 44px 0;
  }
  .contacto {
    padding: 40px 0 0;
  }
  .section-header {
    margin-bottom: 24px;
  }
  .section-title {
    font-size: 1.55rem;
    margin-bottom: 14px;
  }
  .section-subtitle {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-top: 10px;
  }

  /* ---- HERO: contenido hacia el tercio inferior, botones tipo píldora --- */
  .hero {
    align-items: flex-end;
  }
  /* Scrim en degradado (transparente arriba -> oscuro abajo) para máxima
     legibilidad del título y los botones sobre la parte inferior de la imagen,
     técnica clásica de héroes premium (Apple/Airbnb). */
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.28) 45%,
      rgba(0, 0, 0, 0.72) 100%
    );
  }
  .hero .container {
    padding-bottom: 11vh;
  }
  .hero-content {
    gap: 4px;
    width: 100%;
  }
  .hero-title {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 22px;
    max-width: 18rem;
  }
  .hero-buttons {
    width: 100%;
    max-width: 360px;
    gap: 12px;
  }
  /* Botones glass tipo píldora: accesibles y táctiles sobre la imagen. */
  .hero .btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 14px 26px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  /* CTA principal (primer botón) sólido para destacar la acción clave. */
  .hero .hero-buttons .btn:first-child {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
  }

  /* ---- HISTORIA: bloque centrado, más aire controlado ------------------- */
  .historia-grid {
    gap: 22px;
  }
  .historia-img {
    order: -1; /* logo primero: refuerzo de marca antes del texto */
  }
  .historia-img img {
    width: 42%;
    max-width: 200px;
  }
  .historia-text p {
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 12px;
  }

  /* ---- ABOUT: cards HORIZONTALES (miniatura + texto) para dar ritmo ----- */
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .about-item {
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    height: auto;
  }
  .about-item img {
    width: 40%;
    max-width: 150px;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    border-radius: 0;
    flex-shrink: 0;
  }
  .about-box {
    width: 60%;
    margin: 0;
    padding: 14px 16px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    text-align: left;
    justify-content: center;
    gap: 6px;
  }
  .about-box h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  .about-box p {
    display: block;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 8px;
  }
  .about-box ul {
    text-align: left;
  }
  .about-box li {
    font-size: 0.78rem;
    margin-bottom: 4px;
    color: var(--color-dark-gray);
  }

  /* ---- SISTEMA · BENEFICIOS: tarjetas apiladas con acento (estilo Stripe) */
  .benefits {
    gap: 12px;
    padding-top: 32px;
  }
  .benefit-item {
    padding: 18px 18px 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-left: 3px solid var(--color-accent);
    text-align: left;
  }
  .benefit-item h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }
  .benefit-item p {
    display: block;
    text-align: left;
    line-height: 1.55;
    font-size: 0.9rem;
  }

  /* ---- CLASES: grilla de 2 columnas compactas (menos scroll) ------------ */
  .classes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 34px;
  }
  .class-card {
    width: auto;
    padding: 18px 14px;
    border-radius: 14px;
  }
  .class-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }
  .class-card p {
    display: block;
    min-height: 0;
    font-size: 0.82rem;
    line-height: 1.45;
  }
  /* La 5ª card (impar y última) ocupa el ancho completo y se centra */
  .class-card:nth-child(odd):last-child {
    grid-column: 1 / -1;
  }

  /* ---- VESTUARIO: media a ancho completo con pie de texto --------------- */
  .vestuario-grid {
    gap: 26px;
  }
  .vestuario-row {
    gap: 10px !important;
  }
  .vestuario-img img {
    border-radius: 16px;
  }
  .vestuario-text {
    padding: 16px 18px;
    border: none;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  }
  .vestuario-text h3 {
    font-size: 1.3rem;
  }
  .vestuario-text p {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  /* ---- EQUIPO: retrato más contenido, texto compacto ------------------- */
  .equipo .instructor-content {
    gap: 1.5rem;
  }
  .instructor-image {
    max-width: 220px;
  }
  .instructor-image img {
    height: 240px;
    border-radius: 16px;
  }

  /* ---- INSTALACIONES: imagen a ancho completo, descripción breve ------- */
  .instalaciones-img {
    border-radius: 16px;
  }
  .instalaciones-img img {
    height: 200px;
  }
  .instalaciones-description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 20px;
  }

  /* ---- CONTACTO: filas horizontales con icono (lista tipo app) --------- */
  .contact-grid {
    gap: 10px;
    margin-bottom: 26px;
  }
  .contact-item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: center;
    text-align: left;
    padding: 14px 16px;
    border-radius: 14px;
  }
  .contact-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    margin: 0;
    font-size: 1.7rem;
  }
  .contact-item h3 {
    grid-column: 2;
    margin: 0 0 2px;
    font-size: 1rem;
  }
  .contact-item p {
    grid-column: 2;
    display: block;
    text-align: left;
    justify-content: flex-start;
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .contact-map iframe {
    height: 240px;
    border-radius: 16px;
  }
}

/* Teléfonos pequeños: ajustes finos de tipografía y ancho de cards --------- */
@media (max-width: 400px) {
  .about-item img {
    width: 38%;
  }
  .about-box {
    padding: 12px 13px;
  }
  .about-box li {
    font-size: 0.74rem;
  }
  .class-card p {
    font-size: 0.8rem;
  }
  .hero-title {
    font-size: 1.8rem;
  }
}

