/* variables */
:root {
  --azul-oscuro: #161e69;
  --azul-claro: #4A6AFF;
  --celeste: #A8C4FF;
  --amarillo: #7b9faf;
  --gris-claro: #F7F8FB;
  --texto: #1B1B1B;
  --blanco: #FFFFFF;
  --verde-lima:rgb(197, 250, 210);
}

/* base y reset*/
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Mulish', sans-serif;
  font-weight: 800;
  color: #0c1d69;
  line-height: 1.6;
  background-color: var(--blanco);
}

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

h1, h2, h3, h4, h5, h6, a, button {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
}

/* 
   HEADER
 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 75px;
  background-color: rgba(22, 30, 105, 0.863);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
  margin: 0;
  padding: 0 20px
}


.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-left: 15px;

}



/* Logo y nombre */
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}


.logo {
  height: 50px;
  border-radius: 5px;
  background-color: var(--blanco);
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}



.nombre-escuela {
  font-size: 1rem;
  color: var(--blanco);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}


/* Menú principal */
nav { margin-left: auto; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
  text-decoration: none;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s;
}


/* submenu */
.submenu-parent { position: relative; }

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(22, 30, 105, 0.856);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  list-style: none;
  min-width: 180px;
  z-index: 999;
  padding: 5px 0;
}

.submenu li a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.submenu li a:hover {
  background-color: rgb(138, 197, 187);
  color: var(--azul-oscuro);
}

.submenu-parent:hover .submenu { display: block; }

/* Booton de inscripciones */
.btn-inscripcion {
  background-color: var(--verde-lima);
 color: #003366;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 1300;
  transition: all 0.3s ease;
}

.nav-links a.btn-inscripcion {

color:rgb(10, 11, 99);
font-weight: 550;
}
 
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--azul);
}



/* hero carruseel */
.hero-slider {
  position: relative;
  width: 100%;
  height: clamp(500px, 720vw, 640px);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}


.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}



.slide.active { opacity: 1; z-index: 1; }

.hero-slider .hero-texto {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  background-color: var(--verde-lima);
  color: var(--azul-oscuro);
  padding: 33px 33px;
  border-radius: 6px;
  max-width: 489px;
  font-size: 1.1rem;
  line-height: 1.5;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  text-align: left;
}


.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  color: white;
  border: none;
  font-size: 2rem;
    cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%; 
  z-index: 10;
}

  
.prev { left: 20px; }
.next { right: 20px; }


.slide:nth-child(2) img,
.slide:nth-child(3) img {
  object-position: center 65%;
}



@media (max-width: 768px) {
  .hero-slider {
    height: 420px; 
  }

  .hero-slider .hero-texto {
    position: absolute;
    left: 5%;
    right: 5%;
    bottom:120px;
    top: auto;
    transform: none;

    max-width: none;
    width: auto;

    font-size: 0.95rem;
    line-height: 1.35;
    padding: 14px 14px;

    border-radius: 12px;

   
    max-height: 55%;
    overflow: auto;
  }
.arrow {

  display:none;
}


}

/*secciones*/
.section { padding: 15px; text-align: center; } 
h2 { margin-bottom: 5px; font-size: 1.5rem; }

/* niveles secciones */
.niveles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  justify-content: center;
  align-items: stretch;
  text-decoration: none;
}


.nivel {
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.nivel:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(2, 19, 116, 0.815);
}

.nivel img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 0;
}

.nivel h3 {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--azul-oscuro);
text-decoration: none;
}


.acuerdo-container h2 {

align-items: center;

}

.acuerdo-section {
  background: #f5f6fa;
  padding: 70px 0;
}

.acuerdo-container {
  width: 85%;
  max-width: 1000px;
  margin: 0 auto;
}

.acuerdo-container h2 {
  color: var(--azul-oscuro);
  font-size: 1.8rem;
  margin-bottom: 14px;
  border-bottom: 4px solid var(--verde-lima);
  display: inline-block;
  padding-bottom: 6px;
}

.acuerdo-bajada {
  color: #4b4f77;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 12px 0 22px;
}

.acuerdo-card {
  background: white;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-left: 6px solid var(--verde-lima);
  margin-bottom: 28px;
}

.acuerdo-card p {
  color: #2d2f3a;
  line-height: 1.75;
  margin-bottom: 12px;
  font-weight: 500;
}

.acuerdo-card p:last-child { margin-bottom: 0; }

.acuerdo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}

