/* ESTILOS BASE */
* {
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}



.logo img {
  height: 70px;
  max-height: 70px;
  width: auto;
  object-fit: contain;
}

body {
  background-color: #ffffff;
  color: #333;
}



/* REGLA GLOBAL */
*,
*::before,
*::after {
  box-sizing: border-box; /* importante para que padding/margin no rompan el ancho */
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* fuerza que no haya scroll horizontal */
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; /* 100% del viewport */
  max-width: 100vw; /* evita que se salga */
  z-index: 1000;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow-x: hidden; /* por si acaso */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem; /* relleno interno sin romper el ancho */
  width: 100%;
  max-width: 100%; 
}

nav ul {
  display: flex;
  flex-wrap: wrap; /* evita que se salga en pantallas grandes */
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

nav ul li button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: #c10000;
  font-weight: bold;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

nav ul li button:hover {
  color: #900000;
}





.mobile-header {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-bottom: 2px solid #ccc;
    padding: 0.5rem 1rem;
  max-width: 100vw; /* asegura que no se pase del ancho de la pantalla */
}

.mobile-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-header .logo {
  font-weight: bold;
  color: #c10000;
}

.menu-toggle {
  font-size: 28px;
  cursor: pointer;
  color: #c10000;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: #fff;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav ul li {
  border-top: 1px solid #ddd;
}

.mobile-nav ul li button {
  width: 100%;
  padding: 12px;
  background-color: transparent;
  border: none;
  text-align: left;
  font-weight: bold;
  color: #c10000;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.mobile-nav ul li button:hover {
  background-color: #f0f0f0;
}
.mobile-nav ul li a {
  display: block;
  padding: 12px;
  text-decoration: none;
  color: #c10000;
  font-weight: bold;
  transition: background-color 0.3s;
}


.mobile-nav ul li a:hover {
  background-color: #f0f0f0;
}

@media (min-width: 768px) {
  .mobile-header {
    display: none;
  }
}

@media (max-width: 767px) {
  .desktop-header {
    display: none;
  }
  .mobile-header {
    display: flex;
  }
}



/* Ocultar secciones dinámicas por defecto */
.seccion-oculta.hidden {
  display: none !important;
}
.seccion-oculta {
  margin: 2rem auto;
  max-width: 900px;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}
.boton-programa {
  cursor: pointer;
  background-color: #c00;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}
.btn-cerrar {
  margin-top: 1rem;
  cursor: pointer;
  background-color: #555;
  color: white;
  border: none;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}

.seccion-oculta {
  display: none;
}

/* NAV */
.nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.nav button {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

/* CONTENIDO: VIDEO + TEXTO */
.contenido-nosotros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
}
.video-cuadro video,
.texto-cuadro {
  width: 300px;
  height: 300px;
  object-fit: cover;
}
.texto-cuadro {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 0 10px #ccc;
}

/* Solo para los botones dentro del menú de navegación desktop */
.desktop-header nav ul li button {
  background: none;        /* Quitar fondo */
  border: none;            /* Quitar borde */
  color: #c10000;          /* Color rojo */
  font-weight: bold;       /* Negrita */
  font-size: 1rem;         /* Tamaño texto */
  cursor: pointer;         /* Cursor puntero */
  padding: 0.25rem 0.5rem; /* Espaciado interno */
  font-family: 'Montserrat', sans-serif; /* Fuente Montserrat */
  transition: color 0.3s, background-color 0.3s; /* Transición suave */
}

.desktop-header nav ul li button:hover {
  color: #900000;                          /* Color rojo oscuro al pasar cursor */
  background-color: rgba(193, 0, 0, 0.1); /* Fondo rojo claro al pasar cursor */
  border-radius: 4px;                      /* Bordes redondeados al pasar cursor */
}






.cursos-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px;
}

.tarjeta {
  width: 300px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.tarjeta img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.tarjeta p {
  font-family: 'Montserrat', sans-serif;
  padding: 15px;
  font-size: 1rem;
}

.btn-info {
  background-color: #f06;
  color: white;
  padding: 10px 20px;
  margin-bottom: 15px;
  border: none;
  border-radius: 30px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.btn-info:hover {
  transform: scale(1.1);
}

.detalle {
  display: none;
  padding: 15px;
  font-size: 0.9rem;
}

.btn-wsp {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.9rem;
}

.btn-wsp:hover {
  background-color: #128C7E;
}





/* Secciones de cursos ocultos */
.seccion-oculta {
  padding: 3rem 2rem;
  margin: 2rem auto;
  max-width: 900px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease-in-out;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}

/* Título de la sección */
.seccion-oculta h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

/* Párrafo */
.seccion-oculta p {
  font-size: 1.1rem;
  color: #555;
  text-align: justify;
}

/* Botón de cerrar */
.btn-cerrar {
  display: block;
  margin: 2rem auto 0;
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-cerrar:hover {
  background-color: #c0392b;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .seccion-oculta {
    padding: 2rem 1.2rem;
  }

  .seccion-oculta h2 {
    font-size: 1.5rem;
  }

  .seccion-oculta p {
    font-size: 1rem;
  }

  .btn-cerrar {
    font-size: 0.95rem;
  }
}





.tarjetas-ciclos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.tarjeta {
  flex: 1 1 280px;
  background-color: #f3f3f3;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.tarjeta:hover {
  transform: translateY(-4px);
}

.tarjeta h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #2c3e50;
}

.tarjeta p,
.tarjeta ul {
  font-size: 1rem;
  color: #333;
  margin: 0;
}

.tarjeta ul {
  padding-left: 1.2rem;
}

.tarjeta li {
  margin-bottom: 0.4rem;
}








/* MISION Y VISION */

.mision-vision {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 60px 40px;
  max-width: 1400px; /* antes 1200px */
  margin: auto;
}

.caja-interactiva {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.caja-interactiva.reverse {
  flex-direction: row-reverse;
}

.imagen-lateral {
  width: 55%; /* antes 50% */
  max-width: none; /* que crezca libremente */
  height: auto;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.texto-caja {
  width: 45%; /* antes 50% */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.texto-caja h3 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #333;
}

.texto-caja p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #444;
}

/* ✅ Responsive para móviles */
@media screen and (max-width: 768px) {
  .caja-interactiva,
  .caja-interactiva.reverse {
    flex-direction: column !important;
    text-align: center;
  }

  .imagen-lateral,
  .texto-caja {
    width: 100%;
  }

  .mision-vision {
    gap: 40px;
    padding: 40px 20px;
  }

  .texto-caja h3 {
    font-size: 1.5rem;
  }

  .texto-caja p {
    font-size: 1rem;
  }
}










/* BANNER */
.banner-container {
    margin-top: 65px;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
  position: relative;
}

.banner-slide picture,
.banner-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.banner-content {
  position: absolute;
  bottom: 10%;
  left: 10%;
  color: #fff;
  max-width: 500px;
  z-index: 2;
}

.banner-content h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.banner-content p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.banner-content button {
  background: #fff;
  color: #c10000;
  border: 2px solid #c10000;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.banner-content button:hover {
  background: #c10000;
  color: #fff;
}

@media (min-width: 768px) {
  .banner-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent);
    z-index: 1;
    pointer-events: none;
  }
}

@media (max-width: 767px) {
  .banner-content {
    bottom: 5%;
    left: 5%;
    max-width: 90%;
  }

  .banner-content h1 {
    font-size: 1.5rem;
  }

  .banner-content p {
    font-size: 1rem;
  }
}








.modalidad-ciclos {
  padding: 2rem;
  background: #f5f5f5;
  color: #111;
  font-family: 'Montserrat', sans-serif;
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 960px;
  text-align: center;
}

.titulo-ciclos {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #111;
  text-shadow: 1px 1px 0 #ccc;
}

.descripcion-principal {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #333;
  line-height: 1.6;
}

.info-cajas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.caja {
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 10px #ddd;
  padding: 1.5rem;
  width: 250px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.95rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.caja:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.icono-precio {
  font-size: 3rem;
  color: #d10000;
  margin-bottom: 0.5rem;
}

.lista-grados {
  text-align: left;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: #333;
}

.lista-grados ul {
  list-style-type: "✅ ";
  padding-left: 1.5rem;
}

.texto-final {
  font-size: 1rem;
  color: #111;
  line-height: 1.6;
}

.btn-rojo {
  background-color: #d10000;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-rojo:hover {
  background-color: #b30000;
  transform: scale(1.05);
}







.recuerdos h2 {
margin-top: 80px;
}


.mini-carrusel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 2000px;
  height: 400px;
  margin: 0 auto;
  perspective: 1000px; /* Para efecto 3D ligero */
  overflow: hidden;
  position: relative;
}

.carrusel-item {
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0.5;
  transform: scale(0.8) translateX(0);
  position: absolute;
}

.carrusel-item video,
.carrusel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Central */
.carrusel-item.center {
  transform: scale(1) translateX(0);
  opacity: 1;
  z-index: 2;
}

/* Lateral izquierdo */
.carrusel-item.left {
  transform: scale(0.8) translateX(-350px);
  opacity: 0.5;
  z-index: 1;
}

/* Lateral derecho */
.carrusel-item.right {
  transform: scale(0.8) translateX(350px);
  opacity: 0.5;
  z-index: 1;
}


/* 📱 CELULAR PEQUEÑO (max 360px) */
@media (max-width: 360px) {
  .mini-carrusel {
    width: 100%;
    height: 280px; /* antes 250px */
  }
  .carrusel-item {
    width: 300px;   /* antes 140px */
    height: 300px;
  }
  .carrusel-item.left { transform: scale(0.8) translateX(-180px); }
  .carrusel-item.right { transform: scale(0.8) translateX(180px); }
}

/* 📱 CELULAR MEDIANO (361px-480px) */
@media (min-width: 361px) and (max-width: 480px) {
  .mini-carrusel {
    width: 100%;
    height: 320px; /* antes 280px */
  }
  .carrusel-item {
    width: 300px;   /* antes 180px */
    height: 300px;
  }
  .carrusel-item.left { transform: scale(0.8) translateX(-220px); }
  .carrusel-item.right { transform: scale(0.8) translateX(220px); }
}

/* 📱 CELULAR GRANDE (481px-768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .mini-carrusel {
    width: 100%;
    height: 390px; /* antes 320px */
  }
  .carrusel-item {
    width: 300px;   /* antes 220px */
    height: 300px;
  }
  .carrusel-item.left { transform: scale(0.8) translateX(-280px); }
  .carrusel-item.right { transform: scale(0.8) translateX(280px); }
}








