/* =========================================================
   LOTERÍAS
   Estética coherente con Bazar y Paquetería
========================================================= */

.loterias-page{
    margin:0;
    min-height:100vh;
    background:
        linear-gradient(
            rgba(235,238,240,.20),
            rgba(235,238,240,.20)
        ),
        url('../images/loterias.png') center center / cover fixed no-repeat;
}

.loterias-main{
    min-height:100vh;
    padding-top:156px;
}

.loterias-hero{
    width:100%;
    padding:54px 4% 58px;
    background:rgba(255,255,255,.05);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
}

.loterias-title{
    width:min(1180px,92%);
    margin:0 auto 34px;
    text-align:center;
}

.loterias-title span{
    display:block;
    margin-bottom:10px;
    color:#8b0f1c;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.22em;
}

.loterias-title h1{
    margin:0;
    color:#171a1f;
    font-size:clamp(48px,7vw,86px);
    line-height:1;
    font-weight:400;
    text-transform:uppercase;
    letter-spacing:.03em;
}

.loterias-title h1::after{
    content:"";
    display:block;
    width:100px;
    height:2px;
    margin:18px auto 16px;
    background:#8b0f1c;
}

.loterias-title p{
    margin:0;
    color:#343a40;
    font-size:15px;
    line-height:1.5;
}

/* =========================================================
   TARJETAS
========================================================= */

.loterias-grid{
    width:min(1320px,92%);
    margin:auto;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.lot-card{
    position:relative;
    min-height:250px;
    padding:26px 24px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    overflow:hidden;
    isolation:isolate;

    border:1px solid rgba(255,255,255,.50);
    background:rgba(255,255,255,.20);
    box-shadow:0 18px 38px rgba(20,24,28,.08);

    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);

    transition:
        transform .28s ease,
        background .28s ease,
        box-shadow .28s ease;
}

/* logo grande tipo marca de agua */
.lot-card::after{
    content:"";
    position:absolute;
    inset:18px 24px 72px;
    z-index:0;

    background-repeat:no-repeat;
   background-size:cover;
background-position:center;
inset:0;
opacity:.18;

    opacity:.20;
    filter:saturate(.80) contrast(1.02);

    transition:
        opacity .28s ease,
        transform .28s ease;
}

/* degradado suave inferior para lectura */
.lot-card::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.03) 0%,
            rgba(255,255,255,.02) 46%,
            rgba(255,255,255,.30) 100%
        );
    pointer-events:none;
}

.lot-card > *{
    position:relative;
    z-index:2;
}

/* un logo por tarjeta */
.lot-card-national::after{
    background-image:url('../images/fotoloterianacional.jpeg');
}

.lot-card-weekly::after{
    background-image:url('../images/fotojuegos.webp');
}

.lot-card-sports::after{
    background-image:url('../images/fotodeportivas.webp');
}

.lot-card-check::after{
    background-image:url('../images/fotocobro.jpg');
}

.lot-number{
    position:absolute;
    top:20px;
    left:22px;
    color:#8b0f1c;
    font-size:11px;
    font-weight:700;
    letter-spacing:.12em;
}

.lot-number::after{
    content:"";
    display:block;
    width:34px;
    height:1px;
    margin-top:9px;
    background:#8b0f1c;
}

.lot-card h2{
    margin:0 0 12px;
    color:#171a1f;
    font-size:21px;
    font-weight:500;
    line-height:1.12;
    text-transform:uppercase;
    letter-spacing:.02em;
}

.lot-card p{
    margin:0;
    color:#555e67;
    font-size:14px;
    line-height:1.55;
}

.lot-card:hover{
    transform:translateY(-4px);
    background:rgba(255,255,255,.28);
    box-shadow:0 22px 44px rgba(20,24,28,.12);
}

.lot-card:hover::after{
    opacity:.18;
    transform:scale(1.02);
}

/* =========================================================
   CINTA DE LOGOS
========================================================= */

.lottery-marquee{
    position:relative;
    width:min(1320px,92%);
    margin:28px auto 0;
    overflow:hidden;

    border:1px solid rgba(255,255,255,.42);
    background:rgba(255,255,255,.18);

    box-shadow:0 16px 34px rgba(20,24,28,.06);

    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
}

.lottery-marquee::before,
.lottery-marquee::after{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    z-index:3;
    width:60px;
    pointer-events:none;
}

.lottery-marquee::before{
    left:0;
    background:linear-gradient(
        90deg,
        rgba(235,238,240,.74),
        transparent
    );
}

.lottery-marquee::after{
    right:0;
    background:linear-gradient(
        270deg,
        rgba(235,238,240,.74),
        transparent
    );
}

.lottery-track{
    width:max-content;
    display:flex;
    align-items:center;
    animation:lotteryScroll 32s linear infinite;
}

.lottery-marquee:hover .lottery-track{
    animation-play-state:paused;
}

.lottery-logo{
    width:220px;
    min-height:92px;
    padding:18px 26px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-right:1px solid rgba(255,255,255,.35);
}

.lottery-logo img{
    display:block;
    max-width:150px;
    max-height:54px;
    width:auto;
    height:auto;
    object-fit:contain;
}

@keyframes lotteryScroll{
    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-50%);
    }
}

/* =========================================================
   CTA
========================================================= */

.lottery-cta{
    width:min(1100px,92%);
    margin:32px auto 0;
    padding:20px 26px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:26px;

    border:1px solid rgba(255,255,255,.42);
    background:rgba(255,255,255,.16);

    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
}

.lottery-cta-text{
    display:flex;
    align-items:center;
    gap:26px;
}

.lottery-cta-text strong{
    max-width:230px;
    color:#8b0f1c;
    font-size:20px;
    line-height:1.12;
}

.lottery-cta-text span{
    color:#3c4248;
    font-size:14px;
}

.lottery-cta-actions{
    display:flex;
    gap:12px;
    flex-shrink:0;
}

.lottery-btn{
    min-width:145px;
    padding:12px 20px;
    display:inline-flex;
    align-items:center;
    justify-content:center;

    border:1px solid #8b0f1c;

    text-decoration:none;
    text-transform:uppercase;
    letter-spacing:.06em;
    font-size:12px;

    transition:.22s ease;
}

.lottery-btn-primary{
    color:#fff;
    background:#8b0f1c;
}

.lottery-btn-primary:hover{
    background:#6f0b16;
    border-color:#6f0b16;
}

.lottery-btn-secondary{
    color:#8b0f1c;
    background:rgba(255,255,255,.06);
}

.lottery-btn-secondary:hover{
    color:#fff;
    background:#8b0f1c;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1050px){

    .loterias-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:850px){

    .loterias-main{
        padding-top:124px;
    }

    .lottery-cta{
        flex-direction:column;
        text-align:center;
    }

    .lottery-cta-text{
        flex-direction:column;
        gap:8px;
    }

}

@media(max-width:620px){

    .loterias-main{
        padding-top:100px;
    }

    .loterias-hero{
        padding:36px 4% 44px;
    }

    .loterias-title h1{
        font-size:46px;
    }

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

    .lot-card{
        min-height:220px;
    }

    .lottery-logo{
        width:170px;
        min-height:76px;
        padding:14px 18px;
    }

    .lottery-logo img{
        max-width:120px;
        max-height:42px;
    }

    .lottery-cta{
        width:92%;
        padding:18px;
    }

    .lottery-cta-actions{
        width:100%;
        flex-direction:column;
    }

    .lottery-btn{
        width:100%;
    }

}

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

    .lottery-track{
        animation:none;
    }

}
