/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primary:      #777777;
    --primary-dark: #555555;
    --primary-light:#999999;
    --accent:       #f0b429;
    --text:         #333;
    --text-light:   #666;
    --bg:           #f4f6fb;
    --white:        #fff;
    --border:       #dde3ed;
    --radius:       .4rem;
    --shadow:       0 3px 14px rgba(0,0,0,.10);
    --transition:   .25s ease;
}
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.65; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 1.25rem; }
/* ── Mixin cromado ── */
.btn-primary-pub,
.btn-outline-pub,
.btn-orgview,
.btn-toggle-pub {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s, box-shadow .22s, filter .22s;
    vertical-align: middle;
}
/* Destello cromado */
.btn-primary-pub::after,
.btn-outline-pub::after,
.btn-orgview::after,
.btn-toggle-pub::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
    transform: skewX(-18deg);
    transition: left .42s ease;
    pointer-events: none;
}
.btn-primary-pub:hover::after,
.btn-outline-pub:hover::after,
.btn-orgview:hover::after,
.btn-toggle-pub:hover::after { left: 135%; }

.btn-primary-pub:hover,
.btn-outline-pub:hover,
.btn-orgview:hover,
.btn-toggle-pub:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 4px 14px rgba(26,60,110,.22);
}
.btn-primary-pub:active,
.btn-outline-pub:active,
.btn-orgview:active,
.btn-toggle-pub:active {
    transform: translateY(0);
    filter: brightness(.95);
    box-shadow: none;
}

/* Variantes */
.btn-primary-pub {
    background: linear-gradient(155deg, #2a5fa8 0%, var(--primary) 100%);
    color: #fff;
    padding: .55rem 1.4rem;
    font-size: .875rem;
    border: 1px solid #1a3c6e;
    box-shadow: 0 2px 6px rgba(26,60,110,.18);
}
.btn-primary-pub:hover { color: #fff; }

.btn-outline-pub {
    background: transparent;
    color: var(--primary);
    padding: .5rem 1.2rem;
    font-size: .875rem;
    border: 2px solid var(--primary);
}
.btn-outline-pub:hover { color: var(--primary); }

/* ── TOPBAR ── */
/* ── BANDA DE IDENTIDAD ── */
#identity-band {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}
.identity-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    text-align: left;
}
.identity-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.10));
}
.identity-logo--extra { height: 56px; }
.identity-logo-divider {
    width: 1px;
    height: 48px;
    background: var(--border, #e2e8f0);
    flex-shrink: 0;
}
.identity-logo-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.identity-text {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.identity-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -.01em;
}
.identity-slogan {
    font-size: .82rem;
    color: var(--text-light);
    font-weight: 400;
}

@media (max-width: 600px) {
    .identity-inner  { flex-direction: column; text-align: center; gap: .65rem; }
    .identity-logo   { width: 80%; height: auto; max-height: none; }
    .identity-name   { font-size: 1rem; }
}

#topbar {
    background: var(--primary);
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: .775rem;
    color: rgba(255,255,255,.85);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 36px;
    flex-wrap: wrap;
}
.topbar-item {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: 0 1.4rem;
    white-space: nowrap;
}
.topbar-item + .topbar-item {
    border-left: 1px solid rgba(255,255,255,.2);
}
.topbar-inner a { color: rgba(255,255,255,.85); text-decoration: none; transition: color var(--transition); }
.topbar-inner a:hover { color: #fff; }
.topbar-inner i { font-size: .85rem; color: rgba(255,255,255,.6); flex-shrink: 0; }
.topbar-sep { display: none; }

/* ── HEADER ── */
#site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
    will-change: transform;
    transform: translateZ(0);
}
#header {
    background: linear-gradient(180deg, #5a5c62 0%, #52545a 100%);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
#header .container { max-width: 100%; }

.header-inner {
    display: flex;
    align-items: center;
    height: 72px;
    gap: 2rem;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
}
.site-logo img  { height: 58px; width: auto; }
.site-logo-text { font-size: 1.1rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.site-logo-text small { font-weight: 400; font-size: .75rem; color: var(--text-light); display: block; }

/* ── NAVEGACIÓN ── */
#nav-menu { opacity: 0; transition: opacity .12s; }
#header nav { flex: 1; min-width: 0; display: flex; justify-content: center; }
#nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
}
#nav-menu > li { position: relative; }
#nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .55rem .85rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .05em;
    color: rgba(255,255,255,.65);
    border-radius: var(--radius);
    white-space: nowrap;
    position: relative;
    transition: color .22s, text-shadow .22s, background .22s;
    text-transform: uppercase;
}
/* Línea animada debajo */
#nav-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 3px; left: 50%;
    width: 0; height: 1.5px;
    background: rgba(255,255,255,.8);
    border-radius: 1px;
    transform: translateX(-50%);
    transition: width .28s ease;
    box-shadow: 0 0 7px rgba(255,255,255,.75), 0 0 14px rgba(255,255,255,.35);
}
#nav-menu > li > a:hover::before,
#nav-menu > li.active > a::before { width: 62%; }

