/* ================================================================
   FENADEP â€” Estilos compartidos
   Aplicados en todas las pÃ¡ginas del sitio.
================================================================ */

/*  ── Variables y base ──────────────────────────────────────────────── */
:root {
    --primary: #3c558b;
    --primary-dark: #2e4270;
    --dark: #111827;

    /* Bootstrap primary override */
    --bs-primary: #3c558b;
    --bs-primary-rgb: 60, 85, 139;
    --bs-link-color: #3c558b;
    --bs-link-hover-color: #2e4270;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 0;
    }

    .footer {
        padding-bottom: calc(1.5rem + 60px + env(safe-area-inset-bottom, 0px));
        text-align: center;
    }

    .footer .d-flex.align-items-center.gap-2.mb-3,
    .footer-social,
    .footer .d-flex.flex-column.flex-sm-row.justify-content-between.align-items-center.gap-2 {
        justify-content: center;
    }
}

/* ── Navbar brand / logo ──────────────────────────────────────────── */
.navbar-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-logo {
    height: 70px;
    width: 70px;
    object-fit: contain;
    flex-shrink: 0;
    transition: filter .3s;
}

.logo-text {
    line-height: 1rem;
}

.logo-text strong {
    display: block;
    font-size: 1.05rem;
    color: var(--primary);
}

.logo-text span {
    font-size: 0.62rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color .3s;
}

/* Bootstrap btn-primary override */
.btn-primary {
    --bs-btn-bg: #3c558b;
    --bs-btn-border-color: #3c558b;
    --bs-btn-hover-bg: #2e4270;
    --bs-btn-hover-border-color: #2e4270;
    --bs-btn-active-bg: #263860;
    --bs-btn-active-border-color: #263860;
    --bs-btn-disabled-bg: #3c558b;
    --bs-btn-disabled-border-color: #3c558b;
}

.btn-outline-primary {
    --bs-btn-color: #3c558b;
    --bs-btn-border-color: #3c558b;
    --bs-btn-hover-bg: #3c558b;
    --bs-btn-hover-border-color: #3c558b;
    --bs-btn-active-bg: #3c558b;
    --bs-btn-active-border-color: #3c558b;
}

/* ──── Navbar transparente → blanca al scroll ──────────────────────────────────────────── */
nav.navbar {
    background: transparent !important;
    box-shadow: none !important;
    transition: background .35s ease, box-shadow .35s ease;
}

body.admin-bar nav.navbar {
    top: 32px !important;
}

@media (max-width: 782px) {
    body.admin-bar nav.navbar {
        top: 46px !important;
    }
}

nav.navbar.navbar-scrolled {
    background: white !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .08) !important;
}

nav.navbar:not(.navbar-scrolled) .nav-link,
nav.navbar:not(.navbar-scrolled) .navbar-toggler-icon {
    color: rgba(255, 255, 255, .9);
    filter: brightness(10);
}

nav.navbar:not(.navbar-scrolled) .logo-text strong {
    color: white;
}

nav.navbar:not(.navbar-scrolled) .logo-text span {
    color: rgba(255, 255, 255, .7);
}

nav.navbar.navbar-scrolled .navbar-brand-logo {
    background: transparent;
    padding: 0;
}

nav.navbar:not(.navbar-scrolled) .btn-primary {
    background: white;
    color: var(--primary);
    border-color: white;
}

nav.navbar:not(.navbar-scrolled) .btn-primary:hover {
    background: rgba(255, 255, 255, .85);
}

/* ──── Buscador navbar ──────────────────────────────────────────── */
.nav-search-wrap {
    display: flex;
    align-items: center;
}

.nav-search-input {
    width: 0;
    padding: 0;
    border: none;
    opacity: 0;
    transition: width .3s ease, opacity .3s ease, padding .3s ease;
    border-radius: 20px;
    height: 36px;
    background: #f0f5ff;
    font-size: .875rem;
    outline: none;
    color: var(--dark);
}

.nav-search-input.open {
    width: 180px;
    padding: 0 14px;
    opacity: 1;
}

