/* =========================================
   PORTAL DE TRANSPARENCIA (Dossier Premium)
   ========================================= */

/* --- Hero Banner Legal --- */
.transparencia-hero {
    background: linear-gradient(to right, rgba(23, 27, 77, 0.98), rgba(23, 27, 77, 0.85)),
        url('https://images.unsplash.com/photo-1589829085413-56de8ae18c73?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    padding: 100px 5% 80px;
    text-align: center;
    color: var(--white);
    border-bottom: 4px solid var(--primary-red);
}

.transparencia-hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.transparencia-hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #cbd5e1;
    font-weight: 300;
    line-height: 1.6;
}

/* --- Layout del Dossier --- */
.transparencia-section {
    padding: 80px 5%;
    background-color: var(--white);
    min-height: 70vh;
}

.transparencia-layout {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    /* Un poco más estrecho para facilitar la lectura */
    margin: 0 auto;
    align-items: flex-start;
}

/* --- Sidebar de Categorías (Izquierda) --- */
.trans-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 110px;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px 20px;
    border: 1px solid rgba(23, 27, 77, 0.05);
}

.trans-sidebar h4 {
    color: var(--primary-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-left: 15px;
    font-weight: 700;
}

.trans-tabs {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.trans-tab-btn {
    background: transparent;
    border: none;
    text-align: left;
    padding: 15px;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trans-tab-btn:hover {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.trans-tab-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(23, 27, 77, 0.15);
}

.trans-tab-btn.active::after {
    content: '→';
    color: var(--yellow);
    font-size: 1.2rem;
}

/* --- Contenido de Documentos (Derecha) --- */
.trans-content-area {
    flex-grow: 1;
    min-width: 0;
}

.trans-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.trans-pane.active {
    display: block;
}

.trans-pane h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.trans-pane p.lead-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(23, 27, 77, 0.1);
}

/* --- Lista de Documentos (Rows) --- */
.doc-list {
    display: flex;
    flex-direction: column;
}

.doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    gap: 20px;
}

.doc-item:hover {
    border-bottom-color: var(--primary-red);
    padding-left: 15px;
    /* Efecto de deslizamiento sutil */
    padding-right: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.doc-icon {
    width: 45px;
    height: 45px;
    background: rgba(186, 19, 24, 0.08);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-red);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.doc-item:hover .doc-icon {
    transform: scale(1.1);
    background: var(--primary-red);
    color: var(--white);
}

.doc-details h5 {
    color: var(--primary-blue);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.doc-details span {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-download:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Responsive */
@media (max-width: 992px) {
    .transparencia-layout {
        flex-direction: column;
        gap: 40px;
    }

    .trans-sidebar {
        width: 100%;
        position: static;
        padding: 20px;
    }

    .doc-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-download {
        align-self: flex-start;
        margin-left: 63px;
        /* Alineado con el texto, saltando el icono */
    }
}