/* ============================================================
   Transparencia — rediseño moderno, corporativo y de confianza.
   Reutiliza .pr-* / .hm-* / .ay-*; aquí solo se agrega el layout
   de artículo legal con tabla de contenido.
   ============================================================ */

.tp-page {
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}

    .tp-page h1, .tp-page h2, .tp-page h3, .tp-page h4 {
        font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
        font-weight: 700;
    }

.tp-article-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 991px) {
    .tp-article-layout { grid-template-columns: 1fr; }
}

.tp-toc {
    background: #FFFFFF;
    border: 1px solid var(--inst-border);
    border-radius: 14px;
    padding: 22px;
    position: sticky;
    top: 24px;
}

.tp-toc h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--inst-muted-fg);
    margin-bottom: 14px;
}

.tp-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tp-toc a {
    color: var(--inst-primary);
    font-weight: 600;
    font-size: 14px;
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.tp-toc a:hover {
    background: var(--inst-bg-light);
    border-left-color: var(--inst-accent);
    color: var(--inst-accent);
}

.tp-content {
    background: #FFFFFF;
    border: 1px solid var(--inst-border);
    border-radius: 16px;
    padding: 36px 40px;
}

.tp-content h4 {
    color: var(--inst-primary);
    font-size: 19px;
    margin: 30px 0 12px;
    scroll-margin-top: 24px;
}

.tp-content h4:first-child {
    margin-top: 0;
}

.tp-content p {
    color: var(--inst-muted-fg);
    font-size: 15.5px;
    line-height: 1.7;
}

.tp-alert-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--inst-border);
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.tp-alert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(20, 83, 45, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .tp-alert-card:hover { transform: none; }
}

.tp-alert-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #DC2626;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

