/* =========================================================
   FAN IMPERIAL
   RULETA DE LA SUERTE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 0%,
            #092034 0%,
            #071829 45%,
            #031227 75%,
            #000000 100%
        );

    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

button,
input {
    font-family: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   PAGE
   ========================================================= */

.page {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    width: 100%;

    padding:
        25px
        20px
        10px;

    text-align: center;
}

.logo-container {
    min-height: 60px;

    display: flex;

    justify-content: center;
    align-items: center;
}

.logo {
    display: block;

    width: auto;
    max-width: 190px;
    max-height: 70px;

    object-fit: contain;
}

.brand-text {
    display: none;

    color: #BC8A55;

    font-size: 27px;

    font-weight: 800;

    letter-spacing: 4px;
}


/* =========================================================
   MAIN
   ========================================================= */

.main {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;

    padding:
        20px;

    flex: 1;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    text-align: center;

    margin-bottom: 32px;
}

.eyebrow {
    margin-bottom: 10px;

    color: #BC8A55;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 3px;

    text-transform: uppercase;
}

.hero h1 {
    margin: 0;

    color: #ffffff;

    font-size:
        clamp(
            40px,
            7vw,
            72px
        );

    line-height: 0.96;

    font-weight: 900;

    letter-spacing: -2px;
}

.hero h1 span {
    color: #BC8A55;
}

.hero p {
    max-width: 650px;

    margin:
        20px auto
        0;

    color: #BABABA;

    font-size: 17px;

    line-height: 1.6;
}


/* =========================================================
   CARD
   ========================================================= */

.card {
    background:
        linear-gradient(
            145deg,
            rgba(9, 32, 52, 0.96),
            rgba(3, 18, 39, 0.98)
        );

    border:
        1px solid
        rgba(188, 138, 85, 0.35);

    border-radius: 20px;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.45),

        inset 0 1px 0
        rgba(255, 255, 255, 0.04);
}


/* =========================================================
   FORMULARIO
   ========================================================= */

#formCard {
    max-width: 650px;

    margin: 0 auto;

    padding: 35px;
}

.form-title {
    margin-bottom: 25px;

    text-align: center;
}

.form-title h2 {
    margin:
        0
        0
        8px;

    color: #ffffff;

    font-size: 28px;
}

.form-title p {
    margin: 0;

    color: #BABABA;

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   INPUTS
   ========================================================= */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: #ffffff;

    font-size: 14px;

    font-weight: 600;
}

.form-group input {
    width: 100%;

    height: 50px;

    padding:
        0
        15px;

    background:
        rgba(0, 0, 0, 0.28);

    border:
        1px solid
        rgba(186, 186, 186, 0.25);

    border-radius: 10px;

    outline: none;

    color: #ffffff;

    font-size: 15px;

    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

.form-group input::placeholder {
    color:
        rgba(
            186,
            186,
            186,
            0.60
        );
}

.form-group input:focus {
    border-color: #BC8A55;

    box-shadow:
        0 0 0 3px
        rgba(188, 138, 85, 0.12);
}


/* =========================================================
   PRIVACY
   ========================================================= */

.privacy {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin:
        20px
        0;

    color: #BABABA;

    font-size: 12px;

    line-height: 1.5;
}

.privacy input {
    width: 17px;
    height: 17px;

    margin:
        1px
        0
        0;

    flex-shrink: 0;

    accent-color: #BC8A55;
}

.privacy label {
    cursor: pointer;
}


/* =========================================================
   BOTONES
   ========================================================= */

.btn {
    width: 100%;

    min-height: 54px;

    padding:
        14px
        20px;

    border: 0;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #BC8A55,
            #d4a56d
        );

    color: #000000;

    font-size: 16px;

    font-weight: 900;

    letter-spacing: .5px;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}

.btn:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 10px 30px
        rgba(188, 138, 85, 0.25);
}

.btn:active {
    transform:
        translateY(0);
}

.btn:disabled {
    opacity: .55;

    cursor:
        not-allowed;

    transform:
        none;

    box-shadow:
        none;
}


/* =========================================================
   RULETA SECTION
   ========================================================= */

#rouletteSection {
    display: none;

    max-width: 850px;

    margin:
        0 auto;

    padding:
        35px
        25px;

    text-align: center;
}

.roulette-title {
    margin-bottom: 25px;
}

.roulette-title h2 {
    margin:
        0
        0
        8px;

    color: #ffffff;

    font-size: 32px;

    font-weight: 900;
}

.roulette-title p {
    margin: 0;

    color: #BABABA;

    font-size: 14px;
}


/* =========================================================
   WRAPPER RULETA
   ========================================================= */