.acuerdo-box {
  background: white;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.acuerdo-box h3 {
  color: var(--azul-oscuro);
  font-size: 1.1rem;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--verde-lima);
  display: inline-block;
  padding-bottom: 5px;
}

.acuerdo-box ul {
  margin-left: 18px;
  color: #2d2f3a;
  line-height: 1.7;
  font-size: 0.98rem;
}

.acuerdo-nota {
  background: rgba(197, 250, 210, 0.45);
  border: 1px solid rgba(197, 250, 210, 0.9);
  color: var(--azul-oscuro);
  border-radius: 12px;
  padding: 14px 16px;
  line-height: 1.6;
}

.acuerdo-toggle {
  width: 100%;
  background-color: var(--azul-oscuro);
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 18px 25px;
  border: none;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: background 0.3s ease;
}

.acuerdo-toggle:hover {
  background-color: var(--azul-claro);
}

.flecha {
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

/* Contenido oculto */
.acuerdo-contenido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.4s ease;
  opacity: 0;
  margin-top: 15px;
}

/* Cuando está abierto */
.acuerdo-section.abierto .acuerdo-contenido {
  max-height: 3000px; /* grande para que entre todo */
  opacity: 1;
}

.acuerdo-section.abierto .flecha {
  transform: rotate(45deg);
}

















/* Responsive */
@media (max-width: 768px) {
  .acuerdo-section { padding: 55px 0; }

  .acuerdo-container h2 { font-size: 1.55rem; }

  .acuerdo-grid {
    grid-template-columns: 1fr;
  }
}






/*footer */
footer {
  background-color: rgb(11, 11, 95);
  color: white;
  text-align: center;
  padding: 30px 15px;
  font-size: 0.9rem;
}



/*  portada jardin */
.hero-portada {
  width: 100%;
  overflow: hidden;
  background-color: #f5f8ff;
  padding: 0;
  position: relative;
}

.hero-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px; 
  width: 100%;
  margin: 0;
}

.hero-img {
  flex: 1;
  height: 650px; 
  object-fit: cover;
  border-radius: 0; 
  box-shadow: none;
  transition: transform 0.3s ease;
}

.hero-img:hover {
  transform: scale(1.02);
}

.hero-label {
  position: absolute;
  bottom: 25px;
  right: 35px;
  background-color: #f26b38;
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
  }
  .hero-img {
    width: 100%;
    height: 250px;
  }
}

/*  en nuestor jardin */
.jardin {
  background-color: #ffffff;
  padding: 70px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.jardin-contenido {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0px;
  max-width: 1000px;
}

.jardin-texto {
  flex: 1;
  color: #5a6092;
  font-family: 'Mulish', sans-serif;
}

.jardin-texto h2 {
  font-size: 1.5rem;
  color: var(--azul-oscuro);
  margin-bottom: 20px;
}

.jardin-texto p {
  font-size: 1.2rem;
  line-height: 1.3;
  max-width: 570px;
}

.jardin-imagen {
  flex: 1;
  text-align: center;
}

.jardin-imagen img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jardin-imagen img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}


@media (max-width: 768px) {
  .jardin-contenido {
    flex-direction: column-reverse;
    text-align: center;
  }
  .jardin {
    padding: 60px 6%;
  }
  .jardin-texto h2 {
    font-size: 1.6rem;
  }
}
/* un dia en el jardin*/
.dia-jardin {
  background-color: var(--azul-oscuro);
  color: white;
  padding: 60px 0;
}

.dia-contenido {
  width: 85%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.dia-texto {
  flex: 1;
  min-width: 280px;
}



.dia-secundaria {

flex: 1;
font-size: 1.1rem;


  
}
.dia-texto h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.dia-texto ul {
  list-style: none;
  padding: 0;
}

.dia-texto li {
  margin: 10px 0;
  font-size: 1.3rem;

}

.dia-imagen {
  flex: 1;
  min-width: 200px;
  display: flex;
  justify-content: center;
}

.dia-imagen img {
  width: 100%;
  max-width: 350px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}


.dia-primario{
  flex: 1;
  min-width: 200px;
  display: flex;
  justify-content: center;

}

.dia-primario img {
  width: 100%;
  max-width: 250px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .primaria-contenido {
    flex-direction: column-reverse;
    text-align: center;
  }
  .primaria {
    padding: 60px 6%;
  }
  .primaria-texto h2 {
    font-size: 1.6rem;
  }

  

}

.abrir-menu,
.cerrar-menu { display: none; }

@media screen and (max-width: 768px) {
  .abrir-menu,
  .cerrar-menu {
    display: block;
    border: 0;
    font-size: 1.4rem;
    background: transparent;
    color: #fff;
    cursor: pointer;

  }

  .nav {
    position: fixed;    
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    max-width: 320px;
    background-color: var(--azul-oscuro);
    padding: 2rem 1.2rem;
    box-shadow: 0 0 0 100vmax rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;

    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);   
    transition: transform .3s ease, opacity .3s ease, visibility .3s ea
  }

 
  .nav.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .submenu { background-color: var(--azul-oscuro); }

  .nav-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
  }
  
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 75px;
  background-color: var(--azul-oscuro); 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
  margin: 0;
  padding: 0 20px;
}
}