#nuestros-programas {
  padding: 40px 20px;
  background-color: #f7f7f7;
  text-align: center;
}

#nuestros-programas h2 {
  font-size: 2rem;
  color: #333;
  text-align: center;
}

.programas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.programa {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 600px;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center; /* centra horizontalmente todo */
  text-align: center;  /* centra texto inline */
}

.programa:hover {
  transform: scale(1.03);
}

.imagen-hover {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.imagen-hover img {
  width: 100%;
  display: block;
  transition: opacity 0.3s ease-in-out;
}

.imagen-hover-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.imagen-hover:hover .imagen-hover-img {
  opacity: 1;
}

.imagen-hover:hover .imagen-normal {
  opacity: 0;
}

.programa h2,
.programa p {
  color: #444;
  margin-top: 15px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.boton-programa {
  display: block;
  margin: 10px auto 0 auto; /* centra el botón */
  padding: 10px 20px;
  background-color: #003366;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  text-align: center;
  transition: background-color 0.3s;
  margin-bottom: 10px;
}

.boton-programa:hover {
  background-color: #0055aa;
}

/* Responsive */
@media (max-width: 768px) {
  .programa {
    width: 90%;
  }

  #nuestros-programas h2 {
    font-size: 1.5rem;
  }

  .boton-programa {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}
   





.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 60px;  /* tamaño inicial */
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.whatsapp-btn img {
  width: 35px;
  height: 35px;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

/* Tooltip opcional */
.whatsapp-btn .tooltip {
  position: absolute;
  right: 70px;
  background: #25D366;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.whatsapp-btn:hover .tooltip {
  opacity: 1;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 480px) {
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-btn img {
    width: 28px;
    height: 28px;
  }

  .whatsapp-btn .tooltip {
    right: 60px;
    font-size: 0.7rem;
  }
}





/* Footer */
footer.footer {
  background-color: #111;
  color: #fff;
  padding: 20px 0;
  width: 100%;
  flex-shrink: 0; /* Evita que el footer se reduzca */
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-logo img {
  max-width: 120px;
  height: auto;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 15px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #f1c40f;
}

.footer-social a {
  color: #fff;
  font-size: 18px;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #f1c40f;
}

.footer-copy {
  margin-top: 15px;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
  text-align: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-social a {
    margin: 0 5px;
  }
}


.footer-copy a {
  color: #94bdd0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-copy a:hover {
  color: #fff;
  text-decoration: underline;
}



.footer-address {
  font-size: 14px;
  color: #ccc;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-address i {
  color: #f1c40f;
  font-size: 16px;
}

/* En móvil, centramos la dirección */
@media (max-width: 768px) {
  .footer-address {
    justify-content: center;
    text-align: center;
  }
}


/* Contenedor decorativo del mapa */
.footer-map-link {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.map-decor {
  position: relative;
  max-width: 400px;
  width: 100%;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* sombra elegante */
  border: 3px solid #f1c40f; /* borde amarillo decorativo */
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Efecto hover para resaltar */
.map-decor:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

/* iframe del mapa */
.map-decor iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Adaptación a móviles */
@media (max-width: 768px) {
  .map-decor {
    height: 200px;
    border-width: 2px;
  }
}



 /* Observaciones finales del doc.
 
cada actualización de img, debe de organizarse el css
para medidas y congruencias entre formatos mobile*/