.nav-search-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.05rem;
    color: var(--dark);
    transition: background .2s, color .2s;
    flex-shrink: 0;
}

.nav-search-btn:hover {
    background: rgba(0, 0, 0, .08);
}

nav.navbar:not(.navbar-scrolled) .nav-search-btn {
    color: white;
}

nav.navbar:not(.navbar-scrolled) .nav-search-input.open {
    background: rgba(255, 255, 255, .2);
    color: white;
}

nav.navbar:not(.navbar-scrolled) .nav-search-input.open::placeholder {
    color: rgba(255, 255, 255, .7);
}

/* ──── Page Hero (sub-páginas) ──────────────────────────────────────────── */
.page-hero {
    height: 52vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-hero .overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, .65) 0%, rgba(13, 110, 253, .35) 100%);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding-top: clamp(5.25rem, 7vw, 6.75rem);
    box-sizing: border-box;
}

.page-hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
}

.single-convenios-hero-title {
    font-size: clamp(1.45rem, 3.6vw, 2.35rem);
}

.single-convenios-hero-summary {
    font-size: 1rem;
}

body.single-convenios .page-hero {
    height: auto;
    min-height: 52vh;
}

body.single-convenios .page-hero .overlay {
    position: relative;
    inset: auto;
    min-height: 52vh;
    align-items: flex-start;
    padding-top: clamp(5.25rem, 7vw, 6.75rem);
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .single-news-hero-title {
        font-size: clamp(1.55rem, 2.6vw, 2.35rem);
        line-height: 1.15;
    }

    .single-news-hero-summary {
        font-size: .88rem;
        line-height: 1.4;
    }
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, .6);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

.news-breadcrumb-title {
    display: inline-block;
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .page-hero .breadcrumb {
        flex-wrap: nowrap;
        align-items: center;
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
    }

    .page-hero .breadcrumb-item {
        flex: 0 0 auto;
    }

    .page-hero .breadcrumb-item.active {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
    }

    .page-hero .breadcrumb-item.active .news-breadcrumb-title {
        display: block;
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .single-news-hero-title {
        font-size: 1.45rem;
        line-height: 1.15;
    }

    .single-news-hero-summary {
        font-size: .95rem;
        line-height: 1.45;
        display: none;
    }
}

/* ──── Secciones ─ utilitarios compartidos ──────────────────────────────────────────── */
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}

.card-pro {
    border: none;
    border-radius: 16px;
    transition: .3s;
}

.card-pro:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .1);
}

@keyframes servicios-progress-fill {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ── Noticias: tarjetas con imagen uniforme ───────────────────────────────────────── */
.news-card-img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
    display: block;
}

/* ──── Stats ──────────────────────────────────────────── */
.stats {
    background: linear-gradient(135deg, #3c558b 0%, #0a58ca 100%);
    color: white;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
}

/* ──── Directorio ──────────────────────────────────────────── */
.autoridad-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.autoridad-card img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary);
}

/* ──── Evento item (index + noticias) ──────────────────────────────────────────── */
.evento-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.evento-fecha {
    min-width: 52px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    text-align: center;
    padding: 6px 4px;
    line-height: 1.1;
    flex-shrink: 0;
}

.evento-fecha .dia {
    font-size: 1.4rem;
    font-weight: 800;
    display: block;
}

.evento-fecha .mes {
    font-size: .68rem;
    text-transform: uppercase;
}

/* ──── Archivo de eventos ──────────────────────────────────────────── */
.evento-card {
    overflow: hidden;
    background: white;
    border: 1px solid rgba(60, 85, 139, .08);
    box-shadow: 0 10px 28px rgba(17, 24, 39, .08);
}

.evento-card-media {
    position: relative;
    display: block;
    overflow: hidden;
}

.evento-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.evento-card:hover .evento-card-image {
    transform: scale(1.04);
}

.evento-card-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    background: linear-gradient(to top, rgba(17, 24, 39, .88) 0%, rgba(17, 24, 39, .38) 62%, transparent 100%);
    color: white;
}

.evento-card-badge {
    align-self: flex-start;
}

.evento-card-location {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .85rem;
    opacity: .9;
}