/* Efecto neon blanco al hover y activo */
#nav-menu > li > a:hover,
#nav-menu > li.active > a,
#nav-menu > li:hover > a {
    background: transparent;
    color: #fff;
    text-shadow:
        0 0 6px rgba(255,255,255,.95),
        0 0 16px rgba(255,255,255,.6),
        0 0 38px rgba(255,255,255,.22);
}
/* Chevron dropdown — ícono Bootstrap en el HTML */
.nav-chevron { font-size: .65rem; opacity: .7; transition: transform .2s; }
#nav-menu > li:hover > a .nav-chevron,
#nav-menu > li.active > a .nav-chevron { opacity: 1; transform: rotate(180deg); }

/* Dropdown "Más" abre hacia la izquierda */
#nav-more > .nav-dropdown { left: auto; right: 0; }

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #44464c;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.07);
    border-top: none;
    display: none;
    z-index: 200;
}
#nav-menu li:hover > .nav-dropdown { display: block; }
.nav-dropdown li a {
    display: block;
    padding: .62rem 1.1rem;
    color: rgba(255,255,255,.72);
    font-size: .82rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: color .2s, text-shadow .2s, background .2s;
}
.nav-dropdown li:last-child a { border-bottom: none; }
.nav-dropdown li a:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,.7), 0 0 18px rgba(255,255,255,.3);
}

/* Sub-dropdown (3er nivel) — fly-out a la derecha */
.nav-dropdown .has-subdropdown { position: relative; }
.nav-dropdown .has-subdropdown > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}
.nav-subchevron { font-size: .6rem; opacity: .55; margin-left: auto; transition: transform .15s, opacity .15s; flex-shrink: 0; }
.nav-dropdown .has-subdropdown:hover > a .nav-subchevron { opacity: 1; transform: rotate(90deg); }
.nav-subdropdown {
    display: none;
    position: absolute;
    left: 100%;
    top: -1px;
    min-width: 200px;
    background: #3e4046;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: 6px 8px 24px rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.07);
    border-left: none;
    z-index: 201;
    overflow: hidden;
}
.nav-dropdown .has-subdropdown:hover > .nav-subdropdown { display: block; }
/* Puente invisible para movimiento diagonal hacia el sub-dropdown */
.nav-dropdown .has-subdropdown::after {
    content: ''; position: absolute;
    top: 0; right: -10px; width: 10px; height: 100%;
}
/* Cursor correcto dentro de dropdowns */
.nav-dropdown, .nav-subdropdown { cursor: default; }
.nav-dropdown a, .nav-subdropdown a { cursor: pointer; }
.nav-subdropdown li a {
    display: block;
    padding: .6rem 1.1rem;
    color: rgba(255,255,255,.7);
    font-size: .8rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: color .2s, text-shadow .2s, background .2s;
}
.nav-subdropdown li:last-child a { border-bottom: none; }
.nav-subdropdown li a:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,.7), 0 0 18px rgba(255,255,255,.3);
}

/* Botón hamburguesa */
.btn-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: rgba(255,255,255,.8);
    font-size: 1.6rem;
    cursor: pointer;
    margin-left: auto;
    padding: .25rem;
    transition: color .2s, text-shadow .2s;
}
.btn-nav-toggle:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,.8);
}

/* ── Redes sociales en nav ── */
.nav-social {
    display: flex;
    align-items: center;
    gap: .15rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255,255,255,.12);
    flex-shrink: 0;
    position: relative;
}
.nav-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    color: var(--sc, #555);
    border: 1.5px solid transparent;
    transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.nav-social-link::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-18deg);
    transition: left .38s ease;
    pointer-events: none;
}
.nav-social-link:hover::after { left: 135%; }
.nav-social-link:hover {
    background: rgba(255,255,255,.14);
    color: #fff;
    border-color: rgba(255,255,255,.35);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255,255,255,.4), 0 3px 12px rgba(0,0,0,.22);
    text-shadow: 0 0 8px rgba(255,255,255,.9), 0 0 18px rgba(255,255,255,.4);
}
@media (max-width: 991px) {
    .nav-social {
        border-left: none;
        padding-left: 0;
        gap: .35rem;
    }
    .nav-social-link { width: 36px; height: 36px; font-size: 1.1rem; }
}

