/* ==========================================
   VARIABLES GLOBALES CEIC - IUNAV
========================================== */
:root{
    --navy:#0F2D52;
    --navy-light:#1E4976;
    --gold:#D4A017;
    --gold-light:#F5D36C;
    --emerald:#1FA971;
    --white:#ffffff;
    --light:#f8fafc;
    --gray:#64748b;

    --shadow:0 10px 30px rgba(15,45,82,.12);
    --radius:20px;
}

/* ==========================================
   ESTILOS GENERALES
========================================== */

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Open Sans',sans-serif;
    background:
    radial-gradient(
    circle at top right,
    rgba(212,160,23,.08),
    transparent 35%),
    #f8fafc;

    color:#334155;
    overflow-x:hidden;
    line-height:1.7;
}

h1,h2,h3,h4,h5,h6{
    font-family:'Montserrat',sans-serif;
}

.text-navy-primary{
    color:var(--navy);
}

.fw-extrabold{
    font-weight:900;
}

/* ==========================================
   BARRA DE PROGRESO
========================================== */

#scrollProgress{
    position:fixed;
    top:0;
    left:0;
    width:0;
    height:5px;
    z-index:9999;

    background:linear-gradient(
    90deg,
    var(--gold),
    var(--emerald));
}

/* ==========================================
   TOP BAR
========================================== */

.top-bar{
    background:linear-gradient(
    135deg,
    var(--navy),
    #17395f);
}

.social-link{
    color:white;
    font-size:1.1rem;
    transition:.3s;
}

.social-link:hover{
    color:var(--gold);
    transform:translateY(-3px);
}

/* ==========================================
   HEADER
========================================== */

.top-header{
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(10px);
}

/* Forzar que el logotipo y el texto queden fijos sin movimiento */
.logo-box {
    animation: none !important;
}
.logo-box img:hover {
    transform: none !important;
}
.logo-box img:hover{
    transform:scale(1.05);
}

.slogan{
    letter-spacing:.5px;
}

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

@keyframes float{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-10px);
    }

    100%{
        transform:translateY(0);
    }

}

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

.navbar-custom{
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(15px);
    box-shadow:0 8px 25px rgba(0,0,0,.06);
}

.nav-link-custom{
    color:var(--navy);
    font-weight:700;
    border-radius:50px;
    padding:.8rem 1.2rem;
    transition:.3s;
}

.nav-link-custom:hover{
    background:rgba(15,45,82,.08);
}

.nav-link-custom.active{
    background:linear-gradient(
    135deg,
    var(--navy),
    var(--navy-light));
    color:white !important;
}

/* ==========================================
   BANNER ESTADO
========================================== */

.banner-status{
    background:linear-gradient(
    135deg,
    rgba(31,169,113,.10),
    rgba(212,160,23,.10)
    );
}

.bg-emerald-green{
    background:var(--emerald);
}

/* ==========================================
   HERO
========================================== */

.hero-section{
    position:relative;
    overflow:hidden;
    padding:120px 20px;
}

.hero-section::before{
    content:"";
    position:absolute;
    inset:0;

    background:linear-gradient(
    135deg,
    rgba(13, 61, 121, 0.95),
    rgba(134, 135, 190, 0.85));

    z-index:-2;
}

.hero-section::after{
    content:"";
    position:absolute;
    inset:0;
    opacity:.10;

    background:url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1")
    center/cover;

    z-index:-1;
}

.hero-section h1{
    color:white;
}

.hero-section p{
    color:rgba(255,255,255,.88) !important;
}

.gold-divider{
    width:120px;
    height:5px;

    background:linear-gradient(
    90deg,
    transparent,
    var(--gold),
    transparent);

    border-radius:50px;
}

/* ==========================================
   BOTONES
========================================== */

.btn-nav-solid{
    border:none;

    background:linear-gradient(
    135deg,
    var(--gold),
    var(--gold-light));

    color:#1f2937;
    font-weight:700;

    border-radius:50px;

    box-shadow:0 10px 25px rgba(212,160,23,.35);

    transition:.3s;
}

