/* HEADER */

/* Centrado con espacio a los lados (si no lo pusiste antes, déjalo así) */
#navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px; /* margen interno izq/der */
}

/* Sección central con menú + botón */
#navbar-section-2 {
  display: flex;
  align-items: center;
  gap: 18px; /* espacio entre menú y botón */
}

/* Menú izquierdo: INICIO | NOTICIAS | NOSOTROS */
#navbar-menu {
  display: flex;
  align-items: center;
  gap: 14px;           /* espacio entre items y separadores */
  list-style: none;
  margin: 0;
  padding: 0;
}

/* NUEVO GPT */

/* Menú izquierdo: INICIO | NOTICIAS | NOSOTROS */
#navbar-menu .nav-item a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; /* misma fuente */
  padding: 10px 6px;
  display: inline-block;
  transition: transform 0.15s ease, color 0.2s ease;
}

#navbar-menu .nav-item a:hover {
  color: #ffefef;
  transform: translateY(-1px);
}

/* Barras verticales entre los items (no antes del primero) */
#navbar-menu .nav-item + .nav-item {
  position: relative;
}
#navbar-menu .nav-item + .nav-item::before {
  content: "";
  display: block;
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.6);
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
}

/* Botón "MATRICÚLATE" con fondo amarillo llamativo */
.nav-cta {
  background: rgb(255, 208, 0); /* amarillo */
  color: white; /* letras blancas */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4); /* sombra sutil en el texto */
  text-decoration: none;
  font-weight: 800;
  font-size: 20px; /* más grande que el menú */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; 
  padding: 12px 28px;
  border-radius: 999px;
  border: 3px solid #ffffff; /* borde blanco */
  display: inline-block;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.nav-cta:active {
  transform: scale(1.05);
}

.nav-cta:focus {
  outline: none;
}






/* Responsive */
@media (max-width: 800px) {
  #navbar {
    padding: 0 16px; /* menos padding lateral en móviles */
  }

  #navbar-section-2 {
    gap: 12px;
  }

  #navbar-menu {
    gap: 10px;
  }

  #navbar-menu .nav-item + .nav-item::before {
    left: -6px;
    height: 14px;
  }

  .nav-cta {
    padding: 8px 14px;
    font-weight: 800;
  }
}


header {
  padding-top: 6px;
  padding-bottom: 6px;
  background-color: red;
  min-height: 56px; /* asegura altura mínima del header */
}

nav {
  margin-left: 10px;
  margin-right: 10px;
}


#logo {
  width: 80px;
  height: auto;
}

#navbar-ul {
  display: flex;
  justify-content: space-around;
  margin-left: 50px;
  font-size: medium;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: white;
  font-weight: 500;
}

.navbar-element {
  margin-right: 10px;
}

.navbar-element:hover {
  color: rgb(225, 154, 154);
}

.navbar-element-a {
  padding: 20px;
}

/* --- NUEVO: contenedor e íconos sociales --- */
#navbar-section-3 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px; /* antes 12px */
  margin-left: 20px;
  margin-right: 20px;
}


header #navbar-section-3 img.social-icon {
  width: 38px !important;   /* tamaño escritorio */
  height: auto !important;
  display: block;
  line-height: 0;
  transition: transform 0.2s;
  cursor: pointer;
}

header #navbar-section-3 img.social-icon:hover {
  transform: scale(1.15);
}



/* MAIN */

.section-cover {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.video-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
z-index: 0;
}

.video-background video {
width: 100%;
height: 100%;
object-fit: cover;
pointer-events: none;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* negro con 50% de opacidad */
  z-index: 1; /* encima de los videos, debajo del contenido */
}

.section-1 {
  position: relative;
  display: grid;
  grid-template-rows: repeat(2, 300px);
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  z-index: 2; /* encima del overlay */
  padding: 20px;
}

.item-1 {
  display: flex;
  margin-left: 10%;
  margin-right: 10%;
  flex-direction: column; /* Para que los elementos se apilen uno encima del otro */
  justify-content: end; /* Centra verticalmente */
  align-items: center;     /* Centra horizontalmente */
  text-align: center;
  font-family:Arial, Helvetica, sans-serif;
  font-size: x-large;
}

.niveles-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* para que en pantallas chicas se acomoden en filas */
  margin-top: 20px;
}