/* ── Auto-pulse redes sociales ── */
.nav-social-label {
    position: absolute;
    left: calc(100% + .5rem);
    top: 50%;
    transform: translateY(-50%);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(255,255,255,0);
    text-shadow: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease, color .45s ease, text-shadow .45s ease;
}
.nav-social-label--show {
    opacity: 1;
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,.9), 0 0 20px rgba(255,255,255,.45);
}
.nav-social-link--pulse {
    background: rgba(255,255,255,.14);
    color: #fff !important;
    border-color: rgba(255,255,255,.35);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255,255,255,.4), 0 3px 12px rgba(0,0,0,.22);
    text-shadow: 0 0 8px rgba(255,255,255,.9), 0 0 18px rgba(255,255,255,.4);
}
.nav-social-link--pulse::after {
    animation: navSocialShine .45s ease forwards;
}
@keyframes navSocialShine {
    from { left: -75%; }
    to   { left: 135%; }
}

/* ── SLIDER ── */
#slider { position: relative; overflow: hidden; background: var(--primary-dark); }
.slides-wrapper { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.slide {
    min-width: 100%;
    position: relative;
}
.slide img { width: 100%; height: 320px; object-fit: cover; display: block; }
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.18) 55%, transparent 100%);
    pointer-events: none;
}
.slide-caption {
    position: absolute;
    bottom: 3.4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 720px;
    padding: 0 2rem;
    text-align: center;
    color: #fff;
    z-index: 5;
}
.slide-caption h2 {
    font-size: clamp(1.35rem, 3.2vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: .55rem;
    text-shadow: 0 2px 14px rgba(0,0,0,.55);
    letter-spacing: -.01em;
}
.slide-caption p {
    font-size: .98rem;
    opacity: .93;
    margin-bottom: 1.1rem;
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.slide-caption .btn-primary-pub {
    display: inline-block;
}

.slider-dots {
    position: absolute;
    bottom: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .4rem;
    z-index: 10;
}
.slider-dot {
    height: 4px;
    width: 22px;
    border-radius: 2px;
    background: rgba(255,255,255,.38);
    border: none; cursor: pointer;
    transition: background .35s, width .35s;
}
.slider-dot.active { background: var(--accent); width: 38px; }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255,255,255,.35);
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
    transition: background var(--transition);
}
.slider-arrow:hover { background: rgba(26,60,110,.7); }
.arrow-prev { left: 1.25rem; }
.arrow-next { right: 1.25rem; }

/* ── SLIDER DIVIDIDO ── */
#slider.slider-dividido {
    background: #f1f5f9;
    overflow: visible;
    border-bottom: none;
    padding: 1.5rem 0 2rem;
}
.slider-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}
.slider-container .slider-clip {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.10);
    border: 1px solid #e2e8f0;
    position: relative;
}
.slider-container .slider-arrow { position: absolute; }
.slider-container .slider-dots  { position: absolute; }
#slider.slider-dividido .slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 42% 58%;
    height: 360px;
}
#slider.slider-dividido .slide-text-col {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2rem 2rem 2.5rem;
    gap: .85rem;
    overflow-y: auto;
}
#slider.slider-dividido .slide-text-col h2 {
    font-size: clamp(1.15rem, 2.2vw, 1.9rem);
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 0;
}
#slider.slider-dividido .slide-text-col p {
    font-size: .92rem;
    color: #555;
    line-height: 1.65;
    margin: 0;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
}
.btn-slide-div {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: none;
    color: #1a1a1a;
    font-weight: 700;
    font-size: .92rem;
    padding: 0;
    border-radius: 0;
    text-decoration: none;
    width: fit-content;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 1px;
    transition: color .2s, border-color .2s;
}
.btn-slide-div:hover {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-slide-div i { transition: transform .2s; font-size: .8rem; }
.btn-slide-div:hover i { transform: translateX(4px); }
#slider.slider-dividido .slide-img-col {
    position: relative;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem;
}
#slider.slider-dividido .slide-img-col img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .6s ease;
}
#slider.slider-dividido .slides-wrapper:not([style*="translateX(0"]) .slide-img-col img { transform: scale(1.02); }
/* Dots para dividido — oscuros sobre fondo blanco */
#slider.slider-dividido .slider-dots { bottom: 1rem; }
#slider.slider-dividido .slider-dot { background: rgba(0,0,0,.2); }
#slider.slider-dividido .slider-dot.active { background: var(--primary); width: 38px; }
/* Flechas dividido */
#slider.slider-dividido .slider-arrow {
    background: rgba(0,0,0,.035);
    backdrop-filter: none;
    border-color: rgba(0,0,0,.08);
    color: #333;
}
#slider.slider-dividido .slider-arrow:hover { background: rgba(0,0,0,.1); }
#slider.slider-dividido .arrow-prev { left: .5rem; }
#slider.slider-dividido .arrow-next { right: .5rem; }
@media (max-width: 768px) {
    #slider.slider-dividido .slide {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
    }
    #slider.slider-dividido .slide-text-col {
        padding: 2rem 1.5rem;
        order: 2;
    }
    #slider.slider-dividido .slide-img-col {
        order: 1;
        height: 240px;
    }
    #slider.slider-dividido .slide-img-col img { object-fit: cover; }
}

