/* Estilos específicos de Resultados Electorales. */

.resultados-page{
        --res-pink:#c45c91;
        --res-purple:#532680;
        --res-purple-soft:#644086;
        --res-dark:#3c2458;
        --res-text:#26212b;
        --res-muted:#766f7f;
        --res-gray:#52525a;
        --res-gray-soft:#95909b;
        --res-border:rgba(83,38,128,.14);
        --res-bg:#faf8fc;
    }

    .resultados-page{
        color:var(--res-text);
        padding:26px 0 54px;
        overflow-x:hidden;
    }

    .resultados-page,
    .resultados-page *{
        box-sizing:border-box;
    }

    .resultados-hero{
        position:relative;
        overflow:hidden;
        padding:42px;
        border-radius:30px;
        color:#fff;
        background:linear-gradient(135deg,var(--res-dark),var(--res-purple) 52%,var(--res-pink));
        box-shadow:0 22px 48px rgba(60,36,88,.22);
    }

    .resultados-hero:before{
        content:"";
        position:absolute;
        right:-75px;
        bottom:-125px;
        width:330px;
        height:330px;
        border-radius:50%;
        background:rgba(255,255,255,.13);
    }

    .resultados-hero:after{
        content:"";
        position:absolute;
        top:28px;
        right:34px;
        width:110px;
        height:110px;
        border:1px solid rgba(255,255,255,.24);
        border-radius:30px;
        transform:rotate(12deg);
    }

    .resultados-hero__content{
        position:relative;
        z-index:1;
        max-width:860px;
    }

    .resultados-eyebrow{
        display:inline-flex;
        align-items:center;
        gap:8px;
        margin-bottom:16px;
        padding:8px 14px;
        border:1px solid rgba(255,255,255,.22);
        border-radius:999px;
        background:rgba(255,255,255,.16);
        font-size:13px;
        font-weight:800;
        letter-spacing:.04em;
        text-transform:uppercase;
    }

    .resultados-hero h1{
        margin:0 0 16px;
        font-size:clamp(32px,5vw,56px);
        line-height:1;
        font-weight:900;
        letter-spacing:-.04em;
    }

    .resultados-hero p{
        max-width:790px;
        margin:0;
        color:rgba(255,255,255,.92);
        font-size:18px;
        line-height:1.65;
        text-align:justify;
    }

    .resultados-facts{
        position:relative;
        z-index:2;
        display:grid;
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:16px;
        margin:-18px 24px 34px;
    }

    .resultados-fact{
        display:flex;
        align-items:center;
        gap:14px;
        min-width:0;
        padding:18px 20px;
        border:1px solid var(--res-border);
        border-radius:22px;
        background:rgba(255,255,255,.96);
        box-shadow:0 16px 36px rgba(60,36,88,.10);
    }

    .resultados-icon{
        flex:0 0 50px;
        width:50px;
        height:50px;
        display:grid;
        place-items:center;
        border-radius:16px;
        color:#fff;
        font-size:24px;
        background:linear-gradient(135deg,var(--res-pink),var(--res-purple));
        box-shadow:0 12px 26px rgba(196,92,145,.20);
    }

    .resultados-fact span{
        display:block;
        color:var(--res-muted);
        font-size:12px;
        font-weight:800;
        text-transform:uppercase;
        letter-spacing:.03em;
    }

    .resultados-fact strong{
        display:block;
        margin-top:4px;
        color:var(--res-dark);
        font-size:16px;
        line-height:1.3;
        font-weight:900;
    }

    .resultados-intro{
        display:grid;
        grid-template-columns:minmax(0,1.15fr) minmax(250px,.85fr);
        gap:20px;
        margin-bottom:28px;
        padding:26px;
        border:1px solid var(--res-border);
        border-radius:28px;
        background:rgba(255,255,255,.97);
        box-shadow:0 16px 38px rgba(60,36,88,.10);
    }

    .resultados-intro h2{
        margin:0;
        color:var(--res-dark);
        font-size:clamp(25px,3vw,34px);
        line-height:1.1;
        font-weight:900;
        letter-spacing:-.03em;
    }

    .resultados-intro p{
        margin:14px 0 0;
        color:var(--res-muted);
        font-size:16px;
        line-height:1.75;
        text-align:justify;
    }

    .resultados-formatos{
        display:grid;
        grid-template-columns:1fr;
        gap:12px;
        align-content:start;
    }

    .formato-card{
        display:flex;
        align-items:center;
        gap:12px;
        padding:16px;
        border:1px solid rgba(83,38,128,.12);
        border-radius:20px;
        background:linear-gradient(135deg,rgba(196,92,145,.08),rgba(83,38,128,.05));
    }

    .formato-card__icon{
        flex:0 0 42px;
        width:42px;
        height:42px;
        display:grid;
        place-items:center;
        border-radius:14px;
        color:#fff;
        background:var(--res-pink);
    }

    .formato-card__icon--excel{
        background:var(--res-gray);
    }

    .formato-card strong{
        display:block;
        color:var(--res-dark);
        font-size:15px;
        font-weight:900;
    }

    .formato-card span{
        display:block;
        color:var(--res-muted);
        font-size:13px;
        font-weight:700;
        line-height:1.35;
    }

    .resultados-section-title{
        display:flex;
        align-items:center;
        gap:14px;
        margin:34px 0 18px;
    }

    .resultados-section-title h2{
        margin:0;
        color:var(--res-dark);
        font-size:clamp(25px,3vw,34px);
        line-height:1.1;
        font-weight:900;
        letter-spacing:-.03em;
    }

    .resultados-section-title p{
        margin:5px 0 0;
        color:var(--res-muted);
        font-size:14px;
        line-height:1.5;
    }

    .paneles-resultados{
        margin-top:0;
    }

    .panel-ejercicio{
        overflow:hidden;
        margin-bottom:18px;
        border:1px solid var(--res-border);
        border-radius:26px !important;
        background:#fff !important;
        box-shadow:0 14px 34px rgba(60,36,88,.09);
    }

    .panel-ejercicio:before{
        box-shadow:none !important;
    }

    .panel-header-resultados{
        min-height:82px !important;
        padding:20px 24px !important;
        background:
            radial-gradient(circle at top right, rgba(196,92,145,.11), transparent 34%),
            linear-gradient(135deg,#fff,#fbf8fc);
    }

    .panel-header-inner{
        width:100%;
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:16px;
    }

    .panel-year-wrap{
        min-width:0;
        display:flex;
        align-items:center;
        gap:14px;
    }

    .year-badge{
        flex:0 0 48px;
        width:48px;
        height:48px;
        display:grid;
        place-items:center;
        border-radius:16px;
        color:#fff;
        background:linear-gradient(135deg,var(--res-pink),var(--res-purple));
        box-shadow:0 12px 24px rgba(83,38,128,.18);
    }

    .panel-year{
        margin:0;
        color:var(--res-dark);
        font-size:24px;
        font-weight:900;
        line-height:1.1;
        letter-spacing:-.02em;
    }

    .panel-subtitle{
        margin-top:3px;
        color:var(--res-muted);
        font-size:13px;
        font-weight:700;
    }

    .panel-count{
        color:var(--res-gray);
        background:#f1edf4;
        border-radius:999px;
        padding:8px 14px;
        font-size:13px;
        font-weight:900;
        white-space:nowrap;
    }

    .panel-ejercicio .v-expansion-panel-content__wrap{
        padding:0 !important;
    }

    .resultados-grid{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:20px;
        padding:26px 24px 28px;
        background:linear-gradient(180deg,#fbf9fc 0%,#fff 100%);
    }

    .resultado-card{
        position:relative;
        overflow:hidden;
        padding:20px;
        border:1px solid rgba(83,38,128,.14);
        border-radius:28px;
        background:#fff;
        box-shadow:0 14px 34px rgba(60,36,88,.08);
        transition:transform .2s ease, box-shadow .2s ease;
    }

    .resultado-card:before{
        content:"";
        position:absolute;
        inset:0 auto 0 0;
        width:6px;
        background:linear-gradient(180deg,var(--res-pink),var(--res-purple));
    }

    .resultado-card:hover{
        transform:translateY(-3px);
        box-shadow:0 20px 42px rgba(60,36,88,.13);
    }

    .resultado-card__top{
        display:flex;
        align-items:flex-start;
        gap:14px;
        margin-bottom:16px;
    }

    .resultado-logo-wrap{
        flex:0 0 70px;
        width:70px;
        height:70px;
        display:grid;
        place-items:center;
        border-radius:18px;
        background:#f7f2f8;
        border:1px solid rgba(83,38,128,.09);
    }

    .icono-resultado{
        width:56px;
        height:56px;
        display:block;
        object-fit:contain;
        border-radius:14px;
        background:#fff;
        padding:7px;
    }

    .resultado-card__head{
        min-width:0;
    }

    .nombre-resultado{
        margin:0;
        color:var(--res-dark);
        font-size:18px;
        font-weight:900;
        line-height:1.25;
        letter-spacing:-.01em;
    }

    .detalle-resultado{
        margin-top:6px;
        color:var(--res-muted);
        font-size:13px;
        font-weight:800;
    }

    .resultado-meta-grid{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
        margin-top:8px;
    }

    .resultado-meta-box,
    .resultado-meta-link{
        min-height:86px;
        padding:14px 16px;
        border:1px solid rgba(83,38,128,.12);
        border-radius:18px;
        background:#faf8fc;
    }

    .resultado-meta-link{
        display:flex;
        align-items:center;
        gap:12px;
        text-decoration:none;
        transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .resultado-meta-link:hover{
        transform:translateY(-2px);
        box-shadow:0 12px 24px rgba(60,36,88,.10);
        border-color:rgba(83,38,128,.22);
    }

    .resultado-meta-link--pdf{
        background:linear-gradient(135deg,rgba(196,92,145,.14),rgba(196,92,145,.05));
    }

    .resultado-meta-link--excel{
        background:linear-gradient(135deg,rgba(82,82,90,.12),rgba(82,82,90,.04));
    }

    .resultado-meta-link.is-disabled{
        opacity:.7;
        cursor:default;
        pointer-events:none;
        background:#f4f1f6;
    }

    .resultado-meta-icon{
        flex:0 0 42px;
        width:42px;
        height:42px;
        display:grid;
        place-items:center;
        border-radius:14px;
        color:#fff;
        font-size:20px;
        box-shadow:0 10px 18px rgba(60,36,88,.12);
    }

    .resultado-meta-icon--pdf{
        background:var(--res-pink);
    }

    .resultado-meta-icon--excel{
        background:var(--res-gray);
    }

    .resultado-meta-content{
        min-width:0;
    }

    .resultado-meta-content strong{
        display:block;
        color:var(--res-dark);
        font-size:18px;
        font-weight:900;
        line-height:1.15;
        letter-spacing:-.01em;
    }

    .resultado-meta-content span{
        display:block;
        margin-top:4px;
        color:var(--res-muted);
        font-size:12px;
        font-weight:800;
        line-height:1.35;
    }

    @media (max-width:960px){
        .resultados-hero{
            padding:34px 28px;
            border-radius:26px;
        }

        .resultados-facts{
            grid-template-columns:1fr;
            margin:-18px 14px 30px;
        }

        .resultados-intro{
            grid-template-columns:1fr;
        }

        .resultados-grid{
            grid-template-columns:1fr;
        }
    }

    @media (max-width:620px){
        .resultados-page{
            padding:14px 0 30px;
        }

        .resultados-page > .container{
            width:100%;
            max-width:100%;
            padding-left:12px;
            padding-right:12px;
        }

        .resultados-hero{
            padding:26px 20px;
            border-radius:24px;
        }

        .resultados-hero:after{
            width:82px;
            height:82px;
            right:18px;
        }

        .resultados-eyebrow{
            padding:7px 11px;
            font-size:11px;
        }

        .resultados-hero h1{
            font-size:28px;
            line-height:1.08;
            letter-spacing:-.03em;
        }

        .resultados-hero p{
            font-size:15px;
            line-height:1.55;
            text-align:justify;
        }

        .resultados-facts{
            margin:-12px 14px 26px;
            gap:12px;
        }

        .resultados-fact{
            padding:15px 16px;
            border-radius:19px;
        }

        .resultados-icon{
            flex-basis:44px;
            width:44px;
            height:44px;
            border-radius:14px;
        }

        .resultados-intro{
            padding:20px;
            border-radius:22px;
            margin-bottom:24px;
        }

        .resultados-intro h2,
        .resultados-section-title h2{
            font-size:23px;
        }

        .resultados-intro p{
            font-size:15px;
            line-height:1.65;
        }

        .resultados-section-title{
            align-items:flex-start;
            margin:30px 0 16px;
        }

        .resultados-section-title p{
            font-size:13px;
        }

        .panel-ejercicio{
            border-radius:24px !important;
            margin-bottom:16px;
        }

        .panel-header-resultados{
            min-height:82px !important;
            padding:18px 16px !important;
        }

        .panel-header-inner{
            align-items:flex-start;
            flex-direction:column;
            gap:10px;
        }

        .panel-year-wrap{
            align-items:flex-start;
        }

        .year-badge{
            flex-basis:44px;
            width:44px;
            height:44px;
            border-radius:14px;
        }

        .panel-year{
            font-size:22px;
        }

        .panel-count{
            margin-left:58px;
            font-size:12px;
            padding:7px 12px;
        }

        .resultados-grid{
            padding:24px 14px 18px;
            gap:16px;
        }

        .resultado-card{
            padding:18px 16px;
            border-radius:24px;
        }

        .resultado-card__top{
            gap:12px;
        }

        .resultado-logo-wrap{
            flex-basis:58px;
            width:58px;
            height:58px;
            border-radius:16px;
        }

        .icono-resultado{
            width:46px;
            height:46px;
            border-radius:14px;
            padding:6px;
        }

        .nombre-resultado{
            font-size:16px;
            line-height:1.28;
        }

        .resultado-meta-grid{
            gap:8px;
        }

        .resultado-meta-box,
        .resultado-meta-link{
            min-height:80px;
            padding:12px 13px;
        }

        .resultado-meta-content strong{
            font-size:15px;
        }
    }

    @media (max-width:430px){
        .resultado-meta-grid{
            grid-template-columns:1fr;
        }
    }

.resultados-page[v-cloak]{display:none;}
.resultado-meta-link:focus-visible{outline:3px solid rgba(83,38,128,.28);outline-offset:3px;}
.resultados-empty-state{margin:0 0 24px;padding:28px 22px;border:1px dashed var(--res-border);border-radius:22px;color:var(--res-muted);background:var(--res-bg);font-weight:700;text-align:center;}
.panel-ejercicio .resultados-empty-state{margin:24px;}
@media (prefers-reduced-motion:reduce){.resultado-card,.resultado-meta-link{transition:none;}.resultado-card:hover,.resultado-meta-link:hover{transform:none;}}
