/* Informe territorial final de campaña — diseño poster */

.itc-board {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
}

.itc-hero {
    background: linear-gradient(180deg, #0b1f4d 0%, #1e3a8a 100%);
    color: #fff;
    padding: 1.25rem 1.5rem 1.35rem;
}

.itc-hero-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: start;
}

.itc-hero-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.itc-hero-center {
    text-align: center;
}

.itc-hero-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.88;
}

.itc-hero h1 {
    margin: 0.4rem 0 0;
    font-size: clamp(1.15rem, 3.2vw, 1.85rem);
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.15;
}

.itc-highlight {
    color: #fde047;
}

.itc-hero-sub {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    opacity: 0.9;
    line-height: 1.4;
}

.itc-hero-sub-strong {
    font-weight: 700;
    margin-top: 0.15rem;
}

.itc-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: #fff;
    border-bottom: 3px solid #e2e8f0;
}

.itc-kpi {
    padding: 1rem 0.85rem 1.1rem;
    text-align: center;
    border-right: 1px solid #e2e8f0;
}

.itc-kpi:last-child {
    border-right: none;
}

.itc-kpi-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.itc-kpi-num {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.1;
}

.itc-kpi-label {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.itc-kpi-desc {
    margin: 0.45rem 0 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #64748b;
    max-width: 16rem;
    margin-left: auto;
    margin-right: auto;
}

.itc-kpi-blue .itc-kpi-num { color: #1d4ed8; }
.itc-kpi-green .itc-kpi-num { color: #15803d; }
.itc-kpi-purple .itc-kpi-num { color: #7c3aed; }

.itc-kpis-primary {
    grid-template-columns: repeat(2, 1fr);
}

.itc-kpis-secondary {
    border-bottom: 3px solid #e2e8f0;
}

.itc-kpi-num-sub {
    font-size: 0.55em;
    font-weight: 800;
    color: #64748b;
}

.itc-kpi-teal .itc-kpi-num { color: #0d9488; }
.itc-kpi-orange .itc-kpi-num { color: #ea580c; }
.itc-kpi-slate .itc-kpi-num { color: #475569; font-size: clamp(1.1rem, 2.5vw, 1.65rem); }

.itc-cap-num-sub {
    font-size: 0.55em;
    font-weight: 800;
    color: #64748b;
}

.itc-section {
    background: #fff;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
}

.itc-section-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(90deg, #1e40af 0%, #2563eb 100%);
    color: #fff;
}

.itc-section-head h2 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.itc-section-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.itc-cap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-bottom: 1px solid #e2e8f0;
}

.itc-cap-card {
    padding: 1rem 0.75rem;
    text-align: center;
    border-right: 1px solid #e2e8f0;
}

.itc-cap-card:last-child {
    border-right: none;
}

.itc-cap-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.15rem;
}

.itc-cap-blue { background: #dbeafe; }
.itc-cap-green { background: #dcfce7; }
.itc-cap-orange { background: #ffedd5; }
.itc-cap-purple { background: #ede9fe; }

.itc-cap-num {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 900;
    color: #0f172a;
}

.itc-cap-title {
    margin: 0.35rem 0 0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.25;
    color: #334155;
}

.itc-cap-desc,
.itc-cap-list {
    margin: 0.35rem 0 0;
    font-size: 0.68rem;
    line-height: 1.35;
    color: #64748b;
}

.itc-cap-list {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}

.itc-cap-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    font-size: 0.82rem;
    color: #334155;
}

.itc-cap-footer strong {
    font-size: 1.25rem;
    color: #15803d;
}

.itc-prov-table-wrap {
    padding: 0.75rem 1rem 1rem;
}

.itc-prov-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.itc-prov-table th,
.itc-prov-table td {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.itc-prov-table thead th {
    background: #f1f5f9;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.itc-prov-table tbody th {
    font-weight: 700;
    color: #0f172a;
}

.itc-prov-bar-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.itc-prov-bar {
    flex: 1;
    height: 0.55rem;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    min-width: 80px;
}

.itc-prov-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.itc-prov-bar-cell strong {
    min-width: 3.5rem;
    text-align: right;
    font-size: 0.78rem;
}

.itc-prov-table tfoot th,
.itc-prov-table tfoot td {
    background: #f1f5f9;
    font-weight: 800;
    border-top: 2px solid #cbd5e1;
}

.itc-prov-total td strong {
    color: #1d4ed8;
}

.itc-elec-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    padding: 1rem;
    align-items: stretch;
}

.itc-elec-top-dos {
    grid-template-columns: 1fr 1fr;
}

.itc-elec-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.itc-elec-badge {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
}

.itc-elec-badge-ok {
    background: #dcfce7;
    color: #15803d;
    border: 2px solid #86efac;
}

.itc-elec-badge-trophy {
    background: #fef3c7;
    font-size: 1.25rem;
}

.itc-elec-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
}

.itc-elec-votos {
    margin: 0.35rem 0 0;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    font-weight: 900;
    line-height: 1.15;
}

.itc-elec-votos-green {
    color: #15803d;
}

.itc-elec-votos small {
    font-size: 0.85em;
    font-weight: 800;
}

.itc-elec-note {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

.itc-elec-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-width: 140px;
}

.itc-elec-vs-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #1e40af;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.35);
}

.itc-elec-cepeda {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    text-align: center;
    min-width: 130px;
}

.itc-elec-cepeda-pct {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 900;
    color: #dc2626;
}

.itc-elec-cepeda-votos {
    margin: 0.1rem 0 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #991b1b;
}

.itc-elec-cepeda-name {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #7f1d1d;
}

.itc-elec-ventaja-num {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: #334155;
}

.itc-elec-ventaja-num strong {
    font-size: 1.75rem;
    color: #eab308;
}

.itc-elec-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 0 1rem 1rem;
    align-items: center;
}

.itc-elec-dominio-title {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #1e40af;
}

.itc-elec-dominio ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #334155;
}

.itc-elec-people {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.15rem;
    max-width: 220px;
}

.itc-person {
    font-size: 0.95rem;
    color: #16a34a;
    text-align: center;
    line-height: 1;
}

.itc-section-ruta {
    background: #f8fafc;
}

.itc-ruta-intro {
    margin: 0;
    padding: 0.85rem 1rem 0;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.45;
}

.itc-ruta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
}

.itc-ruta-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
}

.itc-ruta-card h3 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1e40af;
}

.itc-ruta-desc {
    margin: 0.4rem 0 0.75rem;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}

.itc-bisagra-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.itc-bisagra-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.35rem;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    color: #334155;
}

