/* Estilos base */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

/* Encabezado */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 20px;
  background-color: white;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  max-width: 150px;
  height: auto;
}

/* Ícono menú móvil */
.menu-icon {
  display: none;
  cursor: pointer;
  width: 30px;
  position: absolute;
  right: 20px;
  top: 15px;
}

/* Barra de navegación */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #2196f3;
  padding: 10px 0;
  animation: fadeInDown 0.5s;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-links ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-links ul li {
  padding: 10px 25px;
}

.nav-links ul li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links ul li a:hover {
  color: #ffcc00;
}

/* Separadores entre items del menú */
.nav-links ul li:not(:last-child)::after {
  content: '|';
  padding-left: 10px;
  padding-right: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

/* Estilos responsive del menú */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #2196f3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links ul {
    flex-direction: column;
    margin: 0;
    padding: 0;
  }
  .nav-links ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    width: 100%;
  }
  .nav-links ul li:not(:last-child)::after {
    content: '';
  }
}

/* Sección Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #6bbef9 0%, #2196f3 100%);
  padding: 60px 20px;
  color: white;
  animation: fadeIn 1.5s;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Contenedor responsivo del video */
.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  margin-top: 20px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Sección About */
.about {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  position: relative;
  margin-bottom: 20px;
}

.about p {
  font-size: 18px;
  line-height: 1.6;
}

/* Sección Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px;
  background-color: #eef9ff;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.benefit:hover {
  transform: scale(1.03);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

/* Secciones varias */
.convenios, .pagos, .matricula, .contacto {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.convenios h2,
.pagos h2,
.matricula h2,
.contacto h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #2196f3;
  font-size: 28px;
}

.convenios p,
.pagos p,
.matricula p,
.contacto p {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
}

/* Botón WhatsApp */
.boton-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
}

.boton-whatsapp img {
  width: 35px;
  height: 35px;
}

.boton-whatsapp:hover {
  transform: scale(1.1);
}

/* Sección CTA */
.cta {
  text-align: center;
  padding: 50px 20px;
  background-color: #2196f3;
  color: white;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  margin: 40px auto;
  max-width: 800px;
}

.cta h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.cta p {
  font-size: 18px;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  background-color: #ffb703;
  color: #222;
  padding: 15px 25px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s ease-in-out;
}

.cta-button:hover {
  background-color: #ff9800;
  transform: scale(1.05);
}

/* Modal (formulario) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

/* Galería */
.galeria {
  text-align: center;
  padding: 40px;
  background-color: #f1f1f1;
}

.galeria h2 {
  margin-bottom: 20px;
  color: #2196f3;
}

.gallery-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-container img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.gallery-container img:hover {
  transform: scale(1.05);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

/* Testimonios */
.testimonios {
  text-align: center;
  padding: 40px;
  background-color: #ffffff;
}

.testimonios h2 {
  margin-bottom: 20px;
  color: #2196f3;
}

.testimonial-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
  justify-content: center;
}

.testimonial {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  width: 300px;
  flex: none;
  transition: transform 0.3s ease-in-out;
}

.testimonial:hover {
  transform: scale(1.05);
}

/* Mapa */
.mapa {
  text-align: center;
  padding: 40px;
  background-color: #f1f1f1;
}

.mapa h2 {
  font-size: 28px;
  color: #2196f3;
  margin-bottom: 10px;
}

.mapa p {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

.map-container {
  width: 90%;
  max-width: 800px;
  margin: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

/* Pie de página */
footer {
  background-color: #2196f3;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 20px;
  font-family: 'Poppins', sans-serif;
}
