/* ==========================================================================
   1. CONFIGURACIÓN GLOBAL, TIPOGRAFÍA Y UTILIDADES
   ========================================================================== */

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

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

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

.text-extrabig {
    font-size: 6rem;
    line-height: 1;
}

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

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

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

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

.logo-lakrrera {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-lakrrera:hover {
    transform: translate(5px, -5px) scale(1.05);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.social-icon-link {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.social-icon-link:hover {
    transform: scale(1.2) rotate(8deg);
    filter: brightness(1.2) drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
}



.border-semi-transparent {
    border-color: rgb(255 255 255 / 40%) !important;
    border-width: 0.35rem !important;
}

/* ==========================================================================
   2. FONDOS Y ESTRUCTURA (LAYOUT)
   ========================================================================== */

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

main#mainRikesa.negative-banner {
    margin-top: -10%;
}

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

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

.bg-invertido {
    background: url('../images/fondo_invertido.webp') center/cover no-repeat;
}

.bg-torneo {
    background: url('../images/fondo_torneo.webp') center/cover no-repeat;
}

.bg-comingSoon {
    background: url('../images/dinamicas_soon.webp') center/cover no-repeat;
}

.bg-administrador {
    background: url('../images/bg_administrador.webp') center/cover no-repeat;
}

hr.custom-svg {
    border: 0 !important;
    height: 20px;
    background: url(../images/svg/hr-custom.svg) center/contain no-repeat;
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    opacity: 1;
}

/* ==========================================================================
   3. NAVEGACIÓN Y MENÚ
   ========================================================================== */

.navbar-brand .logo-menu {
    margin: auto;
}

.nav-link.active,
.nav-link:hover {
    color: #0F1E6A !important;
    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;
    /* letter-spacing: 1px; */
}

div#offcanvasNavbar {
    background: url(../images/fondo_menu.webp) center / cover no-repeat;
    opacity: 1;
}


div#navbarNav .dropdown-item:hover {
    background: #ffffff4f;
}

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

div#offcanvasNavbar ul.dropdown-menu {
    border: 0;
}

/* ==========================================================================
   4. FORMULARIOS Y COMPONENTES DE ENTRADA
   ========================================================================== */

input,
select,
textarea,
.form-control {
    font-size: 0.95rem;
    font-family: 'Poppins bold' !important;
    color: var(--bs-primary) !important;
}

label.form-label {
    font-size: 1.1rem;
    color: white;
    text-shadow: 2px 2px 0 #0F1E6A, -2px 2px 0 #0F1E6A, 2px -2px 0 #0F1E6A, -2px -2px 0 #0F1E6A, 2px 0 0 #0F1E6A, -2px 0 0 #0F1E6A, 0 2px 0 #0F1E6A, 0 -2px 0 #0F1E6A;
}

input::placeholder {
    font-size: 0.95rem;
    color: #999 !important;
}

input:focus::placeholder {
    color: transparent !important;
}

.input-group.input-with-icon button {
    background: #D9D9D9 !important;
    border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0 !important;
    z-index: 0 !important;
}

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

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

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

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

.form-check-input:checked {
    background: #FF9101;
    border-color: #FF9101;
    background: linear-gradient(175deg, #FFB300 -50%, #FF6600 50%);
    box-shadow: none;
}

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

/* OTP */
input.otp-box.form-control {
    width: 80px;
    height: 80px;
    margin: 0 0.5em;
    border: 3px solid white;
    background: var(--bs-orange);
    color: white !important;
    font-size: 2.5rem;
    text-align: center;
    -moz-appearance: textfield !important;
}

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

span.label-inverse {
    font-size: 1.2rem;
    color: #0F1E6A;
    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;
}

/* ==========================================================================
   5. MODALES, LOADING Y NOTIFICACIONES
   ========================================================================== */

/* Modales */
.modal.fade.show {
    background: #00000096;
}

.modal-dialog.modal-md.modal-dialog-centered .modal-content {
    background: url('../images/modal_rikesa_v2.webp') center/100% 100% no-repeat;
    min-width: 100%;
    min-height: 450px;
    border: 0 !important;
    box-shadow: none !important;
    padding: 1em 2em 5em;
    display: flex;
    align-items: center !important;
    justify-content: center;
}

button.btn.btn-modal-close {
    background: #FEB101;
    width: 40px;
    height: 40px;
    font-size: 12px;
    margin-top: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 30px;
    top: 50px;
}

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

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

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

.loading-spinner,
#blocker {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
}

.loading-spinner {
    text-align: center;
    z-index: 1050;
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Toast */
.notify-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1060;
    width: clamp(300px, 90vw, 400px);
    font-family: 'Poppins Regular' !important;
    background: #141414;
    color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
    border: none;
}

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