.roulette-wrapper {
    position: relative;

    width:
        min(
            560px,
            90vw
        );

    aspect-ratio:
        1 / 1;

    margin:
        25px auto
        30px;
}


/* =========================================================
   RULETA
   ========================================================= */

#wheel {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    border-radius: 50%;

    overflow: hidden;

    background:
        conic-gradient(
            from -30deg,

            #BC8A55 0deg 60deg,

            #071F34 60deg 120deg,

            #BC8A55 120deg 180deg,

            #071F34 180deg 240deg,

            #BC8A55 240deg 300deg,

            #071F34 300deg 360deg
        );

    border:
        8px solid
        #BC8A55;

    box-shadow:

        0 0 0 4px
        #031227,

        0 0 0 7px
        rgba(188, 138, 85, 0.42),

        0 25px 70px
        rgba(0, 0, 0, 0.65);

    transform:
        rotate(0deg);

    transition:
        transform
        5.2s
        cubic-bezier(
            .12,
            .75,
            .18,
            1
        );
}


/* =========================================================
   BORDE INTERIOR
   ========================================================= */

#wheel::after {
    content: "";

    position: absolute;

    inset: 12px;

    border-radius: 50%;

    border:
        1px solid
        rgba(255,255,255,.28);

    pointer-events: none;
}


/* =========================================================
   ETIQUETAS
   ========================================================= */

.wheel-label {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 100%;
    height: 100%;

    transform-origin:
        center center;

    display: flex;

    justify-content: center;
    align-items: flex-start;

    pointer-events: none;

    z-index: 5;
}


/*
   El texto se coloca sobre el radio
   de cada segmento.
*/

.wheel-label span {
    position: absolute;

    top: 14%;

    min-width: 90px;

    color: #ffffff;

    font-size:
        clamp(
            18px,
            3vw,
            29px
        );

    font-weight: 900;

    line-height: 1;

    white-space: nowrap;

    text-align: center;

    text-shadow:
        0 3px 5px
        rgba(0,0,0,.65);
}


/* =========================================================
   SEGMENTO 1
   CENTRO = 0°
   ========================================================= */

.label-1 {
    transform:
        translate(-50%, -50%)
        rotate(0deg);
}

.label-1 span {
    transform:
        rotate(0deg);
}


/* =========================================================
   SEGMENTO 2
   CENTRO = 60°
   ========================================================= */

.label-2 {
    transform:
        translate(-50%, -50%)
        rotate(60deg);
}

.label-2 span {
    transform:
        rotate(-60deg);
}


/* =========================================================
   SEGMENTO 3
   CENTRO = 120°
   ========================================================= */

.label-3 {
    transform:
        translate(-50%, -50%)
        rotate(120deg);
}

.label-3 span {
    transform:
        rotate(60deg);
}


/* =========================================================
   SEGMENTO 4
   CENTRO = 180°
   ========================================================= */

.label-4 {
    transform:
        translate(-50%, -50%)
        rotate(180deg);
}

.label-4 span {
    transform:
        rotate(0deg);
}


/* =========================================================
   SEGMENTO 5
   CENTRO = 240°
   ========================================================= */

.label-5 {
    transform:
        translate(-50%, -50%)
        rotate(240deg);
}

.label-5 span {
    transform:
        rotate(-60deg);
}


/* =========================================================
   SEGMENTO 6
   CENTRO = 300°
   ========================================================= */

.label-6 {
    transform:
        translate(-50%, -50%)
        rotate(300deg);
}

.label-6 span {
    transform:
        rotate(60deg);
}


/* =========================================================
   PUNTERO
   ========================================================= */

.wheel-pointer {
    position: absolute;

    z-index: 30;

    top: -14px;
    left: 50%;

    width: 54px;
    height: 65px;

    transform:
        translateX(-50%);

    background:
        linear-gradient(
            135deg,
            #d4a56d,
            #BC8A55
        );

    clip-path:
        polygon(
            50% 100%,
            0 0,
            100% 0
        );

    filter:
        drop-shadow(
            0 5px 5px
            rgba(0,0,0,.55)
        );
}

.wheel-pointer span {
    position: absolute;

    top: 7px;
    left: 50%;

    width: 27px;
    height: 27px;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background: #ffffff;

    border:
        5px solid
        #031227;
}


/* =========================================================
   CENTRO DE RULETA
   ========================================================= */

