/* ==========================================================
   CHANCE HOY — SORTEO PREMIUM
   CSS TOTALMENTE AISLADO
   ========================================================== */
.full-content.sorteo-premium{
    --c-primary:#175cff;
    --c-primary-dark:#0c3ea8;
    --c-navy:#09152d;
    --c-text:#152033;
    --c-muted:#697586;
    --c-light:#f5f7fb;
    --c-border:#e6eaf0;
    --c-card:#ffffff;
    --c-green:#13a463;
    --c-green-bg:#eaf9f1;
    --c-blue-bg:#edf3ff;
    --c-orange:#f59e0b;
    --c-shadow:0 14px 45px rgba(16,24,40,.075);
    width:100%;
    max-width:1200px;
    margin:0 auto;
    padding:30px 20px 75px;
    color:var(--c-text);
}
.full-content.sorteo-premium *,
.full-content.sorteo-premium *::before,
.full-content.sorteo-premium *::after{
    box-sizing:border-box;
}

/* ==========================================================
   HERO
   ========================================================== */
.sh-hero{
    position:relative;
    overflow:hidden;
    border-radius:30px;
    min-height:350px;
    padding:38px;
    background:
        radial-gradient(circle at 80% 0%,rgba(80,143,255,.38),transparent 28%),
        radial-gradient(circle at 0% 100%,rgba(30,89,255,.28),transparent 32%),
        linear-gradient(135deg,#071329 0%,#0e2858 58%,#155fff 100%);
    box-shadow:0 25px 65px rgba(9,35,83,.22);
    color:#fff;
}
.sh-hero::before{
    content:"";
    position:absolute;
    width:420px;
    height:420px;
    right:-220px;
    top:-250px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:50%;
}
.sh-hero::after{
    content:"";
    position:absolute;
    width:260px;
    height:260px;
    right:-70px;
    bottom:-185px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:50%;
}
.sh-hero-grid{
    position:relative;
    z-index:2;
    min-height:274px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 250px;
    align-items:center;
    gap:45px;
}
.sh-hero-content{
    min-width:0;
}
.sh-live{
    display:inline-flex;
    align-items:center;
    gap:9px;
    padding:7px 12px;
    margin-bottom:18px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:999px;
    background:rgba(255,255,255,.08);
    color:#dcffe9;
    font-size:13px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
    backdrop-filter:blur(10px);
}
.sh-live-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#36e781;
    box-shadow:0 0 0 5px rgba(54,231,129,.12);
    animation:shPulse 1.8s infinite;
}
@keyframes shPulse{
    0%,100%{transform:scale(1);}
    50%{transform:scale(1.25);}
}
.sh-title{
    margin:0 !important;
    color:#fff !important;
    font-size:clamp(36px,5vw,54px) !important;
    line-height:.98 !important;
    letter-spacing:-.055em !important;
    font-weight:950 !important;
}
.sh-subtitle{
    max-width:760px;
    margin:17px 0 22px;
    color:rgba(255,255,255,.78);
    font-size:16px;
    line-height:1.65;
}
.sh-actions{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
}
.sh-schedule{
    display:inline-flex;
    align-items:center;
    gap:9px;
    min-height:44px;
    padding:10px 14px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:13px;
    background:rgba(255,255,255,.08);
    font-size:15px;
    color:#fff;
}
.sh-schedule strong{
    font-weight:900;
}
.sh-search{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:10px 17px;
    border-radius:13px;
    background:#fff;
    color:#0c3ea8 !important;
    text-decoration:none !important;
    font-size:15px;
    font-weight:900;
    box-shadow:0 10px 25px rgba(0,0,0,.16);
    transition:all .2s ease;
}
.sh-search:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 30px rgba(0,0,0,.22);
}
.sh-logo{
    width:215px;
    height:215px;
    padding:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:auto;
    background:#fff;
    border-radius:31px;
    box-shadow:0 25px 55px rgba(0,0,0,.22);
    transform:rotate(1deg);
}
.sh-logo img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

/* ==========================================================
   RESULTADO DESTACADO
   ========================================================== */
