/* 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; }

/* 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; }
}
