:root {
    --primary-dark: #1a365d;
    --primary-darker: #0d2542;
    --accent-red: #e74c3c;
    --light-bg: #ffffff;
    --dark-bg: #0f172a;
    --card-bg-light: #ffffff;
    --card-bg-dark: #1e293b;
    --text-light: #1e293b;
    --text-dark: #f1f5f9;
    --shadow-light: 0 6px 20px rgba(0,0,0,0.08);
    --shadow-dark: 0 6px 20px rgba(0,0,0,0.3);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Open Sans', sans-serif;
    transition: background-color 0.4s, color 0.4s;
    overflow-x: hidden;
    line-height: 1.6;
  }
  
  body.light-mode {
    background-color: var(--light-bg);
    color: var(--text-light);
  }
  
  body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--text-dark);
  }
  


  /* === boton volver === */

  .btn-volver { background: #95a5a6; }
  .btn-volver:hover { background: #7f8c8c; }



  /* === Navbar === */
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
  }
  
  body.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 2px 15px rgba(0,0,0,0.4);
  }
  
  .logo img {
    height: 50px;
  }
  
  .menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  
  .menu a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    transition: color 0.3s;
  }
  
  body.dark-mode .menu a {
    color: #94a3b8;
  }
  
  .menu a:hover {
    color: var(--accent-red);
  }
  
  .menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s;
  }
  
  .menu a:hover::after {
    width: 100%;
  }
  
  /* Botón de modo oscuro dentro del menú */
  .theme-toggle-in-menu {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-size: 1.3rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
  }
  
  .theme-toggle-in-menu:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent-red);
  }
  
  body.dark-mode .theme-toggle-in-menu {
    color: #94a3b8;
  }
  
  body.dark-mode .theme-toggle-in-menu:hover {
    background: rgba(231, 76, 60, 0.2);
  }
  
  /* === Hero Section === */
  .hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('assets/principal2.png') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  
  .hero-content {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 1.5rem;
    border-radius: 20px;
    animation: fadeInUp 1s ease-out;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: background-color 0.4s ease, backdrop-filter 0.4s;
    background: transparent; /* Sin fondo por defecto */
  }
  
  /* Hover: fondo azul translúcido */
  .hero-content:hover {
    background: rgba(212, 207, 207, 0.555);
    backdrop-filter: blur(8px);
  }
  
  .hero-content:hover .academy-title {
    text-shadow: 0 4px 15px rgba(0,0,0,0.7);
  }
  
  .academy-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    transition: transform 0.3s;
  }
  
  .whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
  
  .whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  }
  
  /* === Secciones generales === */
  .section {
    padding: 5rem 5%;
  }
  
  .section h2 {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: var(--primary-dark);
    position: relative;
  }
  
  .section h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--accent-red);
    border-radius: 2px;
  }
  
  body.dark-mode .section h2 {
    color: #cbd5e1;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .two-columns {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .modern-card {
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s, box-shadow 0.3s;
    background: var(--card-bg-light);
  }
  
  body.dark-mode .modern-card {
    background: var(--card-bg-dark);
    box-shadow: var(--shadow-dark);
  }
  
  .modern-card:hover {
    transform: translateY(-5px);
  }
  
  .text-box, .about-text, .inspiration-text {
    flex: 1;
    min-width: 300px;
  }
  
  /* Imagen de la Sección 1 */
  .image-box img {
    width: 100%;
    height: 580px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    display: block;
    margin: 0 auto;
    transition: opacity 0.5s ease-in-out;
  }
  
  /* Imagen de la Sección 4 — MISMO TAMAÑO */