.sh-feature{
    position:relative;
    margin-top:-38px;
    margin-left:35px;
    margin-right:35px;
    z-index:5;
    padding:23px;
    border:1px solid rgba(220,227,238,.95);
    border-radius:22px;
    background:rgba(255,255,255,.97);
    box-shadow:0 20px 45px rgba(16,24,40,.12);
    backdrop-filter:blur(12px);
}
.sh-feature-grid{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:25px;
}
.sh-feature-label{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:6px;
    color:var(--c-primary);
    font-size:12px;
    font-weight:950;
    letter-spacing:.1em;
    text-transform:uppercase;
}
.sh-feature-label i{
    width:25px;
    height:25px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:var(--c-blue-bg);
    font-style:normal;
}
.sh-feature-title{
    margin:0;
    color:var(--c-text);
    font-size:27px;
    font-weight:950;
    letter-spacing:-.025em;
}
.sh-feature-date{
    margin:5px 0 0;
    color:var(--c-muted);
    font-size:14px;
    font-weight:700;
}
.sh-feature-number{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:12px 15px;
    border-radius:17px;
    background:linear-gradient(145deg,#f3f7ff,#eaf0fb);
    border:1px solid #e0e7f2;
}
.sh-feature-number .score{
    width:48px !important;
    height:57px !important;
    display:flex !important;
    align-items:center;
    justify-content:center;
    border-radius:12px !important;
    background:#fff !important;
    border:1px solid #dce4ef !important;
    color:#0c1730 !important;
    font-size:31px !important;
    font-weight:950 !important;
    line-height:1 !important;
    box-shadow:0 7px 17px rgba(16,24,40,.09) !important;
}
.sh-feature-extra{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:6px;
    margin-top:8px;
}
.sh-feature-extra span{
    padding:5px 8px;
    border-radius:999px;
    background:#e8eef8;
    color:#56647a;
    font-size:11px;
    font-weight:850;
}

/* ==========================================================
   ENCABEZADOS
   ========================================================== */
.sh-section{
    margin-top:43px;
}
.sh-section-header{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:17px;
}
.sh-kicker{
    margin-bottom:5px;
    color:var(--c-primary);
    font-size:10px;
    font-weight:950;
    letter-spacing:.11em;
    text-transform:uppercase;
}
.sh-section-title{
    margin:0 !important;
    color:var(--c-text) !important;
    font-size:29px !important;
    line-height:1.1 !important;
    letter-spacing:-.035em !important;
    font-weight:950 !important;
}
.sh-section-description{
    margin:5px 0 0;
    color:var(--c-muted);
    font-size:14px;
}

/* ==========================================================
   HISTORIAL
   ========================================================== */
.sh-history{
    overflow:hidden;
    border:1px solid var(--c-border);
    border-radius:21px;
    background:#fff;
    box-shadow:var(--c-shadow);
}
.sh-history table{
    width:100%;
    border-collapse:collapse;
}
.sh-history th{
    padding:14px 18px;
    background:#f8f9fc;
    border-bottom:1px solid var(--c-border);
    color:#7b8494;
    font-size:12px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.08em;
    text-align:left;
}
.sh-history td{
    padding:12px 18px;
    border-bottom:1px solid #edf0f4;
    color:#394457;
    font-size:15px;
    font-weight:650;
    vertical-align:middle;
}
.sh-history tr:last-child td{
    border-bottom:0;
}
.sh-history tbody tr{
    transition:background .16s ease;
}
.sh-history tbody tr:hover{
    background:#f8faff;
}
.sh-history tbody tr:first-child{
    background:linear-gradient(90deg,#edf4ff,#fff);
}
.sh-history tbody tr:first-child td{
    padding-top:17px;
    padding-bottom:17px;
}
.sh-number{
    display:flex;
    align-items:center;
    gap:4px;
}
.sh-number .score{
    width:27px !important;
    height:32px !important;
    display:flex !important;
    align-items:center;
    justify-content:center;
    border-radius:8px !important;
    background:#f0f4f9 !important;
    color:#152033 !important;
    border:1px solid #dfe5ee !important;
    font-size:15px !important;
    font-weight:950 !important;
    box-shadow:none !important;
}
.sh-history tbody tr:first-child .score{
    background:var(--c-primary) !important;
    color:#fff !important;
    border-color:var(--c-primary) !important;
    box-shadow:0 5px 12px rgba(23,92,255,.18) !important;
}
.sh-extra{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:25px;
    height:25px;
    margin-left:6px;
    padding:0 7px;
    border-radius:8px;
    background:#edf3ff;
    color:var(--c-primary);
    font-size:11px;
    font-weight:950;
}
.sh-sorteo-no{
    color:#697586;
    font-size:13px;
    font-weight:800;
}
.sh-no-results{
    padding:40px;
    text-align:center;
    color:#697586;
}

/* ==========================================================
   RESUMEN DE MÉTRICAS
   ========================================================== */
.sh-metrics{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin-top:20px;
}
.sh-metric{
    position:relative;
    overflow:hidden;
    padding:18px;
    border:1px solid var(--c-border);
    border-radius:17px;
    background:#fff;
    box-shadow:0 8px 27px rgba(16,24,40,.055);
}
.sh-metric::after{
    content:"";
    position:absolute;
    width:70px;
    height:70px;
    right:-25px;
    bottom:-35px;
    border-radius:50%;
    background:#f1f5ff;
}
.sh-metric-label{
    display:block;
    color:#8a94a5;
    font-size:9px;
    font-weight:900;
    letter-spacing:.07em;
    text-transform:uppercase;
}
.sh-metric-value{
    display:block;
    margin-top:5px;
    color:var(--c-text);
    font-size:27px;
    font-weight:950;
    letter-spacing:-.035em;
}
.sh-metric-note{
    display:block;
    margin-top:2px;
    color:#98a2b3;
    font-size:11px;
}

/* ==========================================================
   DASHBOARD ESTADÍSTICO
   ========================================================== */
.sh-dashboard{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}
.sh-panel{
    min-width:0;
    padding:21px;
    border:1px solid var(--c-border);
    border-radius:20px;
    background:#fff;
    box-shadow:var(--c-shadow);
}
.sh-panel-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:15px;
    margin-bottom:18px;
    min-width:0;
}
.sh-panel-head > div:first-child{
    min-width:0;
    flex:1 1 auto;
}
.sh-panel-title{
    margin:0;
    color:var(--c-text);
    font-size:18px;
    font-weight:950;
    overflow-wrap:anywhere;
}
.sh-panel-desc{
    margin:4px 0 0;
    color:#98a2b3;
    font-size:12px;
    line-height:1.5;
    overflow-wrap:anywhere;
}
.sh-panel-icon{
    width:35px;
    height:35px;
    flex:0 0 35px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:var(--c-blue-bg);
    color:var(--c-primary);
    font-size:18px;
    font-weight:950;
}

/* ==========================================================
   RANKINGS
   ========================================================== */
.sh-ranking{
    display:flex;
    flex-direction:column;
    gap:6px;
}
.sh-rank{
    display:grid;
    grid-template-columns:27px 55px minmax(0,1fr) auto;
    align-items:center;
    gap:9px;
    min-height:43px;
    padding:5px 6px;
    border-radius:11px;
    transition:background .15s ease;
}
.sh-rank:hover{
    background:#f7f9fc;
}
.sh-rank-position{
    width:25px;
    height:25px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:7px;
    background:#f1f4f8;
    color:#737e90;
    font-size:11px;
    font-weight:950;
}
.sh-rank:first-child .sh-rank-position{
    background:#e8f0ff;
    color:var(--c-primary);
}
.sh-rank-value{
    display:flex;
    align-items:center;
    gap:3px;
}
.sh-rank-value .score{
    width:24px !important;
    height:28px !important;
    display:flex !important;
    align-items:center;
    justify-content:center;
    border-radius:6px !important;
    background:#f1f4f8 !important;
    color:#152033 !important;
    border:1px solid #e1e6ed !important;
    font-size:15px !important;
    font-weight:950 !important;
}
.sh-simple-number{
    min-width:47px;
    height:31px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:#f1f4f8;
    color:#152033;
    font-size:18px;
    font-weight:950;
}
.sh-bar{
    height:6px;
    overflow:hidden;
    border-radius:999px;
    background:#edf0f4;
}
.sh-bar span{
    display:block;
    width:var(--w,50%);
    min-width:7px;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#175cff,#7ba4ff);
}
.sh-rank-total{
    min-width:48px;
    color:#5f6b7c;
    font-size:12px;
    font-weight:900;
    text-align:right;
}

/* ==========================================================
   TENDENCIAS
   ========================================================== */
.sh-trends{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}
.sh-trend{
    padding:21px;
    border:1px solid var(--c-border);
    border-radius:20px;
    background:#fff;
    box-shadow:var(--c-shadow);
}
.sh-trend-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:16px;
}
.sh-trend-title{
    margin:0;
    color:var(--c-text);
    font-size:18px;
    font-weight:950;
}
.sh-trend-badge{
    padding:5px 8px;
    border-radius:999px;
    background:#edf3ff;
    color:var(--c-primary);
    font-size:8px;
    font-weight:950;
    letter-spacing:.06em;
    text-transform:uppercase;
}
.sh-trend-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:7px;
}
.sh-trend-item{
    padding:11px 4px;
    border:1px solid #edf0f4;
    border-radius:10px;
    background:#fafbfc;
    text-align:center;
}
.sh-trend-number{
    display:block;
    color:var(--c-text);
    font-size:19px;
    font-weight:950;
}
.sh-trend-count{
    display:block;
    margin-top:2px;
    color:#98a2b3;
    font-size:10px;
    font-weight:750;
}