.itc-bisagra-icon {
    font-size: 1.25rem;
}

.itc-ruta-foot {
    margin: 0;
    padding-top: 0.65rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.72rem;
    color: #475569;
    line-height: 1.4;
}

.itc-regio-visual {
    margin: 0.5rem 0 0.75rem;
    padding: 1rem 0.5rem;
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
    border-radius: 8px;
    border: 1px dashed #86efac;
}

.itc-regio-track {
    position: relative;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
}

.itc-regio-track::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 50%;
    height: 3px;
    background: repeating-linear-gradient(90deg, #16a34a 0, #16a34a 8px, transparent 8px, transparent 16px);
    transform: translateY(-50%);
}

.itc-regio-pin {
    position: relative;
    z-index: 1;
    width: 0.65rem;
    height: 0.65rem;
    background: #dc2626;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.itc-regio-train {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.itc-foot {
    background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    padding: 0.85rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.itc-foot-main {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.itc-foot-source {
    margin: 0;
    font-size: 0.68rem;
    opacity: 0.85;
}

@media (max-width: 900px) {
    .itc-kpis,
    .itc-cap-grid,
    .itc-elec-top,
    .itc-ruta-grid {
        grid-template-columns: 1fr;
    }

    .itc-kpi,
    .itc-cap-card {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .itc-hero-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .itc-hero-icon {
        margin: 0 auto;
    }

    .itc-elec-bottom {
        grid-template-columns: 1fr;
    }

    .itc-bisagra-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media print {
    .itc-board {
        box-shadow: none;
        border: none;
    }
}
