:root {
    --primary-blue: #0072FF;
    --primary-purple: #7241FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #030014;
    font-family: 'Poppins', sans-serif;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.landing-wrapper {
    width: 100%;
    max-width: 1920px;
    padding: 0;
    display: flex;
    justify-content: center;
}

.landing-container {
    width: 100%;
    max-width: 1600px;
    container-type: inline-size;
    aspect-ratio: 16 / 9;
    background-image: url('fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

@media (min-width: 993px) {
    .landing-container {
        max-width: min(1600px, calc(100vh * (16 / 9)));
        max-height: 100vh;
    }
}

/* Sections */
.banner {
    flex: 1;
    position: relative;
    width: 100%;
}

.content-box {
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
}

/* =========================================================================
   TOP BANNER (SPORTS) 
   ========================================================================= */
.top-layout {
    justify-content: flex-end;
    padding-right: 5%;
}

.top-promo-flex {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
    width: 55%;
    /* Keep right-aligned and leave left empty for the logo/balls */
}

/* 1A. Text Block */
.main-text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.img-subtitle {
    height: clamp(0.9rem, 1.4vw, 1.6rem);
    height: clamp(0.9rem, 1.4cqw, 1.6rem);
    width: auto;
    object-fit: contain;
    margin-bottom: 5px;
    z-index: 10;
}

.img-title {
    height: clamp(2.5rem, 4.5vw, 5rem);
    height: clamp(2.5rem, 4.5cqw, 5rem);
    width: auto;
    object-fit: contain;
    margin-bottom: 5px;
    z-index: 10;
}

/* 1B. Main Amount (200.000 CLP) */
/* Contenedor principal para alinear el número y la moneda */
.monto-dorado-container {
    display: flex;
    align-items: baseline;
    /* Clave: mantiene "CLP" apoyado en la misma línea que los números */
    justify-content: center;
    margin-top: -10px;
    z-index: 10;
}

/* 
  CAPA FRONTAL (El Oro Brillante): 
*/
.texto-3d {
    position: relative;
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    z-index: 2;
    /* Mantiene el texto brillante por encima */

    /* Gradiente metálico ultra brillante */
    background: linear-gradient(to bottom,
            #FFFFe0 0%,
            #FFD700 25%,
            #D48800 60%,
            #FFDF00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* 
  CAPA BASE (Extrusión 3D): 
  Usamos ::before detrás del texto para generar el volumen sólido sin ensuciar el gradiente.
*/
.texto-3d::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    /* Va por detrás del texto principal */

    /* El color debe ser transparente para que la sombra haga el trabajo */
    -webkit-text-fill-color: transparent;
    color: transparent;

    /* Bloque 3D escalonado hacia abajo */
    text-shadow:
        0px 1px 0px #C78200,
        0px 2px 0px #B87600,
        0px 3px 0px #AA6A00,
        0px 4px 0px #9B5E00,
        0px 5px 0px #8D5300,
        0px 6px 0px #7E4700,
        0px 7px 0px #703B00,
        0px 8px 0px #613000,
        0px 9px 0px #522400,

        /* Sombra proyectada en el fondo */
        0px 15px 15px rgba(0, 0, 0, 0.4),
        0px 25px 35px rgba(0, 0, 0, 0.2);
}

/* Tamaños específicos */
.numero {
    font-size: clamp(4.5rem, 8.5vw, 10.5rem);
    font-size: clamp(4.5rem, 8.5cqw, 10.5rem);
    /* Scaled down perfectly */
}

.moneda {
    font-size: clamp(2.7rem, 5vw, 6.3rem);
    font-size: clamp(2.7rem, 5cqw, 6.3rem);
    /* 60% of amount */
    margin-left: 5px;
    /* Separación mínima */
}

/* Imagen del monto (reemplazo del CSS) */
.monto-imagen {
    width: 100%;
    max-width: clamp(300px, 45vw, 650px);
    max-width: clamp(300px, 45cqw, 650px);
    height: auto;
    object-fit: contain;
    margin-top: 0;
    z-index: 2;
}

/* 1C. Button Block */
.right-btn-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    z-index: 10;
}

.terms-black {
    font-size: 10px;
    color: #000;
    text-align: center;
    margin-top: 10px;
    line-height: 1.1;
    font-weight: 600;
}

.terms-white-row {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}


/* =========================================================================
   BOTTOM BANNER (CASINO)
   ========================================================================= */
.bottom-layout {
    justify-content: flex-start;
    padding-left: 8%;
}

.bottom-promo-flex {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 50%;
    /* Ensuring we don't bleed into the casino chips on the right */
    z-index: 10;
}

/* 2A & 2B. Percent and Stacked Text */
.promo-text {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.img-percent {
    height: clamp(3.4rem, 6.5vw, 8.0rem);
    height: clamp(3.4rem, 6.5cqw, 8.0rem);
    width: auto;
    object-fit: contain;
}

.img-stacked-text {
    height: clamp(2.6rem, 4.6vw, 5.7rem);
    height: clamp(2.6rem, 4.6cqw, 5.7rem);
    width: auto;
    object-fit: contain;
}

/* 2C. Sub-details */
.sub-details-flex {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    margin-left: 3px;
    z-index: 10;
}

.img-sub-detail {
    height: clamp(0.9rem, 1.4vw, 1.6rem);
    height: clamp(0.9rem, 1.4cqw, 1.6rem);
    width: auto;
    object-fit: contain;
}

.img-sub-detail-large {
    height: clamp(1.7rem, 2.7vw, 3.2rem);
    height: clamp(1.7rem, 2.7cqw, 3.2rem);
    width: auto;
    object-fit: contain;
}

/* 2D. Left Button Block */
.left-btn-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* =========================================================================
   BUTTONS AND ANIMATIONS
   ========================================================================= */

.cta-btn {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    color: white;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1rem, 1.3vw, 1.6rem);
    font-size: clamp(1rem, 1.3cqw, 1.6rem);
    /* Scaled down */
    padding: 10px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.cta-btn .arrows {
    font-weight: 900;
}

/* Glassy Reflection */
.cta-btn::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 45%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1));
    border-radius: 50px 50px 10px 10px;
    pointer-events: none;
    z-index: 1;
}

/* Shine Animation */
.cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.7), transparent);
    transform: skewX(-20deg);
    animation: shine 3.5s infinite;
    z-index: 2;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* Pulse Animation */