/* ==========================================================
   FRÍAS
   ========================================================== */
.sh-cold-list{
    display:flex;
    flex-direction:column;
    gap:4px;
}
.sh-cold{
    display:grid;
    grid-template-columns:48px minmax(0,1fr) auto;
    align-items:center;
    gap:10px;
    padding:7px 0;
}
.sh-cold-number{
    width:48px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:9px;
    background:#f3f5f8;
    color:#172033;
    font-size:18px;
    font-weight:950;
}
.sh-cold-label{
    display:block;
    color:#596579;
    font-size:12px;
    font-weight:800;
}
.sh-cold-date{
    display:block;
    margin-top:2px;
    color:#98a2b3;
    font-size:10px;
}
.sh-cold-total{
    color:#667085;
    font-size:12px;
    font-weight:900;
}

/* ==========================================================
   PARES / IMPARES
   ========================================================== */
.sh-paridad{
    margin-top:18px;
    padding:22px;
    border:1px solid var(--c-border);
    border-radius:20px;
    background:#fff;
    box-shadow:var(--c-shadow);
}
.sh-paridad-title{
    margin:0 0 18px;
    color:var(--c-text);
    font-size:18px;
    font-weight:950;
}
.sh-paridad-grid{
    display:grid;
    grid-template-columns:1fr 55px 1fr;
    align-items:center;
    gap:15px;
}
.sh-pi{
    padding:17px;
    border:1px solid #e9edf2;
    border-radius:15px;
    background:#fafbfc;
}
.sh-pi-label{
    display:block;
    color:#7b8494;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.06em;
}
.sh-pi-value{
    display:block;
    margin-top:3px;
    color:var(--c-text);
    font-size:31px;
    font-weight:950;
    letter-spacing:-.04em;
}
.sh-pi-percent{
    display:block;
    margin-top:2px;
    color:#98a2b3;
    font-size:11px;
}
.sh-vs{
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:auto;
    border-radius:50%;
    background:#edf3ff;
    color:var(--c-primary);
    font-size:11px;
    font-weight:950;
}