.nivel-card {
  padding: 20px 30px;
  border-radius: 20px;
  color: white;
  font-weight: bold;
  font-size: 22px;
  text-align: center;
  min-width: 160px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nivel-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

/* Colores diferentes */
.nivel-1 {
  background-color: #ff6b6b; /* rojo coral */
}

.nivel-2 {
  background-color: #4ecdc4; /* turquesa */
}

.nivel-3 {
  background-color: #ffd93d; /* amarillo */
  color: #333; /* texto oscuro para contraste */
}

/* Responsive */
@media (max-width: 800px) {
  .nivel-card {
    font-size: 18px;
    padding: 16px 20px;
    min-width: 120px;
  }
}



#tittle-item-1 {
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  font-weight: bold;
  color: white;
}

#paragraph-item-1 {
  margin: 20px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  font-weight: bold;
  color: white;
  font-size: xx-large;
}

.item-2 {
  grid-row: span 2;
  display: flex;
  justify-content: center; /* centra horizontalmente */
  align-items: center;
}

#logo-item-2 {
  width: auto;
  height: 400px;
  object-fit: contain;
}

.item-3 {
  display: flex;
  justify-content: center; /* centra horizontalmente */
  align-items: center;
  font-family:Arial, Helvetica, sans-serif;
  font-size: 40px;
}

.btn-matriculate {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ff0000;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-matriculate:hover {
  background-color: #9f0000;
  transform: scale(0.95);
}


/* --- Responsive header + home --- */
@media (max-width: 800px) {
  /* Ajustar contenedor header */
  #navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  #navbar-section-1 {
    margin-bottom: 0;
    display: flex;
    justify-content: flex-start;
    width: auto;
    padding-left: 10px;
  }

  #navbar-section-2 {
    width: auto;
    display: flex;
    justify-content: flex-end;
  }

  /* social icons más pequeños en móviles */
  header #navbar-section-3 img.social-icon {
    width: 35px !important;
  }

  #navbar-ul {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
  }

  .navbar-element {
    margin: 0;
  }

  .navbar-element-a {
    padding: 10px;
  }

  #logo {
    width: 70px;
    height: auto;
  }

  /* Ajustar contenido principal */
  .section-1 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 10px;
  }

  .item-1 {
    margin: 0 auto;
    width: 90%;
  }

  #tittle-item-1 {
    font-size: 18px;
    padding: 6px;
  }

  #paragraph-item-1 {
    margin: 10px 0;
    padding: 10px;
    font-size: 16px;
  }

  .item-2 {
    grid-row: auto;
  }

  #logo-item-2 {
    width: 50%;
    height: auto;
  }

  .item-3 {
    margin-top: 20px;
  }

  .btn-matriculate {
    font-size: 28px;
    padding: 8px 16px;
    margin: 10px;
  }

  body {
    overflow-x: hidden;
  }
}
            

/* SECTION NEWS */
.section-news {
  background-color: #f8f8f8;
  padding: 60px 20px;
  font-family: Arial, sans-serif;
  text-align: center;
}

.news-container {
  max-width: 1000px;
  margin: 0 auto;
}

.news-text h2 {
  font-size: 36px;              /* más grande */
  margin-bottom: 20px;
  color: #e00000;
  font-weight: 900;             /* muy gruesa */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.25); /* sombra sutil */
}

.news-text p {
  font-size: 20px;              
  line-height: 1.6;
  color: #333;
  font-weight: 600;             
  margin: 0 auto 40px auto;     /* centrado y con margen abajo */
  max-width: 700px;             /* límite de ancho */
  padding: 0 15px;              /* respiro lateral para móviles */
}


