/* ==================================== */
/* FONDOS (BACKGROUND)  */
/* ==================================== */

.bg-cheddar {
    background: url('../images/cheddar.webp') no-repeat bottom center/cover;
    min-height: 200px;
}

.bg-chorreado {
    background: url('../images/rikesa_chorreado.webp') no-repeat bottom center/cover;
    min-height: 150px;
}

.bg-dinamicas {
    background: url('../images/fondo-rikesa.webp') no-repeat center/cover;
}


.druk {
    font-family: 'DrukCyr Bold' !important;
}

.poppins-bold {
    font-family: 'Poppins Bold' !important;
}

.poppins-medium {
    font-family: 'Poppins Medium' !important;
}

input,
select,
textarea,
.form-control {
    font-family: 'Poppins bold' !important;
    color: #010517 !important;
}

/* ==================================== */
/* UTILIDADES Y COMPONENTES */
/* ==================================== */

.nav-link.active,
.nav-link:hover {
    color: #0F1E6A !important;
}


.border-blue-shadow {
    text-shadow: 4px 4px 0 #001C5A, -4px 4px 0 #001C5A, 4px -4px 0 #001C5A, -4px -4px 0 #001C5A, 4px 0 0 #001C5A, -4px 0 0 #001C5A, 0 4px 0 #001C5A, 0 -4px 0 #001C5A;
}

.border-white-shadow {
    text-shadow: 4px 4px 0 #fff, -4px 4px 0 #fff, 4px -4px 0 #fff, -4px -4px 0 #fff, 4px 0 0 #fff, -4px 0 0 #fff, 0 4px 0 #fff, 0 -4px 0 #fff;
}

.text-big {
    font-size: 3.5rem;
}

.show_password.rounded-pill {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cursor-pointer {
    cursor: pointer;
}

.mnh-100 {
    min-height: 100vh !important;
}

div#offcanvasNavbar {
    background: #FF9C00;
    opacity: 0.9;
}

.loading-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    text-align: center;
}


/* --- Bloqueador (Overlay) --- */
#blocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

/* --- Contenedor Principal del Toast (Inferior Derecha) --- */
.notify-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1060;
    min-width: 300px;
    max-width: 400px;
    font-family: 'Poppins Regular' !important;
    background-color: #141414;
    color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
    border: none;
    /*  transform: translateY(0);
    opacity: 1;
    transition: all 0.5s ease-out; */
}

/* --- Encabezado del Toast --- */
.notify-container .toast-header {
    background-color: #141414;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Cuerpo del Toast --- */
.notify-container .toast-body {
    padding: 1rem;
    color: rgba(255, 255, 255, 0.9);
    /* Blanco ligeramente atenuado */
}

.notify-container.hide {
    transform: translateY(100px);
    opacity: 0;
}

.modal.fade.show {
    background: #00000096;
}

.modal-dialog.modal-md.modal-dialog-centered .modal-content {
    background: url('../images/modal_rikesa.webp');
    background-size: cover;
    min-height: 480px;
    min-width: 540px;
    background-repeat: no-repeat;
    background-position: center center;
    border: 0px !important;
    box-shadow: none !important;
    padding: 2em 2em 5em 2em;
}

.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mxh-600 {
    max-height: 600px !important;
}

.mxh-400 {
    max-height: 400px !important;
}


.modal-title {
    word-spacing: 0.2em !important;
}


.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 28px;
    height: 28px;
    border-radius: 50% !important;
    border: 2.5px solid #ccc;
    background-color: white;
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
}

.form-check-input:not(:checked) {
    background-color: white;
    border-color: #ccc;
}

.form-check-input:checked {
    background-color: #FF9101;
    /* amarillo */
    border-color: #FF9101;
    box-shadow: none;
}

.form-check-input:checked::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 10px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    pointer-events: none;
}

.form-check-input:hover {
    border-color: #FF9101;
}

main#mainAuth {
    margin-top: -60px;
}

input.otp-box.form-control[type=number] {
    width: 80px;
    border: 3px solid white;
    height: 80px;
    margin: 0 0.5em;
    background: #FFCA06;
    color: white !important;
    font-size: 2.5rem;
    text-align: center;
    -moz-appearance: textfield !important;
}