/* ==========================================================
   OCULTAR ELEMENTOS ANTIGUOS SOLO DENTRO DE ESTA PÁGINA
   ========================================================== */
.sorteo-premium .sorteo-description,
.sorteo-premium .sorteo-horario,
.sorteo-premium .ultimos-resultados-title,
.sorteo-premium .estadisticas-section > h2,
.sorteo-premium .estadisticas-section > h3,
.sorteo-premium .stats-two-cols > div > h3,
.sorteo-premium .badge,
.sorteo-premium > hr{
    display:none;
}
.sorteo-premium .stats-grid{
    display:none;
}

/* ==========================================================
   TABLET
   ========================================================== */
@media(max-width:950px){
    .sh-hero-grid{
        grid-template-columns:minmax(0,1fr) 190px;
        gap:25px;
    }
    .sh-logo{
        width:170px;
        height:170px;
    }
    .sh-feature{
        margin-left:20px;
        margin-right:20px;
    }
    .sh-metrics{
        grid-template-columns:repeat(2,1fr);
    }
}

/* ==========================================================
   MÓVIL
   ========================================================== */
@media(max-width:700px){
    .full-content.sorteo-premium{
        padding:14px 5px 50px;
    }
    .sh-hero{
        padding:23px 17px;
    }
    .sh-hero-grid{
        grid-template-columns:1fr;
        gap:21px;
        text-align:center;
    }
    .sh-hero-content{
        display:flex;
        flex-direction:column;
        align-items:center;
    }
    .sh-title{
        font-size:32px !important;
    }
    .sh-subtitle{
        margin:13px 0 17px;
        font-size:15px;
        line-height:1.6;
    }
    .sh-actions{
        width:100%;
        flex-direction:column;
    }
    .sh-schedule,
    .sh-search{
        width:100%;
    }
    .sh-logo{
        width:125px;
        height:125px;
        padding:12px;
        border-radius:19px;
    }
    .sh-feature{
        margin-left:4px;
        margin-right:4px;
    }
    .sh-feature-grid{
        grid-template-columns:1fr;
        gap:14px;
        text-align:center;
    }
    .sh-feature-label{
        justify-content:center;
    }
    .sh-feature-number{
        padding:10px 8px;
    }
    .sh-feature-number .score{
        width:43px !important;
        height:52px !important;
        font-size:28px !important;
        border-radius:10px !important;
    }
    .sh-section{
        margin-top:31px;
    }
    .sh-section-title{
        font-size:22px !important;
    }
    .sh-section-description{
        font-size:12px;
    }
    .sh-history{
        border-radius:16px;
        width:100%;
        max-width:100%;
    }
    .sh-history table{
        width:100%;
        max-width:100%;
    }
    .sh-history th{
        padding:11px 9px;
        font-size:12px;
    }
    .sh-history td{
        padding:10px 8px;
        font-size:12px;
    }
    .sh-history td:first-child{
        width:40%;
    }
    .sh-number{
        gap:2px;
    }
    .sh-number .score{
        width:22px !important;
        height:27px !important;
        font-size:15px !important;
        border-radius:6px !important;
    }
    .sh-extra{
        min-width:21px;
        height:21px;
        margin-left:3px;
        padding:0 4px;
        font-size:12px;
    }
    .sh-metrics{
        grid-template-columns:1fr 1fr;
        gap:8px;
    }
    .sh-metric{
        padding:13px;
        border-radius:14px;
    }
    .sh-metric-value{
        font-size:23px;
    }
    .sh-metric-note{
        font-size:12px;
    }
    .sh-dashboard,
    .sh-trends{
        grid-template-columns:1fr;
        min-width:0;
        width:100%;
    }
    .sh-panel,
    .sh-trend,
    .sh-paridad{
        width:100%;
        max-width:100%;
        min-width:0;
        padding:15px 12px;
        border-radius:16px;
    }
    /* CORRECCIÓN DEL ICONO QUE EMPUJABA EL PANEL */
    .sh-panel-head{
        gap:10px;
        min-width:0;
        width:100%;
    }
    .sh-panel-head > div:first-child{
        min-width:0;
        max-width:100%;
        flex:1 1 auto;
        overflow:hidden;
    }
    .sh-panel-title,
    .sh-panel-desc{
        min-width:0;
        max-width:100%;
        overflow-wrap:anywhere;
        word-break:break-word;
    }
    .sh-panel-icon{
        width:32px;
        height:32px;
        min-width:32px;
        max-width:32px;
        flex:0 0 32px;
        font-size:14px;
    }
    .sh-rank{
        grid-template-columns:24px 48px minmax(0,1fr) auto;
        gap:6px;
        min-width:0;
    }
    .sh-bar{
        display:none;
    }
    .sh-rank-total{
        min-width:40px;
        font-size:12px;
    }
    .sh-rank-value .score{
        width:21px !important;
        height:25px !important;
        font-size:13px !important;
    }
    .sh-simple-number{
        min-width:43px;
        height:29px;
        font-size:15px;
    }
    .sh-trend-grid{
        gap:5px;
    }
    .sh-trend-item{
        padding:9px 2px;
        border-radius:8px;
    }
    .sh-trend-number{
        font-size:15px;
    }
    .sh-trend-count{
        font-size:9px;
    }
    .sh-paridad-grid{
        grid-template-columns:1fr 43px 1fr;
        gap:7px;
        min-width:0;
    }
    .sh-pi{
        min-width:0;
        padding:13px 9px;
    }
    .sh-pi-value{
        font-size:23px;
    }
    .sh-vs{
        width:40px;
        height:40px;
    }
}

/* ==========================================================
   MÓVIL PEQUEÑO
   ========================================================== */
@media(max-width:400px){
    .sh-title{
        font-size:30px !important;
    }
    .sh-feature{
        padding:0px;
    }
    .sh-feature-number .score{
        width:39px !important;
        height:48px !important;
        font-size:27px !important;
    }
    .sh-history th{
        font-size:9px;
    }
    .sh-history td{
        padding-left:6px;
        padding-right:6px;
    }
    .sh-number .score{
        width:20px !important;
        height:25px !important;
        font-size:13px !important;
    }
    .sh-extra{
        display:none;
    }
}