/* ── SECCIONES GENERALES ── */
.section { padding: 4rem 0; }
.section-alt { background: #fff; }
#noticias .section-header h2 { color: #1e293b; }
#noticias .section-divider { background: #1e293b; }
.section-header { margin-bottom: 2rem; }
.section-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: .5rem;
}
.section-divider {
    width: 50px; height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* ── BANNER TRÁMITES ── */
.banner-tramites {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(135deg, #3a3d45 0%, #2e3038 100%);
    border-radius: 1rem;
    padding: 2rem 2.5rem;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.07);
    transition: background .25s, box-shadow .25s, transform .2s;
    position: relative;
    overflow: hidden;
}
.banner-tramites::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.03) 0%, transparent 60%);
    pointer-events: none;
}
.banner-tramites:hover {
    background: linear-gradient(135deg, #2e3038 0%, #25272e 100%);
    box-shadow: 0 8px 32px rgba(0,0,0,.28);
    transform: translateY(-1px);
}
.banner-tramites-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
}
.banner-tramites-logo {
    width: auto;
    height: 80px;
    flex-shrink: 0;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .85;
}
.banner-tramites-texto {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
}
.banner-tramites-link {
    flex-shrink: 0;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    transition: color .2s, letter-spacing .2s;
    white-space: nowrap;
}
.banner-tramites:hover .banner-tramites-link {
    color: #fff;
    letter-spacing: .13em;
}
@media (max-width: 640px) {
    .banner-tramites { flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1.5rem 1.5rem; }
    .banner-tramites-texto { max-width: 100%; }
}

/* ── CONSULTAS FRECUENTES ── */
.consultas-section { background: #f8fafc; padding: 3rem 0; }
.consultas-section .section-header { text-align: center; }
.consultas-section .section-header h2 { color: #1e293b; }
.consultas-section .section-divider { background: #1e293b; margin: 0 auto; }
.consultas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}
.consulta-item {
    flex: 0 0 calc(20% - 1rem);
    min-width: 160px;
    max-width: 220px;
}
.consulta-item {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.consulta-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.14);
}
.consulta-card-icon {
    width: 100%;
    height: 120px;
    background: #595f6b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    transition: background .22s ease;
}
.consulta-card-icon img { width: 3.2rem; height: 3.2rem; }
.consulta-item:hover .consulta-card-icon {
    background: #484d57;
}
.consulta-titulo {
    font-size: .68rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.35;
    padding: .75rem .6rem;
}
@media (max-width: 480px) {
    .consulta-item { flex: 0 0 calc(50% - .625rem); max-width: none; }
}

/* ── NOTICIAS ── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.news-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.14); }
.news-card-img { height: 160px; overflow: visible; position: relative; background: #f4f6fb; border-radius: var(--radius) var(--radius) 0 0; }
.news-card-img > img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; border-radius: var(--radius) var(--radius) 0 0; display: block; }
.news-card:hover .news-card-img > img { transform: scale(1.03); }
.news-card-badge {
    position: absolute;
    bottom: -28px; left: 50%;
    transform: translateX(-50%);
    width: 62px; height: 62px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #f0f2f5;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
    overflow: hidden;
    z-index: 3;
    display: flex; align-items: center; justify-content: center;
}
.news-card-badge img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.news-card-badge-initials { font-size: .9rem; font-weight: 800; color: var(--primary); }
.news-card-body { padding: 2rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; }
.news-card-date { font-size: .65rem; color: var(--text-light); font-weight: 600; margin-bottom: .35rem; display: flex; align-items: center; gap: .4rem; }
.news-date-sep { color: var(--border); }
.news-card-title { font-size: .88rem; font-weight: 700; color: #1a1a1a; margin-bottom: .45rem; line-height: 1.35; flex: 1; text-transform: uppercase; text-wrap: balance; }
.news-card-excerpt { font-size: .78rem; color: var(--text-light); margin-bottom: .75rem; }
.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 999px;
    padding: .38rem 1rem;
    margin-top: auto;
    align-self: flex-start;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: background .2s, color .2s, transform .15s, box-shadow .2s;
    letter-spacing: .03em;
}
.news-card-link::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-18deg);
    transition: left .38s ease;
    pointer-events: none;
}
.news-card-link:hover::after { left: 135%; }
.news-card-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    text-decoration: none;
}
.news-card-link i { font-size: .75rem; transition: transform .2s; }
.news-card-link:hover i { transform: translateX(3px); }

/* ── ACERCA — TITULAR ── */
.titular-wrap {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.titular-foto img {
    width: 260px;
    height: 320px;
    object-fit: cover;
    object-position: top center;
    border-radius: .75rem;
    border: none;
    box-shadow: var(--shadow);
    display: block;
}
.titular-body { flex: 1; min-width: 260px; }
.titular-nombre { font-size: 1.15rem; font-weight: 800; color: var(--primary); margin: 0 0 .2rem; }
.titular-cargo  { font-size: .875rem; color: var(--text-light); margin: 0 0 1.25rem; text-transform: uppercase; letter-spacing: .05em; }

/* ── MVOb ── */
.mvob-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.mvob-card {
    background: var(--white);
    border-radius: var(--radius);
    border-top: 5px solid var(--primary);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow);
}
.mvob-card .mvob-icon { font-size: 2.2rem; color: var(--primary); margin-bottom: .75rem; }
.mvob-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-bottom: .75rem; }
.mvob-card p { color: var(--text-light); font-size: .9rem; }

