/* CSS PORTAL PÚBLICO PVL - REDISEÑO CON MENÚ */

:root {
    --primary: #1e4d7b;
    --secondary: #2c3e50;
    --accent: #27ae60;
    --warning: #f39c12;
    --white: #ffffff;
    --gray-light: #f8fafc;
    --gray-medium: #94a3b8;
    --text-dark: #1e293b;
    --navbar-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f1f5f9;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR */
.main-navbar {
    height: var(--navbar-height);
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 45px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    line-height: 1;
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--gray-medium);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-item {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 6px 9px;
    border-radius: 6px;
    transition: 0.3s;
    white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
    background-color: rgba(30, 77, 123, 0.05);
    color: var(--primary);
}

.nav-intranet {
    background-color: var(--primary);
    color: var(--white) !important;
    border-radius: 50px;
    padding: 6px 14px !important;
    margin-left: 4px;
    box-shadow: 0 4px 10px rgba(30, 77, 123, 0.2);
    white-space: nowrap;
}

.nav-intranet:hover {
    background-color: var(--secondary) !important;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(30, 77, 123, 0.08);
    border: none;
    font-size: 1.3rem;
    color: var(--primary);
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.menu-toggle:hover { background: rgba(30, 77, 123, 0.16); }

/* HERO SECTION */
.hero-section {
    background: linear-gradient(rgba(30, 77, 123, 0.9), rgba(44, 62, 80, 0.8)), url('../../imagenes/fondomenu.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-hero {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-hero.primary { background-color: var(--white); color: var(--primary); }
.btn-hero.secondary { border: 2px solid var(--white); color: var(--white); }
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* SECTIONS */
.portal-section {
    padding: 80px 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray-medium);
}

/* SEARCH CARD */
.search-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-medium);
}

.search-input-wrapper input {
    flex: 1;
    height: 55px;
    padding-left: 45px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    outline: none;
}

.btn-search {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 30px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    min-width: 180px;
}

/* REQUISITOS V2 */
.req-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.req-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: 0.3s;
}

.req-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(30,77,123,0.1); }

.req-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.req-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--secondary); }
.req-card p { font-size: 0.9rem; color: var(--gray-medium); }

/* TABLE V2 */
.table-container-v2 {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
}

