
.dec-loterias-wrap {
    max-width: 980px;
    margin: 0 auto;
    font-family: inherit;
}
.dec-loterias-header {
    background: #061A3A;
    color: #fff;
    padding: 18px 22px 16px;
    border-radius: 14px 14px 0 0;
    border-top: 4px solid #FFC107;
}
.dec-loterias-header h1 {
    color: #fff;
    margin: 0 0 7px;
    font-size: clamp(27px, 3.4vw, 38px);
    line-height: 1.05;
    font-weight: 800;
}
.dec-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 9px;
    color: #dbe6fb;
    font-size: 14px;
    line-height: 1.35;
}
.dec-date, .dec-updated {
    margin: 0;
    color: #dbe6fb;
}
.dec-meta-dot {
    color: #FFC107;
    font-weight: 900;
}
.dec-loterias-table-wrap {
    overflow-x: auto;
    border: 1px solid #e4e8ef;
    border-top: 0;
}
.dec-loterias-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.dec-loterias-table th {
    background: #0A4DFF;
    color: #fff;
    text-align: left;
    padding: 14px;
}
.dec-loterias-table td {
    padding: 14px;
    border-bottom: 1px solid #edf0f4;
    vertical-align: middle;
}
.dec-loterias-table td small {
    display: block;
    margin-top: 3px;
    color: #6d7785;
}
.dec-result {
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: .04em;
    white-space: nowrap;
}
.dec-status {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}
.dec-status-confirmed { background:#e8f7ed; color:#176b35; }
.dec-status-pending { background:#fff6d8; color:#7b5a00; }
.dec-status-unverified { background:#e8eefc; color:#294d92; }
.dec-loterias-note {
    padding: 18px 22px;
    background: #f6f8fb;
    border-radius: 0 0 14px 14px;
    color: #3a4656;
}
@media (max-width: 640px) {
    .dec-loterias-header { padding: 15px 16px 14px; }
    .dec-loterias-header h1 { font-size: 29px; margin-bottom: 6px; }
    .dec-header-meta { font-size: 13px; gap: 4px 7px; }
    .dec-loterias-table th,
    .dec-loterias-table td { padding: 11px 9px; }
    .dec-loterias-table th:nth-child(3),
    .dec-loterias-table td:nth-child(3) { display:none; }
    .dec-result { font-size: 1.05rem; }
}


/* === DEC Loterías 1.4.0: widget escritorio + portada móvil === */
.dec-loterias-sidebar-card,
.dec-loterias-mobile-card {
    overflow: hidden;
    border: 1px solid #e1e6ef;
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
}
.dec-compact-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 15px 12px;
    background: #061A3A;
    border-top: 4px solid #FFC107;
    color: #fff;
}
.dec-compact-head h3 {
    margin: 0 0 2px !important;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
}
.dec-compact-head small {
    display: block;
    color: #cfdaf0;
    font-size: 11px;
    line-height: 1.25;
}
.dec-compact-date {
    flex: 0 0 auto;
    color: #FFC107;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .035em;
}
.dec-compact-rows { background: #fff; }
.dec-compact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 47px;
    padding: 9px 14px;
    border-bottom: 1px solid #edf0f4;
}
.dec-compact-name {
    min-width: 0;
    color: #172033;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
}
.dec-compact-value {
    color: #061A3A;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}
.dec-compact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 14px;
    background: #f5f7fb;
    color: #0A4DFF !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}
.dec-compact-link:hover { text-decoration: underline !important; }

/* El sidebar tradicional se usa solo en tablet/escritorio. */
.dec-loterias-desktop-widget { display: block; }

/* El módulo móvil se oculta hasta que JS lo coloque cerca del inicio de portada. */
.dec-loterias-mobile-home { display: none; }

@media (max-width: 767px) {
    .dec-loterias-desktop-widget { display: none !important; }
    .dec-loterias-mobile-home.dec-mobile-ready {
        display: block !important;
        width: auto;
        margin: 14px 16px 20px;
    }
    .dec-loterias-mobile-home.dec-mobile-manual { margin: 14px 0 20px; }
    .dec-loterias-mobile-card { box-shadow: none; }
    .dec-compact-head { padding: 12px 13px 10px; }
    .dec-compact-head h3 { font-size: 19px !important; }
    .dec-compact-row { min-height: 43px; padding: 8px 12px; }
    .dec-compact-name, .dec-compact-value { font-size: 13px; }
}

@media (min-width: 768px) {
    .dec-loterias-mobile-home { display: none !important; }
}


/* === DEC Loterías 1.4.1: refinamiento compacto exclusivo para PC === */
@media (min-width: 768px) {
    .dec-loterias-desktop-widget .dec-loterias-sidebar-card {
        border-radius: 10px;
    }
    .dec-loterias-desktop-widget .dec-compact-head {
        gap: 7px;
        padding: 9px 11px 8px;
        border-top-width: 3px;
    }
    .dec-loterias-desktop-widget .dec-compact-head h3 {
        margin-bottom: 1px !important;
        font-size: 17px !important;
        line-height: 1.05 !important;
    }
    .dec-loterias-desktop-widget .dec-compact-head small {
        font-size: 9.5px;
        line-height: 1.15;
    }
    .dec-loterias-desktop-widget .dec-compact-date {
        font-size: 9px;
        letter-spacing: .025em;
        padding-top: 1px;
    }
    .dec-loterias-desktop-widget .dec-compact-row {
        gap: 7px;
        min-height: 36px;
        padding: 6px 10px;
    }
    .dec-loterias-desktop-widget .dec-compact-name {
        font-size: 12.5px;
        line-height: 1.12;
    }
    .dec-loterias-desktop-widget .dec-compact-value {
        font-size: 12.5px;
        line-height: 1.12;
    }
    .dec-loterias-desktop-widget .dec-compact-link {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 11.5px;
    }
}


/* === DEC Loterías 1.4.2: uniformidad tipográfica + microajuste PC === */
@media (min-width: 768px) {
    .dec-loterias-desktop-widget .dec-loterias-sidebar-card {
        margin-bottom: 0 !important;
        overflow: hidden;
    }
    .dec-loterias-desktop-widget .dec-compact-link {
        min-height: 31px;
        padding: 5px 9px;
        font-size: 11px;
        line-height: 1.1;
    }
    .dec-loterias-desktop-widget .dec-compact-link span {
        line-height: 1;
    }
    .dec-loterias-desktop-widget {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}


/* === DEC Loterías 1.5.3: encabezado premium con identidad de lotería === */

/* Página completa */
.dec-loterias-header {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 86% 18%, rgba(10,77,255,.26) 0, rgba(10,77,255,0) 34%),
        linear-gradient(135deg, #061A3A 0%, #082552 62%, #0A3471 100%);
    box-shadow: 0 10px 26px rgba(6,26,58,.12);
}
.dec-loterias-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 58%, rgba(255,255,255,.045) 58% 59%, transparent 59% 100%);
}
.dec-header-copy {
    position: relative;
    z-index: 2;
    max-width: 74%;
}
.dec-lottery-balls {
    position: absolute;
    z-index: 1;
    right: 22px;
    top: 50%;
    width: 132px;
    height: 72px;
    transform: translateY(-50%);
    pointer-events: none;
}
.dec-ball {
    position: absolute;
    display: block;
    border-radius: 50%;
    box-sizing: border-box;
    border: 2px solid rgba(255,255,255,.78);
    box-shadow:
        inset -7px -8px 12px rgba(6,26,58,.20),
        inset 5px 5px 9px rgba(255,255,255,.60),
        0 7px 14px rgba(0,0,0,.18);
}
.dec-ball::after {
    content: "";
    position: absolute;
    width: 28%;
    height: 18%;
    top: 17%;
    left: 22%;
    border-radius: 50%;
    background: rgba(255,255,255,.78);
    filter: blur(.3px);
}
.dec-ball-one {
    width: 48px;
    height: 48px;
    left: 4px;
    top: 16px;
    background: radial-gradient(circle at 32% 28%, #fff 0 16%, #ffe68b 17% 31%, #FFC107 64%, #c79200 100%);
    transform: rotate(-8deg);
}
.dec-ball-two {
    width: 58px;
    height: 58px;
    left: 42px;
    top: 2px;
    background: radial-gradient(circle at 31% 27%, #fff 0 14%, #b9d0ff 15% 29%, #0A4DFF 63%, #073796 100%);
    transform: rotate(8deg);
}
.dec-ball-three {
    width: 38px;
    height: 38px;
    right: 0;
    bottom: 2px;
    background: radial-gradient(circle at 32% 28%, #fff 0 16%, #dfeaff 17% 34%, #ffffff 66%, #bdcbea 100%);
    opacity: .94;
}

/* Widget PC + módulo móvil */
.dec-compact-head {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 92% 20%, rgba(10,77,255,.20) 0, rgba(10,77,255,0) 34%),
        linear-gradient(135deg, #061A3A 0%, #082552 68%, #0A3471 100%);
}
.dec-compact-head::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0 66%, rgba(255,255,255,.045) 66% 67%, transparent 67% 100%);
}
.dec-compact-copy,
.dec-compact-head-right {
    position: relative;
    z-index: 2;
}
.dec-compact-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.dec-mini-balls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    height: 17px;
}
.dec-mini-balls span {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.72);
    box-shadow:
        inset -2px -2px 3px rgba(6,26,58,.25),
        inset 2px 2px 3px rgba(255,255,255,.65),
        0 2px 4px rgba(0,0,0,.13);
}
.dec-mini-balls span:nth-child(1) {
    background: radial-gradient(circle at 30% 28%, #fff 0 18%, #FFC107 55%, #c89200 100%);
}
.dec-mini-balls span:nth-child(2) {
    width: 15px;
    height: 15px;
    background: radial-gradient(circle at 30% 28%, #fff 0 17%, #0A4DFF 56%, #073793 100%);
}
.dec-mini-balls span:nth-child(3) {
    background: radial-gradient(circle at 30% 28%, #fff 0 18%, #eef3ff 55%, #aebfe4 100%);
}

/* Móvil: decorativo, pero sin quitar espacio al título. */
@media (max-width: 640px) {
    .dec-header-copy { max-width: 79%; }
    .dec-lottery-balls {
        right: 9px;
        width: 94px;
        height: 57px;
        opacity: .84;
    }
    .dec-ball-one {
        width: 34px;
        height: 34px;
        left: 2px;
        top: 17px;
    }
    .dec-ball-two {
        width: 42px;
        height: 42px;
        left: 30px;
        top: 3px;
    }
    .dec-ball-three {
        width: 28px;
        height: 28px;
        right: 0;
        bottom: 1px;
    }
}

/* Widget de PC: mantener el acabado compacto de 1.4.2. */
@media (min-width: 768px) {
    .dec-loterias-desktop-widget .dec-compact-head-right {
        gap: 2px;
    }
    .dec-loterias-desktop-widget .dec-mini-balls {
        height: 12px;
        gap: 2px;
    }
    .dec-loterias-desktop-widget .dec-mini-balls span {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }
    .dec-loterias-desktop-widget .dec-mini-balls span:nth-child(2) {
        width: 10px;
        height: 10px;
    }
}


/* === DEC Loterías 1.5.4: encabezado radial + bolos numerados === */

/* Rayos azules inspirados en gráfica clásica de lotería, pero sobrios. */
.dec-loterias-header,
.dec-compact-head {
    background:
        repeating-conic-gradient(
            from 248deg at 88% 105%,
            rgba(255,255,255,.055) 0deg 9deg,
            rgba(10,77,255,.10) 9deg 18deg,
            rgba(255,255,255,0) 18deg 30deg
        ),
        radial-gradient(circle at 92% 26%, rgba(30,119,255,.30) 0, rgba(30,119,255,.06) 28%, transparent 50%),
        linear-gradient(135deg, #061A3A 0%, #07316b 58%, #0A4DFF 145%);
}

/* Título: más protagonista. */
.dec-loterias-header h1 {
    font-size: clamp(38px, 5.1vw, 56px);
    line-height: 1.00;
    letter-spacing: -0.025em;
    font-weight: 800;
}
.dec-compact-head h3 {
    font-size: clamp(24px, 3.1vw, 31px);
    line-height: 1.03;
    letter-spacing: -0.018em;
    font-weight: 800;
}

/* Bolo real: esfera + disco blanco + número negro. */
.dec-ball,
.dec-mini-balls span {
    display: flex;
    align-items: center;
    justify-content: center;
}
.dec-ball b,
.dec-mini-balls span b {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #07152f;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,.20);
}

/* El brillo se conserva, pero ya no compite con el disco numerado. */
.dec-ball::after {
    width: 20%;
    height: 12%;
    top: 13%;
    left: 18%;
    opacity: .72;
}
.dec-ball b {
    width: 50%;
    height: 50%;
    font-size: 18px;
}
.dec-ball-one {
    background: radial-gradient(circle at 30% 25%, #fff5b8 0 7%, #ffd331 16%, #FFC107 57%, #b97c00 100%);
}
.dec-ball-two {
    background: radial-gradient(circle at 30% 25%, #d6e5ff 0 7%, #5488ff 18%, #0A4DFF 60%, #052d85 100%);
}
.dec-ball-three {
    background: radial-gradient(circle at 30% 25%, #ffc9d0 0 7%, #ff586d 18%, #D91E18 60%, #8e0b0d 100%);
}

/* En el encabezado grande, los bolos son pequeños y quedan en la esquina. */
.dec-lottery-balls {
    right: 18px;
    top: 18px;
    transform: none;
    width: 116px;
    height: 58px;
    opacity: .98;
}
.dec-ball-one {
    width: 42px;
    height: 42px;
    left: 0;
    top: 11px;
}
.dec-ball-two {
    width: 49px;
    height: 49px;
    left: 34px;
    top: 0;
}
.dec-ball-three {
    width: 36px;
    height: 36px;
    right: 0;
    bottom: 0;
}
.dec-ball-three b {
    font-size: 15px;
}

/* Versión compacta: mini-bolos legibles como lotería real. */
.dec-mini-balls {
    height: 24px;
    gap: 4px;
}
.dec-mini-balls span {
    width: 19px;
    height: 19px;
    border: 1px solid rgba(255,255,255,.88);
}
.dec-mini-balls span:nth-child(1) {
    background: radial-gradient(circle at 30% 25%, #fff5b8 0 7%, #ffd331 18%, #FFC107 58%, #b97c00 100%);
}
.dec-mini-balls span:nth-child(2) {
    width: 23px;
    height: 23px;
    background: radial-gradient(circle at 30% 25%, #d6e5ff 0 7%, #5488ff 18%, #0A4DFF 58%, #052d85 100%);
}
.dec-mini-balls span:nth-child(3) {
    background: radial-gradient(circle at 30% 25%, #ffc9d0 0 7%, #ff586d 18%, #D91E18 58%, #8e0b0d 100%);
}
.dec-mini-balls span b {
    width: 55%;
    height: 55%;
    font-size: 8px;
}
.dec-mini-balls span:nth-child(2) b {
    font-size: 9px;
}

/* Dar un poco más de aire al título sin aumentar mucho la altura. */
.dec-compact-head {
    padding-top: 17px;
    padding-bottom: 15px;
}
.dec-compact-copy small {
    margin-top: 4px;
}

/* Móvil: título más fuerte y bolos sin invadirlo. */
@media (max-width: 640px) {
    .dec-compact-head h3 {
        font-size: 29px;
    }
    .dec-compact-head {
        padding: 18px 20px 16px;
    }
    .dec-compact-head-right {
        min-width: 112px;
    }
    .dec-mini-balls {
        height: 25px;
        margin-bottom: 1px;
    }

    .dec-loterias-header h1 {
        font-size: 43px;
    }
    .dec-header-copy {
        max-width: 77%;
    }
    .dec-lottery-balls {
        right: 10px;
        top: 15px;
        width: 88px;
        height: 46px;
    }
    .dec-ball-one {
        width: 31px;
        height: 31px;
        left: 0;
        top: 10px;
    }
    .dec-ball-two {
        width: 36px;
        height: 36px;
        left: 26px;
        top: 0;
    }
    .dec-ball-three {
        width: 27px;
        height: 27px;
    }
    .dec-ball b {
        font-size: 12px;
    }
    .dec-ball-three b {
        font-size: 10px;
    }
}

/* PC sidebar: conservar altura compacta pese al nuevo diseño. */
@media (min-width: 768px) {
    .dec-loterias-desktop-widget .dec-compact-head {
        padding-top: 11px;
        padding-bottom: 10px;
    }
    .dec-loterias-desktop-widget .dec-compact-head h3 {
        font-size: 22px;
    }
    .dec-loterias-desktop-widget .dec-mini-balls {
        height: 16px;
        gap: 3px;
    }
    .dec-loterias-desktop-widget .dec-mini-balls span {
        width: 13px;
        height: 13px;
    }
    .dec-loterias-desktop-widget .dec-mini-balls span:nth-child(2) {
        width: 16px;
        height: 16px;
    }
    .dec-loterias-desktop-widget .dec-mini-balls span b {
        font-size: 6px;
    }
}


/* === DEC Loterías 1.5.5: mayor jerarquía del título === */

/* Módulo compacto general */
.dec-compact-head h3 {
    font-size: clamp(27px, 3.45vw, 34px);
    line-height: 1.00;
    letter-spacing: -0.022em;
    font-weight: 850;
}

/* Móvil: +12–15% aproximadamente, sin aumentar el alto del encabezado */
@media (max-width: 640px) {
    .dec-compact-head h3 {
        font-size: 33px;
        line-height: 1;
        white-space: nowrap;
    }
    .dec-compact-copy {
        min-width: 0;
        flex: 1 1 auto;
    }
}

/* Sidebar de PC: aumento más moderado para conservar el formato compacto */
@media (min-width: 768px) {
    .dec-loterias-desktop-widget .dec-compact-head h3 {
        font-size: 24px;
        line-height: 1.02;
    }
}

/* Página completa: pequeño aumento de presencia */
.dec-loterias-header h1 {
    font-size: clamp(42px, 5.35vw, 58px);
}

/* === DEC Loterías 1.6.0: resultados en bolos + tarjetas vivas === */

/* Paleta por lotería. Se aplica a los bolos de resultados y a pequeños acentos. */
[data-dec-draw-slug="la-primera-dia"] {
    --dec-ball-main: #0A4DFF;
    --dec-ball-light: #69a0ff;
    --dec-ball-dark: #06318e;
    --dec-row-accent: #0A4DFF;
}
[data-dec-draw-slug="loto-real"] {
    --dec-ball-main: #E8A900;
    --dec-ball-light: #ffd75a;
    --dec-ball-dark: #946000;
    --dec-row-accent: #E8A900;
}
[data-dec-draw-slug="loteka"] {
    --dec-ball-main: #159947;
    --dec-ball-light: #65d987;
    --dec-ball-dark: #075b28;
    --dec-row-accent: #159947;
}
[data-dec-draw-slug="leidsa"] {
    --dec-ball-main: #F07818;
    --dec-ball-light: #ffb25a;
    --dec-ball-dark: #984000;
    --dec-row-accent: #F07818;
}
[data-dec-draw-slug="loteria-nacional"] {
    --dec-ball-main: #D92B2B;
    --dec-ball-light: #ff7272;
    --dec-ball-dark: #861010;
    --dec-row-accent: #D92B2B;
}

/* Grupo de números confirmado. */
.dec-number-balls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
    white-space: nowrap;
}
.dec-number-ball {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 50%;
    box-sizing: border-box;
    border: 2px solid rgba(255,255,255,.92);
    background:
        radial-gradient(circle at 29% 24%, rgba(255,255,255,.96) 0 7%, var(--dec-ball-light, #6ea5ff) 15%, var(--dec-ball-main, #0A4DFF) 58%, var(--dec-ball-dark, #06318e) 100%);
    box-shadow:
        inset -7px -8px 10px rgba(0,0,0,.20),
        inset 5px 5px 10px rgba(255,255,255,.32),
        0 5px 10px rgba(6,26,58,.18),
        0 0 0 1px rgba(6,26,58,.08);
}
.dec-number-ball::before {
    content: "";
    position: absolute;
    width: 18%;
    height: 11%;
    top: 11%;
    left: 18%;
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    filter: blur(.2px);
}
.dec-number-ball b {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68%;
    height: 68%;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff 0%, #f2f5fb 100%);
    border: 1px solid rgba(6,26,58,.16);
    box-shadow: inset 0 -2px 4px rgba(6,26,58,.09), 0 1px 3px rgba(0,0,0,.18);
    color: #061A3A;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.03em;
}

/* Entrada suave cuando el REST actualiza un sorteo sin recargar la página. */
.dec-ball-enter {
    animation: decBallPop .42s cubic-bezier(.18,.89,.32,1.28) both;
    animation-delay: var(--dec-ball-delay, 0ms);
}
@keyframes decBallPop {
    0% { opacity: 0; transform: translateY(7px) scale(.76); }
    70% { opacity: 1; transform: translateY(-2px) scale(1.05); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .dec-ball-enter { animation: none; }
}

/* Estado pendiente / próximo sorteo. */
.dec-result-text {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.dec-result-pending {
    color: #445065;
    font-size: .96em;
    font-weight: 800;
    letter-spacing: 0;
}
.dec-pending-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #FFC107;
    box-shadow: 0 0 0 3px rgba(255,193,7,.16);
}

/* Página principal de Loterías: menos tabla rígida, más sensación de tablero. */
.dec-loterias-table-wrap {
    overflow: visible;
    padding: 12px;
    border: 1px solid #e1e7f0;
    border-top: 0;
    background: #f4f7fc;
}
.dec-loterias-table {
    border-collapse: separate;
    border-spacing: 0 8px;
    background: transparent;
}
.dec-loterias-table thead th {
    padding: 11px 14px;
    border: 0;
    background: #0A4DFF;
    font-size: 14px;
    letter-spacing: .01em;
}
.dec-loterias-table thead th:first-child { border-radius: 9px 0 0 9px; }
.dec-loterias-table thead th:last-child { border-radius: 0 9px 9px 0; }
.dec-loterias-table tbody tr {
    position: relative;
    background: #fff;
    box-shadow: 0 4px 13px rgba(6,26,58,.065);
}
.dec-loterias-table tbody td {
    padding: 14px 14px;
    border-top: 1px solid #e8edf5;
    border-bottom: 1px solid #e8edf5;
    background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
}
.dec-loterias-table tbody td:first-child {
    border-left: 1px solid #e8edf5;
    border-radius: 10px 0 0 10px;
    box-shadow: inset 4px 0 0 var(--dec-row-accent, #0A4DFF);
    padding-left: 18px;
}
.dec-loterias-table tbody td:last-child {
    border-right: 1px solid #e8edf5;
    border-radius: 0 10px 10px 0;
}
.dec-loterias-table tbody tr[data-status="confirmed"] td {
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}
.dec-loterias-table td strong {
    color: #101a2d;
    font-size: 16px;
}
.dec-loterias-table td small {
    margin-top: 4px;
    font-size: 12px;
}
.dec-result {
    min-width: 190px;
    font-size: 1rem;
    letter-spacing: 0;
}
.dec-status {
    border: 1px solid rgba(6,26,58,.07);
}

/* Compacto: cada fila funciona como una mini tarjeta, conservando poco alto. */
.dec-compact-rows {
    padding: 7px;
    background: #f4f7fc;
}
.dec-compact-row {
    position: relative;
    grid-template-columns: minmax(92px, 1fr) auto;
    min-height: 56px;
    margin-bottom: 6px;
    padding: 8px 10px 8px 13px;
    border: 1px solid #e7ecf4;
    border-bottom: 1px solid #e7ecf4;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(6,26,58,.045);
    overflow: hidden;
}
.dec-compact-row:last-child { margin-bottom: 0; }
.dec-compact-row::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--dec-row-accent, #0A4DFF);
}
.dec-compact-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 2px;
}
.dec-compact-name b {
    color: #172033;
    font-size: inherit;
    font-weight: 850;
    line-height: 1.12;
}
.dec-compact-name small {
    display: block;
    color: #758095;
    font-size: 10.5px;
    font-weight: 650;
    line-height: 1.1;
}
.dec-compact-value {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}
.dec-number-balls-compact {
    gap: 4px;
}
.dec-number-balls-compact .dec-number-ball {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
    border-width: 1px;
    box-shadow:
        inset -4px -4px 6px rgba(0,0,0,.18),
        inset 3px 3px 5px rgba(255,255,255,.30),
        0 3px 6px rgba(6,26,58,.14);
}
.dec-number-balls-compact .dec-number-ball b {
    width: 70%;
    height: 70%;
    font-size: 12px;
    border-width: 1px;
}
.dec-compact-value .dec-result-pending {
    justify-content: flex-end;
    max-width: 145px;
    color: #39465b;
    font-size: 11.5px;
    line-height: 1.15;
    text-align: right;
    white-space: normal;
}
.dec-compact-value .dec-pending-dot {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
    box-shadow: 0 0 0 2px rgba(255,193,7,.15);
}

/* Sidebar de escritorio: bolos todavía más contenidos. */
@media (min-width: 768px) {
    .dec-loterias-desktop-widget .dec-compact-rows { padding: 5px; }
    .dec-loterias-desktop-widget .dec-compact-row {
        min-height: 45px;
        margin-bottom: 4px;
        padding: 6px 7px 6px 10px;
        gap: 5px;
    }
    .dec-loterias-desktop-widget .dec-compact-name b { font-size: 11.5px; }
    .dec-loterias-desktop-widget .dec-compact-name small { font-size: 8.5px; }
    .dec-loterias-desktop-widget .dec-number-balls-compact { gap: 3px; }
    .dec-loterias-desktop-widget .dec-number-balls-compact .dec-number-ball {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }
    .dec-loterias-desktop-widget .dec-number-balls-compact .dec-number-ball b { font-size: 10px; }
    .dec-loterias-desktop-widget .dec-compact-value .dec-result-pending {
        max-width: 105px;
        font-size: 10px;
    }
}

/* Móvil: priorizar lectura táctil sin convertir el tablero en una imagen pesada. */
@media (max-width: 640px) {
    .dec-loterias-table-wrap {
        padding: 7px;
    }
    .dec-loterias-table {
        border-spacing: 0 7px;
    }
    .dec-loterias-table thead th {
        padding: 10px 9px;
        font-size: 13px;
    }
    .dec-loterias-table tbody td {
        padding: 11px 9px;
    }
    .dec-loterias-table tbody td:first-child {
        padding-left: 13px;
    }
    .dec-loterias-table td strong { font-size: 14px; }
    .dec-loterias-table td small { font-size: 11px; }
    .dec-result {
        min-width: 154px;
    }
    .dec-number-balls {
        gap: 5px;
    }
    .dec-number-ball {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
    }
    .dec-number-ball b {
        font-size: 17px;
    }

    .dec-compact-rows { padding: 6px; }
    .dec-compact-row {
        grid-template-columns: minmax(88px, 1fr) auto;
        min-height: 54px;
        margin-bottom: 5px;
        padding: 8px 8px 8px 11px;
        gap: 7px;
    }
    .dec-compact-name b { font-size: 12.5px; }
    .dec-compact-name small { font-size: 9.5px; }
    .dec-number-balls-compact { gap: 3px; }
    .dec-number-balls-compact .dec-number-ball {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
    .dec-number-balls-compact .dec-number-ball b { font-size: 11px; }
    .dec-compact-value .dec-result-pending {
        max-width: 132px;
        font-size: 11px;
    }
}

@media (max-width: 390px) {
    .dec-number-ball {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
    .dec-number-ball b { font-size: 16px; }
    .dec-number-balls-compact .dec-number-ball {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
    .dec-number-balls-compact .dec-number-ball b { font-size: 10px; }
}

/* === DEC Loterías 1.6.1: encabezado más compacto + accesibilidad visual === */

/* El encabezado gana personalidad sin ocupar media pantalla. */
.dec-loterias-header {
    padding: 15px 20px 14px;
    border-top-width: 3px;
    border-bottom: 1px solid rgba(74,147,255,.32);
    box-shadow: 0 9px 22px rgba(6,26,58,.13), inset 0 -1px 0 rgba(255,255,255,.05);
}
.dec-loterias-header::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: 18px;
    top: 9px;
    width: 116px;
    height: 70px;
    border: 1px solid rgba(255,193,7,.20);
    border-radius: 50%;
    transform: rotate(-12deg);
    box-shadow: 0 0 24px rgba(10,77,255,.17);
    pointer-events: none;
}
.dec-header-copy {
    max-width: calc(100% - 126px);
}
.dec-header-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 5px;
    padding: 3px 8px 3px 6px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    background: rgba(255,255,255,.065);
    color: #e7efff;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.dec-header-kicker-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFC107;
    box-shadow: 0 0 0 3px rgba(255,193,7,.13), 0 0 9px rgba(255,193,7,.42);
}
.dec-loterias-header h1 {
    position: relative;
    display: inline-block;
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(34px, 4.2vw, 45px);
    line-height: .98;
    letter-spacing: -.035em;
    font-weight: 850;
    white-space: nowrap;
}
.dec-loterias-header h1 span,
.dec-loterias-header h1 em {
    font-style: normal;
}
.dec-loterias-header h1 em {
    color: #FFC107;
}
.dec-loterias-header h1::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin-top: 7px;
    border-radius: 999px;
    background: linear-gradient(90deg, #FFC107 0%, rgba(255,193,7,.08) 100%);
}
.dec-header-meta {
    width: max-content;
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    background: rgba(4,20,47,.22);
    color: #dce8ff;
    font-size: 12.5px;
}
.dec-date, .dec-updated { color: #dce8ff; }

/* Los bolos decorativos del encabezado reciben un halo suave. */
.dec-lottery-balls {
    right: 18px;
    top: 12px;
    width: 108px;
    height: 58px;
}
.dec-lottery-balls::before {
    content: "";
    position: absolute;
    inset: 4px -4px -7px 8px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(73,145,255,.24) 0%, rgba(73,145,255,0) 68%);
    filter: blur(4px);
}

/* Mejor legibilidad del nombre de cada lotería. */
.dec-loterias-table td strong {
    font-size: 17px;
    line-height: 1.12;
    font-weight: 850;
}
.dec-loterias-table td small {
    font-size: 12.5px;
}

/* Bolos de resultado ligeramente mayores y con número más legible. */
.dec-number-ball {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
}
.dec-number-ball b {
    width: 70%;
    height: 70%;
    font-size: 21px;
}

/* Módulo compacto: también mejora la lectura en portada móvil. */
@media (max-width: 640px) {
    .dec-loterias-header {
        padding: 12px 14px 12px;
    }
    .dec-header-copy {
        max-width: calc(100% - 78px);
    }
    .dec-header-kicker {
        margin-bottom: 4px;
        padding: 3px 7px 3px 5px;
        font-size: 8.5px;
        letter-spacing: .06em;
    }
    .dec-header-kicker-dot {
        width: 5px;
        height: 5px;
    }
    .dec-loterias-header h1 {
        margin-bottom: 6px;
        font-size: clamp(29px, 8.45vw, 34px);
        line-height: 1;
        letter-spacing: -.04em;
    }
    .dec-loterias-header h1::after {
        width: 44px;
        height: 2px;
        margin-top: 5px;
    }
    .dec-header-meta {
        gap: 3px 6px;
        padding: 3px 7px;
        font-size: 10.5px;
        line-height: 1.25;
    }
    .dec-loterias-header::after {
        right: 8px;
        top: 7px;
        width: 78px;
        height: 49px;
    }
    .dec-lottery-balls {
        right: 8px;
        top: 9px;
        width: 72px;
        height: 45px;
        opacity: .98;
    }
    .dec-ball-one {
        width: 27px;
        height: 27px;
        left: 0;
        top: 10px;
    }
    .dec-ball-two {
        width: 32px;
        height: 32px;
        left: 23px;
        top: 0;
    }
    .dec-ball-three {
        width: 24px;
        height: 24px;
        right: 0;
        bottom: 0;
    }
    .dec-ball b { font-size: 10.5px; }
    .dec-ball-three b { font-size: 9px; }

    .dec-loterias-table tbody td {
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .dec-loterias-table td strong {
        font-size: 16.5px;
        line-height: 1.12;
    }
    .dec-loterias-table td small {
        margin-top: 5px;
        font-size: 12px;
    }
    .dec-result {
        min-width: 164px;
    }
    .dec-number-balls {
        gap: 5px;
    }
    .dec-number-ball {
        width: 47px;
        height: 47px;
        flex-basis: 47px;
    }
    .dec-number-ball b {
        width: 71%;
        height: 71%;
        font-size: 18.5px;
    }
    .dec-result-pending {
        font-size: .98em;
    }

    .dec-compact-name b {
        font-size: 14.5px;
        line-height: 1.12;
    }
    .dec-compact-name small {
        font-size: 10.5px;
    }
    .dec-number-balls-compact {
        gap: 4px;
    }
    .dec-number-balls-compact .dec-number-ball {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
    .dec-number-balls-compact .dec-number-ball b {
        font-size: 12.5px;
    }
    .dec-compact-value .dec-result-pending {
        font-size: 12px;
    }
}

@media (max-width: 390px) {
    .dec-loterias-header h1 {
        font-size: 29px;
    }
    .dec-number-ball {
        width: 45px;
        height: 45px;
        flex-basis: 45px;
    }
    .dec-number-ball b {
        font-size: 18px;
    }
    .dec-compact-name b {
        font-size: 14px;
    }
    .dec-number-balls-compact .dec-number-ball {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }
}


/* === DEC Loterías 1.6.2: retoques finales de limpieza visual === */

/* 1) La franja azul de encabezados deja de competir con los resultados. */
.dec-loterias-table thead {
    display: none !important;
}

/* 2) Divisiones internas suaves: se neutralizan bordes heredados del tema. */
.dec-loterias-table tbody td {
    border-left: 0 !important;
    border-right: 0 !important;
}
.dec-loterias-table tbody td:first-child {
    border-left: 1px solid #e8edf5 !important;
    border-right: 1px solid #dfe5ef !important;
}
.dec-loterias-table tbody td:last-child {
    border-right: 1px solid #e8edf5 !important;
}

/* 3) Se elimina el colchón inferior que algunos temas añaden a las tablas. */
.dec-loterias-table {
    margin: 0 !important;
}
.dec-loterias-table-wrap {
    padding-bottom: 5px;
}

@media (max-width: 640px) {
    .dec-loterias-table-wrap {
        padding-top: 5px;
        padding-bottom: 4px;
    }
    .dec-loterias-table {
        border-spacing: 0 6px;
    }
    /* En móvil la tercera columna está oculta, por lo que Resultado cierra la tarjeta. */
    .dec-loterias-table tbody td:nth-child(2) {
        border-right: 1px solid #e8edf5 !important;
        border-radius: 0 10px 10px 0;
    }
}

/* === DEC Loterías 1.6.3: ajuste tipográfico y cierre compacto === */

/* Más aire para el nombre sin reducir la legibilidad. */
.dec-loterias-table tbody td:first-child {
    width: 43%;
}
.dec-loterias-table tbody td:nth-child(2) {
    width: 57%;
}
.dec-loterias-table td strong {
    white-space: nowrap;
}

/* Aviso final más discreto, útil y compacto. */
.dec-loterias-note {
    padding: 12px 16px 13px;
    border-top: 1px solid #e7ebf2;
    background: #f7f9fc;
    color: #536174;
}
.dec-loterias-note p {
    margin: 0;
}
.dec-loterias-note p:first-child {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}
.dec-loterias-note p:first-child::before {
    content: "i";
    position: absolute;
    left: 0;
    top: .08em;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border: 1.5px solid #0A4DFF;
    border-radius: 50%;
    color: #0A4DFF;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    font-family: Arial, sans-serif;
}
.dec-loterias-note p + p {
    margin-top: 7px;
    font-size: 11.5px;
    line-height: 1.42;
    color: #738096;
}
.dec-loterias-note p + p strong {
    color: #5a6678;
}

@media (max-width: 640px) {
    .dec-loterias-table tbody td:first-child {
        width: 43%;
        padding-left: 14px;
        padding-right: 8px;
    }
    .dec-loterias-table tbody td:nth-child(2) {
        width: 57%;
        padding-left: 8px;
        padding-right: 8px;
    }
    .dec-result {
        min-width: 0;
    }
    .dec-loterias-table td strong {
        white-space: nowrap;
    }
    .dec-loterias-note {
        padding: 11px 14px 12px;
    }
    .dec-loterias-note p:first-child {
        padding-left: 22px;
        font-size: 13px;
        line-height: 1.4;
    }
    .dec-loterias-note p:first-child::before {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    .dec-loterias-note p + p {
        margin-top: 6px;
        font-size: 10.5px;
        line-height: 1.4;
    }
}

/* En pantallas especialmente estrechas se permite el salto como salvaguarda. */
@media (max-width: 350px) {
    .dec-loterias-table tbody td:first-child {
        width: 41%;
    }
    .dec-loterias-table tbody td:nth-child(2) {
        width: 59%;
    }
    .dec-loterias-table td strong {
        white-space: normal;
    }
}

/* === DEC Loterías 1.6.4: corrección final de alineación móvil === */
/*
 * Evita que el cálculo intrínseco de las celdas (nombres sin salto,
 * bolos y textos "Próximo…") ensanche la tabla más allá del contenedor.
 * No altera tamaños visuales ni la composición del módulo de portada.
 */
@media (max-width: 640px) {
    .dec-loterias-table-wrap {
        overflow: hidden;
    }
    .dec-loterias-table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed;
        box-sizing: border-box;
    }
    .dec-loterias-table tbody,
    .dec-loterias-table tbody tr {
        max-width: 100%;
    }
    .dec-loterias-table tbody td {
        box-sizing: border-box;
        min-width: 0 !important;
        max-width: 100%;
    }
    .dec-loterias-table tbody td:first-child {
        width: 43% !important;
    }
    .dec-loterias-table tbody td:nth-child(2) {
        width: 57% !important;
        overflow: hidden;
    }
    .dec-loterias-table .dec-result {
        min-width: 0 !important;
    }
    .dec-loterias-table .dec-number-balls {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    .dec-loterias-table .dec-result-pending {
        max-width: 100%;
    }
}