/* ── ORGANIGRAMA PÚBLICO ── */
.org-container { overflow: auto; padding: 1rem 0; }

/* ── ARCHIVOS PÚBLICOS ── */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.25rem;
}
.folder-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.folder-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.folder-card i    { font-size: 2.75rem; color: #f59e0b; }
.folder-card .folder-name { display: block; margin-top: .6rem; font-size: .875rem; font-weight: 700; color: var(--text); }
.folder-card .folder-desc { display: block; font-size: .73rem; color: var(--text-light); margin-top: .2rem; }

.files-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.files-table th { background: var(--primary); color: #fff; padding: .65rem 1rem; text-align: left; font-weight: 600; }
.files-table td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); }
.files-table tr:last-child td { border-bottom: none; }
.files-table tr:hover td { background: #f0f4fa; }

/* ── BREADCRUMB PÚBLICO ── */
.page-banner {
    background: var(--primary);
    padding: 2rem 0;
    color: #fff;
}
.page-banner h1 { font-size: 1.6rem; font-weight: 800; }
.page-banner .breadcrumb { margin-top: .4rem; display: flex; gap: .5rem; font-size: .82rem; opacity: .8; }
.page-banner .breadcrumb a { color: rgba(255,255,255,.8); }
.page-banner .breadcrumb a:hover { color: #fff; }
.page-banner .breadcrumb span { opacity: .5; }

/* ── Hero banner con escudo de fondo ── */
.page-banner-hero {
    background: linear-gradient(120deg, #1a1a1a 0%, #3a3a3a 50%, #5c5c5c 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    color: #fff;
}
.page-banner-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../../assets/images/logo_default.png') center/auto 85% no-repeat;
    opacity: .48;
    filter: brightness(0) invert(1);
    pointer-events: none;
}
.page-banner-hero .container { position: relative; z-index: 1; }
.page-banner-hero h1 { font-size: 1.6rem; font-weight: 800; color: #fff; }
.page-banner-hero .breadcrumb { margin-top: .4rem; display: flex; gap: .5rem; font-size: .82rem; flex-wrap: wrap; }
.page-banner-hero .breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.page-banner-hero .breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-banner-hero .breadcrumb span { color: rgba(255,255,255,.45); }

/* ── FOOTER ── */
#footer {
    background: #52545a;
    color: rgba(255,255,255,.75);
    padding: 0;
}
#footer > .container {
    padding-top: 3rem;
    max-width: 90%;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; font-weight: 700; border-left: 3px solid rgba(255,255,255,.5); padding-left: .6rem; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { font-size: .85rem; color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }
.footer-col p { font-size: .85rem; line-height: 1.8; }
.footer-col .contact-item { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .5rem; font-size: .85rem; }
.footer-col .contact-item i { color: rgba(255,255,255,.65); margin-top: .2rem; flex-shrink: 0; }
.contact-label { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.5); margin-bottom: .1rem; }
.footer-identity { display: flex; gap: 1.4rem; align-items: flex-start; }
.footer-escudo { width: auto; height: 90px; flex-shrink: 0; object-fit: contain; opacity: .88; filter: brightness(0) invert(1); }
.footer-identity-text { flex: 1; min-width: 0; }
.footer-identity-text p { font-size: .95rem; font-weight: 700; letter-spacing: .07em; color: rgba(255,255,255,.75); margin: 0 0 .3rem; line-height: 1.4; }
.footer-slogan { font-size: 1.6rem !important; font-weight: 700; letter-spacing: .06em !important; color: rgba(255,255,255,.45) !important; margin: 0 0 .9rem !important; line-height: 1.3 !important; }
/* ── Botones CTA footer ── */
.footer-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0 .5rem;
    flex-wrap: wrap;
}
.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .7rem 1.8rem;
    border-radius: 999px;
    background: #1a1a1a;
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    border: 1.5px solid rgba(255,255,255,.15);
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .15s, box-shadow .2s;
    position: relative;
    overflow: hidden;
    letter-spacing: .02em;
}
.footer-cta-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    transform: skewX(-18deg);
    transition: left .4s ease;
    pointer-events: none;
}
.footer-cta-btn:hover::after { left: 135%; }
.footer-cta-btn:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.4);
    color: #fff;
}
.footer-cta-btn--call i { color: #4cd964; }

.footer-bottom { padding: 1rem 0; text-align: center; font-size: .78rem; color: rgba(255,255,255,.85); }
/* ── Modal Google Maps ── */
#mapsOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn .2s ease;
}
#mapsModal {
    background: #fff;
    border-radius: .75rem;
    overflow: hidden;
    width: 100%;
    max-width: 760px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    display: flex;
    flex-direction: column;
}
#mapsHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.25rem;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
}
#mapsHeader i { margin-right: .4rem; color: rgba(255,255,255,.75); }
#mapsClose {
    background: none;
    border: none;
    color: rgba(255,255,255,.75);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 .25rem;
    transition: color .15s;
}
#mapsClose:hover { color: #fff; }
#mapsFrame {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
}
@media (max-width: 600px) {
    #mapsFrame { height: 280px; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Horario */
.footer-horario-line {
    display: block;
    font-size: .82rem;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
}

/* Números de contacto/emergencia */
.footer-contactos { list-style: none; padding: 0; margin: 0; }
.footer-contactos li { margin-bottom: .55rem; }
.footer-contacto-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    transition: opacity .2s;
}
.footer-contacto-item:hover { opacity: .85; }
.footer-contacto-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
}
.footer-contacto-nombre {
    display: block;
    font-size: .75rem;
    color: rgba(255,255,255,.55);
    line-height: 1.2;
}
.footer-contacto-numero {
    display: block;
    font-size: .92rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: .02em;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .9rem;
}
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1rem;
    color: var(--sc, rgba(255,255,255,.7));
    background: transparent;
    border: 1.5px solid transparent;
    transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.footer-social-link::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-18deg);
    transition: left .38s ease;
    pointer-events: none;
}
.footer-social-link:hover::after { left: 135%; }
.footer-social-link:hover {
    background: rgba(255,255,255,.14);
    color: #fff;
    border-color: rgba(255,255,255,.35);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255,255,255,.4), 0 3px 12px rgba(0,0,0,.22);
    text-shadow: 0 0 8px rgba(255,255,255,.9), 0 0 18px rgba(255,255,255,.4);
}

