/*
 * TrendPerú — CSS global de posts (prefijo tp-)
 * Cargado una vez para todos los posts del plugin.
 * Versión: 1.0 — optimizado para legibilidad adultos/adultos mayores
 * NUNCA incluir <style> en los template.php individuales.
 * ──────────────────────────────────────────────────────────────────
 */

/* ── VARIABLES ─────────────────────────────────────────────────── */
:root {
    --tp-green:   #008060;
    --tp-green-d: #004c3f;
    --tp-green-l: #e3f1ed;
    --tp-bg:      #f6f6f7;
    --tp-white:   #fff;
    --tp-border:  #e1e3e5;
    --tp-text:    #202223;
    --tp-muted:   #6d7175;
    --tp-radius:  8px;
    --tp-shadow:  0 1px 4px rgba(0,0,0,.07);
}

/* ── BASE ──────────────────────────────────────────────────────── */
.tp-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--tp-text);
    line-height: 1.75;
    font-size: 17px;
}
.tp-wrap * { box-sizing: border-box; }

/* ── PAGE HEADER ───────────────────────────────────────────────── */
.tp-header {
    padding: 24px 0 20px;
    border-bottom: 1px solid var(--tp-border);
    margin-bottom: 24px;
}
.tp-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.tp-badge-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--tp-green-l);
    color: var(--tp-green-d);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.tp-badge-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--tp-bg);
    border: 1px solid var(--tp-border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    color: var(--tp-muted);
}
.tp-header h1 {
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.2;
    color: var(--tp-text);
}
.tp-lead {
    font-size: 18px;
    color: var(--tp-muted);
    line-height: 1.7;
    margin: 0 0 16px;
    max-width: 700px;
}
.tp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tp-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--tp-bg);
    border: 1px solid var(--tp-border);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 14px;
    white-space: nowrap;
}

/* ── TABLA DE CONTENIDOS ───────────────────────────────────────── */
.tp-toc {
    background: var(--tp-bg);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 16px 20px;
    margin-bottom: 28px;
}
.tp-toc-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--tp-muted);
    margin-bottom: 10px;
}
.tp-toc ol { margin: 0; padding-left: 18px; }
.tp-toc li { margin-bottom: 6px; }
.tp-toc a {
    color: var(--tp-green-d);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}
.tp-toc a:hover { text-decoration: underline; }

/* ── BANNERS — borde 4 lados, fondo pastel, NUNCA border-left solo */
.tp-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-radius: var(--tp-radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    border-width: 1px;
    border-style: solid;
}
.tp-banner-green  { background: #ecfdf5; border-color: #6ee7b7; }
.tp-banner-blue   { background: #eff6ff; border-color: #93c5fd; }
.tp-banner-amber  { background: #fff7ed; border-color: #fdba74; }
.tp-banner-red    { background: #fff4f4; border-color: #fca5a5; }
.tp-banner-icon   { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.tp-banner-body strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--tp-text);
}
.tp-banner-body p {
    margin: 0;
    font-size: 16px;
    color: #374151;
    line-height: 1.65;
}
.tp-banner-body a { color: var(--tp-green-d); font-weight: 600; }

/* ── H2 SECCIONES ──────────────────────────────────────────────── */
.tp-h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--tp-text);
    margin: 40px 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--tp-border);
    display: flex;
    align-items: center;
    gap: 8px;
    scroll-margin-top: 24px;
}

/* ── TABLA ─────────────────────────────────────────────────────── */
.tp-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    margin-bottom: 8px;
}
.tp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tp-table thead th {
    background: var(--tp-bg);
    color: var(--tp-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--tp-border);
    white-space: nowrap;
}
.tp-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--tp-border);
    vertical-align: middle;
    font-size: 15px;
}
.tp-table tbody tr:last-child td { border-bottom: none; }
.tp-table tbody tr:hover td { background: #fafafa; }
.tp-table-source {
    font-size: 13px;
    color: var(--tp-muted);
    margin: 0 0 24px;
    padding: 0 2px;
}

/* Estado chips en tabla */
.tp-st {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 10px;
}
.tp-st-ok   { background: #dcfce7; color: #14532d; }
.tp-st-warn { background: #fff7ed; color: #92400e; }
.tp-st-no   { background: #fee2e2; color: #7f1d1d; }

/* ── DATA TABLE (tabla basada en divs, 100% responsive) ────────────
   Reemplaza a <table> con divs para control total del responsive.
   - DESKTOP: se ve como una tabla alineada (CSS Grid), con fila de
     encabezado. Las columnas se definen con la variable --tp-dtable-cols
     en el elemento .tp-dtable (ej. style="--tp-dtable-cols: 2fr 3fr 1fr").
   - MÓVIL: cada fila se apila en una tarjeta y cada celda muestra su
     etiqueta de columna (atributo data-label), sin scroll horizontal.
   Estructura:
     <div class="tp-dtable" style="--tp-dtable-cols: 2fr 3fr 1fr">
       <div class="tp-dtable-head">
         <div class="tp-dtable-cell">Col 1</div> ... </div>
       <div class="tp-dtable-row">
         <div class="tp-dtable-cell" data-label="Col 1"><strong>..</strong></div>
         ... </div>
     </div>
*/
.tp-dtable {
    display: grid;
    grid-template-columns: var(--tp-dtable-cols, 1fr 1fr);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    overflow: hidden;
    margin: 0 0 8px;
    font-size: 15px;
}
.tp-dtable-head,
.tp-dtable-row { display: contents; }
.tp-dtable-cell {
    padding: 13px 16px;
    border-bottom: 1px solid var(--tp-border);
    vertical-align: middle;
}
.tp-dtable-head .tp-dtable-cell {
    background: var(--tp-bg);
    color: var(--tp-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.tp-dtable-row:last-child .tp-dtable-cell { border-bottom: none; }
.tp-dtable-row:hover .tp-dtable-cell { background: #fafafa; }

@media (max-width: 600px) {
    .tp-dtable {
        display: block;
        border: none;
        border-radius: 0;
        overflow: visible;
    }
    .tp-dtable-head { display: none; }
    .tp-dtable-row {
        display: block;
        border: 1px solid var(--tp-border);
        border-radius: var(--tp-radius);
        background: var(--tp-white);
        box-shadow: var(--tp-shadow);
        padding: 14px 15px;
        margin-bottom: 12px;
    }
    .tp-dtable-row:hover .tp-dtable-cell { background: transparent; }
    .tp-dtable-cell {
        display: block;
        border: none !important;
        padding: 6px 0;
        font-size: 14px;
        line-height: 1.6;
    }
    .tp-dtable-cell:not(:last-child) {
        border-bottom: 1px solid var(--tp-border) !important;
    }
    .tp-dtable-cell[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .3px;
        color: var(--tp-muted);
        margin-bottom: 3px;
    }
    .tp-dtable-cell:first-child { font-size: 15px; }
}

/* ── CARDS ─────────────────────────────────────────────────────── */
.tp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}
.tp-card {
    background: var(--tp-white);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 18px;
    box-shadow: var(--tp-shadow);
}
.tp-card-icon { font-size: 24px; margin-bottom: 10px; }
.tp-card h4 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--tp-text);
}
.tp-card p {
    margin: 0;
    font-size: 16px;
    color: var(--tp-muted);
    line-height: 1.65;
}

/* ── LISTA TIPO CARD (opcion-card / metodo) ────────────────────── */
.tp-list-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.tp-list-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--tp-white);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 16px;
    box-shadow: var(--tp-shadow);
}
.tp-list-card-ico { font-size: 24px; flex-shrink: 0; line-height: 1.3; }
.tp-list-card strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--tp-text);
}
.tp-list-card p {
    margin: 0;
    font-size: 16px;
    color: #374151;
    line-height: 1.65;
}

/* ── PASOS NUMERADOS ───────────────────────────────────────────── */
.tp-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.tp-step {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    background: var(--tp-white);
    box-shadow: var(--tp-shadow);
}
.tp-step-n {
    width: 34px;
    height: 34px;
    background: var(--tp-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}
.tp-step h4 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--tp-text);
}
.tp-step p { margin: 0; font-size: 16px; color: var(--tp-muted); line-height: 1.65; }
.tp-step a { color: var(--tp-green-d); font-weight: 600; }

