:root {
    --ink: #12324b;
    --navy: #0b3152;
    --blue: #1268ad;
    --green: #147d62;
    --mint: #56c49a;
    --mist: #f3f8f8;
    --line: #dce9e8;
    --shadow: 0 18px 50px rgba(11, 49, 82, .09);
}

html { 
    scroll-behavior: smooth; 
}

body { 
    color: var(--ink); 
    background: var(--mist); 
    font-family: 'DM Sans', sans-serif;
    margin: 0;
}

h1, h2, h3 { 
    font-family: 'Manrope', sans-serif; 
}

a, button { 
    -webkit-tap-highlight-color: transparent; 
}

:focus-visible { 
    outline: 3px solid var(--mint); 
    outline-offset: 3px; 
}

.container { 
    max-width: 1240px; 
}

/* ========================================================
   BARRA SUPERIOR (TOPBAR)
======================================================== */
.site-topbar { 
    background: #082b47; 
    border-bottom: 1px solid rgba(255, 255, 255, .1); 
}

.site-topbar .container { 
    gap: 1rem; 
}

.site-topbar a { 
    color: #dfedee; 
    font-size: .75rem; 
    font-weight: 600; 
    text-decoration: none;
    transition: color .2s;
}

.site-topbar a:hover { 
    color: #7fe1b8; 
}

/* ========================================================
   CABECERA PRINCIPAL (HEADER)
======================================================== */
.site-header { 
    box-shadow: none; 
    border-bottom: 1px solid var(--line); 
    background: #ffffff;
}

.site-header > .container { 
    min-height: 136px; 
    gap: 1.5rem; 
}

.brand-lockup { 
    display: flex; 
    align-items: center; 
}

.brand-lockup img { 
    display: block; 
    width: min(460px, calc(100vw - 2rem)); 
    height: auto; 
    max-width: 100%; 
    object-fit: contain; 
}

.header-message h2 { 
    font-size: .84rem; 
    color: #486273; 
    font-weight: 700; 
}

.header-message p { 
    color: #8096a1; 
    font-size: .72rem; 
}

.header-actions { 
    gap: .7rem; 
}

.header-actions form { 
    min-width: 180px; 
}

.header-actions input { 
    background: #f4f8fa; 
    border: 1px solid #e1ebed; 
    border-radius: 12px; 
    font-size: .82rem; 
    padding: .75rem 2.6rem .75rem 1rem; 
}

.header-actions a { 
    background: var(--green); 
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px; 
    box-shadow: 0 8px 20px rgba(20, 125, 98, .18); 
    padding: .82rem 1rem; 
    transition: background .2s;
}

.header-actions a:hover { 
    background: #0e624d; 
}

/* ========================================================
   BARRA DE NAVEGACIÓN (NAV)
======================================================== */
.site-nav { 
    background: var(--navy); 
    border-bottom: 3px solid var(--green); 
    box-shadow: 0 10px 25px rgba(11, 49, 82, .12); 
}

.site-nav > .container > div:first-child { 
    min-height: 58px; 
    height: auto; 
}

.site-nav a[href="index.php"] .rounded-full { 
    background: var(--mint); 
}

.site-nav ul.hidden.md\:flex { 
    flex-wrap: wrap; 
    justify-content: flex-end; 
}

.site-nav .dropdown-menu { 
    display: block; 
    pointer-events: none; 
}

.site-nav .group:hover > .dropdown-menu, 
.site-nav .group:focus-within > .dropdown-menu { 
    pointer-events: auto; 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.site-nav .dropdown-menu ul { 
    background: #103c60; 
    border-color: #2a5b78; 
}

.site-nav a:hover, 
.site-nav button:hover { 
    color: #fff; 
}

.site-nav .dropdown-menu a:hover, 
.site-nav #mobile-menu a:hover { 
    background: var(--green); 
}

.site-nav .group:hover .dropdown-menu { 
    display: block; 
}

/* ========================================================
   HERO SLIDER LIMPIO (SOLO IMAGEN)
======================================================== */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    padding: 1.5rem 1rem 0;
    max-width: 1360px;
    margin: 0 auto;
}

.hero-slider-modern {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 36px -10px rgba(11, 49, 82, 0.18);
    background: #092338;
}