/* ── FOOTER TABLET ── */
@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 0; border-bottom: none; }
    .footer-col { padding: 1.75rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
    .footer-col:last-child { border-bottom: none; }
    .footer-identity { flex-direction: row; align-items: flex-start; }
}

/* ── FOOTER MOBILE ── */
@media (max-width: 640px) {
    #footer { padding-top: 1.5rem; }

    .footer-col {
        text-align: center;
        padding: 1.4rem 1rem;
    }

    /* Identity: escudo arriba centrado, texto abajo a la izquierda */
    .footer-identity {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-escudo { height: 72px; margin-bottom: .75rem; align-self: center; }
    .footer-identity-text { width: 100%; text-align: left; }
    .footer-slogan { font-size: 1.05rem; text-align: left; }

    /* Título: quitar borde izquierdo, poner acento a la izquierda */
    .footer-col h4 {
        border-left: none;
        padding-left: 0;
        padding-bottom: .45rem;
        display: inline-block;
        position: relative;
        margin-bottom: 1rem;
    }
    .footer-col h4::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0;
        width: 32px; height: 3px;
        background: var(--accent);
        border-radius: 2px;
    }

    /* Textos generales */
    .footer-col { text-align: left; }
    .footer-col p { margin-bottom: .5rem; }
    .footer-col ul { padding: 0; }
    .footer-col ul li { list-style: none; }

    /* Items de contacto: alineados a la izquierda */
    .footer-col .contact-item {
        display: flex;
        width: 100%;
        margin-bottom: .4rem;
        text-align: left;
    }

    /* Redes sociales: centradas */
    .footer-social { justify-content: center; }

    /* Números de emergencia: alineados a la izquierda */
    .footer-contactos { text-align: left; }
    .footer-contacto-item { justify-content: flex-start; }

    /* Horario: izquierda */
    .footer-horario-line { text-align: left; }

    /* Botones CTA: columna y ancho completo */
    .footer-cta {
        flex-direction: column;
        align-items: center;
        gap: .65rem;
        padding: 1.25rem 1rem .75rem;
    }
    .footer-cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ── UTILIDADES ── */
.text-primary-pub { color: var(--primary); }
.badge-pub {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: .2rem .65rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

/* ── EVENTOS - PÁGINA CALENDARIO ── */
.eventos-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}
.eventos-cal-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
}
/* FullCalendar overrides para el tema del sitio */
.fc .fc-button-primary              { background: var(--primary); border-color: var(--primary-dark); }
.fc .fc-button-primary:hover        { background: var(--primary-light); border-color: var(--primary); }
.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active { background: var(--primary-dark); border-color: var(--primary-dark); }
.fc .fc-toolbar-title               { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.fc .fc-daygrid-day-number          { font-size: .82rem; color: var(--text); }
.fc .fc-event                       { cursor: pointer; font-size: .78rem; }
.fc .fc-col-header-cell             { background: #f0f4fa; }
.fc .fc-col-header-cell-cushion     { color: var(--primary); font-weight: 700; font-size: .8rem; }

/* Sidebar de próximos eventos */
.eventos-sidebar-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--border);
}
.evento-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .9rem 0;
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
    text-decoration: none;
}
.evento-item:last-child { border-bottom: none; }
.evento-item:hover .evento-item-title { color: var(--primary); }
.evento-item-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: .35rem;
}
.evento-item-title  { font-size: .875rem; font-weight: 600; color: var(--text); line-height: 1.4; transition: color var(--transition); }
.evento-item-meta   { font-size: .77rem; color: var(--text-light); margin-top: .2rem; }
.evento-item-meta i { margin-right: .25rem; color: var(--primary); }