.slider-container img {
    width: 100%;
    height: 580px; /* ← Igual que la Sección 1 */
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    display: block;
    margin: 0 auto;
    transition: opacity 0.5s ease-in-out;
  }
 

  
  /* === Banners animados (solo texto) === */
  .banner-container {
    background: var(--accent-red);
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
  }
  
  .banner-text {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 18s linear infinite;
  }
  
  @keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }
  
  /* === Carrusel de profesores === */
  .carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 30px 70px;
  }
  
  .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  .teacher-card {
    min-width: 250px;
    margin: 0 15px;
    text-align: center;
    padding: 1.8rem 1.2rem;
  }
  
  .teacher-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.2rem;
    border: 4px solid var(--accent-red);
  }
  
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-dark);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
  }
  
  .carousel-btn:hover {
    background: var(--accent-red);
    transform: translateY(-50%) scale(1.1);
  }
  
  .carousel-btn.left { left: 15px; }
  .carousel-btn.right { right: 15px; }
  
  /* === Footer en 4 columnas === */
  .footer {
    background: var(--primary-darker);
    color: #cbd5e1;
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
  }
  
  .footer-logo {
    height: 50px;
    margin-bottom: 1rem;
  }
  
  .footer-col h4 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
  }
  
  .footer-col p, .footer-col li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
  }
  
  .footer-col ul {
    list-style: none;
    padding-left: 0;
  }
  
  .footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .footer-col a:hover {
    color: var(--accent-red);
  }
  
  .social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.8rem;
  }
  
  .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s;
  }
  
  .social-icons a:hover {
    background: var(--accent-red);
    transform: translateY(-3px);
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
  }
    /* === SOLO COLORES DEL TITULO PRINCIPAL=== */

  .academy-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #100694; /* Azul oscuro */
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(240, 208, 28, 0.5);
    letter-spacing: 1px;
    transition: transform 0.3s;
  }
  
  .red-digit {
    color: #8a1305; /* Rojo */
  }

  /* === Animaciones === */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

/* === Pestañas: contenedor envolvente === */
.tabs-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 0 1rem;
  max-width: 800px;
  width: 100%;
}

.tab-btn {
  padding: 0.8rem 2rem;
  background: #e0e7ff;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.1rem;
  min-width: 220px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.dark-mode .tab-btn {
  background: #1e3a5f;
  color: #cbd5e1;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* === Contenido de pestañas === */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Imagen rotativa */
.image-slider img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  display: block;
  margin: 0 auto;
  transition: opacity 0.5s ease-in-out;
}

.info-card {
  padding: 2rem;
}

.info-card h3 {
  color: var(--primary-dark);
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
}

body.dark-mode .info-card h3 {
  color: #94a3b8;
}

.levels-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.2rem;
}

.levels-list li {
  padding: 0.4rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.levels-list li::before {
  content: '✓';
  color: var(--accent-red);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.schedule, .pricing {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid #e2e8f0;
}

body.dark-mode .schedule,
body.dark-mode .pricing {
  border-top-color: #334155;
}

.pricing {
  background: rgba(231, 76, 60, 0.05);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--accent-red);
}

body.dark-mode .pricing {
  background: rgba(231, 76, 60, 0.1);
}

.age-groups ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .image-slider img {
    height: 450px;
  }

  .tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab-btn {
    width: 100%;
    max-width: 300px;
  }
}


/* === Contenedor general === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem; /* Asegura espacio en móviles */
}

/* === Dos columnas: equilibradas y centradas === */
.two-columns {
  display: flex;
  gap: 3rem;
  align-items: flex-start; /* Alinea al top para que no se descuadre */
  justify-content: center; /* ← ¡ESTO ES CLAVE! */
  flex-wrap: wrap;
  width: 100%;
}

