/* ================================================================
   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: calc(60px + env(safe-area-inset-bottom, 0px));
    }
}

/* ── 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;
}

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: 48vh;
    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;
}

.page-hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
}

.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;
}

/* ──── 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);
}

/* ──── 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;
}

/* ──── Filtros de categoría (noticias + convenios) ──────────────────────────────────────────── */
.filter-btn {
    border-radius: 50px;
    font-size: .85rem;
    padding: .35rem 1rem;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ──── 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);
}

.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: 85vh;
    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 {
        display: none;
    }
}

.swiper-pagination-bullet-active {
    background: white;
}

/* ── 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;
    }
}

/* ── 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-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-blockquote footer {
    font-style: normal;
    font-size: .85rem;
    color: var(--primary);
    font-weight: 600;
}

/* ── 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;
}

/* ================================================================
   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-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 {
    border: none;
    border-radius: 18px;
    background: white;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .07);
    transition: .3s;
    overflow: hidden;
}

.convenio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .13);
}

.convenio-cat-bar {
    height: 5px;
}

.convenio-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

/* ── Colores por categoría ──────────────────────────────────── */
.cat-salud .convenio-cat-bar {
    background: #dc3545;
}

.cat-salud .convenio-icon-wrap {
    background: #fff0f0;
    color: #dc3545;
}

.cat-educacion .convenio-cat-bar {
    background: #0d6efd;
}

.cat-educacion .convenio-icon-wrap {
    background: #e8f0fe;
    color: #0d6efd;
}

.cat-seguros .convenio-cat-bar {
    background: #6f42c1;
}

.cat-seguros .convenio-icon-wrap {
    background: #f3eeff;
    color: #6f42c1;
}

.cat-vivienda .convenio-cat-bar {
    background: #198754;
}

.cat-vivienda .convenio-icon-wrap {
    background: #e6f4ea;
    color: #198754;
}

.cat-comercio .convenio-cat-bar {
    background: #fd7e14;
}

.cat-comercio .convenio-icon-wrap {
    background: #fff3e6;
    color: #fd7e14;
}

.cat-turismo .convenio-cat-bar {
    background: #20c997;
}

.cat-turismo .convenio-icon-wrap {
    background: #e0faf2;
    color: #20c997;
}

/* ── Pasos de acceso ────────────────────────────────────────── */
.paso {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.paso-num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ── CTA gradiente ──────────────────────────────────────────── */
.cta-gradient {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}