body {
  margin: 0;
  font-family: "Roboto", sans-serif;

  background-image: url("../img/fondo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;

  text-align: center;
}


.vision-bg {
  width: 100%;
  height: 600px;
  object-fit: cover;
}


.pagina-index .navbar a[href*="lirmi.com"],
.pagina-index .navbar a[href*="sistemadeadmisionescolar.cl"] {
  display: none !important;
}

.logo-overlay {
  position: absolute;
  top: 15px;
  left: 20px;
  width: 120px; 
  height: auto;
  overflow: visible !important; 
  border-radius: 0 !important;
  z-index: 3;
}

/* SCROLL SUAVE */
html {
  scroll-behavior: smooth;
}

/* ========================= */
/* NAVBAR */
/* ========================= */

.navbar {
  position: relative;
  width: 100%;
  height: 70px;

  background: #799a14;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 20px;
  box-sizing: border-box;

  z-index: 10;

  box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}
/* NAVBAR DROPDOWN */

/* ========================= */
/* DROPDOWN NAVBAR */
/* ========================= */

.navbar .dropdown {
  position: relative;
}

.navbar .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: block !important;
  background: white;
  min-width: 220px;

  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);

  transition: all 0.25s ease;
  z-index: 9999;
}

/* cuando está activo */
.navbar .dropdown.activo > .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.navbar .dropdown-menu li {
  list-style: none;
}

/* ========================= */
/* DROPDOWN LICEO (AISLADO) */
/* ========================= */

.dropdown-liceo {
  position: relative;
}

/* menú principal */
.dropdown-menu-liceo {
  position: absolute;
  top: 100%;
  left: 0;

  background: #0e4ea8;
  min-width: 220px;

  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);

  display: none;
  z-index: 9999;
}

.dropdown-menu-liceo a {
  display: block;
  padding: 10px 15px;

  color: #ffffff !important;   
  text-decoration: none;
  font-weight: 500;

  background: transparent;
}

.dropdown-liceo.activo > .dropdown-menu-liceo {
  display: block;
}

/* items */
.dropdown-menu-liceo li {
  list-style: none;
}

.dropdown-menu-liceo a,
.submenu-liceo a {
  padding: 6px 10px;   
  font-size: 14px;    
}

.dropdown-menu-liceo a:hover {
  background: #1e4c9a;
  color: white !important;
  border-radius: 8px;
}

/* SUBMENÚ */
.dropdown-sub-liceo {
  position: relative;
}

.submenu-liceo {
  display: none;
  background: #0e4ea8;
  border-radius: 8px;
  padding: 5px 0;
}

.submenu-liceo a {
  color: #ffffff !important;
}

.submenu-liceo li {
  padding-left: 15px; 
}

.dropdown-sub-liceo.activo > .submenu-liceo {
  display: block;
}

.submenu-liceo a:hover {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
}

