/* ============ @FONT-FACE FUTURA LT CONDENSED ============ */
@font-face {
    font-family: "FuturaLTCondensed";
    src:
        url("/keno/fonts/Futura LT Condensed Bold.otf") format("opentype"),
        url("/keno/fonts/FuturaLT-Condensed.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "FuturaLTCondensed", Arial, sans-serif !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "FuturaLTCondensed", Arial, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.5;
    overflow-x: hidden;
    font-weight: 700;
    font-size: 24px;
}

strong {
    font-weight: 900;
}

/* Titulos: negro + bold extra grueso */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
    font-weight: 900;
    color: #000;
}

img {
    max-width: 100%;
    display: block;
}

/* ============ HERO ============ */
.hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    line-height: 0;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* ============ DESTELLOS DECORATIVOS DE FONDO ============ */
body {
    position: relative;
}

.destellos-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.destello-bg {
    position: absolute;
    width: 35vw;
    max-width: 520px;
    min-width: 260px;
    height: auto;
    pointer-events: none;
    user-select: none;
    opacity: .85;
}

/* DESTELLO 2 - Derecha, cerca de ¿Cómo jugar? (desde abajo) */
.destello-bg-2 {
    top: auto;
    bottom: 2400px;
    right: 0;
    transform: translateX(18%);
}

/* DESTELLO 3 - Izquierda, cerca de Plan de premios (desde abajo) */
.destello-bg-3 {
    top: auto;
    bottom: 1700px;
    left: 0;
    transform: translateX(-20%);
}

/* DESTELLO 4 - Derecha, cerca de la tabla (desde abajo) */
.destello-bg-4 {
    top: auto;
    bottom: 900px;
    right: 0;
    transform: translateX(20%);
}

/* DESTELLO 5 - Izquierda, anclado al footer */
.destello-bg-5 {
    top: auto;
    bottom: 180px;
    left: 0;
    transform: translateX(-20%);
}

/* DESTELLO 6 - Izquierda, a la altura de ¿Qué es Keno? */
.destello-bg-6 {
    top: auto;
    bottom: 3600px;
    left: 0;
    transform: translateX(-20%);
}

/* DESTELLO 7 - Derecha, a la altura de ¿Qué es Keno? */
.destello-bg-7 {
    top: auto;
    bottom: 5950px;
    right: 0;
    transform: translateX(20%) scaleX(-1);
}

/* Elevar contenido por encima de destellos */
.hero,
.cta-buttons,
.section-que-es,
.section-como-jugar,
.banner-mitad,
.section-premios,
.footer {
    position: relative;
    z-index: 1;
    overflow: visible;
}

/* Asegurar que el contenido interno quede sobre los destellos anclados */
.section-como-jugar>*:not(.destello-anchor),
.section-premios>*:not(.destello-anchor) {
    position: relative;
    z-index: 1;
}

.cta-buttons,
.section-que-es,
.section-como-jugar,
.section-premios {
    background: transparent;
}

/* ============ BOTONES PRINCIPALES ============ */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 20px 20px;
    margin-top: -90px;
    position: relative;
    z-index: 3;
    flex-wrap: wrap;
    background: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 21px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
    border: none;
    cursor: pointer;
    min-width: 240px;
    justify-content: center;
}