.portal-table th {
    background-color: var(--primary);
    padding: 18px;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--white);
    border-bottom: 2px solid rgba(0,0,0,0.1);
    white-space: nowrap;
}
.portal-table td { padding: 18px; border-bottom: 1px solid #f1f5f9; }

/* Fila total de comités */
.tr-total {
    background: #f0f7ff;
    font-weight: 700;
    border-top: 2px solid #bfdbfe;
}

.badge { padding: 5px 12px; border-radius: 50px; background: #dcfce7; color: #166534; font-weight: 700; font-size: 0.75rem; }
.badge.gray { background: #f1f5f9; color: #475569; }
.badge.orange { background: #fff7ed; color: #9a3412; }

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-item { display: flex; gap: 20px; margin-bottom: 30px; }
.contact-item i { width: 50px; height: 50px; background: rgba(30,77,123,0.05); color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

.map-placeholder {
    height: 100%;
    background: #e2e8f0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-medium);
    font-size: 4rem;
}

/* RESULTS */
.results-section { margin-top: 30px; }

/* ── Banner Apoderado ── */
.result-apoderado-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #2563a8 100%);
    color: #fff;
    border-radius: 14px;
    padding: 18px 24px;
    margin-bottom: 18px;
    box-shadow: 0 6px 20px rgba(30,77,123,0.2);
}

.apod-icon {
    font-size: 2rem;
    opacity: 0.85;
    flex-shrink: 0;
}

.apod-info { flex: 1; min-width: 0; }

.apod-nombre {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    word-break: break-word;
}

.apod-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
    font-size: 0.82rem;
    opacity: 0.9;
    align-items: center;
}

.apod-modo-tag {
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.apod-count {
    flex-shrink: 0;
    text-align: center;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.78rem;
    line-height: 1.3;
}

.apod-count span {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

/* ── Tarjeta Beneficiario ── */
.beneficiary-card-v2 {
    background: var(--white);
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 14px;
    border-left: 6px solid var(--primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.bcard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.bcard-nombre-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.bcard-nombre {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text-dark);
    word-break: break-word;
}

.bcard-dni-chip {
    background: #e0e7ff;
    color: #3730a3;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.bcard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 16px;
}

.bcard-dato {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bcard-dato-wide {
    grid-column: span 2;
}

.bcard-dato-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-medium);
    letter-spacing: 0.04em;
}

.bcard-dato-valor {
    font-size: 0.82rem;
    color: var(--text-dark);
}

.bcard-beneficio {
    color: #065f46;
    font-weight: 600;
}

/* Status badges */
.status-badge { padding: 6px 14px; border-radius: 50px; font-weight: 700; font-size: 0.75rem; white-space: nowrap; }
.status-activo { background: #dcfce7; color: #166534; }
.status-inactivo { background: #fee2e2; color: #991b1b; }

/* Legacy card (kept for backward compat) */
.beneficiary-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 15px;
    border-left: 8px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* FOOTER */
.main-footer { background: var(--secondary); color: var(--white); padding: 60px 0 20px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 60px; margin-bottom: 20px; }
.footer-links h4 { margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom { padding-top: 20px; text-align: center; font-size: 0.85rem; opacity: 0.6; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 1.8rem; }
    .contact-grid { grid-template-columns: 1fr; }

    /* ── CONSULTA: MÓVIL ── */
    .search-card {
        padding: 0;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(30, 77, 123, 0.13);
        border-top: none;
    }

    .search-card::before {
        content: '';
        display: block;
        height: 6px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
    }

    .search-card form {
        padding: 26px 20px 30px;
    }

    .input-group label {
        display: block;
        font-size: 0.78rem;
        font-weight: 700;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 14px;
    }

    .search-input-wrapper {
        flex-direction: column;
        gap: 12px;
        margin-top: 0;
    }

    .search-input-wrapper input {
        flex: none !important;
        height: 90px !important;
        font-size: 1.25rem;
        border-radius: 14px;
        padding-left: 52px;
        width: 100%;
        border: 2px solid #e2e8f0;
    }

    .search-input-wrapper input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(30, 77, 123, 0.1);
    }

    .input-icon {
        top: 45px; /* centro del input de 90px */
        font-size: 1.2rem;
    }

    .btn-search {
        width: 100%;
        height: 56px;
        min-width: unset;
        font-size: 1rem;
        font-weight: 700;
        border-radius: 14px;
        background: linear-gradient(135deg, #1e4d7b 0%, #2563a8 100%);
        box-shadow: 0 5px 18px rgba(30, 77, 123, 0.32);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        letter-spacing: 0.02em;
        transition: transform 0.15s, box-shadow 0.15s;
    }

    .btn-search:active {
        transform: scale(0.97);
        box-shadow: 0 2px 8px rgba(30, 77, 123, 0.2);
    }

    /* ── RESULTADOS: MÓVIL ── */
    .beneficiary-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 16px;
        border-left-width: 5px;
    }

    .beneficiary-card .beneficiary-info h4 {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .result-apoderado-banner {
        flex-wrap: wrap;
        padding: 14px 16px;
        gap: 10px;
    }

    .apod-count { display: none; }

    .beneficiary-card-v2 {
        padding: 16px;
        border-left-width: 5px;
    }

    .bcard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bcard-dato-wide { grid-column: span 2; }

    .status-badge {
        align-self: flex-start;
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    /* ── SECCIÓN HEADER: MÓVIL ── */
    .section-header h2 { font-size: 1.5rem; }
    .portal-section { padding: 50px 0 10px; }
}
/* ============================================================
   UNIVERSAL SLIDER SYSTEM - CSS
   Soporta: Layered, Thumbnails, Carousel, Premium, Elite
============================================================ */

:root {
    --slider-primary: #ff6b00;
    --slider-dark: #0b0b0b;
    --slider-transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.layered-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px);
    min-height: 500px;
    overflow: hidden;
    background: #000;
}

/* ESTRUCTURA DE TRACK (Para Carousel y Premium) */
.ls-track {
    display: flex;
    height: 100%;
    transition: transform var(--slider-transition);
    will-change: transform;
}

/* SLIDE BASE */
.ls-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; visibility: hidden;
    transition: opacity var(--slider-transition);
    display: flex;
    align-items: center;
}

/* MODOS QUE USAN TRACK (Horizontal) */
.slider-carousel .ls-slide, 
.slider-premium .ls-slide {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.ls-slide.active { opacity: 1; visibility: visible; }

/* FONDO CON ZOOM */
.ls-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.15);
    transition: transform 10s linear;
    z-index: 1;
}

.ls-slide.active .ls-bg { transform: scale(1); }

.ls-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4); /* Overlay base */
}

/* CONTENIDO */
.ls-content {
    position: relative;
    z-index: 10;
    padding: 0 8%;
    color: white;
}

/* --- ESTILO 1: LAYERED (Capas) --- */
.slider-layered .ls-title {
    font-size: clamp(2rem, 5vw, 4rem);
    transform: translateX(-100px); opacity: 0;
    transition: all 0.8s ease 0.3s;
}
.slider-layered .ls-slide.active .ls-title { transform: translateX(0); opacity: 1; }

.slider-layered .ls-text {
    font-size: 1.2rem;
    transform: translateY(30px); opacity: 0;
    transition: all 0.8s ease 0.6s;
}
.slider-layered .ls-slide.active .ls-text { transform: translateY(0); opacity: 1; }

/* --- ESTILO 2: THUMBNAILS --- */
.ls-thumbs-container {
    position: absolute;
    bottom: 0; width: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    padding: 10px;
    display: flex; justify-content: center; gap: 10px;
    z-index: 50;
}
.ls-thumb {
    width: 80px; height: 50px; border-radius: 4px;
    cursor: pointer; opacity: 0.5; border: 2px solid transparent;
    transition: 0.3s; background-size: cover;
}
.ls-thumb.active { opacity: 1; border-color: var(--slider-primary); transform: translateY(-5px); }

/* --- ESTILO 3: CAROUSEL --- */
.slider-carousel { padding: 60px 0; background: #f4f7f6; }
.slider-carousel .ls-track { align-items: stretch; }
.slider-carousel .product-card {
    background: white; border-radius: 15px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); height: 100%; width: 100%;
    display: flex; flex-direction: column;
}
.slider-carousel .ls-slide { flex: 0 0 calc(25% - 20px); height: 100%; margin: 0 10px; }
.slider-carousel .ls-bg {
    position: relative; inset: auto;
    flex: 1; min-height: 160px; width: 100%;
    background-size: cover; background-position: center;
    transform: none !important;
}
.slider-carousel .ls-bg::after { display: none; }
.slider-carousel .ls-content { flex: 0 0 auto; padding: 20px; color: #333; text-align: center; }

/* --- ESTILO 4: PREMIUM --- */
.slider-premium { background: #0b0b0b; padding: 60px 0; height: auto !important; }
.slider-premium .ls-slide {
    min-width: 350px; height: 500px; border-radius: 30px;
    margin: 0 15px; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.slider-premium .ls-bg::after {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 20%, transparent);
}
.slider-premium .ls-content { position: absolute; bottom: 30px; }

/* --- ESTILO 5: ELITE (Full Screen) --- */
.slider-elite .ls-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900; text-transform: uppercase; line-height: 0.9;
}
.ls-info-card {
    position: absolute; right: 5%; bottom: 50px;
    width: 300px; background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px); padding: 25px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2); color: white; z-index: 60;
}
.ls-stats { display: flex; justify-content: space-between; margin-top: 15px; }
.ls-stats h4 { color: var(--slider-primary); font-size: 24px; margin: 0; }

/* NAVEGACI? N COM?aN */
.ls-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: none; color: white;
    cursor: pointer; z-index: 100; transition: 0.3s;
}
.ls-nav-btn:hover { background: var(--slider-primary); }
.ls-nav-btn.prev { left: 20px; }
.ls-nav-btn.next { right: 20px; }

.ls-dots {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 100;
}
.ls-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.3); cursor: pointer; transition: 0.4s;
}
.ls-dot.active { width: 35px; border-radius: 10px; background: var(--slider-primary); }