.evento-card-body {
    padding: 1.25rem;
}

.evento-card-title {
    font-size: 1.06rem;
    line-height: 1.35;
    font-weight: 700;
}

.evento-card-summary {
    line-height: 1.6;
}

.evento-card-button {
    min-width: 0;
}

/* ──── Filtros de categoría (noticias + convenios) ──────────────────────────────────────────── */
.filter-btn {
    border-radius: 50px;
    font-size: .85rem;
    padding: .35rem 1rem;
    border-color: var(--filter-accent, var(--primary));
    color: var(--filter-accent, var(--primary));
    background: white;
}

.filter-btn.active {
    background: var(--filter-accent, var(--primary));
    color: white;
    border-color: var(--filter-accent, var(--primary));
}

.convenios-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.convenio-card.is-hidden,
[data-convenio-card].is-hidden,
[data-document-card].is-hidden {
    display: none !important;
}

.home-convenios-swiper {
    padding-bottom: 2.5rem;
    overflow: visible;
}

.home-convenios-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.home-convenio-card {
    width: 100%;
    display: block;
    color: inherit;
}

.home-convenio-card:hover {
    color: inherit;
}

.home-convenio-card__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px 18px;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
    text-align: center;
}

.home-convenio-card__media {
    width: 100%;
    height: 88px;
    max-width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2px;
}

.home-convenio-card__media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.home-convenio-card__icon {
    font-size: 1.85rem;
    line-height: 1;
    color: var(--primary);
}

.home-convenio-card__body {
    min-width: 0;
}

.home-convenio-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.home-convenio-card__text {
    color: #6c757d;
    font-size: .92rem;
    line-height: 1.45;
}

@media (min-width: 768px) {
    .home-convenio-card__inner {
        padding: 26px 20px;
    }
}

@media (min-width: 1200px) {
    .home-convenio-card__inner {
        min-height: 230px;
    }
}

/* ──── Offcanvas nav ──────────────────────────────────────────── */
.offcanvas-nav .offcanvas-header {
    background: var(--primary);
}

.offcanvas-nav .offcanvas-body {
    padding-top: .5rem;
}

.offcanvas-nav .nav-link {
    font-size: 1.05rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
}

.offcanvas-nav .nav-link:last-of-type {
    border-bottom: none;
}

.offcanvas-nav .nav-link:hover,
.offcanvas-nav .nav-link:focus {
    color: var(--primary);
    background: #f0f5ff;
    border-radius: 8px;
}

.offcanvas-nav .nav-link.ps-4 {
    font-size: .88rem;
    padding-top: .45rem;
    padding-bottom: .45rem;
    border-bottom-color: transparent;
    color: #6c757d;
}

.offcanvas-nav .nav-link.ps-4:hover {
    color: var(--primary);
    background: #f0f5ff;
}

.offcanvas-nav .nav-link.ps-4 i {
    font-size: 1rem;
    color: var(--primary);
    opacity: .7;
}

.offcanvas-nav .nav-link i {
    font-size: 1.2rem;
    color: var(--primary);
    min-width: 22px;
}

.offcanvas-nav .offcanvas-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0f5ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    text-decoration: none;
    transition: background .2s;
}

.offcanvas-nav .offcanvas-social a:hover {
    background: var(--primary);
    color: white;
}

/* ──── Footer ──────────────────────────────────────────── */
.footer {
    background: var(--dark);
    color: #adb5bd;
}

.footer .navbar-logo {
    height: 36px;
    width: 36px;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color .2s;
}

.footer a:hover {
    color: white;
}

.footer-heading {
    color: white;
    font-weight: 700;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: white;
    font-size: 1rem;
    transition: background .2s;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-divider {
    border-color: rgba(255, 255, 255, .1);
}

/* ──── WhatsApp flotante ──────────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 72px;
    right: 18px;
    z-index: 1050;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, .4);
    text-decoration: none;
    transition: transform .2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

@media (min-width: 992px) {
    .whatsapp-float {
        bottom: 24px;
    }
}

/* ──── Bottom nav (móvil) ──────────────────────────────────────────── */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 9999;
    background: white;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .10);
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    overflow: hidden;
}