.boton-enlace {
  display: inline-block;
  background-color: var(--azul-oscuro);
  color: white;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.boton-enlace:hover {
  background-color: var(--azul-claro);
  transform: translateY(-2px);
}

.info-bloque.enlace-examen {
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;
}

.info-bloque.enlace-examen h3 {
  margin-bottom: 12px; 
}


.form-contacto label::after {
  content: " *";
  color: #ff4d4d; 
  font-weight: 700;
}



/* 
   HERO primaria y jardin
   
*/
.hero-nivel {
  width: 100%;
  overflow: hidden;
  background-color: #f5f8ff;
}

.hero-nivel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-wrap: nowrap;
}

.hero-nivel-img {
  flex: 1;
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.hero-nivel-img:hover {
  transform: scale(1.03);
}


@media (max-width: 768px) {
  .hero-nivel-container {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
  }

  .hero-nivel-container::-webkit-scrollbar {
    display: none; 
  }

  .hero-nivel-img {
    flex: 0 0 auto;
    width: 85%;
    max-width: 400px;
    height: 220px;
    object-fit: cover;
    scroll-snap-align: center;
  }
}
/*  ETIQUETA HERO NIVEL
 */
.hero-nivel {
  position: relative;
}

.hero-etiqueta {
  position: absolute;
  bottom: 25px;
  right: 35px;
  background-color: #f26b38; 
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 10px 22px;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  z-index: 10;
}


@media (max-width: 768px) {
  .hero-etiqueta {
    position: static;
    margin: 10px auto;
    display: inline-block;
    font-size: 1rem;
  }
}


.primaria {
  background-color: #fff;
  padding: 75px 8%;  
  display: flex;
  justify-content: center;
  align-items: center;
}








.primaria-contenido {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.primaria-texto {
  flex: 1;
  color: #5a6092;
  font-family: 'Mulish', sans-serif;
}

.primaria-texto h2 {
  font-size: 1.3rem;
  color: var(--azul-oscuro);
  margin-bottom: 20px;
}

.primaria-texto p {
  font-size: 1.2rem;
  line-height: 1.3;
  max-width: 570px;
}

.primaria-imagen {
  flex: 1;
  text-align: center;
}

.primaria-imagen img {
  width: 100%;
  max-width: 200px;
  border-radius: 25px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primaria-imagen img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}


.grados > li {
  margin-bottom: 12px;
  font-weight: 600;
}

.cursos {
  list-style: none;
}

.cursos li {
  font-weight: 400;
  margin: 4px 0;
}

.cursos a {
  text-decoration: none;
  color: #1a4cff;
}

.cursos a:hover {
  text-decoration: underline;
}

.info-card .separador{
  margin-top: 60px;
  font-weight: 700;
}


.grados a {

  text-decoration: none;
  color: #1a4cff;
}

.certificados a{
  text-decoration: none;
  color: #1a4cff;

}


.materiales a {

 text-decoration: none;
  color: #1a4cff;
  
}

.materiales a {

 text-decoration: none;
  color: #1a4cff;
  
}

.ingles a{

 text-decoration: none;
  color: #1a4cff;

}






/* Adaptación móvil */
@media (max-width: 768px) {
  .primaria-contenido {
    flex-direction: column-reverse;
    text-align: center;
  }
  .primaria {
    padding: 60px 6%;



 
  }


  .primaria-imagen img {
    max-width: 200px;
    height: auto;
  }


  .primaria-texto h2 {
    font-size: 1.2rem;
  }

.primaria-texto p {
  font-size: 1rem;
  line-height: 1.4;
  max-width: 500px;


} 



}

/* WPP FLOTANTE */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #22c35e, #128c7e);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 50px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  z-index: 1000;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  background: linear-gradient(135deg, #25d366, #17b860);
}


.whatsapp-icon {
  background-color: #fff;
  color: #25d366;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.whatsapp-float:hover .whatsapp-icon {
  background-color: #fff;
  transform: rotate(12deg);
}


.whatsapp-text {
  letter-spacing: 0.3px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    gap: 0;
    padding: 12px;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    justify-content: center;
  }

  .whatsapp-icon {
    box-shadow: none;
  }

  .whatsapp-text {
    display: none;
  }
}

