/* =====================================================
   IEM CIUDAD EBEN EZER
   PORTAL INSTITUCIONAL
===================================================== */

/* ================= VARIABLES ================= */

:root{
    --azul:#1E3A5F;
    --verde:#2E8B57;
    --blanco:#FFFFFF;
    --gris:#F4F6F8;
    --texto:#333333;

    --sombra:0 4px 15px rgba(0,0,0,.12);
    --transicion:.3s ease;
}

/* ================= RESET ================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    color:var(--texto);
    background:var(--blanco);
    line-height:1.5;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}

/* ================= HEADER / NAVBAR ================= */

.header{
    width:100%;
}

/* NAVBAR UNIFICADA */
.navbar-unificada{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:var(--azul);
    padding:6px 45px;
    color:white;
    position:sticky;
    top:0;
    z-index:1000;
}

/* IZQUIERDA */
.navbar-left{
    display:flex;
    align-items:center;
    gap:18px;
}

.logo{
    width:95px;
    height:auto;
}

.navbar-texto h1{
    font-size:1.45rem;
}

.navbar-texto p{
    font-size:.92rem;
    opacity:.9;
}

/* ================= MENÚ (AJUSTE FINAL POSICIÓN) ================= */

.navbar-right{
    display:flex;
    align-items:flex-end;
    margin-left:auto;
    padding-right:40px;
}

.navbar-right ul{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:22px;
    transform:translateY(6px);
}

/* LINKS */
.navbar-right a{
    color:white;
    font-weight:600;
    font-size:1.1rem;
    padding:12px 14px;
    position:relative;
    transition:var(--transicion);
    border-radius:4px;
    display:inline-block;
    white-space:nowrap;
}

/* ================= HOVER SIMPLE ================= */

.navbar-right a:hover{
    background:white;
    color:var(--azul);
}

/* ================= LÍNEA NEÓN ================= */

.navbar-right a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:4px;
    width:0%;
    height:2px;
    background:#7CFFB2;
    box-shadow:0 0 6px #7CFFB2;
    transition:var(--transicion);
}

.navbar-right a:hover::after{
    width:100%;
}

/* ================= DROPDOWN ================= */

.navbar-right li{
    position:relative;
}

.dropdown-menu{
    position:absolute;
    top:100%;
    left:0;
    background:white;
    min-width:220px;
    display:none;
    flex-direction:column;
    box-shadow:var(--sombra);
    border-radius:0 0 6px 6px;
    overflow:hidden;
}

.dropdown:hover .dropdown-menu{
    display:flex;
}

.dropdown-menu a{
    color:var(--texto);
    padding:12px 14px;
    font-size:1rem;
    border-bottom:1px solid #eee;
    position:relative;
}

/* ================= NEÓN SUBMENU ================= */

.dropdown-menu a::after{
    content:"";
    position:absolute;
    left:10px;
    bottom:6px;
    width:0%;
    height:2px;
    background:#7CFFB2;
    box-shadow:0 0 6px #7CFFB2;
    transition:var(--transicion);
}

.dropdown-menu a:hover::after{
    width:80%;
}

.dropdown-menu a:hover{
    background:var(--gris);
    color:var(--azul);
}

/* ================= HERO ================= */

.hero{
    position:relative;
    height:75vh;
    overflow:hidden;
}

/* 🔥 FIX IMPORTANTE PARA CARRUSEL */
.slides{
    position:absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
}

.slide{
    position:absolute;
    width:100%;
    height:100%;
    background-size:cover;
    background-position:center;
    opacity:0;
    transition:1.2s ease;
}

.slide.active{
    opacity:1;
}

.hero::before{
    content:"";
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.45);
    z-index:1;
}

.hero-content{
    position:absolute;
    z-index:2;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    text-align:center;
    color:white;
}

.hero-content h1{
    font-size:3.2rem;
    font-weight:500;
    margin-bottom:10px;
}

.hero-content p{
    font-size:1.4rem;
}

/* ================= DOTS ================= */

.dots{
    position:absolute;
    bottom:18px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:8px;
    z-index:3;
}

.dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:white;
    opacity:.4;
}

.dot.active{
    background:#2E8B57;
    opacity:1;
}

/* ================= BOTONES ================= */

.hero-buttons{
    margin-top:18px;
}

.hero-buttons a{
    display:inline-block;
    padding:14px 28px;
    margin:6px;
    border-radius:6px;
    font-weight:bold;
    font-size:1.1rem;
    transition:var(--transicion);
    box-shadow:0 4px 10px rgba(0,0,0,0.25);
}

.hero-buttons a:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 22px rgba(0,0,0,0.25);
}

.btn-principal{
    background:var(--verde);
    color:white;
}

.btn-secundario{
    background:var(--azul);
    color:white;
}

/* ================= SECCIONES ================= */

.section{
    padding:40px 20px;
}

.section-alt{
    background:var(--gris);
}

.separador{
    text-align:center;
    font-size:1.8rem;
    margin-bottom:25px;
    color:var(--azul);
}

/* ================= CARDS ================= */

.cards{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:20px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px){
    .cards{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media (max-width: 600px){
    .cards{
        grid-template-columns:1fr;
    }
}

/* ================= CARD ================= */

.card{
    background:white;
    padding:20px;
    box-shadow:var(--sombra);
    border-radius:10px;
    transition:.3s ease;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 14px 26px rgba(0,0,0,0.18);
}

/* ================= INFO GRID ================= */

.info-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.bloque{
    background:white;
    padding:20px;
    border-left:4px solid var(--azul);
    box-shadow:var(--sombra);
}

/* ================= FOOTER ================= */

.footer{
    background:var(--azul);
    color:white;
    padding:40px 20px;
    text-align:center;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
    margin-bottom:20px;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.2);
    padding-top:15px;
    font-size:.9rem;
}