
/* ================= RESET ================= */
*{box-sizing:border-box;scroll-behavior:smooth;} 
body,html{margin:0;padding:0;font-family:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif;color:#333;background:linear-gradient(135deg,#ffffff 0%,#f0f0f0 100%);background-attachment:fixed;}

/* ================= HEADER ================= */
.top-header{background:#fff;padding:10px 15px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 4px 10px rgba(0,0,0,0.1);}
.logo-wrapper img{height:100px;transition: transform 0.5s ease;}
.logo-wrapper img:hover{transform: scale(1.1);}
.logo-divider{height:3px;width:100%;background-color:#990000;margin-top:0;}
.menu-btn{font-size:26px;cursor:pointer;color:#990000;}

/* ================= SIDEBAR ================= */
.sidebar{height:100%;width:0;position:fixed;z-index:3000;top:0;left:0;background:linear-gradient(135deg,#990000,#cc0000);overflow-x:hidden;transition:0.4s;padding-top:60px;}
.sidebar a{padding:12px 20px;text-decoration:none;font-size:18px;color:#fff;display:block;transition:0.3s;}
.sidebar a:hover{background:rgba(255,255,255,0.2);}
.sidebar .closebtn{position:absolute;top:15px;right:20px;font-size:30px;color:#fff;cursor:pointer;}

/* ================= SCHOOL NAME ================= */
.school-name{text-align:center;margin:15px 10px;}
.school-name h1{font-weight:bold;margin:0;display:inline-block;animation: dropBounce 1.5s ease forwards;transform:translateY(-200px);background:linear-gradient(135deg,#990000,#cc0000);-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-size:1.8em;}
.school-name h4{margin:5px 0 0 0;font-weight:normal;font-style:italic;color:#cc0000;font-size:1em;}
@keyframes dropBounce{0%{transform:translateY(-200px) rotate(-10deg);opacity:0;}60%{transform:translateY(20px) rotate(5deg);opacity:1;}80%{transform:translateY(-10px) rotate(-3deg);}100%{transform:translateY(0) rotate(0deg);}}

/* ================= NAVBAR COMPACTA - DOS FILAS ================= */
.navbar-icons{position:relative;background:url('plantel.jpeg') no-repeat center/cover;border-top:3px solid #990000;border-bottom:3px solid #ebebebff;padding:15px 0;margin-bottom:20px;border-radius:12px;box-shadow:0 8px 20px rgba(0,0,0,0.2);overflow:hidden}
.navbar-icons::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(153,0,0,0.5);backdrop-filter:blur(3px);z-index:0;border-radius:12px}
.navbar-icons ul{position:relative;z-index:1;list-style:none;padding:0;margin:0 auto;display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:1200px}
.navbar-icons ul li{flex:1 1 120px;max-width:150px;margin:5px;border-radius:8px;display:flex;justify-content:center;position:relative;transition:transform 0.3s}
.navbar-icons ul li:hover{transform:translateY(-5px)}
.navbar-icons ul li a{color:#fff;font-weight:600;text-decoration:none;display:flex;flex-direction:column;align-items:center;font-size:13px;padding:8px;transition:all 0.3s}
.navbar-icons ul li a .nav-icon{font-size:22px;margin-bottom:3px;transition:color 0.3s,transform 0.3s}
.navbar-icons ul li a:hover .nav-icon{color:#ff6666;transform:rotate(15deg) scale(1.2)}
.navbar-icons ul li.dropdown>a::after{content:"\f0d7";font-family:"Font Awesome 5 Free";font-weight:900;margin-left:3px}
.navbar-icons ul li .dropdown-menu{display:none;position:absolute;top:100%;left:0;background:rgba(255,255,255,0.95);border-radius:8px;min-width:140px;text-align:left;z-index:10;padding:0}
.navbar-icons ul li.dropdown:hover .dropdown-menu{display:block}
.navbar-icons ul li .dropdown-menu li a{color:#333;padding:8px 12px;display:block;font-weight:500;transition:0.3s}
.navbar-icons ul li .dropdown-menu li a:hover{background:linear-gradient(135deg,#990000,#cc0000);color:#fff}
/* Navbar móvil mejorado - 2 columnas horizontales */
@media (max-width: 768px) {
  .navbar-icons ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* espacio entre íconos */
    padding: 10px;
  }
  .navbar-icons ul li {
    flex: 1 1 45%; /* 2 por fila, un poco de margen */
    max-width: 45%;
    text-align: center;
    margin: 8px 0;
  }
  .navbar-icons ul li a {
    font-size: 13px;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .navbar-icons ul li a .nav-icon {
    font-size: 24px;
    margin-bottom: 5px;
  }
  .navbar-icons ul li.dropdown .dropdown-menu {
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
  }
}

/* ================= SLIDER PRESENTACIONES ================= */
#presentation-slider { 
    max-width:100%; 
    height:400px; 
    margin:auto; 
    overflow:hidden; 
    position:relative; 
}

#presentation-slider .slide { 
    display:none; 
    width:100%; 
    height:100%; 
}

.slider-btn { 
    position:absolute; 
    top:50%; 
    transform:translateY(-50%); 
    font-size:36px; 
    color:#fff; 
    background:rgba(153,0,0,0.7); 
    padding:10px; 
    border-radius:50%; 
    cursor:pointer; 
    z-index:10; 
}

.slider-btn:hover { 
    background:rgba(153,0,0,0.9); 
}

.prev { left:10px; } 
.next { right:10px; }

#indicators span { 
    width:10px; 
    height:10px; 
    background:#ddd; 
    border-radius:50%; 
    display:inline-block; 
    cursor:pointer; 
}

#indicators span.active { 
    background:#990000; 
}

/* ================ BOTÓN FLOTANTE AJUSTADO ========== */
#btnOpenFull {
    position:absolute;
    bottom:8px; /* Lo bajamos un poco */
    right:15px;
    padding:8px 15px;
    font-size:14px;
    background:rgba(153,0,0,0.7);
    color:#fff;
    border:none;
    border-radius:6px;
    cursor:pointer;
    opacity:0.8;
    transition:0.3s;
    z-index:5;
}
#btnOpenFull:hover {
    opacity:1;
    background:rgba(153,0,0,0.9);
}



/* ================= CONTENIDO ================= */
.container{max-width:1200px;margin:auto;padding:0 10px;}
.card-section{background:#fff;border-radius:12px;padding:20px;margin-bottom:20px;box-shadow:0 6px 15px rgba(0,0,0,0.1);transition: transform 0.3s, box-shadow 0.3s;}
.card-section:hover{transform:translateY(-5px);box-shadow:0 10px 25px rgba(0,0,0,0.15);}
.titulo-oferta{font-size:20px;font-weight:700;text-align:center;margin-bottom:15px;color:#990000;text-transform:uppercase;letter-spacing:1px;position:relative;}
.titulo-oferta::after{content:"";display:block;width:50px;height:3px;background:linear-gradient(135deg,#990000,#cc0000);margin:6px auto 0;border-radius:3px;}
.oferta-educativa{list-style:none;padding:0;margin:0;}
.oferta-educativa li{margin-bottom:12px;border-radius:12px;overflow:hidden;box-shadow:0 3px 6px rgba(0,0,0,0.08);transition: transform 0.3s ease, box-shadow 0.3s ease;}
.oferta-educativa li a{display:block;padding:12px 15px;font-size:14px;font-weight:600;text-decoration:none;background:#fff;color:#333;transition: all 0.3s ease;}
.oferta-educativa li a::before{content:"🎓";margin-right:8px;font-size:16px;}
.oferta-educativa li:hover{transform:translateY(-3px);box-shadow:0 5px 12px rgba(0,0,0,0.12);}
.oferta-educativa li:hover a{background:linear-gradient(135deg,#990000,#cc0000); color:#fff;}

/* ================= FOOTER ULTRAESTÉTICO ================= */
footer {
    background: linear-gradient(135deg,#990000,#cc0000);
    color: #fff;
    padding: 12px 15px;          /* muy fino */
    font-family: "Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
    text-align: center;
    position: relative;
    width: 100%;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.1);
}

footer h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    color: #fff;
}

.privacy {
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    margin: 3px 0;
}

.footer-social {
    margin: 6px 0;
}

.footer-social a {
    color: #fff;
    font-size: 16px;
    margin: 0 5px;
    display: inline-block;
    transition: transform 0.3s, color 0.3s;
}

.footer-social a:hover {
    color: #ff6666;
    transform: scale(1.2) rotate(5deg);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 6px;
    padding-top: 6px;
    font-size: 10px;
    color: rgba(255,255,255,0.8);
}

/* ================= MODAL ANUNCIO RESPONSIVO ================= */
#modalAnuncio{display:none;position:fixed;z-index:2000;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,0.6);justify-content:center;align-items:center;padding:10px;}
#modalAnuncio .contenido{background:#fff;padding:0;border-radius:12px;width:80%;max-width:800px;height:auto;text-align:center;position:relative;box-shadow:0 6px 20px rgba(0,0,0,0.25);animation:aparecer 0.5s ease;}
#modalAnuncio .cerrar{position:absolute;top:8px;right:10px;font-size:1.2rem;font-weight:bold;color:#990000;cursor:pointer;z-index:10;}
#modalAnuncio iframe,#modalAnuncio img{width:100%;height:50vw;max-height:450px;border:none;border-radius:12px;object-fit:contain;}
@keyframes aparecer{0%{transform:scale(0.7);opacity:0;}100%{transform:scale(1);opacity:1;}}
@media(max-width:1024px){#modalAnuncio .contenido{width:90%;}#modalAnuncio iframe,#modalAnuncio img{height:45vw;}}
@media(max-width:768px){#modalAnuncio .contenido{width:95%;}#modalAnuncio iframe,#modalAnuncio img{height:55vw;}}
@media(max-width:480px){#modalAnuncio .contenido{width:98%;}#modalAnuncio iframe,#modalAnuncio img{height:65vw;}}

/* ================= UBICACION RESPONSIVA ================= */
.ubicacion-row{display:flex; flex-wrap:wrap; gap:15px;}
.ubicacion-row .col-md-6{flex:1; min-width:250px;}
.ubicacion-row iframe, .ubicacion-row img{
    width:100%;
    height:250px;
    border-radius:12px;
    object-fit:cover;
    box-shadow:0 4px 10px rgba(0,0,0,0.15);
}

/* ================= ZOOM EN PANTALLA COMPLETA ================= */
#zoomOverlay {
  display: none;               /* Inicialmente oculto */
  position: fixed;             /* Fijo sobre toda la pantalla */
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9); /* Fondo negro semitransparente */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
}

#zoomOverlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255,255,255,0.3);
  transition: transform 0.3s ease;
}

#news-slider {
  position: relative;
  width: 100%;
  height: 450px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Cada slide */
#news-slider .slide-news {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  opacity: 0;
  transition: opacity 1s ease;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
}

/* Slide visible */
#news-slider .slide-news.active {
  opacity: 1;
  z-index: 5;
}

/* Imagen dentro del slide */
#news-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

/* Al pasar el mouse */
#news-slider .slide-news:hover img {
  transform: scale(1.05);
}

/* Al hacer clic: zoom completo */
#news-slider img.zoomed {
  transform: scale(1.6);
  cursor: zoom-out;
  transition: transform 0.5s ease;
}

/* Botones de navegación */
.slider-news-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: #fff;
  background: rgba(153, 0, 0, 0.7);
  padding: 8px 14px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  transition: 0.3s;
  z-index: 10;
}
.slider-news-btn:hover {
  background: rgba(153, 0, 0, 0.9);
}
.prev-news { left: 15px; }
.next-news { right: 15px; }

/* Indicadores */
#news-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 15;
}
#news-indicators span {
  width: 10px;
  height: 10px;
  background: #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}
#news-indicators span.active {
  background: #990000;
}

/* Responsivo */
@media(max-width:768px){
  #news-slider{height:250px;}
}
@media(max-width:480px){
  #news-slider{height:200px;}
}



/* ================= MEDIA QUERIES ================= */
@media(max-width:768px){
    .school-name h1{font-size:1.4em;}
    .school-name h4{font-size:0.9em;}
    .navbar-icons ul{flex-wrap:wrap; gap:5px;}
    .navbar-icons ul li a{font-size:12px;}
    #presentation-slider{height:250px;}
    #modalAnuncio iframe{height:200px;}
    .ubicacion-row iframe, .ubicacion-row img{height:200px;}
    #news-slider{height:200px;}
}
@media(max-width:480px){
    .school-name h1{font-size:1.2em;}
    .school-name h4{font-size:0.8em;}
    .navbar-icons ul li a{font-size:11px;}
    #presentation-slider{height:200px;}
    #modalAnuncio iframe{height:180px;}
    .ubicacion-row iframe, .ubicacion-row img{height:180px;}
    #news-slider{height:180px;}
}
