@import url('https://fonts.googleapis.com/css2?family=Anton&family=Russo+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Teko:wght@400;500;600;700&display=swap');

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

/* ---------------------- */
/* FONDO DE PÁGINA */
/* ---------------------- */
.background-image {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: -1;
    overflow: hidden;

    background: #000;
}

.background-image .img_claro,
.background-image .img_oscuro {
    width: 100%;
    height: 100%;

    object-fit: cover;

    /* IMPORTANTE */
    object-position: center top;

    filter: brightness(0.72);
}

.background-image .img_oscuro {
    display: none;
}

body.dark-mode .background-image .img_claro {
    display: none;
}

body.dark-mode .background-image .img_oscuro {
    display: block;
}

.logo__div img{
    width: 100px;
}

h1{
    text-align: center;
    background: rgb(238, 243, 245);
    padding: 20px;
}

section{
    padding: 20px;
}

p{
    color: rgb(116, 116, 116);
}


/* ==========================================
   ESTILO PARA QUE EL MENU NO TAPE EL SCROLL EN PERSONAJES
========================================== */
body.scroll-body .menu-fijo-wrap.fijo {
    left: 0;
    right: 15px;
    width: auto;
}

/* ==========================================
   MENÚ PEGAJOSO
========================================== */

.menu-fijo-wrap {
    position: relative;
    z-index: 9999;
}

/* Cuando queda pegado */
.menu-fijo-wrap.fijo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    box-shadow: 0 2px 8px rgba(0,0,0,0.2);

    animation: pegarMenu 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Entrada suave desde arriba */
@keyframes pegarMenu {
    from {
        transform: translateY(-20px);
    }

    to {
        transform: translateY(0);
    }
}

/* ---------------------- */
/* MENÚ SUPERIOR */
/* ---------------------- */
.contenedor_menu_sup_externo {
    background:
        radial-gradient(
            ellipse at 50% 50%,
            rgba(245, 166, 35, 0.16) 0%,
            rgba(245, 166, 35, 0.06) 18%,
            transparent 42%
        ),
        linear-gradient(
            180deg,
            #161616 0%,
            #0d0d0d 50%,
            #080808 100%
        );

    border-bottom: 1px solid rgba(245, 166, 35, 0.45);

    box-shadow:
        inset 0 -1px 0 rgba(255, 181, 45, 0.08),
        0 4px 15px rgba(0, 0, 0, 0.45);
}

.contenedor_menu_sup_interno {
    display: flex;
    width: 90%;
    height: 100px;
    margin: auto; 
    align-items: center; 
    justify-content: space-between; 
}

.parrafo_sup_izq {
    display: flex;
    z-index: 10000;
}

.contenedor_dark_acceder {
    display: flex;
}

.button_sup_der {
    position: relative;
}

/* ---------------------- */
/* LINKS DE MENÚ */
/* ---------------------- */
.menu-link {
    padding: 10px 15px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    border-radius: 4px;

    transition:
        background-color 0.2s,
        color 0.2s,
        font-size 0.3s ease;

    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;

    font-size: 16px;
}

.menu-link:hover {
    color: #F5A623;
}

/* SUBMENÚ */
/* =========================================
   SUBMENÚ SUPERIOR WOLFJAURIA
========================================= */

.sub-menu {
    position: absolute;
    display: none;

    background: linear-gradient(
        180deg,
        rgba(18, 31, 53, 0.98) 0%,
        rgba(8, 14, 25, 0.98) 100%
    );

    border: 1px solid rgba(255, 170, 0, 0.35);
    border-top: 2px solid #f5a000;

    border-radius: 0 0 6px 6px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.55),
        0 0 10px rgba(255, 160, 0, 0.10);

    min-width: 150px;
    overflow: hidden;
    z-index: 9999;
}


/* LINKS */

.sub-menu a {
    display: block;

    padding: 9px 12px;

    color: #eeeeee;
    text-decoration: none;

    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    transition:
        background 0.18s ease,
        color 0.18s ease,
        padding-left 0.18s ease;
}