.btn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.btn-yellow {
    background: linear-gradient(180deg, #ffd54a 0%, #f5b400 100%);
    color: #000;
}

.btn-blue {
    background: linear-gradient(180deg, #3b6fe0 0%, #1f4db0 100%);
    color: #fff;
}

/* ============ SECCIONES COMUNES ============ */
.section-title {
    text-align: center;
    font-size: 44px;
    font-weight: 800;
    color: #000;
    margin-bottom: 20px;
}

.section-desc {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 35px;
    font-size: 22px;
    color: #333;
    padding: 0 20px;
    line-height: 1.7;
}

.section-que-es {
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-como-jugar {
    padding: 40px 20px 0;
    max-width: 1100px;
    margin: 0 auto 0;
    padding-bottom: 0;
}

.section-premios {
    padding: 0 20px 40px;
    max-width: 1100px;
    margin: -90px auto 0;
    position: relative;
    z-index: 2;
}

/* ============ TARJETAS INFO (¿Qué es Keno?) ============ */
.cards-grid {
    display: grid;
    gap: 20px;
    margin: 0 auto;
    max-width: 1000px;
}

.cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28), 0 8px 16px rgba(0, 0, 0, .14);
    border: 1px solid #eee;
    transition: transform .2s ease, box-shadow .2s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 55px rgba(0, 0, 0, .36), 0 10px 20px rgba(0, 0, 0, .18);
}

.info-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.info-card h3 {
    font-size: 31px;
    font-weight: 900;
    color: #000;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 23px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
}

/* ============ STEPS (¿Cómo jugar?) ============ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 750px;
    margin: 0 auto 35px;
}

.step-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28), 0 8px 16px rgba(0, 0, 0, .14);
    border: 1px solid #eee;
    transition: transform .2s ease, box-shadow .2s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 55px rgba(0, 0, 0, .36), 0 10px 20px rgba(0, 0, 0, .18);
}

.step-card {
    text-align: center;
}

.step-card h4 {
    font-size: 28px;
    font-weight: 900;
    color: #f59026;
    margin: 0 0 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #f59026;
    color: #fff;
    border-radius: 50%;
    font-size: 23px;
    font-weight: 900;
    flex-shrink: 0;
}

.step-card p {
    font-size: 23px;
    font-weight: 700;
    color: #222;
    padding-left: 0;
    text-align: center;
    line-height: 1.4;
}

.center-button {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
    position: relative;
    z-index: 5;
}

/* ============ BANNER MITAD ============ */
.banner-mitad {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -280px;
    margin-bottom: -280px;
    padding: 0;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
    display: block;
    position: relative;
    pointer-events: none;
}

.banner-mitad>img.responsive-banner {
    width: 115%;
    max-width: none;
    height: auto;
    display: block;
    margin-left: -7.5%;
    padding: 0;
    object-fit: cover;
    object-position: left center;
    position: relative;
    z-index: 1;
}

/* ============ PLAN DE PREMIOS - TARJETAS ============ */
.cards-premios .premio-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 20px 46px rgba(0, 0, 0, .30), 0 8px 18px rgba(0, 0, 0, .16);
    border: 1px solid #eee;
    transition: transform .2s ease, box-shadow .2s ease;
}

.cards-premios .premio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, .38), 0 10px 22px rgba(0, 0, 0, .20);
}

.cards-premios .premio-card h3 {
    font-size: 35px;
    font-weight: 900;
    color: #f59026;
    margin-bottom: 12px;
}

.cards-premios .premio-card p {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
}

/* ============ TABLA PRINCIPAL DE PREMIOS ============ */
.table-wrapper {
    margin: 35px auto;
    max-width: 1000px;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .1);
}

.prize-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 750px;
    table-layout: fixed;
}

.prize-table colgroup col.col-acierto {
    width: 45px;
}

.prize-table colgroup col.col-num {
    width: 45px;
}

.prize-table colgroup col.col-data {
    width: auto;
}

.prize-table th,
.prize-table td {
    border: 2px solid #2a1456;
    text-align: center;
    padding: 12px 4px;
    font-size: 20px;
    font-weight: 800;
    overflow: hidden;
    white-space: nowrap;
}

.prize-table .main-header {
    background: #f59026;
    color: #fff;
    font-size: 23px;
    padding: 14px;
    letter-spacing: 1px;
    font-weight: 900;
}

.prize-table .num-header {
    background: #2a1456;
    color: #fff;
    padding: 10px 4px;
    font-weight: 900;
}

.prize-table .num-col {
    background: #2a1456;
    color: #fff;
    font-weight: 900;
    width: 50px;
}

.prize-table .corner {
    background: #f59026;
    color: #fff;
    width: 45px;
    position: relative;
    vertical-align: middle;
    text-align: center;
}

.prize-table .aciertos-side {
    background: #f59026;
    color: #fff;
    width: 45px;
    vertical-align: middle;
    text-align: center;
}

.rotated {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 900;
    letter-spacing: 3px;
    display: inline-block;
    color: #fff;
    font-size: 20px;
}

.prize-table .row-label {
    background: #2a1456;
    color: #fff;
    font-weight: 900;
    width: 50px;
}

.prize-table tbody td {
    background: #fff;
    color: #000;
    font-weight: 800;
}

.prize-table .cell-light {
    background: #d7e9f7;
    color: #000;
    font-weight: 800;
}