.news-widget iframe {
  max-width: 1200px;
  width: 100%;
  height: 450px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.news-title {
  font-size: 60px;              /* más grande */
  margin-bottom: 15px;
  text-align: center;
  font-weight: 800;
  color: #222;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.25); /* sombra sutil */
  position: relative;
  display: inline-block;        /* para la línea */
}

.news-title::after {
  content: "";
  display: block;
  width: 160px;                 /* más larga */
  height: 8px;                  /* más gruesa */
  background-color: #ffd500;    /* amarillo mostaza */
  margin: 6px auto 0 auto;      /* separada lo justo */
}








/* SECTION ABOUT */

.section-about {
background-color: #f8f8f8;
padding: 40px 20px;
font-family: Arial, sans-serif;
padding-top: 100px;
padding-bottom: 150px;
}

.about-container {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
max-width: 1000px;
margin: 0 auto;
}

.about-text {
flex: 1;
min-width: 300px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.about-text h2 {
font-size: 28px;
margin: 20px;
color: #e00000;
font-weight: bold;
}

.about-text p {
font-size: 18px;
line-height: 1.6;
color: #333;

}

.about-image img {
width: 200px;
margin-right: 40px;
margin-left: 40px;
}

.about-gallery {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 20px;
margin-top: 40px;
}

.about-gallery img {
width: 300px;
height: auto;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
transition: transform 0.3s ease;
}

.about-gallery img:hover {
transform: scale(1.05);
}


/* SECTION FEATURES */

.section-features {
background-image: url('images/fondo-iconos.png'); /* o .png si es PNG */
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}

.features-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 40px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.feature {
width: 300px;
text-align: center;
padding: 30px;
}

.feature img {
width: 100px; /* ícono más grande */
margin-bottom: 15px;
}

.feature h3 {
margin: 15px 0 10px;
font-size: 22px; /* título más grande */
color: #fffd8a;
font-weight: bold;
}

.feature p {
font-size: 17px; /* texto más grande */
line-height: 1.6;
color: #ffffff;
}



/* Responsive extra para sección About (tal como lo tenías) */
@media (max-width: 800px) {
.about-container {
  flex-direction: column;
  text-align: center;
}

.about-text h2 {
  font-size: 24px;
}

.about-text p {
  font-size: 16px;
}
}


/* UBICACIÓN */

.section-location {
padding: 40px 20px;
background-color: #f3f3f3;
text-align: center;
font-family: Arial, sans-serif;
padding-top: 100px;
padding-bottom: 150px;
}

.section-location h2 {
font-size: 28px;
color: #c40000;
margin-bottom: 10px;
}

.section-location p {
font-size: 18px;
margin-bottom: 25px;
color: #333;
}

.map-container {
max-width: 1000px;
margin: 0 auto;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 0 10px rgba(0,0,0,0.2);
}



/* FOOTER */

.footer {
  background-color: #ff0000; /* rojo */
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  padding-top: 50px;
  padding-bottom: 50px;
}

.footer-content p {
  margin: 5px 0;
}



/* XXXXXXXXXX matricula.html XXXXXXXXXX */

.section-matricula {
background-color: #fff5f5;
padding: 60px 20px;
text-align: center;
font-family: Arial, sans-serif;
padding-top: 100px;
padding-bottom: 120px;
}

.matricula-logo {
width: 200px;
margin-bottom: 20px;
}

.matricula-container {
max-width: 600px;
margin: 0 auto;
}

.section-matricula h2 {
font-size: 38px;
color: #d10000;
margin-bottom: 20px;
}

.section-matricula p {
font-size: 22px;
color: #333;
margin-bottom: 20px;
}

.btn-whatsapp {
display: inline-block;
background-color: #25d366;
color: white;
padding: 12px 24px;
margin: 40px;
font-size: 30px;
font-weight: bold;
border-radius: 50px;
text-decoration: none;
transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
background-color: #1ebe5d;
}

.matricula-info {
font-size: 24px;
color: #555;
margin-top: 15px;
}


/* ===== OVERRIDE FINAL PARA MÓVIL (DEBE IR AL FINAL DEL CSS) ===== */
@media (max-width: 800px) {
  /* Navbar en columna */
  header #navbar {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 16px !important;
  }

  /* Ocultar logo e INICIO */
  header #navbar-section-1,
  header #logo,
  header #navbar-menu {
    display: none !important;
  }

  /* Menú vertical sin separadores */
  header #navbar-section-2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 14px !important;
    order: 1 !important;  /* menú + botón primero */
  }

  header #navbar-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  header #navbar-menu .nav-item + .nav-item::before {
    content: none !important; /* quitar “palitos” */
  }

  /* Botón Matricúlate */
  header .nav-cta {
    display: inline-block !important;
    margin: 6px auto 0 auto !important;
    text-align: center !important;
    order: 2 !important;
  }

  /* Redes sociales DEBAJO del botón (centradas) */
  header #navbar-section-3 {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-top: 10px !important;
    order: 3 !important; /* ahora sí debajo del botón */
  }

  header #navbar-section-3 .social-icon {
    width: 32px !important;
    height: auto !important;
  }
}


/* Empuja SOLO el bloque de "EDUCACIÓN PARVULARIA..." hacia abajo */
.section-1 .item-1 {
  transform: translateY(170px);  /* ajusta 40–100px a gusto */
}

/* En móviles, un empuje más suave */
@media (max-width: 800px) {
  .section-1 .item-1 {
    transform: translateY(10px);
  }
}

/* Empuja solo el botón ¡Matricúlate! un poco más hacia abajo */
.section-1 .item-3 {
  margin-top: 110px;  /* prueba 20–40px según lo necesites */
}

/* En móviles, un empuje más suave */
@media (max-width: 800px) {
  .section-1 .item-3 {
    margin-top: 10px;
  }
}