input.otp-box.form-control[type=number]::-webkit-inner-spin-button,
input.otp-box.form-control[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.box-instruccion {
    width: 300px;
    height: 160px;
    padding: 15px;
    border-radius: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box-instruccion p,
.box-instruccion span {
    font-size: 20px !important;
}

.box-instruccion.bg-purple {
    background: #3B0055;
    border: 2px solid #BA00FF;
    box-shadow: 8px 8px 0px 0px white;
    rotate: -2deg;
    z-index: 2;
}

.box-instruccion.bg-purple .nro-instruccion {
    position: absolute;
    left: -30px;

}

.box-instruccion.bg-blue {
    background: #1E9AE4;
    border: 2px solid #27BCEE;
    box-shadow: 8px 8px 0px 0px white;
    rotate: 0deg;
    z-index: 1;
}

.box-instruccion.bg-blue .nro-instruccion {
    position: absolute;
    bottom: -30px;
    width: 60px;
}


.box-instruccion.bg-green {
    background: #40B100;
    border: 2px solid #355300;
    box-shadow: 8px 8px 0px 0px white;
    rotate: 5deg;
}

.box-instruccion.bg-green .nro-instruccion {
    position: absolute;
    right: -30px;
    width: 60px;
    top: -15px;
}

.box-instruccion.bg-purple .flecha-abajo {
    position: absolute;
    right: -180px;
    width: 200px;
    bottom: -20px;
}

.box-instruccion.bg-blue .flecha-arriba {
    position: absolute;
    width: 200px;
    right: -210px;
    top: -30px;
}

main#mainEvento {
    margin-top: -50px;
}

div#informacionEventoModal .modal-title {
    font-size: 50px !important;
    letter-spacing: 2px;
}

div#informacionEventoModal .modal-body p {
    font-size: 22px;
    text-shadow: 2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff;
}

div#informacionEventoModal .modal-footer p {
    font-size: 22px;
    text-shadow: 2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000, -2px -2px 0 #000, 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000;
}

body.modal-open,
div#informacionEventoModal {
    padding: 0 !important;
}

/* --- Esta vaina hay que eliminarlo */
main#mainEvento {
    margin-top: -100px;
}

.ranking-wrapper {
    position: relative;
    /* ¡CLAVE! Es el padre de referencia para el difuminado absoluto */
    max-width: 50%;
    margin: 30px auto 0;
    height: 400px;
}

.ranking-container {

    position: relative;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.ranking-list {
    max-height: 100%;
    padding-left: 0;
    padding-right: 0;
}

.ranking-container::-webkit-scrollbar {
    width: 10px;
}

.ranking-container::-webkit-scrollbar-track {
    background: #000c25;
    border-radius: 10px;
}

.ranking-container::-webkit-scrollbar-thumb {
    background-color: #03A9F4;
    border-radius: 10px;
    border: 3px solid #000c25;
}

.ranking-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, #061136 0%, rgba(6, 17, 54, 0.8) 50%, rgba(6, 17, 54, 0) 100%);
    pointer-events: none;
    z-index: 5;
}

.ranking-item {
    background-color: #001E5F;
    border: 2px solid #03A9F4;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 0;
    list-style: none;
}

.item-content {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.1rem;
    width: 100%;
    padding: 0;
}

.avatar-container {
    position: relative;
    width: 70px;
    height: 70px;
    margin-right: 15px;
    flex-shrink: 0;
}

.avatar-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

.user-photo {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 2;
    object-fit: cover;
}

.username {
    flex-grow: 1;
    text-align: left;
    font-weight: bold;
    font-size: 21px;
    margin-right: 15px;
}

.score {
    margin-right: 15px;
    font-weight: bold;
    color: white;
    font-size: 20px;
    text-shadow: 2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000, -2px -2px 0 #000, 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000;
    flex-shrink: 0;
}

.coin {
    max-width: 75%;
    height: auto;
    flex-shrink: 0;
}

.medalla-rikesa {
    max-width: 25%;
    top: -3%;
    left: -10%;
    z-index: -1;
}

.elfo-rikesa {
    right: -10%;
    max-width: 35%;
    z-index: -1;
    bottom: 0;
}

/* ==================================== */
/* MEDIA QUERIES                        */
/* ==================================== */

/* Tabletas Landscape (1024px a 1280px) */
@media (min-width: 1024px) and (max-width: 1280px) and (orientation: landscape) {
    .bg-cheddar {
        background-position: bottom left !important;
    }

    .ranking-wrapper {
        max-width: 75%;
    }
}

@media (min-width: 800px) and (max-width: 1000px) and (orientation: portrait) {
    .medalla-rikesa {
        top: -23%;
    }

    .elfo-rikesa {
        display: block !important;
        bottom: -40%;
        z-index: 5;
    }
}