.wheel-center {
    position: absolute;

    z-index: 20;

    left: 50%;
    top: 50%;

    width: 100px;
    height: 100px;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            #d9b07e,
            #BC8A55 48%,
            #8f633b 100%
        );

    border:
        7px solid
        #031227;

    box-shadow:

        0 0 0 3px
        #BC8A55,

        0 8px 25px
        rgba(0,0,0,.55);

    display: flex;

    align-items: center;
    justify-content: center;

    color: #000000;

    font-size: 15px;

    font-weight: 900;

    letter-spacing: 1px;
}


/* =========================================================
   MENSAJE
   ========================================================= */

#spinMessage {
    min-height: 24px;

    margin:
        10px
        0
        20px;

    color: #BABABA;

    font-size: 14px;
}


/* =========================================================
   RESULTADO
   ========================================================= */

#resultCard {
    display: none;

    max-width: 650px;

    margin:
        30px auto
        0;

    padding: 35px;

    text-align: center;

    border:
        1px solid
        rgba(188,138,85,.55);

    background:
        linear-gradient(
            145deg,
            rgba(188,138,85,.12),
            rgba(3,18,39,.98)
        );
}

.result-kicker {
    margin-bottom: 10px;

    color: #BC8A55;

    font-size: 13px;

    font-weight: 900;

    letter-spacing: 3px;

    text-transform: uppercase;
}

#resultCard h2 {
    margin:
        0
        0
        10px;

    color: #ffffff;

    font-size: 34px;
}

#resultCard p {
    margin:
        8px
        0;

    color: #BABABA;

    line-height: 1.6;
}

#prize {
    display: inline-block;

    margin:
        15px
        0;

    color: #BC8A55;

    font-size:
        clamp(
            38px,
            7vw,
            64px
        );

    font-weight: 900;

    line-height: 1;
}


/* =========================================================
   CODIGO
   ========================================================= */

.code-box {
    max-width: 400px;

    margin:
        25px auto;

    padding: 20px;

    border:
        1px dashed
        rgba(188,138,85,.75);

    border-radius: 12px;

    background:
        rgba(0,0,0,.35);
}

.code-label {
    display: block;

    margin-bottom: 8px;

    color: #BABABA;

    font-size: 12px;

    letter-spacing: 2px;

    text-transform: uppercase;
}

#promoCode {
    color: #ffffff;

    font-size: 25px;

    font-weight: 900;

    letter-spacing: 2px;
}


/* =========================================================
   WHATSAPP
   ========================================================= */

#whatsappButton {
    width: 100%;

    max-width: 400px;

    min-height: 54px;

    margin:
        0 auto;

    padding:
        14px
        20px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #25D366;

    color: #ffffff;

    font-size: 16px;

    font-weight: 900;

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

#whatsappButton:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 10px 30px
        rgba(37,211,102,.25);
}


/* =========================================================
   CALL CENTER
   ========================================================= */

.call-center {
    margin-top: 25px;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(186,186,186,.15);
}

.call-center p {
    margin:
        0
        0
        7px;

    color: #BABABA;

    font-size: 13px;
}

.call-center a {
    color: #BC8A55;

    font-size: 22px;

    font-weight: 900;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    padding:
        30px
        20px;

    color:
        rgba(
            186,
            186,
            186,
            .65
        );

    font-size: 11px;

    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   LOADING
   ========================================================= */

.loading {
    pointer-events: none;

    opacity: .65;
}


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

@media (max-width: 768px) {

    .header {
        padding-top: 20px;
    }

    .main {
        padding: 15px;
    }

    .hero {
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero p {
        font-size: 15px;
    }

    #formCard {
        padding: 25px 20px;
    }

    #rouletteSection {
        padding:
            25px
            15px;
    }

    .roulette-title h2 {
        font-size: 27px;
    }

    .wheel-center {
        width: 78px;
        height: 78px;

        font-size: 12px;
    }

    .wheel-label span {
        font-size: 17px;
    }

    #resultCard {
        padding:
            28px
            20px;
    }

    #resultCard h2 {
        font-size: 28px;
    }
}


@media (max-width: 480px) {

    .logo {
        max-width: 155px;
        max-height: 55px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero p {
        font-size: 14px;
    }

    #formCard {
        padding:
            22px
            17px;
    }

    .roulette-wrapper {
        width:
            min(
                430px,
                94vw
            );
    }

    .wheel-label span {
        top: 15%;

        min-width: 70px;

        font-size: 14px;
    }

    .wheel-center {
        width: 66px;
        height: 66px;

        border-width: 5px;

        font-size: 10px;
    }

    .wheel-pointer {
        width: 45px;
        height: 55px;

        top: -10px;
    }

    .wheel-pointer span {
        width: 23px;
        height: 23px;

        top: 6px;
    }

    #prize {
        font-size: 48px;
    }

    #promoCode {
        font-size: 21px;
    }
}