.notify-container .toast-body {
    padding: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

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

.icon-rrss-auth:hover {
    transition: 0.25s;
    transform: scale(1.05);
    box-shadow: 0 0 8px #16c1f37f !important;
    border-radius: 50% !important;
}


/* ==========================================================================
   7. MEDIA QUERIES (ORDEN DE SOBREESCRITURA SEGURO)
   ========================================================================== */

/* --- 1900px+ (laptops grande) --- */
@media (min-width: 1900px) {
    .text-extrabig {
        font-size: 6rem;
    }

    div#navbarNav {
        min-width: 40%;
    }

    .bg-cheddar {
        min-height: 225px !important;
    }

    img.logo-menu {
        width: 30%;
        margin-left: 25px !important;
    }

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

    .col-xxxl-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-xxxl-7 {
        flex: 0 0 auto;
        width: 60%;
    }

    .col-xxxl-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* --- 1024px+ (Desktop) --- */
@media (min-width: 1024px) {
    .fs-lg-2 {
        font-size: 1.35rem;
    }
}

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

    .navbar-brand .logo-menu {
        max-width: 85%;
    }

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

    .w-md-30 {
        width: 30% !important;
    }

    .w-md-25 {
        width: 25% !important;
    }
}

@media (min-width: 1200px) and (max-width: 1280px) and (orientation: landscape) {
    .col-xl-8 {
        flex: 0 0 auto;
        width: 75%;
    }
}


/* --- Tablets & iPad (Portrait) --- */
@media (max-width: 1024px) and (orientation: portrait) {

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

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

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

    main#mainRikesa {
        margin-top: 0;
    }

    .border-sm-bottom {
        border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
        border-right: none !important;
    }
}

@media (min-width: 720px) and (max-width: 1024px) and (orientation: portrait) {
    .navbar-brand {
        width: 25%;
    }

    .w-md-30 {
        width: 30% !important;
    }

    .w-md-25 {
        width: 25% !important;
    }

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

    .w-md-75 {
        width: 75% !important;
    }

    .w-md-85 {
        width: 85% !important;
    }

    .w-md-90 {
        width: 90% !important;
    }
}

/* --- Móviles Generales (Hasta 690px) --- */
@media (max-width: 690px) and (orientation: portrait) {


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

    .bg-comingSoon {
        background: url('../images/dinamicas_soon_movil.webp') center/cover no-repeat;
    }

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

    .sm-text-big-small {
        font-size: 3rem !important;
    }

    .sm-text-big-extrasmall {
        font-size: 2.75rem !important;
    }

    .text-extrabig {
        font-size: 4rem;
    }

    .fs-sm-1 {
        font-size: 1rem !important;
    }

    .fs-sm-95 {
        font-size: .95rem !important;
    }

    .fs-sm-85 {
        font-size: .85rem !important;
    }

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

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

    .navbar-brand {
        width: 50%;
        margin-left: -12px;
        margin-top: -5px;
    }

    button.navbar-toggler {
        margin-top: 0px !important;
    }

    .notify-container {
        right: 10px;
        width: 90vw;
    }

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

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

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

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

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

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

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

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

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

    input.otp-box.form-control {
        width: 65px;
        height: 65px;
        margin: 0 0.2em;
    }

    .icon-rrss-auth {
        width: 40px;
        height: 40px;
    }

    .sm-pb-2 {
        padding-bottom: 1rem !important;
    }

    .sm-px-2 {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    .sm-px-1 {
        padding-right: .75rem !important;
        padding-left: .75rem !important;
    }

    .sm-px-0 {
        padding-right: 0rem !important;
        padding-left: 0rem !important;
    }

    .sm-mt-2 {
        margin-top: 2rem !important;
    }

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

    .sm-mt-1 {
        margin-top: 1rem !important;
    }

    .sm-mt-0 {
        margin-top: 0rem !important;
    }


    main#mainRikesa.negative-banner {
        margin-top: -20%;
    }


    body:has(main#mainRikesa.negative-banner) {
        background-position-x: 75%;
    }

}

/* --- Teléfonos Duo --- */
@media (min-width: 475px) and (max-width: 590px) and (orientation: portrait) {
    .logo-menu {
        width: 80%;
    }
}

/* --- MÓVILES ULTRA PEQUEÑOS (360px o menos) --- */
@media (max-width: 360px) and (orientation: portrait) {
    .bg-cheddar {
        min-height: 110px !important;
    }

    .text-big {
        font-size: clamp(2.5rem, 8vw, 3rem) !important;
    }

    .navbar-brand {
        width: 50%;
        margin: 0;
    }

    .modal-dialog .modal-content {
        background-size: 120% !important;
        padding: 0.5rem !important;
    }

    .fs-sm-1 {
        font-size: 1rem !important;
    }
}