/* ── TABLA ERRORES vs SOLUCIONES ───────────────────────────────── */
.tp-errores { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.tp-error {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    overflow: hidden;
}
.tp-error-bad  { background: #fff4f4; padding: 13px 16px; border-right: 1px solid var(--tp-border); font-size: 15px; }
.tp-error-good { background: #f0fdf4; padding: 13px 16px; font-size: 15px; }
.tp-error-bad::before  { content: '❌ '; }
.tp-error-good::before { content: '✅ '; }

/* ── BOTONES ───────────────────────────────────────────────────── */
.tp-action { margin: 14px 0 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.tp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tp-green);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 22px;
    border-radius: var(--tp-radius);
    text-decoration: none;
    transition: background .15s;
}
.tp-btn:hover { background: var(--tp-green-d); color: #fff; }
.tp-btn-ghost {
    background: var(--tp-white);
    color: var(--tp-text);
    border: 1px solid var(--tp-border);
}
.tp-btn-ghost:hover { background: var(--tp-bg); color: var(--tp-text); }

/* ── FAQ ACCORDION ─────────────────────────────────────────────── */
.tp-faq {
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    overflow: hidden;
    margin-bottom: 28px;
}
.tp-faq-item { border-bottom: 1px solid var(--tp-border); }
.tp-faq-item:last-child { border-bottom: none; }
.tp-faq-q {
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 600;
    color: var(--tp-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
    transition: background .1s;
}
.tp-faq-q:hover { background: var(--tp-bg); }
.tp-faq-q .tp-chev {
    font-size: 13px;
    color: var(--tp-muted);
    flex-shrink: 0;
    transition: transform .2s;
}
.tp-faq-item.open .tp-chev { transform: rotate(180deg); }
.tp-faq-a {
    display: none;
    padding: 0 20px 18px;
    font-size: 17px;
    color: #374151;
    line-height: 1.75;
}
.tp-faq-item.open .tp-faq-a { display: block; }

/* ── LINKS OFICIALES ───────────────────────────────────────────── */
.tp-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 36px;
}
.tp-link-card {
    background: var(--tp-white);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--tp-text);
    transition: box-shadow .15s, border-color .15s;
    box-shadow: var(--tp-shadow);
}
.tp-link-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); border-color: #bbb; }
.tp-link-ico { font-size: 22px; flex-shrink: 0; }
.tp-link-card strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.4; }
.tp-link-card span   { font-size: 13px; color: var(--tp-muted); }

/* ── CTA FINAL — SIEMPRE fondo blanco ─────────────────────────── */
.tp-cta {
    background: var(--tp-white);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 28px 24px;
    text-align: center;
    margin-top: 32px;
    box-shadow: var(--tp-shadow);
}
.tp-cta h3 { margin: 0 0 10px; font-size: 22px; font-weight: 700; color: var(--tp-text); }
.tp-cta p  { margin: 0 0 20px; font-size: 17px; line-height: 1.7; color: var(--tp-muted); }

/* ── NOTA FINAL ────────────────────────────────────────────────── */
.tp-nota {
    font-size: 14px;
    color: var(--tp-muted);
    border-top: 1px solid var(--tp-border);
    padding-top: 14px;
    margin-top: 28px;
    line-height: 1.7;
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .tp-cards  { grid-template-columns: 1fr; }
    .tp-links  { grid-template-columns: 1fr 1fr; }
    .tp-step   { flex-direction: column; gap: 8px; }
    .tp-error  { grid-template-columns: 1fr; }
    .tp-error-bad { border-right: none; border-bottom: 1px solid var(--tp-border); }
    .tp-chips  { gap: 6px; }

    /* Tablas → tarjetas apiladas (automático para TODOS los posts)
       Convierte cada <tr> en una tarjeta y cada <td> en un bloque
       apilado, eliminando el scroll horizontal y las columnas
       comprimidas en móvil. La primera celda (título en negrita)
       encabeza la tarjeta. No requiere cambios en el HTML. */
    .tp-table-wrap {
        overflow-x: visible;
        border: none;
        border-radius: 0;
    }
    .tp-table { font-size: 15px; }
    .tp-table thead {
        position: absolute;
        width: 1px; height: 1px;
        padding: 0; margin: -1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        white-space: nowrap; border: 0;
    }
    .tp-table,
    .tp-table tbody,
    .tp-table tr,
    .tp-table td { display: block; width: 100%; }
    .tp-table tr {
        border: 1px solid var(--tp-border);
        border-radius: var(--tp-radius);
        background: var(--tp-white);
        box-shadow: var(--tp-shadow);
        padding: 14px 15px;
        margin-bottom: 12px;
    }
    .tp-table tbody tr:hover td { background: transparent; }
    .tp-table td {
        border: none !important;
        padding: 6px 0;
        font-size: 14px;
        line-height: 1.6;
    }
    .tp-table td:not(:last-child) {
        border-bottom: 1px solid var(--tp-border) !important;
    }
    /* Etiqueta de columna (data-label) antes de cada valor en móvil */
    .tp-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .3px;
        color: var(--tp-muted);
        margin-bottom: 3px;
    }
    /* Primera celda = título destacado de la tarjeta */
    .tp-table td:first-child {
        font-size: 15px;
    }
    .tp-table td:first-child strong { font-size: 15px; }
}
/* Perú 2026 – Frontend Shortcode & Template Styles */

/* ── Variables ──────────────────────────────────────────────────────────────*/
:root {
    --p26-red:    #d63638;
    --p26-green:  #2d6a4f;
    --p26-blue:   #2271b1;
    --p26-yellow: #f4a261;
    --p26-radius: 8px;
    --p26-shadow: 0 2px 10px rgba(0,0,0,.08);
}