@media (min-width: 769px){

  .dropdown-sub-liceo {
    position: relative;
  }

  .dropdown-sub-liceo > .submenu-liceo {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 5px;
    min-width: 220px;

    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: 0.2s;
  }

  .dropdown-sub-liceo.activo > .submenu-liceo {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

}
@media (max-width: 768px){

  .dropdown-sub-liceo > .submenu-liceo {
    position: static;
    width: 100%;
    margin-top: 5px;
  }

}

.navbar,
.dropdown-menu-liceo {
  overflow: visible;
}

/* ================= LOGO ================= */

.header-institucional {
  height: 120px;

  display: flex;
  justify-content: center;
  align-items: center;

  background: url("../img/fondo.png") center/cover no-repeat;

  border-bottom: 1px solid rgba(0,0,0,0.05);
}


.header-contenido {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-header {
  height: 219px;
}

.titulo-header h1 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  margin: 0;
  color: #0B3C5D;
}

.titulo-header span {
  font-size: 14px;
  color: #666;
}

/* ================= MENÚ ================= */

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-center > ul {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.navbar a:active {
  transform: scale(0.96);
}

.active {
  background: #328CC1;
  color: white !important;
}

/* LINKS */

.navbar {
  background: linear-gradient(135deg, #0e4ea8, #c5ff19);
  padding: 10px 0;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;

  padding: 10px 18px;
  border-radius: 8px;

  transition: all 0.25s ease;
}

.navbar a:hover {
  background: linear-gradient(135deg, #0e4ea8, #0b2c6b);
  transform: translateY(-2px);
}

.active {
  color: #328CC1;
}

.navbar ul,
.navbar li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

/* LOGO IMG */

.logo {
  height: 120px; 
  width: auto;  
}

/* CONTENEDOR HERO */
.hero {
  width: 100%;
  height: 450px;
  overflow: hidden;
  position: relative;
}

/* CONTENEDOR DEL SLIDER */
.slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

/* CADA SLIDE */
.slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slider-dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 5;
}

.slider-dots span {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.slider-dots span.active {
  background: white;
  transform: scale(1.2);
}
/* ========================= */
/* LAYOUT */
/* ========================= */

.layout {
  display: grid;
  grid-template-columns: 250px 1fr; 
  gap: 20px;
  padding: 40px;
}

/* SIDEBAR */
.sidebar-cursos {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
  overflow: visible;
}

/* BOTONES CURSOS PRO */
.sidebar-cursos a {
  display: block;
  padding: 10px 14px;
  margin: 5px 0;
  border-radius: 10px;
  background: #f0f4f8;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  color: #0B3C5D;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.sidebar-cursos .submenu a {
  background: #ffffff;
  border-left: 3px solid #328CC1;
  margin-left: 10px;
  font-size: 14px;
}

.sidebar-cursos a.activo {
  background: #0B3C5D;
  color: white;
}

.sidebar-cursos a:hover {
  background: #328CC1;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  color: white;
  transform: translateX(5px);
}

.sidebar-cursos .dropdown {
  position: relative;
}

.sidebar-cursos .dropdown-menu {
  position: static;   
  width: 100%;
}

.btn-calendario {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  background: #0B3C5D;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  transition: 0.3s;
}

.btn-calendario:hover {
  background: #145a86;
}

/* Botón tipo sidebar */
.sidebar-btn {
  display: block;
  width: 100%;
  max-width: 220px;
  margin-top: 10px;
  padding: 10px;
  background: linear-gradient(135deg, #0b2c6b, #0e4ea8);
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  text-align: center;
  font-size: 14px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}

.sidebar-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

/* Imagen de Admisión */
.admision-img {
  display: block;
  margin-top: 10px;
}

.admision-img img {
  width: 100%;
  border-radius: 12px;
  border: 2px solid #ffffff;
}

.admision-img img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.biblioteca-img img{
  width: 100%;
  border-radius: 12px;
  border: 2px solid #ffffff;
}

.biblioteca-img img:hover{
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sidebar-cursos a.instagram-img {
  background: transparent !important;  
  padding: 0 !important;             
  display: inline-flex !important;
}

.instagram-img {
  display: inline-flex !important;   
  width: fit-content;
  margin: 0px;
  padding: 0px;
  border-radius: 12px; 
}

.instagram-img img {
  width: 140px;
  display: block;
  border-radius: 12px;
  border: none;
  transition: all 0.25s ease;
}

.instagram-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sidebar-cursos a.instagram-img {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 !important;
  margin: 5px 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.sidebar-cursos a.instagram-img:hover {
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.sidebar-cursos a:not(.instagram-img):hover {
  background: #328CC1;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateX(5px);
}

.instagram-img img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.lirmi-img {
  display: block;
  margin-top: 10px;
}

.lirmi-img img {
  width: 100%;
  border-radius: 12px;
  border: 2px solid #ffffff;
  transition: all 0.25s ease;
}

.lirmi-img img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.lirmi-img {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.lirmi-img img {
  width: 85%; /* ajusta si quieres */
}

/* ========================================= */
/* Contenedor de noticias y "Quienes somos" */
/* ========================================= */

/* CONTENIDO */
.contenido-principal {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 10px; 
}

.quienes-somos {
  margin-bottom: 50px;
}

.quienes-somos a {
  text-decoration: none;
}

.quienes-somos h2 {
  text-align: center;
  color: #0B3C5D;
  margin-bottom: 20px;
}

.quienes-somos .card {
  text-decoration: none; 
  color: #0B3C5D; 
  border-radius: 8px;
}

.quienes-somos .card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0B3C5D;
  margin-top: 12px;
}

.quienes-somos .card:hover h3 {
  color: #328CC1;
}

/* SECCIÓN */
.comunicados {
  width: 100%;
  margin: 0;
}

#comunicados {
  scroll-margin-top: 120px;
}

.comunicados h2 {
  text-align: center;
  color: #0B3C5D;
  margin-bottom: 20px;
}

/* CARDS CONTENEDOR */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 350px)); 
  justify-content: center; 
  gap: 30px;
}

/* CARD */
.card {
  background: white;
  width: 100%;             
  margin: 0;               
  overflow: hidden;
  padding: 25px;
  border-radius: 15px;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: 0.3s;
}

/* IMAGEN */
.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover .card-img {
  transform: scale(1.05);
}
/* ========================= */
/* QUIENES SOMOS (ESTILO PROPIO) */
/* ========================= */

.quienes-somos .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* CARDS BASE SOLO PARA ESTA SECCIÓN */
.quienes-somos .card {
  border-radius: 10px;
  background: #f4f6f8;
  border: 1px solid #dbe2e8;
  box-shadow: none;
  text-align: center;
  transition: 0.2s;
  padding: 15px;
}

/* QUITAR EFECTO HOVER EXAGERADO */
.quienes-somos .card:hover {
  transform: none;
  box-shadow: none;
}

/* IMÁGENES */
.quienes-somos .card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center top; 
  border-radius: 8px;
}

/* IDENTIDAD POR CARD */

.quienes-somos .card-docentes {
  border-top: 4px solid #3498db;
}

.quienes-somos .card-directivos {
  border-top: 4px solid #1f7a3a;
}

.quienes-somos .card-asistentes {
  border-top: 4px solid #e67e22;
}
/* ========================= */
/* GALERÍA */
/* ========================= */

.noticia-container {
  max-width: 800px;
  margin: auto;
  padding: 20px;
}

.img-principal {
  width: 100%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  display: block;
  margin: auto;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.img-galeria {
  width: 100%;
  height: 180px; 
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* efecto hover) */
.img-galeria:hover {
  transform: scale(1.05);
}

/* ========================= */
/*          DROPDOWN  Cursos */
/* ========================= */

.menu-cursos .dropdown {
  position: relative;
}

.menu-cursos .dropdown-menu {
  display: none;
}

.dropdown-menu li {
  border-bottom: 1px solid #999;
}

.dropdown-menu a {
  display: block;
  padding: 12px;
  color: #000;
}

.dropdown-menu a:hover {
  background: #eaeaea;
}

/* SUBMENÚ */
.dropdown-sub {
  position: relative;
}

.menu-cursos .submenu {
  display: none;
}

/* SOLO PARA CURSOS */
.menu-cursos .dropdown-menu,
.menu-cursos .submenu {
  display: none;
}

.dropdown-menu.activo,
.submenu.activo {
  display: block;
  animation: fadeIn 0.25s ease;
}

  .menu-cursos .dropdown-menu.activo {
  display: block;
}

.menu-cursos .dropdown-menu,
.menu-cursos .submenu {
  display: none;
}

/* ARREGLAR VISIBILIDAD SIDEBAR */
.menu-cursos .dropdown-menu,
.menu-cursos .submenu {
  opacity: 1 !important;
  visibility: visible !important;
  display: none;
}

/* activar */
.menu-cursos .dropdown-menu.activo,
.menu-cursos .submenu.activo {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================= */
/* FOOTER */
/* ========================= */

.footer {
  width: 100%;
  margin-left: 0; 
  text-align: center;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logos img {
  height: 60px;
  max-width: 100%;
}

.footer-info img {
  height: 80px;
  max-width: 100%;
}

.footer-logos img:hover,
.footer-info img:hover {
  transform: scale(1.08);
  opacity: 0.85;
  transition: 0.3s;
}
/* ========================= */
/*       HERO ADMISIÓN       */
/* ========================= */

.hero-admision {
  margin-top: 100px;
  height: 60vh;
  min-height: 350px;

  background-image: url("../img/fondoliceo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
}

/* OSCURECER FONDO */
.hero-admision::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

/* LOGO */
.logo-overlay {
  position: absolute;
  top: 15px;
  left: 20px;
  width: 100px;
  height: auto; 
  border-radius: 0 !important;
  z-index: 3;
}

.logo-overlay img {
  border-radius: 0 !important;
  width: 100%;
  height: auto;
}

/* TEXTO CENTRO */
.titulo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}

.titulo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  max-width: none; 
  height: auto;
}

/* ========================= */
/*         CONTACTO          */
/* ========================= */

/* HERO CONTACTO */
.hero-contacto {
  width: 100%;
  height: 35vw;          
  min-height: 200px;     
  max-height: 500px;     
  background: url("../img/fondoliceo2.png") center/cover no-repeat;
  position: relative;
}

/* LOGO EN LA SECCIÓN CONTACTO (ABAJO) */
.logo-contacto {
  margin-top: 30px;
  width: 120px;
  height: auto;
}

/* SOLO EN CONTACTO */
.hero-contacto .logo-overlay {
  width: 120px;
  height: auto;
  top: -40px;
}

.contacto-section {
  padding: 80px 20px;
}

.titulo-contacto {
  top: 55%;
}

.contacto-section h2 {
  color: #0B3C5D;
  margin-bottom: 40px;
}

/* CONTENEDOR PRINCIPAL */
.contacto-container {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  max-width: 1200px;  
  margin: 0 auto;     
}

/* MAPA */
.mapa {
  width: 500px;       
  flex-shrink: 0;     
}

.mapa-iframe {
  width: 100%;
  height: 700px;      
  border: 0;
  border-radius: 12px;
}

/* INFO */
.info {
  max-width: 400px;
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
  flex: 1;
}

.info h3 {
  color: #1e3a5f;
  margin-top: 15px;
  margin-bottom: 5px;
}

.info p {
  line-height: 1.6;
}

/* GRID TARJETAS */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.card-info {
  background: white;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0B3C5D;
  margin-bottom: 12px;
}

.card-info p {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

.card-info strong {
  display: block;
  margin-top: 10px;
  color: #0B3C5D;
}

/* convivencia */
.card-info.full {
  grid-column: span 2;
}

.convivencia {
  grid-column: span 1; 
  min-height: 100%;
}
/* móvil */
@media (max-width: 768px) {
  .contacto-container {
    flex-direction: column;
  }

  .mapa {
    width: 100%;
  }

  .mapa-iframe {
    height: 400px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .card-info{
    grid-column: span 1;
  }
}
.secretaria{
  grid-column: span 2;
  text-align: center;
}

/*   LOGO     */
.logo-contacto {
  margin-top: 30px;
  width: 120px;
  height: auto;
  object-fit: contain; 
}
/* ========================= */
/*          VISIÓN           */
/* ========================= */

.vision-section {
  padding: 80px 20px;
  max-width: 1000px;
  margin: auto;
}

.vision-box {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
}

.vision-bg {
  width: 112%;
  height: 600px;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: transparent;
  color: transparent;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
  z-index: 2;
}

.vision-overlay {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-width: 800px;
  background: rgba(255,255,255,0.92);
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  text-align: center;
}

.vision-overlay h3 {
  font-size: 15px;
  margin: 8px 0;
}

.vision-overlay p {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 10px;
}

/* ========================= */
/* CURSOS TIPO DROPDOWN */
/* ========================= */

.menu-cursos {
  list-style: none;
  padding: 0;
}

.menu-cursos a {
  display: block;
  padding: 10px;
  background: #f0f0f0;
  border: 1px solid #999;
  color: black;
  text-decoration: none;
  text-align: left;
}

.menu-cursos a:hover {
  background: #e0e0e0;
}

/* dropdown base */
.menu-cursos .dropdown {
  position: relative;
}

.menu-cursos .dropdown-menu {
  position: static;
  display: none;
}

/* submenus */
.menu-cursos .submenu {
  position: static;
  left: 100%;
  top: 0;
  display: none;
  margin-left: 10px;
  background: white;
  min-width: 150px;
  border: 1px solid #999;
}

/* 🔵 BOTÓN PRINCIPAL "CURSOS" */
.menu-cursos > li > .toggle {
  background: linear-gradient(135deg, #0e4ea8, #c5ff19);
  color: white;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px;
  display: block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.menu-cursos > li > .toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}


/* 📘 NIVELES (7°, 8°, etc) */
.menu-cursos .dropdown-menu > li > .toggle {
  background: #e9eef6;
  border-left: 4px solid #0e4ea8;
  border-radius: 10px;
  padding: 10px;
  margin-top: 6px;
  display: block;
  transition: all 0.25s ease;
}

.menu-cursos .dropdown-menu > li > .toggle:hover {
  background: #dbe6f8;
  transform: translateX(4px);
}


/*  SUBNIVELES (8°A, etc) */
.menu-cursos .submenu > li > .toggle {
  background: #f4f7fb;
  border-left: 4px solid #4aa3ff;
  border-radius: 10px;
  padding: 9px;
  margin-top: 5px;
  display: block;
  font-size: 14px;
  transition: all 0.25s ease;
}

.menu-cursos .submenu > li > .toggle:hover {
  background: #e6f0ff;
  transform: translateX(6px);
}


/*  OPCIONES (Lista / Horario) */
.menu-cursos .submenu a:not(.toggle) {
  display: block;
  padding: 8px;
  margin-top: 4px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  font-size: 14px;
  transition: all 0.2s ease;
}

.menu-cursos .submenu a:not(.toggle):hover {
  background: #0e4ea8;
  color: white;
  border-color: #0e4ea8;
  transform: scale(1.03);
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: 'Roboto', sans-serif;
}

@media (max-width: 768px) {

  /* Layout general */
  .layout {
    display: flex !important;
    flex-direction: column !important;
    padding: 10px;
    gap: 10px;
  }

  /* HERO */
  .hero {
    width: 100%;
    height: auto;
  }

/* ================= MOBILE ================= */

/* ================= MENÚ ================= */

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-center > ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

/* LINKS */

.navbar a {
  color: #0B3C5D;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: 0.2s;
}

.navbar a:hover {
  color: #328CC1;
}

.active {
  color: #328CC1;
}

/* LOGO IMG */

.logo {
  height: 50px;
  width: auto;
}

/* ================= MOBILE ================= */

body {
  padding-top: 100px;
}

@media (max-width: 768px) {
  body {
    padding-top: 0;
  }
}

@media (max-width: 768px) {

  .navbar {
    position: relative;
    height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 0;
  }

  .nav-left {
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
  }

  .nav-left img {
    max-width: 140px;
    height: auto;
  }

  .nav-center {
    width: 100%;
  }

  .nav-center > ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .nav-center li {
    width: 100%;
    text-align: center;
  }

  .nav-center a {
    display: block;
    width: 100%;
  }

}

  /* ================= SIDEBAR ================= */

  .sidebar-cursos {
    position: relative !important;
    width: 100% !important;
    top: 0;
  }

  .sidebar-cursos ul {
    background: white;
    border-radius: 8px;
    padding: 10px;
  }

  /* MENÚ */
  .sidebar-cursos .dropdown-menu,
  .sidebar-cursos .submenu {
    position: static !important;
    width: 100%;
  }

  .sidebar-cursos li {
    width: 100%;
  }

  .sidebar-cursos a {
    display: block;
    width: 100%;
  }

  /* ACORDEÓN */
  .submenu,
  .dropdown-menu {
    display: none;
  }

  .submenu.activo,
  .dropdown-menu.activo {
    display: block;
  }


  /* BOTÓN */
  .btn-calendario {
    width: 100%;
    font-size: 13px;
  }

@media (max-width: 768px) {
  .instagram-img {
    display: flex !important;
    justify-content: center;
    margin: 10px auto;
  }
}

@media (max-width: 768px) {
  .instagram-img img {
    width: px; 
  }
}




  /* ================= PC (hover menú) ================= */
@media (min-width: 769px) {

  .sidebar-cursos .dropdown-menu {
    display: block;
  }

  .sidebar-cursos .submenu {
    display: none;
  }

  .sidebar-cursos .dropdown-sub:hover > .submenu {
    display: block;
  }

}

/* ================= CONTENIDO ================= */

@media (max-width: 768px) {

  .layout {
    padding: 0 !important;
    margin: 0 auto !important;
  }

}

.contenido-principal {
  width: 100% !important;
  margin: 0 auto; 
  padding: 0 10px; 
}

/* CARDS */

  .cards {
    display: flex;
    flex-direction: column;
    align-items: center;
  }


/* CARD individual */
  .card {
    grid-template-columns: 1fr;
  }


/* IMÁGENES */
img {
  max-width: 100%;
  height: auto;
}

/* GRID fallback */
.cards {
  grid-template-columns: 1fr !important;
}
  /* ================= FOOTER ================= */

  .footer {
    text-align: center;
  }

  .footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    gap: 10px;
  }

  .footer-logos img {
    max-width: 80px;
    height: auto;
  }


}
@media (max-width: 768px) {

  .navbar .dropdown-menu,
  .navbar .submenu {
    display: none;
  }

  .navbar .dropdown-menu.activo,
  .navbar .submenu.activo {
    display: block;
  }

}

@media (max-width: 768px) {

  /*  SUBMENÚS EN VERTICAL */
  .navbar .dropdown-sub .submenu {
    position: static !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    border: none !important;
  }


  .navbar .dropdown-menu,
  .navbar .submenu {
    display: none;
  }


  .dropdown.activo > .dropdown-menu {
    display: block;
  }

  .dropdown-sub.activo > .submenu {
    display: block;
  }

}


.navbar li {
  width: auto;
}
.navbar a {
  display: block;
  width: 100%;
  font-size: 17px !important;
  }



#menu-nav li a {
  font-size: 17px;
  font-weight: 500;
}

/* ========================= */
/*    MOBILE CONTACTO      */
/* ========================= */

@media (max-width: 768px) {

  /*  CONTENEDOR PRINCIPAL */
  .contacto-container {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  /*  MAPA */
  .mapa {
    width: 100%;
  }

  .mapa iframe {
    width: 100%;
    height: 250px; 
    border-radius: 12px;
  }

  /*  INFO (MUY IMPORTANTE) */
  .info {
    width: 100%;
    max-width: 100%;
  }

  /*  GRID DE TARJETAS */
  .info-grid {
    grid-template-columns: 1fr; 
    width: 100%;
  }

  /*  SECRETARÍA    */
  .secretaria {
    grid-column: span 1;
  }

  /*  TARJETAS */
  .card-info {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
  }

  /*  HERO */
  .hero-contacto {
    height: 200px;
  }

  .titulo-contacto {
    font-size: 20px;
    top: 60%;
  }

  /*  LOGO HERO */
  .logo-overlay {
    width: 60px;
    top: 10px;
    left: 10px;
  }

  /*  LOGO ABAJO */
  .logo-contacto {
    width: 80px;
    height: auto;
    display: block;
    margin: 20px auto;
  }

}

 /*  MISC    */
@media (max-width: 768px) {

  .hero,
  .hero-admision,
  .hero-contacto {
    display: none !important;
  }

}

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

@media (max-width: 768px) {

  .layout {
    padding: 0 !important;
  }

  .contenido-principal {
    padding: 0 10px !important;
  }

  .cards {
    width: 100%;
  }

  .card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

}

.recreo {
  background:#dfead7;
  font-weight:bold;
}

.retirado{
  color: #ff2b2b;
  font-weight: bold;
  background: rgba(255,0,0,0.08);
  padding: 2px 6px;
  border-radius: 6px;
}


/* ========================= */
/*    aviso urgente          */
/* ========================= */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s;
}

.modal-content {
  background: white;
  margin: 10% auto;
  padding: 25px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
}

.cerrar {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 25px;
  cursor: pointer;
}

#btnCerrar {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: #0e4ea8;
  color: white;
  cursor: pointer;
}

/* ========================= */
/*    visor docs             */
/* ========================= */

.visor-container {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.visor-pdf {
  width: 100%;
  max-width: 1000px; 
  height: 85vh;      
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  background: white;
}

/* PC por defecto */
.mobile-doc {
  display: none;
}

/* 📱 MOBILE */
@media (max-width: 768px) {

  .visor-pdf {
    display: block;
  }

  .mobile-doc {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    gap: 15px;
    text-align: center;
  }

  .btn-doc {
    background: #0B3C5D;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
  }

  .btn-doc:hover {
    background: #328CC1;
  }
}

@media (max-width: 768px){

  .visor-container {
    padding: 10px;
  }

  .visor-pdf {
    height: 75vh;
    border-radius: 8px;
  }

}

body::after {
  content: "";
  position: fixed;

  bottom: 15px;
  right: 15px;

  width: 120px;
  height: 120px;

  background: url("../img/marcaagua.png") no-repeat center;
  background-size: contain;

  opacity: 0.08;
  pointer-events: none;

  z-index: 0; 
}

/* ================================================ */
/*    Desarrollado por Cristóbal Aliaga Guerra      */
/*        Liceo Zapallar Curicó                     */
/*                2026                              */
/* ================================================ */