/* contacto- */
.contacto-section {
  background-color: #0e1664; 
  color: #fff;
  padding: 60px 0;
}

.contacto-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.formulario {
  flex: 1 1 350px;
  max-width: 450px;
}

.formulario h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.campo {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.campo label {
  font-weight: 600;
  margin-bottom: 6px;
}

.campo input,
.campo textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  font-family: 'Mulish', sans-serif;
  font-size: 1rem;
  resize: none;
}

.campo textarea {
  min-height: 100px;
}

.btn-enviar {
  background-color: #b8f8c9;
  color: #0e1664;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  padding: 10px 25px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-enviar:hover {
  background-color: #92edb4;
}

.form-status {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.mapa iframe {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .contacto-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .formulario {
    width: 90%;
  }

  .mapa iframe {
    max-width: 100%;
  }
}

/* secundaria */
.nivel-secundario {
  background-color: #0e1664; 
  color: white;
  padding: 20px 0;
}

.secundario-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 50px;
  padding: 0 20px;
}



.secundario-texto {
  flex: 1 1 300px;
}

.secundario-texto h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  border-left: 6px solid var(--verde-lima);
  padding-left: 10px;
}

.secundario-texto ul {
  list-style: disc;
  margin-left: 25px;
  font-size: 1rem;
  line-height: 1.7;
}

.secundario-texto li + li {
  margin-top: 10px;
}

.secundario-imagen {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
}

.secundario-imagen img {
  width: 100%;
  max-width: 450px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.secundario-imagen img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .secundario-container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .secundario-texto ul {
    margin-left: 0;
    list-style: none;
    font-size: 0.9rem;
    padding: 0;
  }

  .secundario-texto h2 {
    border: none;
    margin-bottom: 15px;
  }

  .secundario-imagen img {
    max-width: 90%;
  }


  
}

/* info util */
.info-util {
  background-color: #f5f6fa;
  padding: 70px 0;
}

.info-util-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.info-util h2 {
  color: var(--azul-oscuro);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  border-bottom: 3px solid var(--verde-lima);
  display: inline-block;
  padding-bottom: 8px;
}

/* IG FLOTANTE */
.instagram-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 50px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  z-index: 1000;
}

.instagram-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  background: linear-gradient(135deg, #fd5949, #d6249f, #285AEB);
}

.instagram-icon {
  background-color: #fff;
  color: #d6249f;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.instagram-float:hover .instagram-icon {
  background-color: #fff;
  transform: rotate(12deg);
}

.instagram-text {
  letter-spacing: 0.3px;
}


@media (max-width: 768px) {
  .instagram-float {
    gap: 0;
    padding: 12px;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    justify-content: center;
  }

  .instagram-icon {
    box-shadow: none;
  }

  .instagram-text {
    display: none;
  }
}















/* GRID DE TARJETAS */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* TARJETAS */
.info-card {
  background-color: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 25px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
  color: var(--azul-oscuro);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--verde-lima);
  display: inline-block;
  padding-bottom: 5px;
}

.info-card ul {
  margin-left: 20px;
  line-height: 1.6;
  color: #333;
  font-size: 1rem;
}

/* boton forms */
.info-boton {
  text-align: center;
  margin-top: 40px;
}

.info-boton h3 {
  font-size: 1.1rem;
  color: var(--azul-oscuro);
  margin-bottom: 10px;
}