/* Dispositivos Pequeños a Medianos (Portrait) - Agrupando 720px y 690px */
@media (min-width: 720px) and (max-width: 1024px) and (orientation: portrait) {
    .navbar-brand {
        width: 25%;
    }

    .text-big {
        font-size: 2.7rem;
    }

    span.username.poppins-bold {
        max-width: 55%;
    }
}

@media (max-width: 690px) and (orientation: portrait) {

      .negative-100 .text-big {
        font-size: 1.55rem;
    }
    .medalla-rikesa {
        max-width: 15%;
        left: 0;
    }

    div#informacionEventoModal .modal-body p {
        font-size: 20px;
    }

    div#informacionEventoModal .modal-footer p {
        font-size: 17px;
    }

    .box-instruccion p,
    .box-instruccion span {
        font-size: 15px !important;
    }

    .modal-dialog.modal-md.modal-dialog-centered .modal-content {
        background: url(../images/modal_evento.png);
        max-width: 100%;
        min-width: 100% !important;
        align-self: center !important;
        margin: auto;
        padding: 1em 1em 5em 1em !important;
        background-repeat: no-repeat;
        background-size: 100%;
    }


    .navbar-brand {
        width: 50%;
    }

    .notify-container {
        right: 10px;
        max-width: unset;
        min-width: unset;
    }

    .w-sm-100 {
        width: 100% !important;
    }

    input.otp-box.form-control[type=number] {
        width: 65px;
        height: 65px;
        margin: 0 0.2em;
    }

    .logo-lakrrera {
        max-width: 70%;
    }

    main#mainEvento {
        margin-top: -20px;
    }

    .text-big {
        font-size: 1.9rem;
    }

    .border-white-shadow {
        text-shadow: 2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff;
    }
}

/* Dispositivos Pequeños (Portrait) - Menor a 1024px */
@media (max-width: 1024px) and (orientation: portrait) {

    /* ELIMINAR ACA */

    .bg-chorreado {
        background-position: left;
        min-height: 100px;
    }

    .ranking-wrapper {
        max-width: 100%;
    }

    span.username {
        max-width: 150px;
        flex-grow: 1;
        text-align: left;
        font-weight: bold;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 15px;
    }

    .avatar-container {
        width: 60px;
        height: 60px;
    }

    .score {
        font-size: 16px;
        margin-right: 10px;
    }

    .coin {
        max-width: 60%;
        width: 60% !important;
        min-width: 45px;
    }

    .elfo-rikesa {
        display: none;
    }

    span.badge {
        padding: 0;
    }

    /* END ELIMINAR */
    .box-instruccion.bg-purple {
        rotate: 0deg !important;
    }

    .box-instruccion.bg-blue .nro-instruccion {
        bottom: 0;
        right: -25px;
        rotate: 5deg;
    }

    .box-instruccion.bg-green {
        rotate: 0deg;
    }

    .box-instruccion.bg-green .nro-instruccion {
        top: auto;
        right: auto;
        left: -30px;
        bottom: -30px;
    }

    .box-instruccion {
        width: 90%;
        height: 90px;
    }

    .box-instruccion p {
        margin-bottom: 0;
    }


    .w-sm-50 {
        width: 50% !important;
    }

    .mb-sm-3 {
        margin-bottom: 0.75rem !important;
    }

    .bg-cheddar {
        background-position: bottom left !important;
        min-height: 125px !important;
    }

    div#offcanvasNavbar .nav-item a {
        font-size: 2rem !important;
    }

    .modal-title {
        font-size: 2.25rem !important;
    }

    main#mainAuth {
        margin-top: 0px;
    }

    .logo-menu {
        margin-left: -5% !important;
    }
}

/* Pantallas Ultra-Wide (1900px+) */
@media (min-width: 1900px) {

    div#offcanvasNavbar {
        min-width: 30%;
    }

    .bg-cheddar {
        min-height: 250px;
    }

    img.logo-menu {
        width: 30%;
        margin-left: 10px;
    }

    main#mainAuth {
        margin-top: -80px;
    }

    div#instrucciones {
        max-width: 80%;
        margin: auto;
    }

    .medalla-rikesa {
        top: -10%;
    }
}


/*OJITO QUITAR LUEGO*/

@media (max-width: 1000px) {
    .col-md-4 {
        flex: 0 0 auto;
        width: 83% !important;
    }
}