/* =====================================================
   RESULTADOS DE LOTERÍA
===================================================== */

.main-panel {
    min-width: 0;
    min-height: auto;

    /* Elimina el borde placeholder anterior */
    border: 0;
    border-radius: 0;
}

.lottery-results {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 30px;
    color: #fff;
}


/* =====================================================
   TÍTULO PRINCIPAL
===================================================== */

.lottery-results__main-title {
    margin: 0 0 52px;
    color: #fff;
    font-size: clamp(1.8rem, 2.6vw, 2.7rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: center;
}


/* =====================================================
   GRUPO DE RESULTADOS
===================================================== */

.lottery-group {
    width: 100%;
    margin-bottom: 24px;
    padding: 42px 38px 32px;

    border: 2px solid #506bd3;
    border-radius: 31px;

    background:
        linear-gradient(
            145deg,
            rgba(2, 1, 18, 0.42),
            rgba(0, 0, 10, 0.48)
        );

    box-shadow:
        inset 0 0 28px rgba(50, 62, 173, 0.04),
        0 12px 30px rgba(0, 0, 0, 0.14);
}


/* =====================================================
   ENCABEZADO DEL GRUPO
===================================================== */

.lottery-group__header {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-bottom: 27px;
}

.lottery-group__header span {
    font-size: 1.25rem;
    line-height: 1;
}

.lottery-group__header h3 {
    margin: 0;

    color: #fff;

    font-size: clamp(1.05rem, 1.55vw, 1.45rem);
    font-weight: 400;
    line-height: 1;

    letter-spacing: 0.24em;
    text-transform: uppercase;
}


/* =====================================================
   GRID
===================================================== */

.lottery-group__grid {
    display: grid;

    grid-template-columns: repeat(
        4,
        minmax(125px, 160px)
    );

    justify-content: center;

    gap: clamp(45px, 7vw, 100px);
}


/* =====================================================
   TARJETA
===================================================== */

.lottery-result-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;
    min-height: 215px;

    padding: 14px 10px 22px;

    border: 2px solid #4e6dd0;
    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            rgba(2, 1, 14, 0.36),
            rgba(0, 0, 7, 0.39)
        );

    box-shadow:
        inset 0 0 18px rgba(55, 72, 194, 0.05),
        0 6px 16px rgba(0, 0, 0, 0.23);

    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.lottery-result-card:hover {
    transform: translateY(-5px);

    border-color: #718bf0;

    box-shadow:
        inset 0 0 20px rgba(76, 93, 225, 0.08),
        0 12px 23px rgba(0, 0, 0, 0.3);
}


/* =====================================================
   NOMBRE DEL SORTEO
===================================================== */

.lottery-result-card__title {
    display: flex;
    flex-direction: column;

    justify-content: flex-start;

    min-height: 43px;
    margin: 0 0 18px;

    color: #fff;

    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.1;

    text-align: center;
    text-transform: uppercase;
}

.lottery-result-card__title span {
    display: block;
}


/* =====================================================
   BOLA DEL RESULTADO
===================================================== */

.lottery-result-card__ball {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 108px;
    height: 108px;

    border: 2px solid #526fd6;
    border-radius: 50%;

    color: #090909;

    background-image: url("../assets/images/ball.jpg");
    background-size: contain;

}

.lottery-result-card__ball::before {
    content: "";

    position: absolute;

    top: 9px;
    left: 17px;

    width: 37px;
    height: 19px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.56);

    filter: blur(3px);

    transform: rotate(-24deg);
}

.lottery-result-card__ball::after {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    background:
        repeating-radial-gradient(
            circle at 35% 25%,
            transparent 0,
            transparent 8px,
            rgba(184, 181, 179, 0.045) 9px,
            transparent 10px
        );

    pointer-events: none;
}

.lottery-result-card__ball time,
.lottery-result-card__ball strong {
    position: relative;
    z-index: 2;
}

.lottery-result-card__ball time {
    color: #222;

    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.1;
}

.lottery-result-card__ball strong {
    margin-top: 2px;

    color: #050505;

    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
}


/* =====================================================
   DESKTOP INTERMEDIO
===================================================== */

@media (max-width: 1450px) {

    .lottery-group__grid {
        gap: clamp(28px, 5vw, 60px);
    }

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .lottery-group {
        padding-inline: 25px;
    }

    .lottery-group__grid {
        grid-template-columns: repeat(
            2,
            minmax(135px, 170px)
        );

        gap: 30px 70px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .lottery-results {
        padding-inline: 0;
        padding-top: 10px;
    }

    .lottery-results__main-title {
        margin-bottom: 32px;

        font-size: clamp(1.65rem, 7vw, 2.2rem);
        letter-spacing: 0.08em;
    }

    .lottery-group {
        margin-bottom: 18px;

        padding:
            30px
            15px
            25px;

        border-radius: 24px;
    }

    .lottery-group__header {
        margin-bottom: 24px;
        gap: 9px;
    }

    .lottery-group__header h3 {
        font-size: 1rem;
        letter-spacing: 0.18em;
    }

    .lottery-group__header span {
        font-size: 1.05rem;
    }

    .lottery-group__grid {
        grid-template-columns: repeat(
            2,
            minmax(115px, 155px)
        );

        gap: 22px 24px;
    }

    .lottery-result-card {
        min-height: 198px;
        padding-inline: 7px;
    }

    .lottery-result-card__title {
        min-height: 39px;
        margin-bottom: 13px;

        font-size: 0.74rem;
    }

    .lottery-result-card__ball {
        width: 96px;
        height: 96px;
    }

    .lottery-result-card__ball strong {
        font-size: 1.3rem;
    }

}


/* =====================================================
   MOBILE PEQUEÑO
===================================================== */

@media (max-width: 390px) {

    .lottery-group {
        padding-inline: 10px;
    }

    .lottery-group__grid {
        gap: 18px 10px;
    }

    .lottery-result-card {
        min-height: 183px;
    }

    .lottery-result-card__title {
        font-size: 0.67rem;
    }

    .lottery-result-card__ball {
        width: 86px;
        height: 86px;
    }

    .lottery-result-card__ball time {
        font-size: 0.68rem;
    }

    .lottery-result-card__ball strong {
        font-size: 1.15rem;
    }

}


/* =====================================================
   ACCESIBILIDAD
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .lottery-result-card {
        transition: none;
    }

}