/* HOVER */

.sub-menu a:hover {
    background: linear-gradient(
        90deg,
        rgba(245, 160, 0, 0.20),
        rgba(245, 160, 0, 0.04)
    );

    color: #ffb000;

    padding-left: 16px;
}


/* ÚLTIMO ELEMENTO */

.sub-menu a:last-child {
    border-bottom: none;
}

.show .sub-menu {
    display: block;
}

/* ---------------------- */
/* ENCABEZADO Y LISTA */
/* ---------------------- */
.encabezado {
    width: 100%;

    background: linear-gradient(
        180deg,
        #171717 0%,
        #0c0c0c 100%
    );

    display: flex;
    justify-content: space-between;
    align-items: center;

    height: 60px;
    padding: 0 20px;

    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 2px solid rgba(245,166,35,0.40);

    box-shadow:
        0 5px 15px rgba(0,0,0,0.65),
        inset 0 -1px 0 rgba(255,180,0,0.10);

    z-index: 1000;
}
.menu {
    z-index: 1000;
}
ul{
    list-style: none;
}
a{
    text-decoration: none;
}

.lista{
    display: flex;
    justify-content: space-between;
}
.item{
    padding: 20px 30px;
    color: white;
    font-size: 20px;
    font-family: "Russo One", sans-serif;
}
.item {
    padding: 20px 30px;
    color: white;
    font-size: 20px;
    font-family: "Russo One", sans-serif;

    position: relative;

    transition:
        color .25s ease,
        text-shadow .25s ease,
        background .25s ease;
}

.item:hover {
    color: #F5A623;

    background: rgba(245,166,35,0.06);

    text-shadow:
        0 0 6px rgba(245,166,35,0.60),
        0 0 12px rgba(255,110,0,0.25);

    border-bottom: none;
}
.item::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 4px;

    width: 0;
    height: 2px;

    background: linear-gradient(
        90deg,
        #ff3c00,
        #f5a623
    );

    transform: translateX(-50%);

    box-shadow:
        0 0 7px rgba(255,100,0,0.65);

    transition: width .25s ease;
}

.item:hover::after {
    width: 65%;
}

.listItem{
    position: relative;
}
.slide{
    position: absolute;
    display: none;
    top: 40px;

    background: linear-gradient(
        180deg,
        #1b1b1b 0%,
        #111111 55%,
        #090909 100%
    );

    width: 240px;

    border-top: 3px solid #f5a623;
    border-left: 1px solid rgba(245,166,35,.22);
    border-right: 1px solid rgba(245,166,35,.22);
    border-bottom: 1px solid rgba(245,166,35,.16);

    border-radius: 0 0 12px 12px;

    box-shadow:
        0 0 14px rgba(245,166,35,.12),
        0 10px 25px rgba(0,0,0,.65);

    z-index: 99999;
}

.listItem:hover > .slide{
    display: block;
}
.slide li a{
    color: #f3f3f3;
    font-weight: bold;
    padding: 14px 20px;
    display: block;
    font-size: 18px;
    font-family: "Russo One", sans-serif;

    border-bottom: 1px solid rgba(255,255,255,.05);

    transition:
        background .2s ease,
        color .2s ease,
        padding-left .2s ease;
}

.slide li a:hover{
    color: #f5a623;

    background: linear-gradient(
        90deg,
        rgba(245,166,35,.16),
        rgba(245,166,35,.05),
        transparent
    );

    padding-left: 25px;
}

.slide li a:hover{
    background: rgba(255,255,255,.25);
}

#boton{
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    display: none;
    margin-left: 350px;
}

/* ---------------------- */
/* TOGGLE DARK MODE */
/* ---------------------- */
.toggle-darkmode {
    margin-right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 18px;
}

.toggle-darkmode input {
    display: none;
}

