/*====================================
RESET
====================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#f5f7fb;
    font-family:Arial,Helvetica,sans-serif;
    color:#222;
    line-height:1.4;
}

/*====================================
CONTENEDOR
====================================*/

.drr-page{
    max-width:1400px;
    margin:40px auto;
    padding:20px;
}

/*====================================
BANNER
====================================*/

.drr-hero{
    background:#0A3D91;
    color:#fff;
    text-align:center;
    padding:45px 30px;
    border-radius:20px;
    margin-bottom:35px;
}

.drr-logo img{
    width:120px;
    display:block;
    margin:0 auto 20px;
}

.drr-hero h1{
    font-size:42px;
    font-weight:800;
    margin-bottom:10px;
}

.drr-hero p{
    font-size:20px;
}

/*====================================
CONTENIDO
====================================*/

.drr-main{

    display:flex;
    gap:35px;
    align-items:flex-start;

}

/*====================================
FORMULARIO
====================================*/

.drr-form-card{
    background:#ffffff;
    border-radius:20px;
    padding:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.drr-group{
    margin-bottom:20px;
}

.drr-group label{
    display:block;
    margin-bottom:8px;
    font-weight:700;
    color:#0A3D91;
}

.drr-group input{
    width:100%;
    height:50px;
    border:2px solid #d9e2ef;
    border-radius:10px;
    padding:0 15px;
    font-size:15px;
    transition:.25s;
}

.drr-group input:focus{
    outline:none;
    border-color:#0A3D91;
}

.drr-btn{
    width:100%;
    height:55px;
    border:none;
    border-radius:12px;

    font-size:18px;
    font-weight:700;
    cursor:pointer;
    transition:.25s;
    background:inherit;
    border:inherit;
    color:inherit;  
}

.drr-btn:hover{
    background:var(--drr-btn-bg,#D71920);
    border-color:var(--drr-btn-bg,#D71920);
    filter:brightness(.9);
}

/*====================================
RULETA
====================================*/

.drr-wheel-card{
    background:#ffffff;
    border-radius:20px;
    padding:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    min-height:700px;
    padding:30px;
}

#drr-wheel{
    width:560px;    /* tama���o ruleta */ 
    height:560px;
    position:relative;
}

.drr-wheel-wrapper{

    position:relative;

    width:560px;        /* tama���o ruleta */ 
    height:560px;
    
    padding:18px;
    box-sizing:border-box;    

    margin:0 auto;

    display:flex;
    justify-content:center;
    align-items:center;

    border:3px solid #F7C600;      /* amarillo */

    border-radius:50%;

    background:radial-gradient(
        circle at 30% 30%,
        #1b57b8 0%,
        #0A3D91 55%,
        #062f74 100%
    );;            /* anillo azul */

    box-shadow:
        0 6px 14px rgba(0,0,0,.12);
    
}

.drr-wheel-wrapper::after{

    content:"";

    position:absolute;

    inset:45px;

    border-radius:50%;

    box-shadow:
       inset 0 0 16px rgba(0,0,0,.36);

    pointer-events:none;

}

.drr-wheel-svg{
    width:100%;
    height:100%;
    display:block;
    transition:transform 6s cubic-bezier(.12,.95,.18,1);
    transform-origin:center;
}

.drr-center{
    width:100px;
    height:100px;
    border-radius:50%;
    background:#0A3D91;
    border:8px solid #F7C600;
    color:#ffffff;
    font-size:36px;
    font-weight:900;
    display:flex;
    justify-content:center;
    align-items:center;
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    z-index:20;
    box-shadow:0 0 20px rgba(0,0,0,.25);
}

.drr-pointer{

    position:absolute;

    top:70px;     /* flecha roja */ 

    left:50%;

    transform:translateX(-50%);

    width:0;
    height:0;

    border-left:15px solid transparent;
    border-right:15px solid transparent;
    border-top:30px solid #D71920;

    z-index:20;

}

/*====================================
RESULTADO
====================================*/

.drr-result{

    margin-top:35px;
    background:#ffffff;
    border-radius:20px;
    padding:30px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    display:none;

}

.drr-result.show{

    display:block;
    animation:drrFade .4s ease;

}

.drr-result h2{

    font-size:34px;
    color:#D71920;
    margin-bottom:15px;

}

.drr-result p{

    font-size:22px;
    font-weight:700;
    color:#0A3D91;

}

.drr-result small{

    display:block;
    margin-top:10px;
    font-size:16px;
    color:#555;

}

/*====================================
ANIMACIONES
====================================*/

@keyframes drrFade{

    from{

        opacity:0;
        transform:translateY(20px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

/*====================================
MODAL
====================================*/
.drr-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:99999;
}

.drr-modal.activo{
    display:flex;
}

.drr-modal-box{
    width:90%;
    max-width:420px;
    background:#fff;
    border-radius:12px;
    padding:30px;
    text-align:center;
    box-shadow:0 15px 40px rgba(0,0,0,.25);
}

.drr-modal-box h2{
    margin:0 0 15px;
    color:#0a3d91;
}

#drr-modal-premio{
    font-size:22px;
    font-weight:bold;
    margin:20px 0 30px;
}

#drr-continuar{
    padding:14px 28px;
    border:0;
    border-radius:8px;
    background:#0a3d91;
    color:#fff;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
}

#drr-continuar:hover{
    opacity:.9;
}

.drr-modal-success{
    background:#28a745;
    color:#fff !important;
    padding:12px 20px;
    border-radius:8px;
    text-align:center;
    margin:0 0 20px;
}

.drr-modal-success,
.drr-modal-success *{
    color:#fff !important;
}

.drr-modal-error{
    background:#dc3545;
    color:#fff !important;
    padding:12px 20px;
    border-radius:8px;
    text-align:center;
    margin:0 0 20px;
}

.drr-modal-error,
.drr-modal-error *{
    color:#fff !important;
}

.drr-modal{

    opacity:0;
    visibility:hidden;
    transition:opacity .25s ease;

}

.drr-modal.activo{

    opacity:1;
    visibility:visible;

}

.drr-modal .drr-modal-content{

    transform:scale(.85);
    transition:transform .25s ease;

}

.drr-modal.activo .drr-modal-content{

    transform:scale(1);

}

.drr-mensaje-ganador{

    margin-top:20px;
    padding-top:15px;
    border-top:1px solid #e5e5e5;

    font-size:15px;
    line-height:1.6;

    color:#555;

}

/*====================================
RESPONSIVE
====================================*/

@media(max-width:991px){

    .drr-main{

        display:flex;
        flex-direction:column;

    }

    .drr-wheel-card{
    
        min-height:auto;
        padding:15px;
    
    }

 
    #drr-wheel{
    
        width:100%;
        max-width:300px;
        height:auto;
        margin:0 auto;
    
    }

.drr-wheel-wrapper{
    width:300px;
    height:300px;
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
}

.drr-wheel-wrapper::before{
    content:"";
    position:absolute;
    width:282px;
    height:282px;
    border-radius:50%;
    background:#1d6fe8;
    z-index:0;
}

    .drr-wheel{
        width:300px;
        height:300px;
    }

    .drr-pointer{
    
        top:15px;
    
    }

.drr-wheel-ring{
    position:absolute;
    inset:0;
    border-radius:50%;
    pointer-events:none;
    z-index:0;

    background:#0a3d91;

    border:2px solid #f7c600;

    box-shadow:

        inset 0 0 0 0px #ffffff,
        inset 0 10px 18px rgba(0,0,0,.25);
}

.drr-wheel-svg{
    position:relative;
    z-index:2;
    overflow:visible;
}

.drr-center{
    z-index:3;
}


}

@media(max-width:576px){

    .drr-hero h1{

        font-size:30px;

    }

    .drr-hero p{

        font-size:16px;

    }

    .drr-form-card,
    .drr-wheel-card,
    .drr-result{

        padding:20px;

    }

    .drr-center{

        width:80px;
        height:80px;
        font-size:28px;

    }

}

.drr-bulb{
    transition:.18s;
}

.drr-bulb.on{
    opacity:1;
}

.drr-bulb.off{
    opacity:.35;
}