/* ── EVENTO - PÁGINA DETALLE ── */
.evento-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
}
.evento-detail-img {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.75rem;
    max-height: 380px;
}
.evento-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.evento-detail-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    font-style: italic;
}
.evento-detail-content { line-height: 1.85; color: var(--text); }
.evento-detail-content p  { margin-bottom: 1rem; }
.evento-detail-content ul,
.evento-detail-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }

.evento-info-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.evento-info-title {
    font-size: .9rem;
    font-weight: 800;
    color: var(--primary);
    padding: 1rem 1.25rem .75rem;
    border-bottom: 1px solid var(--border);
}
.evento-info-row {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.evento-info-row:last-of-type { border-bottom: none; }
.evento-info-icon {
    width: 34px;
    height: 34px;
    border-radius: .35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.evento-info-label { font-size: .72rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.evento-info-value { font-size: .875rem; font-weight: 600; color: var(--text); margin-top: .1rem; }
.evento-color-bar  { height: 4px; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    /* ── Header bar ── */
    #header nav { flex: 0; order: 1; }
    .header-inner { gap: 0; }
    .nav-social {
        display: flex;
        order: 2;
        margin-left: 0;
        border-left: none;
        padding-left: 0;
        gap: .3rem;
    }
    .nav-social-link { width: 38px; height: 38px; font-size: 1.2rem; }

    .btn-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 3;
        margin-left: auto;
        width: 40px; height: 40px;
        border-radius: .45rem;
        background: rgba(255,255,255,.1);
        font-size: 1.5rem;
    }
    .btn-nav-toggle:hover { background: rgba(255,255,255,.2); }

    /* ── Panel menú ── */
    #nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: #3e4046;
        border-top: 2px solid rgba(255,255,255,.1);
        padding: .4rem 0 1.2rem;
        box-shadow: 0 16px 40px rgba(0,0,0,.5);
        align-items: stretch;
        gap: 0;
        z-index: 800;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    #nav-menu.open { display: flex; }
    #nav-menu > li { width: 100%; }
    #nav-menu > li + li { border-top: 1px solid rgba(255,255,255,.06); }

    /* ── Ítems ── */
    #nav-menu > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .5rem;
        color: rgba(255,255,255,.82);
        border-radius: 0;
        padding: .9rem 1.4rem;
        font-size: .875rem;
        font-weight: 600;
        text-transform: none;
        letter-spacing: .01em;
        text-shadow: none;
        border-left: 3px solid transparent;
        transition: background .15s, border-color .15s, color .15s;
    }
    #nav-menu > li > a::before { display: none; }

    /* Quitar triángulo de dropdown en móvil */
    #nav-menu > li.has-dropdown > a::after { display: none; }
    /* Reemplazar con chevron a la derecha */
    #nav-menu > li.has-dropdown > a .nav-chevron {
        font-size: .75rem;
        opacity: .6;
        transition: transform .2s;
        flex-shrink: 0;
    }
    #nav-menu > li.has-dropdown.mobile-open > a .nav-chevron { transform: rotate(180deg); opacity: 1; }

    #nav-menu > li > a:hover,
    #nav-menu > li.active > a {
        background: rgba(255,255,255,.07);
        color: #fff;
        text-shadow: none;
        border-left-color: rgba(255,255,255,.55);
    }
    #nav-menu > li.active > a { border-left-color: rgba(255,255,255,.8); }

    /* ── Dropdown móvil ── */
    .nav-dropdown {
        position: static;
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(255,255,255,.06);
        display: none;
        background: rgba(0,0,0,.18);
    }
    #nav-menu > li.mobile-open > .nav-dropdown { display: block; }
    .nav-dropdown li a {
        padding: .75rem 1.4rem .75rem 2.8rem;
        font-size: .84rem;
        color: rgba(255,255,255,.7);
        border-left: 3px solid transparent;
        display: block;
    }
    .nav-dropdown li + li { border-top: 1px solid rgba(255,255,255,.05); }
    .nav-dropdown li a:hover {
        background: rgba(255,255,255,.06);
        color: #fff;
        border-left-color: rgba(255,255,255,.4);
        text-shadow: none;
    }

    /* Sub-dropdown móvil — acordeón */
    .nav-dropdown .has-subdropdown > a {
        justify-content: space-between;
    }
    .nav-subchevron { font-size: .65rem; opacity: .55; transition: transform .2s; flex-shrink: 0; }
    .nav-dropdown .has-subdropdown.mobile-open > a .nav-subchevron { transform: rotate(90deg); opacity: 1; }
    .nav-subdropdown {
        position: static;
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(255,255,255,.04);
        display: none;
        background: rgba(0,0,0,.14);
    }
    .nav-dropdown .has-subdropdown.mobile-open > .nav-subdropdown { display: block; }
    .nav-subdropdown li a {
        padding: .7rem 1.4rem .7rem 4rem;
        font-size: .82rem;
        color: rgba(255,255,255,.62);
        border-left: 3px solid transparent;
        border-bottom: none;
    }
    .nav-subdropdown li + li { border-top: 1px solid rgba(255,255,255,.04); }
    .nav-subdropdown li a:hover {
        background: rgba(255,255,255,.05);
        color: #fff;
        border-left-color: rgba(255,255,255,.35);
        text-shadow: none;
    }
}