.toggle-darkmode label {
    width: 50px;
    height: 28px;
    background: linear-gradient(90deg, #4a90e2, #1e3c72); /* ☀️ Claro */
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: background 0.4s;
    border: 2px solid #222;
}

.toggle-darkmode label::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: #f5a623; /* ☀️ sol */
    border-radius: 50%;
    top: 2.5px;
    left: 3px;
    transition: 0.4s;
}

.toggle-darkmode input:checked + label {
    background: linear-gradient(90deg, #a00000, #ff3333); /* 🌙 Oscuro */
}

.toggle-darkmode input:checked + label::after {
    transform: translateX(25px);
    background: #fff; /* 🌙 luna */
}

/* ---------------------- */
/* BASE: CLARO vs OSCURO */
/* ---------------------- */
body {
    background: #f2f2f2;
    color: #111;
    transition: background 0.4s, color 0.4s;
}

body.dark-mode {
    background: #000;
    color: #fff;
}

/* ---------------------- */
/* RESPONSIVE */
/* ---------------------- */
@media screen and (max-width:850px) {
    .button_sup_der a { font-size: 12px; }
    #boton{ display: block; }
    .menu{ width: 350px; height: calc(100vh - 60px); left: -200%; }
    .lista{ flex-direction: column; }
}

@media screen and (max-width:380px) {
    .menu{ width: 100%; }
}

@media screen and (min-width:850px) {
    .menu{ width: 95%; margin: auto; }
    .logo__div img{ width: 200px; }
}

@media screen and (min-width:1024px) {
    .menu { width: 90%; }
}

@media screen and (min-width:1224px) {
    .menu { width: 80%; max-width: 80%; }
}

/* ============================================================
   FIX MENÚ PRINCIPAL WOLF-JAURÍA - MÓVIL
   ============================================================ */

@media screen and (max-width:850px) {

    .encabezado {
        height: 60px;
        padding: 0 18px;
        justify-content: flex-end;
        position: relative;
        z-index: 9999;
    }

    .boton__div {
        display: block;
        z-index: 10001;
    }

    #boton {
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-left: 0 !important;

        width: 42px;
        height: 42px;

        border: 1px solid rgba(255,255,255,.35);
        border-radius: 999px;
        background: rgba(2,6,23,.65);
        color: #fff;
        font-size: 22px;
    }

    .menu {
        position: fixed;
        top: 60px;
        right: 0;
        left: auto;

        width: 260px;
        max-width: 82vw;
        height: calc(100dvh - 60px);

        background: rgba(2,6,23,.98);
        border-left: 1px solid rgba(245,166,35,.45);
        box-shadow: -8px 0 30px rgba(0,0,0,.85);

        transform: translateX(110%);
        transition: transform .3s ease;

        overflow-y: auto;
        overflow-x: hidden;
        z-index: 10000;
        padding: 12px;
    }

    .menu.menu--open {
        transform: translateX(0);
    }

    .lista {
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }

    .listItem {
        width: 100%;
    }

    .item {
        display: block;
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 10px;
    }

    .slide {
        position: relative;
        top: 0;
        width: 100%;
        border-top: none;
        margin-top: 4px;
        box-shadow: none;
    }
}

/* ============================================================
   SUBMENÚ MÓVIL PRINCIPAL
   ============================================================ */

@media screen and (max-width:850px) {

    .listItem:hover > .slide {
        display: none;
    }

    .listItem.submenu-abierto > .slide {
        display: block;
    }
}

/* ============================================================
   FIX HEADER SUPERIOR - MÓVIL ANGOSTO
   ============================================================ */

