/* ============================================================
   TRANSPARENCIA.CSS - Estandarizado
   ============================================================ */

/* --- SEGUIMIENTO (BREADCRUMBS) SUTIL --- */
.tp-breadcrumb-subtle {
    padding: 0 !important;
    margin-bottom: 20px !important;
}

.tp-breadcrumb-subtle a, 
.tp-breadcrumb-subtle span, 
.tp-breadcrumb-subtle li {
    font-size: 14px !important;
    color: #686868;
    text-decoration: none;
}

.tp-breadcrumb-subtle .current, 
.tp-breadcrumb-subtle b {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* ==================== BASE ==================== */
.tp-hero {
    margin: 10px 0 20px;
    background: linear-gradient(135deg, #4f4f4f 0%, #2f2f2f 100%);
    border-radius: 18px;
    padding: 28px 26px;
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.tp-hero--compact {
    padding: 24px 26px;
}

.tp-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #f0c34a;
}

.tp-title {
    margin: 0 0 8px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.05;
    font-weight: 800;
}

.tp-subtitle {
    margin: 0;
    max-width: 860px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,.92);
}

/* Espacio final antes del footer */
.tp-section {
    margin-bottom: 50px; 
}

.tp-grid {
    display: grid;
    gap: 20px;
}

.tp-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ==================== CARD PRINCIPAL ==================== */
.tp-card {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.tp-card--feature {
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

/* NUEVO: ícono + título en una misma fila */
.tp-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.tp-card__icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 16px;
    background: #c90000;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;

    /* Importante: evita que el título baje */
    margin-bottom: 0;
}

.tp-card__body {
    flex: 1;
}

.tp-card__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
    color: #1a1a1a;
}

.tp-card__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #4a4a4a;
}

.tp-card__actions {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    justify-content: flex-end;
}

/* ==================== PANEL ==================== */
.tp-panel {
    background: #fff;
    border: 1px solid #dddddd;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.tp-panel__title {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
}

/* ==================== PAGINACION ==================== */
.tp-panel .pagination {
    padding: 18px 0;
}

.tp-panel .pagination__btn:first-child,
.tp-panel .pagination__btn:last-child {
    background-color: #A6A6A6;
    border-color: #A6A6A6;
    opacity: 0.5;
}

.tp-panel .pagination__btn:first-child:hover,
.tp-panel .pagination__btn:last-child:hover {
    background-color: #FFFFFF;
    border-color: #A6A6A6;
}

.tp-panel .pagination__btn:first-child i,
.tp-panel .pagination__btn:last-child i {
    color: #585858;
}

.tp-panel .pagination__btn:not(:first-child):not(:last-child) {
    background-color: transparent;
    border-color: transparent;
}

.tp-panel .pagination__btn:not(:first-child):not(:last-child):hover {
    background-color: transparent;
    border-color: transparent;
}

.tp-panel .pagination__btn--active:not(:first-child):not(:last-child) {
    background-color: #B80201;
    border-color: #B80201;
    color: var(--color-white);
}

.tp-panel .pagination__btn--active:not(:first-child):not(:last-child):hover {
    background-color: #FFFFFF;
    border-color: #B80201;
    color: #B80201;
}

/* ==================== LISTAS ==================== */
.tp-doc-list,
.tp-session-list {
    display: grid;
    gap: 18px;
}

.tp-doc,
.tp-session {
    border: 1px solid #e3e3e3;
    border-radius: 20px;
    padding: 18px 18px 16px;
    background: #fafafa;
}

.tp-doc__meta,
.tp-session__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.tp-chip,
.tp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.tp-chip {
    background: #f7eaea;
    color: #d10000;
}

.tp-badge {
    background: rgba(31, 140, 79, .1);
    color: #187f45;
}

.tp-doc__date,
.tp-session__date {
    margin: 0;
    font-size: 13px;
    color: #5e6c84;
    font-weight: 700;
}

.tp-doc__title,
.tp-session__title {
    margin: 10px 0 8px;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.tp-doc__text,
.tp-session__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #374151;
}

.tp-doc__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    justify-content: flex-end;
}

/* ==================== BOTONES ==================== */
.tp-btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    background: #8E8E93;
    color: #fff;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    min-width: 134px;
}

.tp-btn img {
    filter: invert(1);
}

.tp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0,0,0,.10);
}

.tp-btn--primary {
    background: #d40000;
    color: #fff;
    font-size: 15px;
}

.tp-doc__button {
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    justify-content: center !important;
    gap: 4px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-align: center;
    overflow: hidden;
}

.tp-doc__button .btn-principal__icon {
    width: 24px !important;
    height: 22px !important;
    flex: 0 0 24px !important;
    mask-size: 78% 78% !important;
    -webkit-mask-size: 78% 78% !important;
}

.tp-doc__button--disabled {
    background: #8E8E93;
    border: 2px solid #8E8E93;
    color: #ffffff;
    cursor: not-allowed;
    opacity: .72;
}

.tp-doc__button--disabled-primary {
    background: #C90000;
    border-color: #C90000;
}

/* ==================== DOCUMENTOS / SESIONES ==================== */
.tp-doc--document,
.tp-doc--session {
    min-height: 190px;
    padding: 20px 24px 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    border: 1px solid #C90000;
    background-color: white;
}

.tp-doc__actions--right {
    justify-content: flex-end;
}

.tp-session-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.tp-session-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #C90000;
}

.tp-session-date i {
    font-size: 15px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .tp-grid--2 {
        grid-template-columns: 1fr;
    }

    .tp-title {
        font-size: 30px;
    }

    .tp-card__title,
    .tp-panel__title {
        font-size: 22px;
    }
}

@media (max-width: 560px) {
    .tp-hero,
    .tp-panel,
    .tp-card,
    .tp-doc,
    .tp-session {
        padding: 16px;
    }

    .tp-card__header {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 14px;
    }

    .tp-card__icon {
        width: 54px;
        height: 54px;
        min-width: 54px;
        font-size: 24px;
        border-radius: 14px;
    }

    .tp-card__title {
        font-size: 21px;
        line-height: 1.2;
    }

    .tp-doc__actions {
        flex-direction: column;
    }

    .tp-doc__actions--right {
        justify-content: stretch;
    }

    .tp-btn {
        width: 100%;
        min-width: 100%;
    }
}