.btn-nav-solid:hover{
    transform:translateY(-3px);
}

.btn-nav-outline{
    border:2px solid white;
    color:white;
    border-radius:50px;
    font-weight:700;
}

.btn-nav-outline:hover{
    background:white;
    color:var(--navy);
}

/* ==========================================
   TARJETAS
========================================== */

.custom-card{
    background:white;
    border-radius:var(--radius);

    box-shadow:
    0 20px 50px rgba(15,45,82,.08);

    transition:.3s;
}

.custom-card:hover{
    transform:translateY(-6px);
}

.icon-box{
    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    box-shadow:
    0 8px 25px rgba(0,0,0,.08);
}

/* ==========================================
   MISION Y VISION
========================================== */

.mv-tabs{
    display:inline-flex;
    position:relative;

    padding:6px;
    border-radius:60px;

    background:white;

    box-shadow:var(--shadow);
}

.mv-tab{
    border:none;
    background:none;

    padding:12px 35px;

    border-radius:50px;
    font-weight:700;
    z-index:2;
}

.mv-tab.active{
    color:white;
}

.mv-pill{
    position:absolute;
    left:6px;
    top:6px;

    width:140px;
    height:calc(100% - 12px);

    border-radius:50px;

    background:linear-gradient(
    135deg,
    var(--navy),
    var(--emerald));

    transition:.4s;

    z-index:1;
}

.mv-panel{
    display:none;
}

.mv-panel.active{
    display:block;
    animation:fadeIn .5s ease;
}

/* ==========================================
   FILTROS
========================================== */

.filter-chip{
    border:none;
    background:white;

    padding:.8rem 1.3rem;

    border-radius:50px;

    font-weight:600;

    box-shadow:var(--shadow);

    transition:.3s;
}

.filter-chip:hover{
    transform:translateY(-4px);
}

.filter-chip.active{
    background:linear-gradient(
    135deg,
    var(--navy),
    var(--emerald));

    color:white;
}

/* ==========================================
   VALORES
========================================== */

.value-card{
    cursor:pointer;
    overflow:hidden;
}

.value-card:hover{
    transform:
    translateY(-8px)
    scale(1.02);

    box-shadow:
    0 25px 50px rgba(15,45,82,.15);
}

/* ==========================================
   ACORDEON
========================================== */

.accordion-item{
    border:none;
    overflow:hidden;

    border-radius:18px !important;

    margin-bottom:1rem;

    box-shadow:var(--shadow);
}

.accordion-button{
    font-weight:700;
}

.accordion-button:not(.collapsed){
    background:linear-gradient(
    135deg,
    var(--navy),
    var(--navy-light));

    color:white;
}

/* ==========================================
   MODAL
========================================== */

.modal-content{
    border-radius:25px;
}

.modal-body{
    padding:2rem;
}

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

.footer-custom{
    background:linear-gradient(
    135deg,
    #091C35,
    #122C4C);
}

.footer-custom h5,
.footer-custom h6{
    color:var(--gold);
}

/* ==========================================
   BOTON SUBIR
========================================== */

#toTop{
    position:fixed;

    bottom:25px;
    right:25px;

    width:55px;
    height:55px;

    border:none;

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

    border-radius:50%;

    background:linear-gradient(
    135deg,
    var(--gold),
    var(--gold-light));

    color:#222;

    font-size:1.2rem;

    box-shadow:
    0 10px 25px rgba(0,0,0,.25);

    cursor:pointer;

    z-index:999;

    transition:.3s;
}

#toTop:hover{
    transform:translateY(-5px);
}

/* ==========================================
   REVEAL ANIMATION
========================================== */

.reveal{
    opacity:0;
    transform:translateY(50px);
    transition:.8s ease;
}

.reveal.active{
    opacity:1;
    transform:translateY(0);
}

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(15px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:768px){

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

    .hero-section h1{
        font-size:2.2rem;
    }

    .mv-tab{
        padding:10px 18px;
    }

    .mv-pill{
        width:110px;
    }

}
/* ==========================================
GALERÍA INSTITUCIONAL
========================================== */