.slides-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s ease;
    z-index: 1;
}

.hero-slide-item.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Flechas laterales flotantes */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
}

.slider-arrow svg {
    width: 20px;
    height: 20px;
}

.slider-arrow-prev { 
    left: 16px; 
}

.slider-arrow-next { 
    right: 16px; 
}

.hero-slider-modern:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: rgba(20, 125, 98, 0.85);
    transform: translateY(-50%) scale(1.08);
}

/* Barra de control inferior */
.slider-controls-bar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ctrl-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.75rem;
    transition: transform 0.15s, color 0.15s;
}

.ctrl-btn:hover {
    color: #56c49a;
    transform: scale(1.15);
}

.slider-progress-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.progress-bar-dot {
    position: relative;
    width: 14px;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: width 0.3s ease;
}

.progress-bar-dot.active {
    width: 40px;
    background: rgba(255, 255, 255, 0.35);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #56c49a;
    border-radius: 99px;
}

.progress-bar-dot.active .progress-fill {
    width: 100%;
    transition: width 7s linear;
}

@media (max-width: 768px) {
    .hero-slider-modern {
        height: 260px;
        border-radius: 14px;
    }
    .slider-arrow {
        opacity: 0.85;
        width: 36px;
        height: 36px;
    }
    .slider-arrow-prev { left: 8px; }
    .slider-arrow-next { right: 8px; }
    .slider-controls-bar {
        bottom: 12px;
        padding: 0.3rem 0.6rem;
    }
}

/* ========================================================
   SECCIÓN DE ACCESOS DESTACADOS
======================================================== */
.home-main { 
    padding-top: 2.4rem; 
    padding-bottom: 1.25rem; 
}

.home-main > section, 
.home-main > div { 
    margin-bottom: 3.5rem; 
}

.quick-access { 
    padding: clamp(1.5rem, 3vw, 2.35rem); 
    background: #f8fbfc; 
    border: 1px solid #dce7eb; 
    border-radius: 18px; 
}

.quick-heading { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    margin-bottom: 1.5rem; 
    padding-bottom: 1.2rem; 
    border-bottom: 1px solid #dce7eb; 
}

.quick-heading h2 { 
    font-size: clamp(1.6rem, 2.5vw, 2.25rem); 
    letter-spacing: -.045em; 
    color: var(--navy); 
    font-weight: 800; 
    margin: 0;
}

.quick-heading p { 
    color: #59717d; 
    margin-top: .35rem; 
    font-size: .88rem; 
}

.section-kicker { 
    display: inline-block; 
    color: var(--green); 
    font-size: .72rem; 
    font-weight: 800; 
    letter-spacing: .14em; 
    text-transform: uppercase; 
    margin-bottom: .7rem; 
}

.quick-grid { 
    display: grid; 
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
    gap: .8rem; 
}

.quick-card { 
    display: grid; 
    grid-template-columns: 52px minmax(0, 1fr) 26px; 
    grid-template-rows: 18px auto; 
    align-items: center; 
    column-gap: .9rem; 
    min-height: 132px; 
    padding: 1rem 1.1rem; 
    border: 1px solid #dce6eb; 
    border-radius: 11px; 
    background: #fff; 
    text-decoration: none; 
    transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; 
}

.quick-card:hover, 
.quick-card:focus-visible { 
    transform: translateY(-2px); 
    border-color: #8ab4c9; 
    background: #fff; 
    box-shadow: 0 12px 25px rgba(11, 49, 82, .09); 
}

.quick-number { 
    grid-column: 1; 
    grid-row: 1; 
    align-self: start; 
    color: #8097a3; 
    font-size: .67rem; 
    font-weight: 800; 
    letter-spacing: .1em; 
}

.quick-icon { 
    grid-column: 1; 
    grid-row: 2; 
    width: 48px; 
    height: 48px; 
    border-radius: 10px; 
    color: var(--navy); 
    background: #edf4f7; 
    display: grid; 
    place-items: center; 
}

.quick-text { 
    grid-column: 2; 
    grid-row: 2; 
    display: flex; 
    flex-direction: column; 
    gap: .3rem; 
    min-width: 0; 
}

.quick-label { 
    color: var(--navy); 
    font-size: .86rem; 
    line-height: 1.4; 
    font-weight: 800; 
}