/* Carousel: 3 tarjetas en pantalla mediana */
@media (max-width: 1200px) {
    .slider-carousel .ls-slide { flex: 0 0 calc(33.333% - 20px); }
}

/* Carousel: 2 tarjetas en tablet */
@media (max-width: 900px) {
    .slider-carousel .ls-slide { flex: 0 0 calc(50% - 20px); }
}

/* Todos los modos: 1 tarjeta en móvil */
@media (max-width: 768px) {
    .ls-slide { flex: 0 0 100% !important; }
    .ls-info-card { display: none; }
    .slider-carousel .ls-bg { height: 50%; min-height: 180px; }
}

.nav-escudo-derecha {
    height: 45px;
    flex-shrink: 0;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── BACKDROP ── */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--navbar-height);
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
    animation: fadeBackdrop 0.25s ease;
}
.nav-backdrop.open { display: block; }
@keyframes fadeBackdrop {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── CONSULTA: TABLET ── */
@media (max-width: 900px) {
    .search-card {
        padding: 30px 28px;
        border-radius: 16px;
    }

    .btn-search {
        min-width: 150px;
        height: 52px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .search-input-wrapper input {
        flex: none !important;
        height: 75px !important;
        font-size: 1.1rem;
    }

    .section-header h2 { font-size: 1.7rem; }
    .portal-section { padding: 60px 0 15px; }

    .beneficiary-card {
        padding: 20px;
        gap: 12px;
    }

    .bcard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── MENÚ RESPONSIVE ── */
@media (max-width: 900px) {

    .menu-toggle {
        display: flex !important;
    }

    /* Drawer deslizable desde la derecha */
    .nav-right {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        position: fixed !important;
        top: var(--navbar-height) !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 260px !important;
        background: #ffffff !important;
        border-left: 1px solid #dde3ed;
        box-shadow: -6px 0 24px rgba(0, 0, 0, 0.14);
        transform: translateX(100%) !important;
        transition: transform 0.3s ease !important;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 14px 0 24px;
        z-index: 999;
    }

    .nav-right.open {
        transform: translateX(0) !important;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
        list-style: none !important;
        width: 100% !important;
        padding: 0 12px !important;
        gap: 2px !important;
    }

    .nav-links li {
        display: block !important;
        width: 100% !important;
    }

    .nav-item {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 12px 14px !important;
        border-radius: 8px !important;
        font-size: 0.9rem !important;
        color: #2c3e50 !important;
        white-space: normal !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }

    .nav-item i {
        width: 18px;
        text-align: center;
        flex-shrink: 0;
    }

    .nav-item:hover, .nav-item.active {
        background-color: rgba(30, 77, 123, 0.08) !important;
        color: #1e4d7b !important;
    }

    .nav-intranet {
        margin: 10px 0 0 0 !important;
        padding: 12px 14px !important;
        border-radius: 8px !important;
        justify-content: center !important;
        color: #ffffff !important;
    }

    .nav-intranet:hover {
        transform: none !important;
    }

    .nav-escudo-derecha { display: none !important; }
    .brand-sub          { display: none !important; }
}


/* ══════════════════════════════════════════════════════════
   TABLAS → TARJETAS (≤ 900px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

    /* Contenedor transparente para que las tarjetas floten */
    .table-container-v2 {
        background:    transparent;
        border-radius: 0;
        box-shadow:    none;
        overflow-x:    visible;
        padding:       0;
    }

    /* Tabla y tbody en bloque */
    .portal-table,
    .portal-table tbody { display: block; width: 100%; }

    /* Ocultar encabezado */
    .portal-table thead { display: none; }

    /* ── Cada <tr> es una tarjeta ── */
    .portal-table tbody tr {
        display:       block;
        background:    #ffffff;
        border:        1px solid #e2e8f0;
        border-radius: 14px;
        margin-bottom: 14px;
        overflow:      hidden;
        box-shadow:    0 3px 12px rgba(0, 0, 0, 0.07);
    }

    /* ── Cada <td> como bloque con etiqueta superior ── */
    .portal-table tbody td {
        display:       block;
        padding:       11px 16px;
        border-bottom: 1px solid #f1f5f9;
        font-size:     0.88rem;
        line-height:   1.5;
        box-sizing:    border-box;
    }

    .portal-table tbody td:last-child { border-bottom: none; }

    .portal-table tbody td::before {
        content:        attr(data-label);
        display:        block;
        font-size:      0.67rem;
        font-weight:    700;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color:          #94a3b8;
        margin-bottom:  4px;
    }

    /* ══════════════════════════════════
       TABLA BENEFICIOS
       Primera celda = cabecera de tarjeta
       ══════════════════════════════════ */

    #beneficios .portal-table tbody td:first-child {
        font-weight:   700;
        font-size:     0.95rem;
        color:         #ffffff;
        padding:       14px 16px;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    }
    #beneficios .portal-table tbody td:first-child::before { display: none; }

    /* 1ª Prioridad: azul institucional */
    #beneficios .portal-table tbody tr.p-high td:first-child {
        background: linear-gradient(135deg, #1e4d7b 0%, #2563a8 100%);
    }
    /* 2ª Prioridad: gris pizarra */
    #beneficios .portal-table tbody tr:not(.p-high):not(.p-special) td:first-child {
        background: linear-gradient(135deg, #334155 0%, #475569 100%);
    }
    /* Especial: naranja/rojo */
    #beneficios .portal-table tbody tr.p-special td:first-child {
        background: linear-gradient(135deg, #9a3412 0%, #ea580c 100%);
    }

    /* ══════════════════════════════════
       TABLA COMITÉS
       Nombre del comité = cabecera de tarjeta
       ══════════════════════════════════ */

    /* Ocultar celda # (índice) */
    #comites .portal-table tbody td[data-label="#"] { display: none; }

    /* Nombre del comité como cabecera azul */
    #comites .portal-table tbody td[data-label="Comité"] {
        background:    linear-gradient(135deg, #1e4d7b 0%, #2563a8 100%);
        color:         #ffffff;
        font-weight:   700;
        font-size:     0.95rem;
        padding:       14px 16px;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    }
    #comites .portal-table tbody td[data-label="Comité"]::before  { display: none; }
    #comites .portal-table tbody td[data-label="Comité"] strong   { color: #ffffff; }

    /* Sector y Beneficiarios en la misma fila */
    #comites .portal-table tbody td[data-label="Sector"],
    #comites .portal-table tbody td[data-label="Beneficiarios"] {
        display:        inline-block;
        width:          50%;
        vertical-align: top;
        box-sizing:     border-box;
        border-bottom:  none;
    }
    #comites .portal-table tbody td[data-label="Sector"] {
        border-right: 1px solid #f1f5f9;
        border-bottom: none;
    }
    /* Separador inferior para esa fila doble */
    #comites .portal-table tbody td[data-label="Beneficiarios"] {
        border-bottom: none;
    }

    /* Fila de total */
    #comites .portal-table tbody tr.tr-total {
        background:   #eff6ff;
        border-color: #bfdbfe;
        border-radius: 14px;
    }
    #comites .portal-table tbody tr.tr-total td {
        display:       block !important;
        width:         100% !important;
        text-align:    center;
        padding:       14px 16px;
        border-bottom: none;
    }
    #comites .portal-table tbody tr.tr-total td::before { display: none; }
}

/* Ocultar columna Directiva en la tabla pública de comités */
.col-directiva { display: none !important; }