.bottom-nav a {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    gap: 3px;
    padding: 6px 4px;
    transition: color .2s;
    overflow: hidden;
}

.bottom-nav a span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.bottom-nav a i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bottom-nav a.active,
.bottom-nav a:hover {
    color: var(--primary);
}

.bottom-nav a.active i {
    transform: scale(1.1);
}

@media (max-width: 991.98px) {
    .bottom-nav {
        display: flex;
    }
}

/* ──── Animaciones de botones ──────────────────────────────────────────── */
@keyframes btn-shimmer {
    0% {
        left: -120%;
    }

    60% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}

@keyframes ripple-expand {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn {
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease,
        background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn:active {
    transform: scale(.95) !important;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
    pointer-events: none;
}

.btn:hover::before {
    animation: btn-shimmer .65s ease forwards;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(60, 85, 139, .4);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(60, 85, 139, .25);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, .18);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.btn-outline-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(220, 53, 69, .2);
}

.btn-outline-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(25, 135, 84, .2);
}

.btn-outline-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 193, 7, .2);
}

.btn-outline-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(13, 202, 240, .2);
}

/* ──── Lightbox simple ──────────────────────────────────────────── */
.fenadep-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fenadep-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
}

.fenadep-lightbox-image {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 1200px);
    max-height: 88vh;
    object-fit: contain;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .4);
    border-radius: 16px;
}

.fenadep-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 2;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: white;
    font-size: 2rem;
    line-height: 1;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, .5);
    transform: scale(0);
    animation: ripple-expand .55s linear forwards;
    pointer-events: none;
}

.btn-outline-primary .btn-ripple,
.btn-outline-success .btn-ripple,
.btn-outline-warning .btn-ripple,
.btn-outline-danger .btn-ripple,
.btn-outline-info .btn-ripple {
    background: rgba(0, 0, 0, .12);
}

/* ================================================================
   FENADEP — Estilos específicos: Inicio (index.php)
================================================================ */

/* ── Hero / Slider ──────────────────────────────────────────── */
.hero,
.hero-slide {
    height: 100vh;
    min-height: 420px;
}

.hero-slide {
    background-size: cover;
    background-position: center;
}

.overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, .65) 0%, rgba(13, 110, 253, .35) 100%);
    height: 100%;
}

.hero-title {
    font-size: clamp(1.7rem, 5vw, 3.1rem);
    font-weight: 800;
    line-height: 1.2;
}

.hero-lead {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

/* ── Swiper controles ───────────────────────────────────────── */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    --swiper-navigation-size: 28px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, .35);
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

@media (max-width: 767.98px) {

    .swiper-button-next,
    .swiper-button-prev {
        --swiper-navigation-size: 18px;
        width: 28px;
        height: 28px;
    }
}

.swiper-pagination-bullet-active {
    background: white;
}