@media screen and (max-width: 420px) {

    .contenedor_menu_sup_interno {
        width: 100%;
        padding: 0 10px;
        gap: 6px;
        overflow: hidden;
    }

    .parrafo_sup_izq {
        gap: 8px;
        flex-shrink: 1;
        min-width: 0;
    }

    .menu-link {
        font-size: 13px;
        padding: 8px 6px;
        white-space: nowrap;
    }

    .logo__div img {
    width: 100px;

    filter:
        drop-shadow(0 0 4px rgba(245, 166, 35, 0.18))
        drop-shadow(0 4px 5px rgba(0, 0, 0, 0.75));

    transition: filter .3s ease, transform .3s ease;
}

.logo__div img:hover {
    filter:
        drop-shadow(0 0 7px rgba(245, 166, 35, 0.40))
        drop-shadow(0 5px 7px rgba(0, 0, 0, 0.8));

    transform: scale(1.025);
}

    .contenedor_dark_acceder {
        flex-shrink: 0;
        gap: 4px;
    }

    .toggle-darkmode {
        margin-right: 2px;
        gap: 4px;
    }

    .toggle-darkmode label {
        width: 46px;
        height: 26px;
    }

    .toggle-darkmode label::after {
        width: 18px;
        height: 18px;
    }

    .toggle-darkmode input:checked + label::after {
        transform: translateX(22px);
    }
}

/* ============================================================
   FIX HEADER 360/370PX - EVITAR SUPERPOSICIÓN
   ============================================================ */

@media screen and (max-width: 390px) {

    .contenedor_menu_sup_interno {
        height: auto !important;
        min-height: 118px !important;
        overflow: visible !important;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        row-gap: 6px;
        padding: 8px 10px;
    }

    .contenedor_menu_sup_externo {
        overflow: visible !important;
    }
    .parrafo_sup_izq {
        margin-top: 30px;
        margin-bottom: 4px;
        overflow: visible !important;
        grid-column: 1 / 3;
        grid-row: 1;
        justify-content: center;
        gap: 18px;
    }

    .logo__div {
        grid-column: 1;
        grid-row: 2;
        display: flex;
        justify-content: flex-start;
    }

    .logo__div img {
        width: 110px !important;
        max-width: 110px !important;
    }

    .contenedor_dark_acceder {
        grid-column: 2;
        grid-row: 2;
        justify-content: flex-end;
        align-items: center;
    }

    .menu-link {
        font-size: 14px;
        padding: 6px 8px;
    }
    
    .sub-menu {
        z-index: 999999 !important;
        top: 100% !important;
        right: auto !important;
        left: 0 !important;
        min-width: 180px !important;
    }
}

.contenedor_menu_sup_externo,
.contenedor_menu_sup_interno,
.parrafo_sup_izq,
.button_sup_der {
    overflow: visible !important;
}

.sub-menu {
    z-index: 999999 !important;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden !important;
}




/* =========================================================
   LOADER GLOBAL WOLF-JAURIA
========================================================= */

.zona-acceso-loader {
    position: relative;

    display: flex;
    flex-direction: column;

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


.loader-global {
    position: absolute;

    top: calc(100% + 3px);
    left: 50%;

    transform: translateX(-50%);

    width: 18px;
    height: 18px;

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

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .15s ease,
        visibility .15s ease;

    z-index: 100000;
}


.loader-global.activo {
    opacity: 1;
    visibility: visible;
}


.loader-global-circulo {
    width: 12px;
    height: 12px;

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

    border-top-color: #e00000;
    border-right-color: #e00000;

    border-radius: 50%;

    animation: loaderWolf .55s linear infinite;
}


@keyframes loaderWolf {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

/* =========================================
   TIPOGRAFÍA TARJETAS DE ARMAS
========================================= */

/* Título del arma: AAA-12, AEPC-9, etc. */
.weapon-name,
.nombre-arma,
.card-title {
    font-family: 'Teko', sans-serif !important;
    font-weight: 600;
    font-size: 23px;
    line-height: 1;
    letter-spacing: .3px;
}

/* Subtítulo: Christmas Blue, Desert, etc. */
.weapon-subtitle,
.subtitulo,
.card-subtitle {
    font-family: 'Teko', sans-serif !important;
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
}

/* =========================================
   TIPOGRAFÍA DEL MENÚ PRINCIPAL
========================================= */

nav a,
.menu a,
.menu-principal a,
header nav a {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px;
}

/* =========================================
   MENÚ SUPERIOR: EVENTOS / WOLFJAURIA / ACCEDER
========================================= */

header a {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}