/* ── VEDA ELECTORAL ── */
.veda-section {
    background:
        linear-gradient(to right, rgba(100,100,100,.82) 0%, rgba(75,75,75,.65) 50%, rgba(100,100,100,.82) 100%),
        url('../images/logo_default.png') center / auto 92% no-repeat,
        linear-gradient(135deg, #8a8a8a 0%, #5f5f5f 100%);
    border-top: 4px solid #9ca3af;
    border-bottom: 1px solid rgba(0,0,0,.15);
    padding: 1.75rem 0;
    position: relative;
}
.veda-inner {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.veda-icon-col { flex-shrink: 0; }
.veda-icon-wrap {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #6b7280;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.veda-inner { position: relative; z-index: 1; }
.veda-content { flex: 1; min-width: 0; }
.veda-titulo {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: .04em;
    margin-bottom: .5rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.veda-sep {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,.4);
    margin-bottom: 1rem;
    border-radius: 2px;
}
.veda-content p {
    font-size: .88rem;
    color: rgba(255,255,255,.9);
    text-align: justify;
    margin-bottom: .65rem;
    line-height: 1.65;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.veda-fechas {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
}
@media (max-width: 640px) {
    .veda-inner { flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
    .veda-content p { text-align: left; }
    .veda-icon-wrap { width: 52px; height: 52px; font-size: 1.4rem; }
}
@media (max-width: 991px) {
    .eventos-layout      { grid-template-columns: 1fr; }
    .evento-detail-layout{ grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .slide img { height: auto; min-height: 200px; object-fit: contain; background: #1a1a1e; }
    .slide-caption { bottom: 1.5rem; padding: 0 1.25rem; }
    .slide-caption h2 { font-size: 1.15rem; margin-bottom: .35rem; }
    .slide-caption p { font-size: .85rem; margin-bottom: .75rem; }
    .topbar-inner { display: none; }
}