@media (max-width: 767.98px) {

    .hero,
    .hero-slide {
        height: 62vh;
        min-height: 320px;
    }

    .hero-slide .overlay {
        align-items: center;
    }

    .hero-slide .overlay .container {
        text-align: center;
    }

    .hero-slide .d-flex.flex-wrap.gap-2 {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: .5rem !important;
    }

    .hero-slide .d-flex.flex-wrap.gap-2 .btn {
        width: auto;
        margin-right: 0 !important;
        padding: .55rem .9rem;
        font-size: .92rem;
        line-height: 1.1;
        white-space: nowrap;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #inicio .hero-slide .overlay .container,
    #inicio section .container {
        text-align: center;
    }

    #inicio #nosotros .col-md-6:first-child,
    #inicio #contacto .col-md-5,
    #inicio #contacto .col-md-5 li,
    #inicio #contacto .col-md-5 strong,
    #inicio #contacto .col-md-5 span,
    #inicio #contacto .col-md-5 a {
        text-align: center;
    }

    #inicio #nosotros .col-md-6:first-child,
    #inicio #contacto .col-md-5 {
        margin-left: auto;
        margin-right: auto;
    }

    #inicio #contacto .col-md-5 ul {
        align-items: center;
    }

    #inicio #contacto .col-md-5 li {
        flex-direction: column;
        align-items: center;
        gap: .4rem;
    }

    #inicio #contacto .col-md-5 li i {
        margin-top: 0 !important;
        font-size: 1.25rem;
    }

    #inicio #contacto .col-md-5 li div {
        text-align: center;
    }

    #inicio #eventos .container {
        text-align: left;
    }

    #inicio #noticias .d-flex.justify-content-between.align-items-center.mb-4,
    #inicio #noticias .card-body,
    #inicio #noticias .card-body h6,
    #inicio #noticias .card-body p,
    #inicio #noticias .card-body small,
    #inicio #noticias .text-center.mt-4.d-md-none {
        text-align: left;
    }

    #inicio #noticias .d-flex.justify-content-between.align-items-center.mb-4 {
        align-items: flex-start;
        gap: .75rem;
    }

    #servicios .row {
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 0 0 .75rem;
        gap: 0;
    }

    #servicios .row::-webkit-scrollbar {
        display: none;
    }

    #servicios .row > [class*='col-'] {
        flex: 0 0 100vw;
        max-width: 100vw;
        scroll-snap-align: start;
    }

    #servicios .card-pro {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem !important;
    }

    #servicios .card-pro i {
        font-size: 1.9rem !important;
    }

    #servicios .card-pro h5 {
        margin-top: .75rem !important;
        font-size: 1rem;
    }

    #servicios .card-pro p {
        font-size: .92rem;
        line-height: 1.45;
    }

    #servicios .services-slider-bar {
        display: flex;
        flex-direction: column;
        gap: .75rem;
        margin-top: 1rem;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 0 1rem 0;
    }

    #servicios .services-slider-bar__items {
        display: flex;
        align-items: center;
        gap: .5rem;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: .1rem;
    }

    #servicios .services-slider-bar__items::-webkit-scrollbar {
        display: none;
    }

    #servicios .services-slider-bar__item {
        flex: 0 0 auto;
        border: 0;
        border-radius: 999px;
        background: rgba(10, 88, 202, .12);
        color: #0a58ca;
        font-size: .75rem;
        font-weight: 700;
        padding: .55rem .9rem;
        white-space: nowrap;
        transition: background-color .2s ease, color .2s ease, transform .2s ease, opacity .2s ease;
    }

    #servicios .services-slider-bar__item.is-active {
        background: #0a58ca;
        color: #fff;
        transform: translateY(-1px);
    }

    #servicios .services-slider-bar__progress {
        width: 100%;
        height: 4px;
        border-radius: 999px;
        background: rgba(10, 88, 202, .12);
        overflow: hidden;
    }

    #servicios .services-slider-bar__progress-fill {
        display: block;
        width: 100%;
        height: 100%;
        transform-origin: left center;
        transform: scaleX(0);
        background: linear-gradient(90deg, #0a58ca 0%, #3c558b 100%);
    }

    #servicios .services-slider-bar__progress-fill.is-animating {
        animation: servicios-progress-fill 5s linear forwards;
    }

    #servicios .card-pro.is-active {
        box-shadow: 0 15px 40px rgba(0, 0, 0, .12);
    }
}

/* ── Galería (index — mini) ─────────────────────────────────── */
.galeria-img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    width: 100%;
    transition: .3s;
    display: block;
}

.galeria-img:hover {
    transform: scale(1.03);
}

/* ── Galería (galeria.php — completa) ───────────────────────── */
.galeria-item {
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
}

.galeria-item img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    display: block;
    transition: transform .35s ease;
}

.galeria-item:hover img,
a.galeria-link:hover img {
    transform: scale(1.06);
}

.galeria-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
    border-radius: 14px;
}

.galeria-item:hover .galeria-item-overlay,
a.galeria-link:hover .galeria-item-overlay {
    opacity: 1;
}

.galeria-item-overlay i {
    color: white;
    font-size: 2rem;
}

.galeria-caption {
    font-size: .78rem;
    color: #6c757d;
    margin-top: 5px;
    padding: 0 2px;
}