/* ── Pasos ──────────────────────────────────────────────────────────────────*/
.p2026-pasos { margin: 1.5rem 0; }
.p2026-pasos-titulo { font-size: 1.1rem; margin-bottom: .75rem; color: #333; }

.p2026-paso {
    display: flex; gap: 16px; align-items: flex-start;
    margin-bottom: 1rem; padding: 14px 16px;
    background: #fafafa; border: 1px solid #e8e8e8;
    border-left: 4px solid var(--p26-red);
    border-radius: var(--p26-radius);
    box-shadow: var(--p26-shadow);
    transition: transform .15s;
}
.p2026-paso:hover { transform: translateX(3px); }

.p2026-paso-num {
    display: flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px;
    background: var(--p26-red); color: #fff;
    border-radius: 50%; font-weight: 800; font-size: 1rem;
    flex-shrink: 0;
}
.p2026-paso-body { flex: 1; }
.p2026-paso-titulo { display: block; font-weight: 700; margin-bottom: 4px; color: #1d2327; }
.p2026-paso-body p { margin: 0; color: #555; font-size: .95rem; }

/* ── Alertas ────────────────────────────────────────────────────────────────*/
.p2026-alerta {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; border-radius: var(--p26-radius);
    margin: 1.25rem 0; border: 1px solid transparent;
}
.p2026-alerta-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.3; }
.p2026-alerta-body { font-size: .95rem; }
.p2026-alerta-body p { margin: 4px 0 0; }

.p2026-alerta--info    { background: #eef6fc; border-color: #b3d7f0; color: #1a4f72; }
.p2026-alerta--aviso   { background: #fffbe6; border-color: #f0d060; color: #7a5700; }
.p2026-alerta--peligro { background: #fef0f0; border-color: #f5c0c0; color: #8a0000; }
.p2026-alerta--exito   { background: #edfaef; border-color: #a8dfb5; color: #145a28; }

/* ── Tip ────────────────────────────────────────────────────────────────────*/
.p2026-tip {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; border-radius: var(--p26-radius);
    background: #f5f0ff; border-left: 4px solid #7c5cbf;
    margin: 1.25rem 0;
}
.p2026-tip-icon { font-size: 1.3rem; flex-shrink: 0; }
.p2026-tip-body { font-size: .95rem; color: #3d2b6b; }

/* ── Entidad ────────────────────────────────────────────────────────────────*/
.p2026-entidad {
    border: 1px solid #e0e0e0; border-radius: var(--p26-radius);
    overflow: hidden; margin: 1.5rem 0;
    box-shadow: var(--p26-shadow);
}
.p2026-entidad-header {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: var(--ent-color, var(--p26-blue));
    color: #fff;
}
.p2026-entidad-badge {
    font-weight: 800; font-size: 1rem; letter-spacing: .5px;
}
.p2026-entidad-label { font-size: .8rem; opacity: .85; }
.p2026-entidad-list {
    list-style: none; margin: 0; padding: 12px 16px;
    background: #fff;
}
.p2026-entidad-list li {
    padding: 5px 0; font-size: .9rem; color: #333;
    border-bottom: 1px solid #f0f0f0;
}
.p2026-entidad-list li:last-child { border-bottom: none; }
.p2026-entidad-list a { color: var(--ent-color, var(--p26-blue)); font-weight: 600; }

/* ── Costo ──────────────────────────────────────────────────────────────────*/
.p2026-costo {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 16px; background: #fffbe6;
    border: 1px solid #f0d060; border-radius: 6px;
    margin: .75rem 0; font-size: .95rem;
}
.p2026-costo-icon { font-size: 1.2rem; }
.p2026-costo-monto { font-weight: 800; font-size: 1.1rem; color: #7a5700; }
.p2026-costo-zona  { color: #555; }
.p2026-costo-nota  { display: block; color: #999; font-size: .8rem; margin-top: 2px; }

/* ── Plazo ──────────────────────────────────────────────────────────────────*/
.p2026-plazo {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 16px; background: #eef6fc;
    border: 1px solid #b3d7f0; border-radius: 6px;
    margin: .75rem 0; font-size: .95rem; color: #1a4f72;
}
.p2026-plazo-icon { font-size: 1.2rem; }
.p2026-plazo-desc { color: #555; }

/* ── Requisitos ─────────────────────────────────────────────────────────────*/
.p2026-requisitos {
    border: 1px solid #c8e6c9; border-radius: var(--p26-radius);
    overflow: hidden; margin: 1.25rem 0;
}
.p2026-requisitos-header {
    padding: 10px 16px; background: var(--p26-green);
    color: #fff; font-weight: 700; font-size: .95rem;
}
.p2026-requisitos-body {
    padding: 12px 16px; background: #f9fef9;
}
.p2026-requisitos-body ul { margin: 0; padding-left: 1.3rem; }
.p2026-requisitos-body li { padding: 4px 0; color: #333; font-size: .9rem; }

/* ── Dato ───────────────────────────────────────────────────────────────────*/
.p2026-dato {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; background: #f0f0f0;
    border-radius: 20px; font-size: .85rem; margin: 3px;
}
.p2026-dato-lbl { color: #555; }
.p2026-dato-val { font-weight: 700; color: #1d2327; }

/* ── Template: tutorial layout ──────────────────────────────────────────────*/
.p2026-tutorial-wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

.p2026-tutorial-hero {
    background: linear-gradient(135deg, #1d2327 60%, var(--p26-red));
    color: #fff; border-radius: var(--p26-radius);
    padding: 36px 32px; margin-bottom: 32px;
    position: relative; overflow: hidden;
}
.p2026-tutorial-hero::after {
    content: '🇵🇪'; position: absolute;
    right: 24px; bottom: -10px;
    font-size: 7rem; opacity: .12;
}
.p2026-tutorial-hero .p2026-hero-meta {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 12px;
}
.p2026-hero-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 12px; border-radius: 20px;
    font-size: .78rem; font-weight: 700; letter-spacing: .5px;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
}
.p2026-hero-read { font-size: .82rem; opacity: .7; }
.p2026-tutorial-hero h1 {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 800; margin: 0 0 12px; line-height: 1.25;
}
.p2026-tutorial-hero .p2026-hero-excerpt {
    font-size: 1rem; opacity: .85; max-width: 640px; margin: 0;
}

/* Table of Contents */
.p2026-toc {
    background: #f9f9f9; border: 1px solid #e0e0e0;
    border-left: 4px solid var(--p26-red);
    border-radius: var(--p26-radius); padding: 16px 20px;
    margin-bottom: 28px;
}
.p2026-toc-title { font-weight: 700; margin-bottom: 10px; color: #1d2327; }
.p2026-toc ol { margin: 0; padding-left: 1.2rem; }
.p2026-toc li { padding: 3px 0; }
.p2026-toc a { color: var(--p26-red); text-decoration: none; font-size: .9rem; }
.p2026-toc a:hover { text-decoration: underline; }

/* Article body */
.p2026-article-body h2 {
    font-size: 1.25rem; font-weight: 800;
    color: #1d2327; margin: 2rem 0 .75rem;
    padding-bottom: 6px; border-bottom: 2px solid #f0f0f0;
}
.p2026-article-body table {
    width: 100%; border-collapse: collapse; margin: 1rem 0;
    font-size: .9rem;
}
.p2026-article-body th {
    background: #1d2327; color: #fff;
    padding: 9px 12px; text-align: left;
}
.p2026-article-body td { padding: 8px 12px; border-bottom: 1px solid #eee; }
.p2026-article-body tr:nth-child(even) td { background: #fafafa; }

/* Hero footer */
.p2026-tutorial-hero .p2026-hero-footer {
    margin-top: 16px; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.2);
    font-size: .8rem; opacity: .75;
}
.p2026-tutorial-hero .p2026-hero-footer a { color: rgba(255,255,255,.85); }

/* Article tags */
.p2026-article-tags {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    margin: 2rem 0 1.5rem; padding-top: 1rem;
    border-top: 1px solid #eee;
}
.p2026-tags-label { font-size: .85rem; color: #666; font-weight: 600; }
.p2026-tag-link {
    display: inline-block; padding: 3px 10px;
    background: #f0f0f0; border-radius: 20px;
    font-size: .8rem; color: #444; text-decoration: none;
    transition: background .15s;
}
.p2026-tag-link:hover { background: var(--p26-red); color: #fff; }

/* Related posts */
.p2026-related { margin: 2rem 0; }
.p2026-related-title {
    font-size: 1.1rem; font-weight: 800;
    margin-bottom: 12px; color: #1d2327;
}
.p2026-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.p2026-related-card {
    display: flex; flex-direction: column; gap: 6px;
    padding: 14px; background: #fafafa;
    border: 1px solid #e0e0e0; border-radius: var(--p26-radius);
    text-decoration: none; color: #1d2327;
    transition: box-shadow .2s, transform .15s;
}
.p2026-related-card:hover { box-shadow: var(--p26-shadow); transform: translateY(-2px); }
.p2026-related-badge {
    display: inline-block; padding: 2px 8px; border-radius: 20px;
    font-size: .72rem; font-weight: 700; color: #fff; align-self: flex-start;
}
.p2026-related-tit { font-size: .88rem; font-weight: 600; line-height: 1.35; flex: 1; }
.p2026-related-arr { font-size: .8rem; color: var(--p26-red); font-weight: 800; align-self: flex-end; }

/* Related articles below single posts */
.p2026-below-entry {
    margin-top: 22px;
}

.p2026-cluster {

}

.p2026-cluster-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.p2026-cluster-title {
    margin: 0;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.2;
}

.p2026-cluster-grid {
    display: grid;
    gap: 0;
    border-top: 1px solid #eef2f6;
}

.p2026-cluster-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 9px 0;
    border-bottom: 1px solid #eef2f6;
    color: #111827;
    text-decoration: none;
    transition: color .15s ease, padding-left .15s ease, background .15s ease;
}

.p2026-cluster-link:hover,
.p2026-cluster-link:focus-visible {
    color: #b91c1c;
    padding-left: 6px;
    outline: none;
}

.p2026-cluster-link::before {
    content: '→';
    display: inline-grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 999px;
    background: #f8fafc;
    color: #b91c1c;
    font-size: .78rem;
    font-weight: 900;
    flex: 0 0 auto;
}

.p2026-cluster-meta {
    order: 3;
    margin-left: auto;
    color: #b91c1c;
    font-size: .68rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.p2026-cluster-name {
    order: 2;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: .93rem;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Comments wrapper */
.p2026-comments { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid #f0f0f0; }

/* ════════════════════════════════════════════════════════════════════════════
   TEMPLATE: tutorial-card
   ════════════════════════════════════════════════════════════════════════════ */
.p2026-card-header {
    display: flex; gap: 0;
    border-radius: var(--p26-radius); overflow: hidden;
    margin-bottom: 28px; box-shadow: var(--p26-shadow);
    border: 1px solid #e0e0e0;
}
.p2026-card-stripe {
    width: 8px; flex-shrink: 0;
    background: var(--card-color, var(--p26-red));
}
.p2026-card-header-body { padding: 24px 24px 20px; flex: 1; background: #fff; }

.p2026-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.p2026-card-badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: .75rem; font-weight: 700; color: #fff;
}
.p2026-card-badge--light {
    background: #f0f0f0 !important; color: #444 !important;
}
.p2026-card-date { font-size: .8rem; color: #888; }

.p2026-card-title {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 800; color: #1d2327;
    margin: 0 0 10px; line-height: 1.25;
}
.p2026-card-excerpt { color: #555; font-size: .95rem; margin: 0 0 10px; }
.p2026-card-source { font-size: .8rem; color: #888; }
.p2026-card-source a { color: var(--card-color, var(--p26-red)); }

/* ════════════════════════════════════════════════════════════════════════════
   TEMPLATE: tutorial-minimal
   ════════════════════════════════════════════════════════════════════════════ */
.p2026-minimal-wrap { max-width: 720px; }

.p2026-minimal-header { margin-bottom: 32px; }

.p2026-minimal-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-bottom: 14px;
}
.p2026-minimal-entity {
    font-size: .78rem; font-weight: 800; letter-spacing: .6px;
    padding: 2px 10px; border: 2px solid currentColor; border-radius: 20px;
    text-transform: uppercase;
}
.p2026-minimal-diff { font-size: .82rem; color: #666; }
.p2026-minimal-date { font-size: .82rem; color: #999; }

.p2026-minimal-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900; color: #1d2327; line-height: 1.2;
    margin: 0 0 14px;
}
.p2026-minimal-excerpt {
    font-size: 1.05rem; color: #555; line-height: 1.6;
    margin: 0 0 18px; max-width: 640px;
}
.p2026-minimal-divider {
    height: 4px; border-radius: 2px; width: 60px;
}

.p2026-minimal-toc { margin-bottom: 32px; }

.p2026-minimal-body h2 {
    font-size: 1.2rem; font-weight: 800; margin: 2.2rem 0 .8rem;
    color: #1d2327;
}
.p2026-minimal-body p { font-size: 1rem; line-height: 1.75; color: #333; }

.p2026-minimal-source {
    padding: 10px 14px; background: #f9f9f9;
    border-radius: 6px; font-size: .85rem; color: #666;
    margin: 1.5rem 0;
}
.p2026-minimal-source a { color: var(--p26-blue); font-weight: 600; }

/* ════════════════════════════════════════════════════════════════════════════
   TEMPLATE: tutorial-steps
   ════════════════════════════════════════════════════════════════════════════ */

/* Reading progress bar */
.p2026-progress-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 99999;
    height: 4px; background: rgba(0,0,0,.1);
}
.p2026-progress-fill {
    height: 100%; width: 0%;
    background: var(--progress-color, var(--p26-red));
    transition: width .1s linear;
}

/* Header */
.p2026-steps-header {
    background: #fff; border: 1px solid #e0e0e0;
    border-top: 5px solid var(--steps-color, var(--p26-red));
    border-radius: 0 0 var(--p26-radius) var(--p26-radius);
    padding: 24px 28px; margin-bottom: 24px;
    box-shadow: var(--p26-shadow);
}
.p2026-steps-top {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 8px; margin-bottom: 12px;
}
.p2026-steps-badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: .75rem; font-weight: 700; color: #fff;
}
.p2026-steps-badge--outline {
    background: transparent !important;
    border: 2px solid; font-weight: 700;
}
.p2026-steps-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 900; color: #1d2327; margin: 0 0 10px; line-height: 1.25;
}
.p2026-steps-excerpt { color: #555; font-size: .95rem; margin: 0 0 14px; }
.p2026-steps-info-row {
    display: flex; flex-wrap: wrap; gap: 12px;
    font-size: .82rem; color: #888;
}
.p2026-steps-info-row a { color: var(--steps-color, var(--p26-red)); }

/* Step navigator */
.p2026-step-nav {
    display: none; align-items: center; gap: 10px;
    padding: 10px 16px; background: #fafafa;
    border: 1px solid #e8e8e8; border-radius: 6px; margin-bottom: 20px;
}
.p2026-step-nav.visible { display: flex; }
.p2026-step-nav-label { font-size: .8rem; color: #888; font-weight: 600; }
.p2026-step-nav-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.p2026-step-dot {
    width: 28px; height: 28px; border-radius: 50%;
    background: #e0e0e0; color: #555;
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 700; cursor: pointer;
    transition: background .2s, color .2s; text-decoration: none;
    border: 2px solid transparent;
}
.p2026-step-dot:hover,
.p2026-step-dot.active {
    background: var(--steps-color, var(--p26-red)); color: #fff;
}

/* Completion banner */
.p2026-steps-done {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px 20px; border: 2px solid; border-radius: var(--p26-radius);
    background: #f9fef9; margin: 2rem 0;
}
.p2026-steps-done-icon { font-size: 1.8rem; flex-shrink: 0; }
.p2026-steps-done p { margin: 4px 0 0; color: #555; font-size: .9rem; }

/* ════════════════════════════════════════════════════════════════════════════
   CUSTOM PAGE TEMPLATES – shared interactive components
   ════════════════════════════════════════════════════════════════════════════ */

/* Custom header (used by _base.php p2026_render_hero) */
.p2026-custom-header {
    background: #fff; border: 1px solid #e0e0e0;
    border-radius: var(--p26-radius); padding: 24px 28px;
    margin-bottom: 28px; box-shadow: var(--p26-shadow);
}
.p2026-custom-meta {
    display: flex; flex-wrap: wrap; gap: 8px;
    align-items: center; margin-bottom: 10px;
}
.p2026-custom-badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: .75rem; font-weight: 700; color: #fff;
}
.p2026-custom-badge--light { background: #f0f0f0 !important; color: #555 !important; }
.p2026-custom-date  { font-size: .8rem; color: #999; }
.p2026-custom-title {
    font-size: clamp(1.3rem, 2.5vw, 1.85rem); font-weight: 900;
    color: #1d2327; margin: 0 0 10px; line-height: 1.25;
}
.p2026-custom-excerpt { color: #555; font-size: .97rem; margin: 0 0 10px; }
.p2026-custom-source  { font-size: .8rem; color: #888; }
.p2026-custom-source a { color: var(--p26-blue); }

/* ── Consulta box (form container) ────────────────────────────────────────── */
.p2026-consulta-box {
    background: #f9f9f9; border: 1px solid #e0e0e0;
    border-radius: var(--p26-radius); padding: 24px;
    margin-bottom: 24px; box-shadow: var(--p26-shadow);
}
.p2026-form-group { margin-bottom: 20px; }
.p2026-form-group:last-child { margin-bottom: 0; }
.p2026-form-label {
    display: block; font-weight: 700; margin-bottom: 8px;
    font-size: .95rem; color: #1d2327;
}
.p2026-form-row {
    display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap;
}
.p2026-form-row--sm { max-width: 400px; }
.p2026-form-hint { display: block; color: #999; font-size: .8rem; margin-top: 5px; }

/* Inputs */
.p2026-input {
    flex: 1; min-width: 180px; padding: 10px 14px;
    font-size: 1rem; border: 2px solid #ddd; border-radius: 6px;
    outline: none; transition: border-color .2s;
    background: #fff; color: #1d2327;
}
.p2026-input:focus { border-color: var(--p26-red); }
.p2026-input--sm   { max-width: 100px; text-align: center; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.p2026-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 10px 22px; border-radius: 6px;
    font-size: .95rem; font-weight: 700; cursor: pointer;
    border: 2px solid transparent; text-decoration: none;
    transition: filter .15s, transform .1s;
    white-space: nowrap; background: var(--p26-red); color: #fff;
}
.p2026-btn:hover   { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }
.p2026-btn:active  { transform: translateY(0); }

.p2026-btn--onpe   { background: #d63638; }
.p2026-btn--reniec { background: #2b7a78; }
.p2026-btn--jne    { background: #2d6a4f; }
.p2026-btn--large  { padding: 13px 28px; font-size: 1rem; }
.p2026-btn--outline {
    background: transparent !important;
    border: 2px solid var(--p26-blue); color: var(--p26-blue) !important;
}
.p2026-btn--outline:hover { background: var(--p26-blue) !important; color: #fff !important; }

/* ── Result boxes ──────────────────────────────────────────────────────────── */
.p2026-resultado {
    display: flex; flex-direction: column; gap: 12px;
    padding: 20px 24px; border-radius: var(--p26-radius);
    margin-bottom: 24px; border: 1px solid transparent;
}
.p2026-resultado--ok      { background: #edfaef; border-color: #a8dfb5; }
.p2026-resultado--error   { background: #fef0f0; border-color: #f5c0c0; flex-direction: row; align-items: center; }
.p2026-resultado--warning { background: #fffbe6; border-color: #f0d060; }

.p2026-resultado-header {
    display: flex; align-items: center; gap: 10px;
    font-size: 1rem;
}
.p2026-resultado-icon { font-size: 1.5rem; flex-shrink: 0; }
.p2026-resultado-actions {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px;
}
.p2026-resultado-note {
    background: rgba(0,0,0,.04); padding: 10px 14px;
    border-radius: 6px; font-size: .82rem; color: #555;
}
.p2026-monto-total { font-size: 1.3rem; color: #c0392b; }

/* ── Multa breakdown ───────────────────────────────────────────────────────── */
.p2026-multa-desglose {
    background: #fff; border: 1px solid #e0e0e0;
    border-radius: 6px; overflow: hidden; margin: 8px 0;
}
.p2026-multa-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 14px; border-bottom: 1px solid #f0f0f0;
    font-size: .9rem;
}
.p2026-multa-row:last-child { border-bottom: none; }
.p2026-multa-row--total {
    background: #f9f9f9; font-size: 1rem;
    border-top: 2px solid #e0e0e0 !important;
}
.p2026-descuentos { margin-top: 8px; }
.p2026-descuentos h4 { font-size: .9rem; margin: 0 0 6px; color: #555; }
.p2026-descuento-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.p2026-descuento-table tr { border-bottom: 1px solid #f0f0f0; }
.p2026-descuento-table td { padding: 6px 8px; }
.p2026-descuento-table td:last-child { text-align: right; }
.p2026-descuentos small { display: block; color: #999; font-size: .78rem; margin-top: 6px; }

/* ── Radio groups ──────────────────────────────────────────────────────────── */
.p2026-radio-group { display: flex; flex-direction: column; gap: 8px; }
.p2026-radio-label {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px; background: #fff;
    border: 2px solid #e0e0e0; border-radius: 6px;
    cursor: pointer; transition: border-color .15s;
    font-size: .93rem;
}
.p2026-radio-label:has(input:checked) { border-color: var(--p26-red); background: #fff5f5; }
.p2026-radio-label small { display: block; color: #888; font-size: .78rem; margin-top: 2px; }
.p2026-radio-label input[type="radio"] { margin-top: 3px; flex-shrink: 0; }

/* ── Tramite cards grid ────────────────────────────────────────────────────── */
.p2026-tramite-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.p2026-tramite-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; padding: 16px 12px; text-align: center;
    background: #fff; border: 2px solid #e0e0e0; border-radius: var(--p26-radius);
    cursor: pointer; transition: border-color .15s, background .15s;
}
.p2026-tramite-card:hover   { border-color: #2b7a78; }
.p2026-tramite-card.selected {
    border-color: #2b7a78; background: #edfaef;
}
.p2026-tramite-icon { font-size: 1.8rem; line-height: 1; }
.p2026-tramite-name { font-size: .82rem; font-weight: 700; color: #1d2327; line-height: 1.3; }

/* ── Info grid (cards row) ─────────────────────────────────────────────────── */
.p2026-info-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px; margin: 1.5rem 0;
}
.p2026-info-card {
    padding: 16px; background: #fafafa;
    border: 1px solid #e0e0e0; border-radius: var(--p26-radius);
    font-size: .88rem;
}
.p2026-info-card--danger { background: #fff5f5; border-color: #f5c0c0; }
.p2026-info-card-icon { font-size: 1.5rem; margin-bottom: 6px; }
.p2026-info-card strong { display: block; margin-bottom: 4px; color: #1d2327; }
.p2026-info-card p { margin: 0; color: #555; line-height: 1.4; }

/* ════════════════════════════════════════════════════════════════════════════
   TEMPLATE: electores – Countdown + Timeline
   ════════════════════════════════════════════════════════════════════════════ */

/* Countdown box */
.p2026-countdown-box {
    text-align: center; padding: 32px 24px;
    background: linear-gradient(135deg, #1d2327 60%, #d63638);
    border-radius: var(--p26-radius); color: #fff;
    margin-bottom: 28px; box-shadow: var(--p26-shadow);
}
.p2026-countdown-box--hoy { background: linear-gradient(135deg, #2d6a4f 60%, #2b7a78); }
.p2026-countdown-label { font-size: .9rem; opacity: .8; margin-bottom: 8px; }
.p2026-countdown-num   { font-size: clamp(3rem, 10vw, 5.5rem); font-weight: 900; line-height: 1; }
.p2026-countdown-sub   { font-size: 1rem; opacity: .7; margin-top: 4px; }
.p2026-countdown-live  {
    font-size: .85rem; opacity: .6; margin-top: 10px;
    font-variant-numeric: tabular-nums; letter-spacing: .5px;
}

/* Cronograma heading */
.p2026-cronograma { margin: 2rem 0; }
.p2026-cronograma-title {
    font-size: 1.15rem; font-weight: 800; margin-bottom: 20px;
    padding-bottom: 8px; border-bottom: 2px solid #f0f0f0;
}

/* Timeline */
.p2026-timeline { position: relative; padding-left: 28px; }
.p2026-timeline::before {
    content: ''; position: absolute; left: 9px; top: 0; bottom: 0;
    width: 2px; background: #e0e0e0; border-radius: 2px;
}

.p2026-timeline-item {
    position: relative; margin-bottom: 20px;
    opacity: 1; transition: opacity .2s;
}
.p2026-timeline-item--pasado { opacity: .55; }

.p2026-timeline-dot {
    position: absolute; left: -24px; top: 14px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--ent-color, #ccc);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--ent-color, #ccc);
}
.p2026-timeline-item--pasado .p2026-timeline-dot { background: #ccc; box-shadow: 0 0 0 2px #ccc; }
.p2026-timeline-item--hoy    .p2026-timeline-dot { animation: pulse 1.2s infinite; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--ent-color, #d63638); }
    50%       { box-shadow: 0 0 0 6px rgba(214, 54, 56, .25); }
}

.p2026-timeline-body {
    background: #fff; border: 1px solid #e8e8e8;
    border-left: 4px solid var(--ent-color, #ccc);
    border-radius: var(--p26-radius); padding: 14px 16px;
    box-shadow: var(--p26-shadow);
}
.p2026-timeline-body--destacado {
    border-left-width: 6px;
    background: linear-gradient(to right, rgba(214,54,56,.04), #fff 40%);
}

.p2026-timeline-head {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 8px; margin-bottom: 6px;
}
.p2026-timeline-badge {
    font-size: .72rem; font-weight: 700; color: #fff;
    padding: 2px 8px; border-radius: 20px;
}
.p2026-timeline-fecha { font-size: .82rem; color: #888; }
.p2026-timeline-tent  { font-size: .72rem; color: #b8860b; opacity: .8; cursor: help; }

.p2026-timeline-label {
    font-weight: 800; font-size: .97rem; color: #1d2327; margin-bottom: 3px;
}
.p2026-timeline-desc { font-size: .85rem; color: #555; line-height: 1.45; }

.p2026-timeline-dias {
    display: inline-block; margin-top: 8px;
    font-size: .78rem; font-weight: 700;
    padding: 2px 10px; border-radius: 20px;
}
.p2026-timeline-dias--pasado  { background: #f0f0f0; color: #888; }
.p2026-timeline-dias--proximo { background: #fffbe6; color: #7a5700; }
.p2026-timeline-dias--hoy     { background: #d63638; color: #fff; }
.p2026-timeline-dias--futuro  { background: #eef6fc; color: #1a4f72; }

/* ════════════════════════════════════════════════════════════════════════════
   COMMENTS – Sistema de comentarios con motivo
   ════════════════════════════════════════════════════════════════════════════ */

.p2026-comments-wrap { margin: 2.5rem 0; }

/* ── Título ── */
.p2026-comments-title {
    font-size: 1.1rem; font-weight: 800; color: #1d2327;
    margin-bottom: 1.25rem; padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

/* ── Lista de comentarios ── */
.p2026-comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.p2026-comment-list .p2026-comment-list { padding-left: 20px; }

.p2026-comment { margin-bottom: 14px; }
.p2026-comment-body {
    background: #fff; border: 1px solid #e8e8e8;
    border-radius: var(--p26-radius); padding: 14px 16px;
    box-shadow: var(--p26-shadow);
}

.p2026-comment-head {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 8px; margin-bottom: 8px;
}
.p2026-comment-author  { font-weight: 700; font-size: .9rem; color: #1d2327; }
.p2026-comment-date    { font-size: .78rem; color: #999; margin-left: auto; }

.p2026-comment-motivo-badge {
    font-size: .72rem; font-weight: 600;
    background: #f0f6fc; color: #2271b1;
    padding: 2px 9px; border-radius: 20px; border: 1px solid #c8dfef;
}

.p2026-comment-text { font-size: .9rem; color: #333; line-height: 1.55; }
.p2026-comment-text p { margin: 0 0 .5em; }
.p2026-comment-pending { display: block; font-size: .78rem; color: #b8860b; margin-top: 6px; }

.p2026-comment-actions { margin-top: 8px; }
.p2026-comment-actions a {
    font-size: .78rem; color: var(--p26-blue);
    text-decoration: none; font-weight: 600;
}

/* ── Navegación de páginas ── */
.p2026-comment-nav {
    display: flex; justify-content: space-between;
    font-size: .85rem; margin-bottom: 1.5rem;
}
.p2026-comment-nav a { color: var(--p26-blue); text-decoration: none; font-weight: 600; }

/* ── Título del formulario ── */
#p2026-commentform h3,
#p2026-commentform .comment-reply-title {
    font-size: 1.05rem; font-weight: 800; color: #1d2327;
    margin-bottom: 1rem; padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}
#p2026-commentform .comment-reply-title small { margin-left: 8px; }
#p2026-commentform .comment-reply-title small a {
    font-size: .8rem; font-weight: 400; color: var(--p26-blue);
}

/* ── Selector de motivo ── */
.p2026-cf-motivo  { margin-bottom: 18px; }
.p2026-motivo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px; margin-top: 8px;
}
.p2026-motivo-opt {
    display: flex; align-items: center; gap: 7px;
    padding: 8px 10px; border-radius: var(--p26-radius);
    border: 2px solid #e0e0e0; background: #fafafa;
    cursor: pointer; transition: border-color .15s, background .15s;
    font-size: .85rem; font-weight: 500;
}
.p2026-motivo-opt:has(input:checked) {
    border-color: var(--p26-blue); background: #eef6fc;
}
.p2026-motivo-opt input { display: none; }
.p2026-motivo-icon { font-size: 1.1rem; flex-shrink: 0; }
.p2026-motivo-txt  { line-height: 1.25; }

/* ── Campos del formulario ── */
.p2026-comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.p2026-cf-motivo,
.p2026-cf-field--full,
.p2026-cf-submit   { grid-column: 1 / -1; }

.p2026-cf-label {
    display: block; font-size: .82rem; font-weight: 700;
    color: #1d2327; margin-bottom: 5px;
}
.p2026-cf-req  { color: var(--p26-red); }
.p2026-cf-opt  { font-weight: 400; color: #999; }
.p2026-cf-hint { display: block; font-size: .75rem; color: #999; margin-top: 3px; }

.p2026-cf-input,
.p2026-cf-textarea {
    width: 100%; padding: 8px 12px;
    border: 1px solid #d0d0d0; border-radius: var(--p26-radius);
    font-size: .9rem; color: #1d2327; background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.p2026-cf-input:focus,
.p2026-cf-textarea:focus {
    outline: none; border-color: var(--p26-blue);
    box-shadow: 0 0 0 2px rgba(34,113,177,.15);
}
.p2026-cf-textarea { resize: vertical; min-height: 90px; }

.p2026-cf-submit { display: flex; align-items: center; gap: 12px; }

/* ── Badge "Reciente" (inyectado por JS) ── */
.p2026-comment-new-badge {
    font-size: .7rem; font-weight: 700; letter-spacing: .02em;
    background: linear-gradient(135deg, #f9a826, #f06830);
    color: #fff; padding: 2px 9px; border-radius: 20px;
    animation: p2026-pop .35s ease;
}
@keyframes p2026-pop {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* ── Avisos de estado del envío ── */
.p2026-comment-notice {
    padding: 10px 14px; border-radius: var(--p26-radius);
    font-size: .88rem; font-weight: 600; margin-bottom: 12px;
    animation: p2026-fadein .25s ease;
}
@keyframes p2026-fadein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.p2026-comment-notice--ok    { background: #edfaee; color: #2d6a2d; border: 1px solid #b2dfb3; }
.p2026-comment-notice--info  { background: #fffbe6; color: #7a5700; border: 1px solid #ffe082; }
.p2026-comment-notice--error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }

/* ── Responsive ── */
@media (max-width: 520px) {
    .p2026-comment-form       { grid-template-columns: 1fr; }
    .p2026-motivo-grid        { grid-template-columns: 1fr 1fr; }
    .p2026-comment-date       { margin-left: 0; }
}

/* ════════════════════════════════════════════════════════════════════════════
   Responsive
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .p2026-tutorial-hero { padding: 24px 18px; }
    .p2026-paso { flex-direction: column; gap: 8px; }
    .p2026-paso-num { width: 30px; height: 30px; font-size: .9rem; }
    .p2026-card-header { flex-direction: column; }
    .p2026-card-stripe { width: 100%; height: 6px; }
    .p2026-steps-header { padding: 18px 16px; }
    .p2026-minimal-wrap { max-width: 100%; }
    .p2026-custom-header { padding: 18px; }
    .p2026-consulta-box  { padding: 16px; }
    .p2026-tramite-grid  { grid-template-columns: repeat(2, 1fr); }
    .p2026-info-grid     { grid-template-columns: repeat(2, 1fr); }
    .p2026-resultado     { padding: 16px; }
    .p2026-resultado-actions { flex-direction: column; }
    .p2026-btn--large    { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════════════════════════════════════════
   Category Archive Template
   ════════════════════════════════════════════════════════════════════════════ */
.p2026-category-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
}

.p2026-category-header {
    
    margin-bottom: 24px;
   
}

.p2026-category-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.p2026-category-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.p2026-category-header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--tp-text);
}

.p2026-category-desc {
    width: 100%;
    margin: 8px 0 0;
    color: var(--tp-muted);
    font-size: 1rem;
}

/* Layout */
.p2026-category-body {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    position: relative;
}

/* Filter toggle (mobile) */
.p2026-filter-toggle {
    display: none;
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--tp-white);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    font-size: 1rem;
    color: var(--tp-text);
    cursor: pointer;
    text-align: left;
    align-items: center;
    gap: 10px;
}

.p2026-filter-toggle:hover {
    border-color: var(--tp-green);
}

.p2026-filter-icon {
    font-size: 1.2rem;
}

/* Sidebar */
.p2026-category-sidebar {
    width: 280px;
    flex-shrink: 0;
    top: 24px;
    align-self: flex-start;
}

.p2026-sidebar-inner {
    background: var(--tp-white);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 20px;
    box-shadow: var(--tp-shadow);
}

.p2026-sidebar-title {
    margin: 0 0 14px;
    font-size: 1.1rem;
    color: var(--tp-text);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tp-green);
}

.p2026-sidebar-parent {
    display: block;
    margin-bottom: 14px;
    color: var(--tp-green);
    font-weight: 600;
    text-decoration: none;
    font-size: .95rem;
}

.p2026-sidebar-parent:hover {
    color: var(--tp-green-d);
    text-decoration: underline;
}

.p2026-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.p2026-sidebar-list li {
    margin-bottom: 4px;
}

.p2026-sidebar-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--tp-text);
    text-decoration: none;
    font-size: .95rem;
    transition: background .15s;
}

.p2026-sidebar-list a:hover {
    background: var(--tp-green-l);
}

.p2026-sidebar-list li.is-active > a {
    background: var(--tp-green);
    color: var(--tp-white);
    font-weight: 600;
}

.p2026-sidebar-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.p2026-sidebar-name {
    flex: 1;
}

.p2026-count {
    background: var(--tp-bg);
    color: var(--tp-muted);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: .8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.p2026-sidebar-list li.is-active .p2026-count {
    background: rgba(255,255,255,.25);
    color: var(--tp-white);
}

.p2026-sidebar-current {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--tp-border);
    font-weight: 700;
    color: var(--tp-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Main */
.p2026-category-main {
    flex: 1;
    min-width: 0;
}

/* Sort bar */
.p2026-sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--tp-white);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    box-shadow: var(--tp-shadow);
    flex-wrap: wrap;
}

.p2026-result-count {
    color: var(--tp-muted);
    font-size: .95rem;
}

.p2026-sort-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.p2026-sort-form label {
    color: var(--tp-muted);
    font-size: .95rem;
}

.p2026-sort-form select {
    padding: 8px 12px;
    border: 1px solid var(--tp-border);
    border-radius: 6px;
    background: var(--tp-white);
    color: var(--tp-text);
    font-size: .95rem;
    cursor: pointer;
}

.p2026-sort-form select:focus {
    border-color: var(--tp-green);
    outline: none;
}

/* Post grid */
.p2026-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.p2026-post-card {
    background: var(--tp-white);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    overflow: hidden;
    box-shadow: var(--tp-shadow);
    transition: transform .15s, box-shadow .15s;
}

.p2026-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,.1);
}

.p2026-post-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--tp-text);
    height: 100%;
}

.p2026-post-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--tp-bg);
}

.p2026-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p2026-post-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.p2026-post-title {
    margin: 0 0 10px;
    font-size: 1.1rem;
    line-height: 1.35;
    color: var(--tp-text);
}

.p2026-post-excerpt {
    margin: 0 0 14px;
    color: var(--tp-muted);
    font-size: .95rem;
    line-height: 1.5;
    flex: 1;
}

.p2026-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .85rem;
    color: var(--tp-muted);
}

.p2026-post-entity {
    background: var(--tp-green-l);
    color: var(--tp-green-d);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Pagination */
.p2026-pagination {
    margin-top: 28px;
}

.p2026-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.p2026-pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid var(--tp-border);
    border-radius: 6px;
    background: var(--tp-white);
    color: var(--tp-text);
    text-decoration: none;
    font-size: .95rem;
}

.p2026-pagination .page-numbers.current,
.p2026-pagination .page-numbers:hover {
    background: var(--tp-green);
    color: var(--tp-white);
    border-color: var(--tp-green);
}

.p2026-no-results {
    background: var(--tp-white);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 32px;
    text-align: center;
    color: var(--tp-muted);
}

/* Mobile */
@media (max-width: 900px) {
    .p2026-category-body {
        flex-direction: column;
    }

    .p2026-filter-toggle {
        display: flex;
    }

    .p2026-category-sidebar {
        display: none;
        width: 100%;
        position: static;
        margin-bottom: 16px;
    }

    .p2026-category-sidebar.is-open {
        display: block;
    }

    .p2026-post-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

/* Breadcrumbs */
.p2026-breadcrumbs { 
  
    margin-bottom: 15px;
}

.p2026-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .9rem;
    color: var(--tp-muted);
}

.p2026-breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin-left: 6px;
    color: var(--tp-muted);
}

.p2026-breadcrumbs a {
    color: var(--tp-green);
    text-decoration: none;
}

.p2026-breadcrumbs a:hover {
    text-decoration: underline;
}

.p2026-breadcrumbs li[aria-current="page"] {
    color: var(--tp-text);
    font-weight: 600;
}

/* Category list with dropdowns */


.p2026-cat-list,
.p2026-cat-list-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.p2026-cat-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.p2026-cat-list-link,
.p2026-cat-list-child-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    color: var(--tp-text);
    text-decoration: none;
    font-size: .95rem;
    line-height: 1.4;
}

.p2026-cat-list-link {
    padding: 6px 0;
    font-weight: 500;
}

.p2026-cat-list-child-link {
    padding: 4px 0 4px 24px;
    font-size: .9rem;
}

.p2026-cat-list-link:hover,
.p2026-cat-list-child-link:hover {
    color: var(--tp-green);
}

.p2026-cat-list-link.is-active,
.p2026-cat-list-child-link.is-active {
    color: var(--tp-green);
    font-weight: 600;
}

.p2026-cat-list-icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.p2026-cat-list-name {
    flex: 1;
}

.p2026-cat-list-count {
    color: var(--tp-muted);
    font-size: .75rem;
    font-weight: 500;
}

.p2026-cat-list-link.is-active .p2026-cat-list-count,
.p2026-cat-list-child-link.is-active .p2026-cat-list-count {
    color: var(--tp-green);
}

.p2026-cat-list-toggle {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--tp-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .8rem;
    transition: color .15s;
}

.p2026-cat-list-toggle:hover {
    color: var(--tp-green);
}

.p2026-cat-list-toggle::before {
    content: '+';
}

.p2026-cat-list-item.is-open > .p2026-cat-list-row .p2026-cat-list-toggle::before {
    content: '−';
}

.p2026-cat-list-children {
    display: none;
}

.p2026-cat-list-item.is-open > .p2026-cat-list-children {
    display: block;
}

@media (max-width: 520px) {
    .p2026-category-wrap {
        padding: 16px;
    }


    .p2026-category-header h1 {
        font-size: 1.5rem;
    }

    .p2026-sort-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .p2026-sort-form {
        justify-content: space-between;
    }

    .p2026-post-grid {
        grid-template-columns: 1fr;
    }

    .p2026-breadcrumbs {
        
        font-size: .85rem;
    }

 
}

/* TrendPeru compact home */
.tp-home {
    --tp-ink: #182230;
    --tp-muted: #667085;
    --tp-line: #e6eaf0;
    --tp-soft: #f7f9fc;
    --tp-brand: #13795b;
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 16px 38px;
    color: var(--tp-ink);
}

.tp-home a {
    color: inherit;
    text-decoration: none;
}

.tp-home-hero {
    padding: 12px;
    margin: 10px 0 12px;
    border: 1px solid var(--tp-line);
    background: #fff;
    border-radius: 8px;
}

.tp-home-search {
    display: flex;
    gap: 8px;
    min-width: 0;
    max-width: 760px;
    margin: 0 auto;
}

.tp-home-search input {
    min-width: 0;
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #cfd6df;
    border-radius: 6px;
    font-size: 14px;
}

.tp-home-search button {
    height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    background: var(--tp-brand);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.tp-news-showcase {
    margin: 0 0 18px;
    padding: 12px;
    border: 1px solid var(--tp-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.tp-news-showcase-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.tp-news-showcase-head h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.tp-news-showcase-head a {
    color: var(--tp-brand);
    font-size: 13px;
    font-weight: 800;
}

.tp-news-preview-stack {
    position: relative;
    min-height: 238px;
}

.tp-news-preview {
    display: none;
}

.tp-news-preview.is-active {
    display: block;
}

.tp-news-preview a {
    display: grid;
    grid-template-columns: minmax(260px, 44%) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    min-height: 238px;
    border: 1px solid var(--tp-line);
    border-radius: 8px;
    background: var(--tp-soft);
    overflow: hidden;
}

.tp-news-preview-img {
    display: block;
    min-height: 238px;
    background: #e8edf3;
}

.tp-news-preview-img img {
    width: 100%;
    height: 100%;
    min-height: 238px;
    object-fit: cover;
}

.tp-news-preview-img--empty {
    display: grid;
    place-items: center;
    color: var(--tp-brand);
    font-size: 18px;
    font-weight: 900;
}

.tp-news-preview-body {
    display: grid;
    align-content: center;
    gap: 9px;
    padding: 18px 18px 18px 0;
}

.tp-news-preview-body time {
    color: var(--tp-brand);
    font-size: 12px;
    font-weight: 800;
}

.tp-news-preview-body strong {
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.08;
}

.tp-news-preview-body span {
    color: var(--tp-muted);
    font-size: 14px;
    line-height: 1.45;
}

.tp-news-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 190px);
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 12px 2px 2px;
}

.tp-news-carousel-card {
    position: relative;
    display: grid;
    gap: 7px;
    scroll-snap-align: center;
    padding: 7px;
    border: 1px solid var(--tp-line);
    border-radius: 8px;
    background: #fff;
    color: var(--tp-ink);
    text-align: left;
    cursor: pointer;
    opacity: .55;
    transform: scale(.94);
    transition: opacity .2s ease, transform .2s ease, border-color .2s ease, background .2s ease;
}

.tp-news-carousel-card::after {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 6px;
    background: rgba(24, 34, 48, .22);
    pointer-events: none;
}

.tp-news-carousel-card.is-active {
    border-color: #92cbb7;
    background: #f5fbf8;
    opacity: 1;
    transform: scale(1);
}

.tp-news-carousel-card.is-active::after,
.tp-news-carousel-card:hover::after,
.tp-news-carousel-card:focus-visible::after {
    opacity: 0;
}

.tp-news-carousel-card:hover,
.tp-news-carousel-card:focus-visible {
    opacity: .9;
    outline: none;
}

.tp-news-carousel-img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: var(--tp-soft);
}

.tp-news-carousel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tp-news-carousel-img--empty {
    display: grid;
    place-items: center;
    color: var(--tp-brand);
    font-size: 13px;
    font-weight: 900;
}

.tp-news-carousel-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 34px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.28;
}

.tp-home-strip,
.tp-side-box,
.tp-home-tools {
    border: 1px solid var(--tp-line);
    border-radius: 8px;
    background: #fff;
}

.tp-home-strip,
.tp-home-tools {
    padding: 14px;
    margin-bottom: 18px;
}

.tp-home-tools {
    margin-top: 18px;
}

.tp-home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tp-home-section-head h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.tp-home-section-head a {
    color: var(--tp-brand);
    font-size: 13px;
    font-weight: 800;
}

.tp-home-section-head--tight {
    margin-bottom: 8px;
}

.tp-topic-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.tp-topic {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid var(--tp-line);
    border-radius: 7px;
    background: var(--tp-soft);
    min-width: 0;
}

.tp-topic:hover {
    border-color: #b7d8cc;
    background: #eef8f4;
}

.tp-topic-icon {
    font-size: 18px;
}

.tp-topic-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 750;
}

.tp-topic-count {
    color: var(--tp-muted);
    font-size: 12px;
}

.tp-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.tp-latest-list,
.tp-featured-list,
.tp-news-mini {
    display: grid;
    gap: 8px;
}

.tp-latest-item,
.tp-featured-item,
.tp-news-mini a {
    border: 1px solid var(--tp-line);
    border-radius: 8px;
    background: #fff;
}

.tp-latest-link {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    min-height: 96px;
    padding: 10px;
}

.tp-latest-thumb {
    display: block;
    width: 92px;
    height: 76px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--tp-soft);
}

.tp-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tp-latest-thumb--empty {
    display: grid;
    place-items: center;
    color: var(--tp-brand);
    font-size: 13px;
    font-weight: 900;
}

.tp-latest-body {
    display: grid;
    align-content: center;
    gap: 5px;
    min-width: 0;
}

.tp-meta-line {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--tp-muted);
    font-size: 12px;
    line-height: 1.2;
}

.tp-latest-body strong {
    display: block;
    font-size: 16px;
    line-height: 1.25;
}

.tp-latest-excerpt {
    color: var(--tp-muted);
    font-size: 13px;
    line-height: 1.35;
}

.tp-side-box {
    padding: 13px;
}

.tp-side-box.widget {
    margin: 0;
}

.tp-side-box .widgettitle,
.tp-side-box .wp-block-heading {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.2;
}

.tp-side-box ul {
    margin: 0;
    padding-left: 18px;
}

.tp-side-box li + li {
    margin-top: 7px;
}

.tp-home-sidecol {
    display: grid;
    gap: 14px;
}

.tp-featured-item a,
.tp-news-mini a {
    display: grid;
    gap: 4px;
    padding: 10px 11px;
}

.tp-featured-item span,
.tp-news-mini span {
    font-size: 14px;
    line-height: 1.25;
    font-weight: 750;
}

.tp-featured-item time,
.tp-news-mini time {
    color: var(--tp-muted);
    font-size: 12px;
}

.tp-tools-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 230px);
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
}

.tp-tool-slide {
    scroll-snap-align: start;
}

.tp-tool-slide a {
    display: grid;
    gap: 8px;
    padding: 9px;
    border: 1px solid var(--tp-line);
    border-radius: 8px;
    background: #fff;
}

.tp-tool-slide a:hover {
    border-color: #b7d8cc;
    background: #eef8f4;
}

.tp-tool-slide-img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: var(--tp-soft);
}

.tp-tool-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tp-tool-slide-img--empty {
    display: grid;
    place-items: center;
    color: var(--tp-brand);
    font-size: 14px;
    font-weight: 900;
}

.tp-tool-slide strong {
    display: -webkit-box;
    overflow: hidden;
    min-height: 38px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
    line-height: 1.35;
}

.tp-latest-item:hover,
.tp-featured-item:hover,
.tp-news-mini a:hover {
    border-color: #b7d8cc;
    background: #fbfefd;
}

.tp-empty {
    margin: 0;
    padding: 14px;
    color: var(--tp-muted);
    border: 1px dashed var(--tp-line);
    border-radius: 8px;
    background: var(--tp-soft);
}

@media (max-width: 900px) {
    .tp-home-hero,
    .tp-home-layout {
        grid-template-columns: 1fr;
    }

    .tp-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tp-home {
        padding-inline: 12px;
    }

    .tp-home-hero {
        padding: 15px;
    }

    .tp-home-search {
        flex-direction: column;
    }

    .tp-home-search button {
        width: 100%;
    }

    .tp-news-showcase {
        padding: 10px;
    }

    .tp-news-preview-stack {
        min-height: auto;
    }

    .tp-news-preview a {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: 0;
    }

    .tp-news-preview-img,
    .tp-news-preview-img img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .tp-news-preview-body {
        padding: 13px;
    }

    .tp-news-preview-body span {
        display: none;
    }

    .tp-news-carousel {
        grid-auto-columns: minmax(138px, 44vw);
    }

    .tp-news-carousel-title {
        min-height: 32px;
        font-size: 12px;
    }

    .tp-topic-grid {
        grid-template-columns: 1fr;
    }

    .tp-latest-link {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 10px;
    }

    .tp-latest-thumb {
        width: 76px;
        height: 68px;
    }

    .tp-latest-excerpt {
        display: none;
    }

    .tp-tools-slider {
        grid-auto-columns: minmax(210px, 84vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-news-carousel-card {
        transition: none;
    }
}

/* Noticias archive */
.tp-news-archive {
    width: min(1120px, calc(100% - 32px));
    margin: 18px auto 48px;
    color: #111827;
}

.tp-news-archive__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #111827;
    margin-bottom: 14px;
}

.tp-news-archive__eyebrow {
    display: block;
    color: #b91c1c;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.tp-news-archive__head h1 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.05;
}

.tp-news-archive__count {
    color: #64748b;
    font-size: .88rem;
    white-space: nowrap;
}

.tp-news-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #d9dee7;
}

.tp-news-lead__link {
    display: block;
    height: 100%;
    min-height: 0;
    color: inherit;
    text-decoration: none;
}

.tp-news-lead__link,
.tp-news-briefs,
.tp-news-card__link {
    background: #fff;
}

.tp-news-lead__link {
    display: grid;
    grid-template-columns: minmax(280px, .95fr) minmax(0, 1fr);
    gap: 16px;
    color: inherit;
    text-decoration: none;
    align-items: center;
}

.tp-news-lead--no-image .tp-news-lead__link {
    display: block;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.tp-news-lead__media,
.tp-news-card__media {
    margin: 0;
    overflow: hidden;
    background: #f1f5f9;
}

.tp-news-lead__media {
    aspect-ratio: 16 / 10;
    border-radius: 6px;
}

.tp-news-lead__media img,
.tp-news-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.tp-news-lead__body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.tp-news-lead__body h2,
.tp-news-card__body h2 {
    color: #111827;
    margin: 8px 0;
    line-height: 1.15;
    letter-spacing: 0;
}

.tp-news-lead__body h2 {
    font-size: clamp(1.45rem, 2.5vw, 2.05rem);
}

.tp-news-lead__body p,
.tp-news-card__body p {
    color: #475569;
    margin: 0;
    line-height: 1.55;
}

.tp-news-lead__body time,
.tp-news-card__meta time {
    color: #64748b;
    font-size: .85rem;
}

.tp-news-briefs {
    border-left: 1px solid #e5e7eb;
    padding-left: 18px;
}

.tp-news-briefs h2,
.tp-news-grid__title {
    margin: 0 0 10px;
    color: #111827;
    font-size: .92rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tp-news-brief {
    border-bottom: 1px solid #e5e7eb;
}

.tp-news-brief:last-child {
    border-bottom: 0;
}

.tp-news-brief a {
    display: grid;
    gap: 5px;
    padding: 11px 0;
    color: inherit;
    text-decoration: none;
}

.tp-news-brief strong {
    color: #111827;
    font-size: .98rem;
    line-height: 1.3;
}

.tp-news-brief time {
    color: #64748b;
    font-size: .8rem;
}

.tp-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
}

.tp-news-grid__title {
    grid-column: 1 / -1;
}

.tp-news-card {
    min-width: 0;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0;
}

.tp-news-card__link {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    color: inherit;
    text-decoration: none;
}

.tp-news-card--no-image .tp-news-card__link {
    display: block;
}

.tp-news-card__media {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
}

.tp-news-card__link:hover img,
.tp-news-lead__link:hover img {
    transform: scale(1.035);
}

.tp-news-card__body {
    min-width: 0;
}

.tp-news-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 3px;
}

.tp-news-card__cat {
    color: #b91c1c;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tp-news-card__body h2 {
    font-size: 1rem;
}

.tp-news-card__body p {
    font-size: .9rem;
}

.tp-news-pagination {
    margin-top: 28px;
}

.tp-news-pagination ul {
    display: flex;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.tp-news-pagination a,
.tp-news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    color: #334155;
    text-decoration: none;
    font-weight: 700;
    font-size: .88rem;
}

.tp-news-pagination .current,
.tp-news-pagination a:hover {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.tp-news-empty {
    padding: 44px 18px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.tp-news-empty h2 {
    margin: 0 0 8px;
}

.tp-news-empty p {
    margin: 0;
    color: #64748b;
}

/* Noticias single */
.tp-news-single {
    max-width: 760px;
    margin: 0 auto 42px;
    color: #111827;
}

.tp-news-single__head {
    padding: 4px 0 16px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.tp-news-single__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: #64748b;
    font-size: .84rem;
    margin-bottom: 9px;
}

.tp-news-single__meta a {
    text-decoration: none;
}

.tp-news-single__head h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.75rem, 4vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.tp-news-single__lead {
    margin: 10px 0 0;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.55;
}

.tp-news-single__source {
    margin: 8px 0 0;
    color: #64748b;
    font-size: .86rem;
    line-height: 1.45;
}

.tp-news-single__content {
    color: #1f2937;
    font-size: 1.02rem;
    line-height: 1.72;
}

.tp-news-single__content > *:first-child {
    margin-top: 0;
}

.tp-news-single__content h2,
.tp-news-single__content h3 {
    color: #111827;
    line-height: 1.2;
    letter-spacing: 0;
    margin-top: 1.45em;
}

.tp-news-single__content h2 {
    font-size: 1.35rem;
}

.tp-news-single__content h3 {
    font-size: 1.12rem;
}

.tp-news-single__content p,
.tp-news-single__content ul,
.tp-news-single__content ol {
    margin-bottom: 1.05em;
}

.tp-news-single__content a {
    color: #b91c1c;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.tp-news-single__content blockquote {
    margin: 22px 0;
    padding: 14px 18px;
    border-left: 4px solid #b91c1c;
    background: #f8fafc;
    color: #334155;
}

.tp-news-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    margin-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.tp-news-single__related {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.tp-news-single__related h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.tp-news-single__related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tp-news-single__related-grid a {
    display: block;
    padding: 12px;
    border: 1px solid #e5e7eb;
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.35;
}

.tp-news-single__related-grid a:hover {
    border-color: #b91c1c;
    color: #b91c1c;
}

@media (max-width: 860px) {
    .tp-news-feature {
        grid-template-columns: 1fr;
    }

    .tp-news-briefs {
        border-left: 0;
        border-top: 1px solid #e5e7eb;
        padding-left: 0;
        padding-top: 14px;
    }

    .tp-news-lead__link {
        grid-template-columns: 1fr;
    }

    .tp-news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .tp-news-archive {
        width: min(100% - 24px, 1180px);
        margin-top: 16px;
    }

    .tp-news-archive__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .tp-news-feature {
        margin-bottom: 16px;
        padding-bottom: 14px;
    }

    .tp-news-lead__body h2 {
        font-size: 1.32rem;
    }

    .tp-news-card__link {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 11px;
    }

    .tp-news-single {
        max-width: 100%;
    }

    .tp-news-single__related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .p2026-cluster {
        padding-top: 16px;
    }

    .p2026-cluster-link {
        align-items: flex-start;
        padding: 10px 0;
    }

    .p2026-cluster-name {
        white-space: normal;
    }

    .p2026-cluster-meta {
        display: none;
    }
}