.btn-abrir {
  background-color: var(--azul-oscuro);
  color: white;
  padding: 10px 25px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-abrir:hover {
  background-color: var(--verde-lima);
  color: var(--azul-oscuro);
}


@media (max-width: 768px) {
  .info-util {
    padding: 50px 10px;
  }



  .info-util h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .info-card {
    padding: 20px;
  }

  .btn-abrir {
    padding: 9px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px){

  #nav.nav{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;       
    height: 65vh;       
    background: #111a63;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    padding-top: 70px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }

  #nav.nav.visible{
    transform: translateY(0);
  }
  #nav{
    overflow-y: auto;
  }

  #nav .cerrar-menu{
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.35);
    background: transparent;
    color: #fff;
    border-radius: 10px;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  #nav .nav-links{
    list-style: none;
    margin: 0;
    padding: 0;
  }

  #nav .nav-links > li{
    border-bottom: 1px solid rgba(255,255,255,.18);
    display: block;
  }

  #nav .nav-links > li > a{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 18px;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 500;
  }

  #nav .submenu{
    position: static !important;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;

    background: rgba(255,255,255,.05);
    display: block !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }

  #nav .submenu-parent.open .submenu{
    max-height: 600px;
  }

  #nav .submenu a{
    display: block;
    padding: 14px 18px 14px 34px;
    font-size: 17px;
    color: #fff;
    text-decoration: none;
    border-top: 1px solid rgba(255,255,255,.12);
  }

  #nav .submenu a::before{
    content: "•";
    margin-right: 8px;
    opacity: .6;
  }
}
@media (max-width: 768px){

  body{
    padding-top: 75px;
  }
  .hero-portada .hero-img{
    height: 220px;
  }
  .nivel-secundario{
    padding: 18px 0 !important; 
  }
  .secundario-container{
    gap: 12px !important;        
    padding: 0 16px !important;
    align-items: flex-start !important;
  }
  .secundario-texto h2{
    margin-bottom: 10px !important;
  }
  .secundario-texto ul{
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important; 
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }
  .secundario-texto li + li{
    margin-top: 8px !important;
  }
}







.tabla-horarios {
  font-size: 0.8rem;
  width: 100%;
  max-width: 720px;
  margin: 25px auto;
  overflow-x: auto; /* responsive */
}

.tabla-horarios table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-weight: 600;
}

.tabla-horarios th,
.tabla-horarios td {
  border: 2px solid #000;
  padding: 8px 10px;
  text-align: center;
  background: #fff;
}

.tabla-horarios thead th {
  background: #fff;
  font-weight: 800;
}

.tabla-horarios .turno {
  font-weight: 800;
  color: #000;
}

.tabla-horarios .manana {
  background: #ffffff;
}

.tabla-horarios .tarde {
  background: #0e1664; 
  color: #fff;
}

.tabla-horarios .separador td {
  height: 10px;
  background: #0e1664;
  border: 0;
}

/* bajar la foto de secundaria */
.hero-nivel-container img:nth-child(1) {
  object-position: center 10%;
}



.emails {
  margin: 40px auto 0;   
  padding: 20px 24px;
  background-color: rgba(255, 255, 255, 0.12);
  border-left: 5px solid var(--verde-lima);
  border-radius: 12px;
  text-align: center;
  max-width: 420px;
}

.emails h3 {
  font-size: 1.05rem;
  color: var(--verde-lima);
  margin-bottom: 6px;
}

.emails p {
  font-size: 0.95rem;
}


.emails a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.emails a:hover {
  color: var(--verde-lima);
  text-decoration: underline;
}


@media (max-width: 768px) {
  .emails {
    width: 90%;
    margin: 35px auto 0;
    border-left: none;
    border-top: 4px solid var(--verde-lima);
  }
}

/* ✅ 1) Evita que la página se “estire” hacia los costados */
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* ✅ 2) Asegura que nada (imgs/iframes/sections) sea más ancho que la pantalla */
img, iframe, section, div {
  max-width: 100%;
}

/* ✅ 3) MAPA: que nunca se pase */
.mapa iframe {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
}

/* ✅ 4) TARJETA DEL MAIL: que no se salga y tenga buen padding en mobile */
.emails {
  width: 100%;
  max-width: 520px;        /* en desktop se ve prolijo */
  margin: 18px auto 0;     /* centrado */
  padding: 18px 16px;
  border-radius: 18px;
  box-sizing: border-box;
}

/* ✅ 5) Si algún texto largo (mail/link) empuja el ancho, esto lo corta bien */
.emails p, .emails a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ✅ 6) Ajuste extra SOLO en celular */
@media (max-width: 768px) {
  .contacto-container {
    padding: 0 14px;
  }

  .emails {
    max-width: 100%;
  }
}
.aviso-reunion {
  background-color: #fff3cd;
  border-left: 6px solid #ffb703;
  color: #664d03;
  padding: 16px 18px;
  border-radius: 8px;
  margin: 30px 0 20px;
  font-size: 1rem;
}

.aviso-reunion strong {
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .aviso-reunion {
    font-size: 0.95rem;
  }
}