/* Imagen rotativa */
.image-slider {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.image-slider img {
  width: 100%;
  max-width: 580px; /* Evita que se expanda demasiado */
  height: 580px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  transition: opacity 0.5s ease-in-out;
}

/* Tarjeta de información */
.info-card {
  flex: 1;
  min-width: 300px;
  padding: 2rem;
  max-width: 600px; /* Evita que el texto se expanda demasiado */
}

/* Responsive */
@media (max-width: 900px) {
  .two-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .info-card {
    width: 100%;
    max-width: 100%;
  }

  .image-slider img {
    height: 450px;
  }
}


/* === Sección 5: Features === */
.features-section {
  padding: 6rem 5%;
  text-align: center;
  background-color: #f8fafc; /* Fondo claro */
}

body.dark-mode .features-section {
  background-color: #0f172a; /* Fondo oscuro */
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 4rem;
  color: var(--primary-dark);
}

body.dark-mode .section-title {
  color: #cbd5e1;
}

.section-title span {
  color: var(--accent-red);
}

/* Feature individual */
.feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem; /* ← Espacio entre imagen y texto */
  margin-bottom: 5rem;
  flex-wrap: wrap;
  text-align: left;
}

.feature.reverse {
  flex-direction: row-reverse;
}

/* Imagen */
.feature-image {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  display: flex;
  justify-content: center;
}

.feature-image img {
  width: 100%;
  max-width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
}

body.dark-mode .feature-image img {
  box-shadow: var(--shadow-dark);
}

/* Texto */
.feature-text {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  padding: 1.5rem;
}

.feature-text h3 {
  font-size: 1.8rem;
  color: var(--accent-red);
  margin-bottom: 1.2rem;
}

body.dark-mode .feature-text h3 {
  color: #f87171;
}

.feature-text ul {
  list-style: none;
  padding-left: 0;
}

.feature-text li {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-light);
}

body.dark-mode .feature-text li {
  color: #cbd5e1;
}

.feature-text li::before {
  content: '✓';
  color: var(--accent-red);
  font-weight: bold;
  display: inline-block;
  width: 24px;
  margin-left: -1.2rem;
}

/* Responsive */
@media (max-width: 900px) {
  .feature {
    flex-direction: column;
    text-align: center;
  }

  .feature.reverse {
    flex-direction: column;
  }

  .feature-image,
  .feature-text {
    max-width: 100%;
  }

  .feature-image {
    margin-bottom: 1.5rem;
  }
}




.titulo-ingles {
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-align: center;
  padding: 15px 40px;
  border-radius: 18px;
  border: 3px solid var(--borde-color);
  color: var(--titulo-color);
  transition: all 0.4s ease;
  margin: 40px auto;
  width: fit-content;
  background: none; /* 🔹 Sin fondo */
  box-shadow: none;
  animation: fadeIn 1s ease-in-out forwards;
}

/* Animación suave */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🎨 Modo claro */
:root {
  --titulo-color: #002b5b; /* Azul elegante */
  --borde-color: #c62828;  /* Rojo profesional */
}

/* 🌙 Modo oscuro */
@media (prefers-color-scheme: dark) {
  :root {
    --titulo-color: #ff5252; /* Rojo brillante */
    --borde-color: #0f0ce6;  /* Azul luminoso */
  }
}

/* ✨ Hover con animación suave */
.titulo-ingles:hover {
  transform: scale(1.05);
  color: var(--borde-color);
  border-color: var(--titulo-color);
  text-shadow: 0 0 12px var(--borde-color);
}






  
  /* === Responsive === */
  @media (max-width: 768px) {
    .two-columns, .three-columns {
      flex-direction: column;
      gap: 2rem;
    }
  
    .academy-title {
      font-size: 2.6rem;
    }
  
    .image-box img {
      height: 450px;
    }
  
    .carousel-container {
      padding: 30px 50px;
    }
  
    .banner-text {
      font-size: 1.3rem;
    }
  
    .navbar {
      padding: 1rem 4%;
      flex-wrap: wrap;
    }
  
    .logo img {
      height: 45px;
    }
  
    .menu {
      gap: 1rem;
    }
  
    .hero-content {
      padding: 1.5rem;
    }
  }
  
  @media (max-width: 480px) {
    .academy-title {
      font-size: 2.2rem;
    }
  
    .section h2 {
      font-size: 1.8rem;
    }
  
    .image-box img {
      height: 380px;
    }
  }