.galeria-item[data-cat] {
    transition: opacity .3s, transform .3s;
}

.galeria-item.hidden {
    display: none;
}

/* ── Link wrapper PhotoSwipe ─────────────────────────────────── */
a.galeria-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    text-decoration: none;
    cursor: zoom-in;
}

a.galeria-link img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .35s ease;
}

/* ================================================================
   FENADEP — Estilos específicos: Nosotros (nosotros.php)
================================================================ */

/* ── Timeline ───────────────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.55rem;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline-year {
    font-size: .75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Valores ────────────────────────────────────────────────── */
.valor-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
}

/* ================================================================
   FENADEP — Estilos específicos: Noticias (noticias.php)
================================================================ */

/* ── Noticia destacada ──────────────────────────────────────── */
.noticia-featured {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.noticia-featured img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.noticia-featured-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, transparent 100%);
    padding: 2rem;
    color: white;
}

@media (max-width: 767.98px) {
    .noticia-featured img {
        height: 200px;
        border-radius: 20px 20px 0 0;
    }

    .noticia-featured-body {
        position: static;
        background: #111827;
        padding: 1.25rem;
        border-radius: 0 0 20px 20px;
    }

    .noticia-featured-body h3 {
        font-size: 1.1rem;
    }

    .news-card-body {
        justify-content: flex-end;
    }

    .news-card-title {
        font-size: 1rem;
        line-height: 1.3;
    }

    .news-card-summary {
        font-size: .82rem;
        line-height: 1.45;
    }
}

/* ── Badges de categoría ────────────────────────────────────── */
.badge-gremial {
    background: #e8f0fe;
    color: #0d6efd;
}

.badge-capacitacion {
    background: #e6f4ea;
    color: #198754;
}

.badge-acuerdo {
    background: #fff3cd;
    color: #856404;
}

.badge-evento {
    background: #f8d7da;
    color: #842029;
}

/* ── Artículo individual ────────────────────────────────────── */
.article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #374151;
}

.article-body h5 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: .75rem;
    color: var(--dark);
}

.article-body blockquote,
.article-blockquote {
    border-left: 4px solid var(--primary);
    background: #f0f5ff;
    padding: 1.25rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 1.75rem 0;
    font-style: italic;
}

.article-body blockquote footer,
.article-body blockquote cite,
.article-body .wp-block-quote__citation,
.article-blockquote footer {
    font-style: normal;
    font-size: .85rem;
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin-top: .75rem;
}