.prize-table .cell-highlight {
    background: #f59026;
    color: #fff;
    font-weight: 900;
}

/* ============ MINI TABLES ============ */
.mini-tables-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 20px auto;
    max-width: 1000px;
    align-items: start;
}

.mini-table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .26), 0 6px 14px rgba(0, 0, 0, .14);
    border: 2px solid #000;
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
}

.mini-table:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(0, 0, 0, .34), 0 8px 18px rgba(0, 0, 0, .18);
}

.mini-table[open] {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(0, 0, 0, .34), 0 8px 18px rgba(0, 0, 0, .18);
}

.mini-title {
    background: #fff;
    color: #000;
    font-weight: 900;
    text-align: center;
    padding: 15px 32px 15px 14px;
    font-size: 23px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.mini-title::-webkit-details-marker {
    display: none;
}

.mini-title::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #2a1456;
    border-bottom: 2px solid #2a1456;
    transform: translateY(-70%) rotate(45deg);
    transition: transform .25s ease;
}

.mini-table[open] .mini-title {
    background: #2a1456;
    color: #fff;
    border-bottom-color: #000;
}

.mini-table[open] .mini-title::after {
    border-color: #fff;
    transform: translateY(-30%) rotate(-135deg);
}

.mini-table[open]>table {
    animation: miniFade .25s ease;
}

@keyframes miniFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mini-table table {
    width: 100%;
    border-collapse: collapse;
}

.mini-table th {
    background: #f3f3f3;
    color: #000;
    font-size: 20px;
    padding: 12px 6px;
    font-weight: 900;
    border-bottom: 2px solid #2a1456;
}

.mini-table th+th {
    border-left: 2px solid #2a1456;
}

.mini-table td {
    text-align: center;
    padding: 11px 6px;
    font-size: 21px;
    font-weight: 800;
    color: #000;
    border-bottom: 2px solid #2a1456;
}

.mini-table td+td {
    border-left: 2px solid #2a1456;
}

.mini-table tr:last-child td {
    border-bottom: none;
}

/* ============ FOOTER ============ */
.footer {
    background: #e8e8e8;
    padding: 25px 20px;
    text-align: center;
    margin-top: 30px;
}

.footer-logos {
    margin-bottom: 18px;
}

.logo-principal {
    max-width: 480px;
    width: 120%;
    margin: 0 auto;
}

.legal-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.legal-badges img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
}

.legal-badges img[alt="Colaborador autorizado"] {
    max-height: 22px;
    max-width: 110px;
}

.legal-badges img[alt="Vigilado Superintendencia"] {
    max-height: 35px;
}