.quick-meta { 
    color: #607d89; 
    font-size: .7rem; 
    font-weight: 600; 
}

.quick-arrow { 
    grid-column: 3; 
    grid-row: 2; 
    display: grid; 
    place-items: center; 
    width: 26px; 
    height: 26px; 
    border-radius: 50%; 
    color: var(--blue); 
    background: #eaf3f8; 
    font-size: 1rem; 
    transition: transform .2s, background .2s, color .2s; 
}

.quick-card:hover .quick-arrow, 
.quick-card:focus-visible .quick-arrow { 
    transform: translate(2px, -2px); 
    color: #fff; 
    background: var(--blue); 
}

@media (max-width: 900px) { 
    .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } 
}

@media (max-width: 640px) { 
    .quick-grid { grid-template-columns: 1fr; } 
    .quick-card { min-height: 112px; } 
}

/* ========================================================
   SECCIÓN DE MISIÓN Y PILARES
======================================================== */
.mission-strip { 
    display: grid; 
    grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr); 
    gap: 2rem; 
    align-items: center; 
    padding: 2rem 0; 
}

.mission-intro h2 { 
    color: var(--navy); 
    font-size: clamp(1.65rem, 2.6vw, 2.3rem); 
    font-weight: 800; 
    letter-spacing: -.05em; 
    line-height: 1.18; 
}

.mission-intro p { 
    color: #657f8b; 
    margin-top: .8rem; 
    font-size: .9rem; 
    line-height: 1.7; 
}

.mission-grid { 
    display: grid; 
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
    gap: .85rem; 
}

.mission-card { 
    min-height: 185px; 
    padding: 1.35rem; 
    background: #fff; 
    border: 1px solid var(--line); 
    border-radius: 18px; 
    box-shadow: 0 9px 26px rgba(11, 49, 82, .05); 
}

.mission-icon { 
    display: grid; 
    place-items: center; 
    width: 42px; 
    height: 42px; 
    background: #e5f5ec; 
    color: var(--green); 
    border-radius: 11px; 
    margin-bottom: 1rem; 
}

.mission-icon svg { 
    width: 23px; 
    height: 23px; 
}

.mission-card h3 { 
    color: var(--navy); 
    font-size: .88rem; 
    font-weight: 800; 
    margin-bottom: .3rem; 
}

.mission-card p { 
    color: #6a828c; 
    font-size: .75rem; 
    line-height: 1.55; 
}

@media (max-width: 1023px) { 
    .mission-strip { grid-template-columns: 1fr; gap: 1.2rem; } 
}

@media (max-width: 640px) { 
    .mission-grid { grid-template-columns: 1fr; } 
    .mission-card { min-height: 0; } 
}

/* ========================================================
   NOTICIAS, REDES SOCIALES Y SIDEBAR
======================================================== */
.news-section, 
.social-section > div, 
.home-sidebar > div, 
.institutional-links { 
    border: 1px solid var(--line); 
    box-shadow: var(--shadow); 
    border-radius: 22px; 
}

.news-section { 
    padding: clamp(1.2rem, 3vw, 2.2rem); 
}

.news-prev, 
.news-next { 
    background: #eef6f4; 
    color: var(--green); 
    border-color: #d8e9e3; 
}

.news-prev:hover, 
.news-next:hover { 
    background: var(--green); 
    border-color: var(--green); 
    color: #fff; 
}

.institutional-links { 
    padding: .8rem; 
}

.institutional-link-slide { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 94px; 
    padding: .4rem; 
}

.institutional-link { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    min-height: 82px; 
    padding: .7rem; 
    border: 1px solid transparent; 
    border-radius: 13px; 
    background: #f5f9fa; 
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease; 
    text-decoration: none; 
}

.institutional-link img { 
    display: block; 
    width: auto; 
    max-width: 100%; 
    max-height: 54px; 
    object-fit: contain; 
    filter: saturate(.86); 
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), filter .3s ease; 
}

.institutional-link:hover, 
.institutional-link:focus-visible { 
    transform: translateY(-3px); 
    background: #e8f6f3; 
    border-color: #8fd8bc; 
    box-shadow: 0 8px 20px rgba(10, 72, 87, .12); 
}