/* ── Botones compartir ──────────────────────────────────────── */
.btn-share {
    border-radius: 50px;
    font-size: .8rem;
    padding: .3rem .9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-share-wa {
    background: #25d366;
    border-color: #25d366;
    color: white;
}

.btn-share-wa:hover {
    background: #1da851;
    border-color: #1da851;
    color: white;
}

.btn-share-mail {
    background: #ea4335;
    border-color: #ea4335;
    color: white;
}

.btn-share-mail:hover {
    background: #c5221f;
    border-color: #c5221f;
    color: white;
}

.btn-share-link {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-share-link:hover {
    background: #495057;
    border-color: #495057;
    color: white;
}

.btn-share-other {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-share-other:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

/* ── Artículos relacionados (sidebar) ───────────────────────── */
.article-related {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: var(--dark);
    padding: 10px;
    border-radius: 10px;
    transition: .2s;
}

.article-related:hover {
    color: var(--primary);
    background: #f0f5ff;
}

.article-related img {
    width: 72px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.article-related-title {
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.35;
}

.article-related-date {
    font-size: .75rem;
    color: #6c757d;
    margin-top: 4px;
}

/* ── Empty states de CPT ────────────────────────────────────── */
.fenadep-empty-section-card {
    border: 1px dashed rgba(60, 85, 139, .22);
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    border-radius: 22px;
}

.fenadep-empty-section-icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff3fb;
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(60, 85, 139, .08);
}

.fenadep-empty-section-icon i {
    font-size: 2rem;
    line-height: 1;
}

/* ================================================================
   FENADEP — Estilos específicos: Documentos (documentos.php)
================================================================ */

/* ── Pestañas de documentos ─────────────────────────────────── */
.doc-nav {
    border-bottom: 2px solid #e9ecef;
}

.doc-nav .nav-link {
    color: #6c757d;
    font-weight: 500;
    padding: .75rem 1.25rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.doc-nav .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.doc-nav .nav-link:hover {
    color: var(--primary);
}

/* ── Ítem documento ─────────────────────────────────────────── */
.doc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
    transition: .25s;
    text-decoration: none;
    color: var(--dark);
}

.doc-item:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
    color: var(--dark);
}

.doc-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.doc-icon.pdf {
    background: #fff0f0;
    color: #dc3545;
}

.doc-icon.xls {
    background: #e8f5e9;
    color: #198754;
}

.doc-icon.doc {
    background: #fff3cd;
    color: #856404;
}

.doc-icon.ppt {
    background: #f4ecff;
    color: #6f42c1;
}

.doc-icon.zip,
.doc-icon.unknown {
    background: #eef2f7;
    color: #495057;
}

.doc-icon.external {
    background: #eef6ff;
    color: #0d6efd;
}

.doc-meta {
    font-size: .75rem;
    color: #6c757d;
    margin-top: 2px;
}

.doc-download {
    margin-left: auto;
    flex-shrink: 0;
}

/* ── Buscador sticky ────────────────────────────────────────── */
.search-bar {
    position: sticky;
    top: 66px;
    z-index: 100;
    background: white;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

/* ================================================================
   FENADEP — Estilos específicos: Convenios (convenios.php)
================================================================ */

/* ── Tarjeta convenio ───────────────────────────────────────── */
.convenio-card {
    position: relative;
    border: 1px solid rgba(17, 24, 39, .06);
    border-top: 4px solid var(--convenio-accent, #3c558b);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    transition: transform .25s ease, box-shadow .25s ease;
    overflow: hidden;
    height: 100%;
}

.convenio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
}

.convenio-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    height: 100%;
}

.convenio-logo {
    width: 72px;
    height: 72px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--convenio-accent-soft, #eff6ff);
    color: var(--convenio-accent, #3c558b);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}

.convenio-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.convenio-logo.is-image {
    width: auto;
    height: 72px;
    aspect-ratio: auto;
    max-width: 100%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-color: transparent;
}

.convenio-logo.is-image img {
    width: auto;
    height: 100%;
    max-width: 100%;
}

.convenio-logo-fallback {
    font-size: 2rem;
    line-height: 1;
}

.convenio-card-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: #111827;
}

.convenio-card-text {
    margin: 0;
    color: #4b5563;
    line-height: 1.65;
}

.convenio-btn {
    margin-top: auto;
    border: 1px solid var(--convenio-accent, #3c558b);
    color: var(--convenio-accent, #3c558b);
    background: transparent;
    border-radius: 999px;
    font-weight: 700;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.convenio-btn:hover,
.convenio-btn:focus {
    background: var(--convenio-accent, #3c558b);
    color: #fff;
    border-color: var(--convenio-accent, #3c558b);
}

.convenio-hero-logo {
    width: 88px;
    height: 88px;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
}

.convenio-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.convenio-hero-logo.is-image {
    width: auto;
    height: 88px;
    aspect-ratio: auto;
    max-width: 100%;
    padding: 8px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 24px;
    box-shadow: none;
    border-color: transparent;
}

.convenio-hero-logo.is-image img {
    width: auto;
    height: 100%;
    max-width: 100%;
}

.convenio-hero-logo .convenio-logo-fallback {
    color: #fff;
}

.convenio-card .badge {
    align-self: flex-start;
}

@media (max-width: 575.98px) {
    .convenio-card-body {
        padding: 22px;
    }

    .convenio-logo,
    .convenio-hero-logo {
        width: 50px;
        height: 50px;
    }

    .convenio-logo.is-image {
        width: auto;
        height: 50px;
    }

    .convenio-hero-logo.is-image {
        width: auto;
        height: 50px;
    }
}

/* ── CTA gradiente ──────────────────────────────────────────── */
.cta-gradient {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}