/* ============ RESPONSIVE - TABLET ============ */
@media (max-width: 992px) {
    .cards-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .mini-tables-row {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .section-title {
        font-size: 32px;
    }
}

/* ============ RESPONSIVE - MÓVIL ============ */
@media (max-width: 768px) {
    .cta-buttons {
        padding: 10px 15px 15px;
        gap: 12px;
        margin-top: -30px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
        min-width: 180px;
    }

    .btn img {
        width: 20px;
        height: 20px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-desc {
        font-size: 16px;
    }

    .section-que-es,
    .section-como-jugar,
    .section-premios {
        padding: 30px 15px;
    }

    .section-premios {
        margin-top: 0;
    }

    .hero {
        width: 100%;
        margin: 0;
        padding: 0;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-bg {
        width: 100%;
        max-width: none;
        margin: 0;
        object-position: center;
    }

    .banner-mitad {
        width: 100%;
        padding: 0;
        left: auto;
        right: auto;
        margin: -130px 0;
    }

    .banner-mitad img {
        width: 100%;
        max-width: none;
        margin: 0;
        object-position: center;
    }

    .banner-mitad>img.responsive-banner {
        width: 100%;
        margin-left: 0;
    }

    .destello-bg {
        width: 60vw;
        max-width: 320px;
        min-width: 180px;
        opacity: .5;
    }

    .destello-bg-2 {
        top: auto;
        bottom: 3100px;
        transform: translateX(28%);
    }

    .destello-bg-3 {
        top: auto;
        bottom: 2100px;
        transform: translateX(-30%);
    }

    .destello-bg-4 {
        top: auto;
        bottom: 1200px;
        transform: translateX(30%);
    }

    .destello-bg-5 {
        top: auto;
        bottom: 140px;
        transform: translateX(-30%);
    }

    .destello-bg-6 {
        bottom: 4400px;
        transform: translateX(-30%);
    }

    .destello-bg-7 {
        bottom: 4550px;
        transform: translateX(30%) scaleX(-1);
    }

    .cards-3 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .info-card img {
        width: 70px;
        height: 70px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cards-premios {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }

    .cards-premios .premio-card h3 {
        font-size: 18px;
    }

    .cards-premios .premio-card p {
        font-size: 12px;
    }

    .prize-table {
        min-width: 600px;
    }

    .prize-table th,
    .prize-table td {
        font-size: 13px;
        padding: 7px 3px;
    }

    .prize-table .main-header {
        font-size: 15px;
    }

    .mini-tables-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mini-title {
        font-size: 16px;
        padding: 11px 28px 11px 12px;
    }

    .mini-title::after {
        right: 12px;
        width: 8px;
        height: 8px;
    }

    .mini-table th {
        font-size: 14px;
        padding: 7px;
    }

    .mini-table td {
        font-size: 15px;
        padding: 7px;
    }

    .legal-badges {
        gap: 12px;
    }

    .legal-badges img {
        max-height: 32px;
    }

    .legal-badges img[alt="Colaborador autorizado"] {
        max-height: 15px;
        max-width: 80px;
    }

    .legal-badges img[alt="Vigilado Superintendencia"] {
        max-height: 25px;
    }

    .logo-principal {
        max-width: 320px;
    }
}

/* ============ RESPONSIVE - MÓVIL PEQUEÑO ============ */
@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 85%;
        max-width: 280px;
    }

    .cards-premios {
        grid-template-columns: 1fr !important;
    }

    .section-title {
        font-size: 24px;
    }
}

/* ============ TABLET (769px - 992px) ============ */
@media (min-width: 769px) and (max-width: 992px) {
    .destello-bg {
        width: 45vw;
        max-width: 400px;
        min-width: 220px;
        opacity: .7;
    }

    .destello-bg-2 {
        bottom: 2700px;
        transform: translateX(22%);
    }

    .destello-bg-3 {
        bottom: 1900px;
        transform: translateX(-25%);
    }

    .destello-bg-4 {
        bottom: 1050px;
        transform: translateX(25%);
    }

    .destello-bg-5 {
        bottom: 160px;
        transform: translateX(-25%);
    }

    .destello-bg-6 {
        bottom: 3900px;
        transform: translateX(-25%);
    }

    .destello-bg-7 {
        bottom: 4050px;
        transform: translateX(25%) scaleX(-1);
    }
}

/* ============ PANTALLAS GRANDES (>1400px) ============ */
@media (min-width: 1400px) {
    .destello-bg {
        width: 32vw;
        max-width: 560px;
        min-width: 380px;
    }

    .destello-bg-2 {
        bottom: 2200px;
        transform: translateX(14%);
    }

    .destello-bg-3 {
        bottom: 1550px;
        transform: translateX(-18%);
    }

    .destello-bg-4 {
        bottom: 850px;
        transform: translateX(18%);
    }

    .destello-bg-5 {
        bottom: 200px;
        transform: translateX(-18%);
    }

    .destello-bg-6 {
        bottom: 3350px;
        transform: translateX(-18%);
    }

    .destello-bg-7 {
        bottom: 3500px;
        transform: translateX(18%) scaleX(-1);
    }
}

/* ============ PANTALLAS MUY GRANDES (>1800px) ============ */
@media (min-width: 1800px) {
    .destello-bg {
        width: 26vw;
        max-width: 640px;
    }

    .destello-bg-2 {
        bottom: 2100px;
        transform: translateX(10%);
    }

    .destello-bg-3 {
        bottom: 1450px;
        transform: translateX(-14%);
    }

    .destello-bg-4 {
        bottom: 800px;
        transform: translateX(14%);
    }

    .destello-bg-5 {
        bottom: 220px;
        transform: translateX(-14%);
    }

    .destello-bg-6 {
        bottom: 3250px;
        transform: translateX(-14%);
    }

    .destello-bg-7 {
        bottom: 3400px;
        transform: translateX(14%) scaleX(-1);
    }
}