.animated-btn {
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
    }

    100% {
        transform: scale(1.04);
        box-shadow: 0 0 25px 8px rgba(0, 210, 255, 0.8);
    }
}

.cta-btn:hover {
    animation: none;
    /* override pulse */
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 210, 255, 1), 0 0 15px rgba(255, 255, 255, 0.5);
    filter: brightness(1.15);
}


/* =========================================================================
   RESPONSIVE DESIGN SYSTEM
   ========================================================================= */

/* --- Laptops and Large Tablets (1200px and below) --- */
@media (max-width: 1200px) {
    .top-promo-flex {
        width: 70%;
    }

    .bottom-promo-flex {
        width: 65%;
    }
}

/* --- Tablets (992px and below) --- */
@media (max-width: 992px) {
    .top-promo-flex {
        width: 90%;
    }

    .bottom-promo-flex {
        width: 90%;
    }

    .landing-container {
        aspect-ratio: 1 / 1;
    }

    /* More square to accommodate content */
    .top-layout {
        padding-right: 2%;
    }

    .bottom-layout {
        padding-left: 2%;
    }
}

/* --- Mobile Devices (768px and below) --- */
@media (max-width: 768px) {
    .landing-container {
        aspect-ratio: auto;
        min-height: 100vh;
        background-image: url('mobile_bg.png');
        background-position: top center;
        background-size: 100% 100%;
    }

    .banner {
        min-height: 50vh;
        padding: 7vh 10px 3vh 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Cambiamos el flujo de absoluto a relativo para que el alto lo dicte el contenido */
    .content-box {
        position: relative;
        height: auto;
    }

    .top-layout,
    .bottom-layout {
        padding: 0;
        justify-content: center;
    }

    .top-promo-flex,
    .bottom-promo-flex {
        width: 100%;
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    /* Stack everything vertically */
    .top-promo-flex {
        flex-direction: column;
        gap: 15px;
    }

    .bottom-promo-flex {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    /* Enhance touch targets on mobile (Botón más pequeño) */
    .cta-btn {
        width: 100%;
        max-width: 180px;
        justify-content: center;
        padding: 5px 12px;
        font-size: 0.8rem;
        box-shadow: 0 0 5px rgba(0, 210, 255, 0.4);
    }

    /* Reduce sizes for sports headers on mobile */
    .img-title {
        height: clamp(1.5rem, 8vw, 2.2rem);
    }

    .monto-imagen {
        max-width: clamp(200px, 60vw, 280px);
    }

    .right-btn-block {
        margin-top: -20px;
        width: 100%;
    }

    .left-btn-block {
        width: 100%;
        align-items: center;
    }

    /* Casino specific mobile alignments */
    .promo-text {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }

    .sub-details-flex {
        flex-wrap: nowrap;
        justify-content: center;
        margin-left: 0;
        margin-bottom: 20px;
    }

    .terms-white-row {
        flex-direction: column;
        gap: 2px;
        align-items: center;
        margin-top: 10px;
    }
}