.gallery-card{
    position:relative;
    overflow:hidden;
    border-radius:20px;
    cursor:pointer;
    box-shadow:0 15px 40px rgba(0,0,0,.12);
}

.gallery-card img{
    width:100%;
    height:300px;
    object-fit:cover;
    transition:.6s;
}

.gallery-card:hover img{
    transform:scale(1.1);
}

.gallery-overlay{
    position:absolute;
    inset:0;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.8),
        transparent
    );

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

    padding:20px;
}

.gallery-overlay h5{
    color:white;
    font-weight:700;
    margin:0;
}

/* ==========================================
DIRECTIVOS
========================================== */

.director-card{
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 15px 40px rgba(15,45,82,.08);
    transition:.4s;
    height:100%;
}

.director-card:hover{
    transform:translateY(-10px);
}

.director-photo{
    width:180px;
    height:180px;
    border-radius:50%;
    object-fit:cover;

    border:5px solid var(--gold);

    box-shadow:
    0 10px 25px rgba(0,0,0,.15);
}

.director-position{
    display:inline-block;

    margin-top:12px;

    background:linear-gradient(
        135deg,
        var(--navy),
        var(--emerald)
    );

    color:white;

    padding:8px 18px;

    border-radius:50px;

    font-size:.9rem;
    font-weight:600;
}
.gallery-card{
    position:relative;
    overflow:hidden;
    border-radius:20px;
    cursor:pointer;
    height:300px;
}

.gallery-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.8s;
}

.gallery-card:hover img{
    transform:scale(1.15);
}

.gallery-overlay{
    position:absolute;
    inset:0;

    display:flex;
    flex-direction:column;
    justify-content:flex-end;

    padding:20px;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.85),
        transparent
    );
}

.gallery-overlay h5{
    color:white;
    margin:0;
}

.gallery-overlay small{
    color:#eee;
}

.director-card{
    text-align:center;
    background:white;
    border-radius:20px;
    padding:30px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
    transition:.4s;
}

.director-card:hover{
    transform:translateY(-12px);
}

.director-photo{
    width:180px;
    height:180px;

    object-fit:cover;

    border-radius:50%;

    border:5px solid var(--gold);

    margin-bottom:15px;

    transition:.5s;
}

.director-photo:hover{
    transform:scale(1.05);
}

.director-position{
    display:inline-block;

    background:linear-gradient(
        135deg,
        var(--navy),
        var(--emerald)
    );

    color:white;

    padding:8px 18px;
    border-radius:50px;
    margin-bottom:15px;
}
/* ==========================================
   ESTILOS PERSONALIZADOS PARA EL MENÚ
========================================== */
.navbar-nav .nav-link {
    color: var(--navy) !important; /* Cambia a color azul (usa tu variable --navy o un código hexadecimal) */
    font-size: 0.85rem !important; /* Reduce el tamaño de la letra (puedes probar 0.8rem o 0.9rem según prefieras) */
}

/* Opcional: Asegurar que cuando el enlace esté activo o en hover se vea bien */
.navbar-nav .nav-link:hover {
    color: var(--navy-light) !important;
}

/* ==========================================
   FOOTER MÁS COMPACTO Y PEQUEÑO
========================================== */
.footer-custom {
    padding-top: 1.5rem !important; /* Reduce el espacio superior (antes era pt-5) */
    padding-bottom: 1rem !important; /* Reduce el espacio inferior (antes era pb-3) */
}

.footer-custom h5, 
.footer-custom h6 {
    font-size: 0.95rem !important; /* Títulos más pequeños */
    margin-bottom: 0.5rem !important; /* Menos espacio debajo de los títulos */
}

.footer-custom p, 
.footer-custom .small {
    font-size: 0.8rem !important; /* Textos descriptivos y copyright más pequeños */
}

.footer-custom hr {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important; /* Línea divisoria más cercana al contenido */
}
/* ==========================================
   TEXTO CEIC IUNAV MÁS GRUESO
========================================== */
#alt-logo-header,
#alt-logo-nav {
    font-weight: 800 !important; /* 700 es negrita normal, 800 o 900 las hace más gruesas */
}