.institutional-link:hover img, 
.institutional-link:focus-visible img { 
    transform: scale(1.16); 
    filter: saturate(1.18); 
}

/* ========================================================
   PIE DE PÁGINA (FOOTER)
======================================================== */
.site-footer { 
    margin-top: 3rem; 
    background: #082b47; 
    color: #c8dbe3; 
}

.footer-banner { 
    width: 100%; 
    margin: 0; 
    border-bottom: 4px solid #57bf96; 
}

.footer-banner img { 
    display: block; 
    width: 100%; 
    height: auto; 
    object-fit: contain; 
}

.site-footer .footer-content { 
    padding-top: clamp(2.1rem, 4vw, 3.2rem); 
    padding-bottom: 1.25rem; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr) minmax(0, 1.1fr); 
    gap: clamp(1.5rem, 4vw, 4rem); 
}

.footer-brand { 
    display: flex; 
    align-items: center; 
    gap: .85rem; 
}

.footer-brand-icon { 
    display: grid; 
    place-items: center; 
    flex: none; 
    width: 49px; 
    height: 49px; 
    border: 1px solid rgba(145, 220, 185, .35); 
    border-radius: 12px; 
    background: rgba(120, 211, 169, .1); 
    color: #93e0bb; 
}

.footer-brand-icon svg { 
    width: 27px; 
    height: 27px; 
}

.footer-brand strong { 
    color: #fff; 
    font-family: 'Manrope', sans-serif; 
    font-size: 1.18rem; 
    font-weight: 800; 
    line-height: 1.2; 
}

.footer-brand span:last-child { 
    color: #a5c1ce; 
    font-size: .76rem; 
}

.footer-phrase { 
    max-width: 340px; 
    margin-top: 1.25rem; 
    padding-left: .85rem; 
    border-left: 3px solid #66c99f; 
    color: #c8dbe3; 
    font-size: .87rem; 
    line-height: 1.65; 
}

.footer-column h2 { 
    margin: 0 0 1.1rem; 
    color: #fff; 
    font-family: 'Manrope', sans-serif; 
    font-size: .93rem; 
    font-weight: 800; 
}

.footer-contact-list, 
.footer-nav-list { 
    display: grid; 
    gap: .85rem; 
    margin: 0; 
    padding: 0; 
    list-style: none; 
}

.footer-contact-list li { 
    display: flex; 
    align-items: flex-start; 
    gap: .7rem; 
    min-width: 0; 
    color: #bed3dc; 
    font-size: .83rem; 
    line-height: 1.5; 
    overflow-wrap: anywhere; 
}

.footer-contact-icon { 
    display: grid; 
    place-items: center; 
    flex: none; 
    width: 24px; 
    height: 24px; 
    border-radius: 6px; 
    background: rgba(127, 210, 167, .12); 
    color: #8ad9b1; 
    font-size: .88rem; 
    line-height: 1; 
}

.footer-contact-list a, 
.footer-nav-list a { 
    color: #d2e2e8; 
    text-decoration: none; 
}

.footer-contact-list a:hover, 
.footer-nav-list a:hover { 
    color: #9de7bf; 
    text-decoration: underline; 
    text-underline-offset: 3px; 
}

.footer-nav-list { 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: .7rem 1rem; 
}

.footer-nav-list a { 
    display: inline-flex; 
    align-items: flex-start; 
    gap: .45rem; 
    font-size: .81rem; 
    line-height: 1.4; 
}

.footer-nav-list a::before { 
    content: "→"; 
    flex: none; 
    color: #78d1a6; 
}

.footer-bottom { 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: .5rem 1.5rem; 
    margin-top: clamp(2rem, 4vw, 3rem); 
    padding-top: 1.15rem; 
    border-top: 1px solid rgba(255, 255, 255, .15); 
    color: #9eb9c5; 
    font-size: .73rem; 
}

@media (max-width: 900px) { 
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } 
    .footer-about { grid-column: 1 / -1; } 
    .footer-phrase { max-width: 620px; } 
}

@media (max-width: 600px) { 
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; } 
    .footer-about { grid-column: auto; } 
    .footer-nav-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } 
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { 
        animation-duration: .01ms !important; 
        transition-duration: .01ms !important; 
    }
}