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

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

/* ---------------------- */
/* FONDO DE PÁGINA */
/* ---------------------- */
.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* detrás de todo */
  overflow: hidden;
}

.background-image .img_claro {
      width: 100%;
      height: 100%;
      object-fit: cover; /* la imagen cubre toda la pantalla */
      filter: brightness(0.6); /* oscurece un poco para resaltar el contenido */
    }

    .background-image .img_oscuro {
        display: none;
      width: 100%;
      height: 100%;
      object-fit: cover; /* la imagen cubre toda la pantalla */
      filter: brightness(0.6); /* oscurece un poco para resaltar el contenido */
    }
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);
}

/* ---------------------- */
/* MENÚ PEGAJOSO */
/* ---------------------- */
#pegajoso {
    transition: transform 0.4s ease-in-out, background 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    transform: translateY(-20px);
}

#pegajoso.fijo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 9999;
}

.menu-fijo-wrap {
    position: relative;
    transition: all 0.4s ease-in-out;
    z-index: 9999;
}

.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);
}

/* ---------------------- */
/* MENÚ SUPERIOR */
/* ---------------------- */
.contenedor_menu_sup_externo {
    background: #000000;
}

.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, font-size 0.3s ease;
    font-family: "Russo One", sans-serif;
    font-size: 16px;
}

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

/* SUBMENÚ */
.sub-menu {
    display: none;
    position: absolute;
    top: 100%; 
    right: 0;
    background: rgb(14, 24, 43);
    min-width: 150px;
    margin-top: 2px;
    border-radius: 4px;
    z-index: 2; 
}

.sub-menu a {
    display: block;
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
    font-family: "Russo One", sans-serif;
    font-size: 15px;
}

.sub-menu a:hover {
    background: rgb(22, 36, 61);
    border-bottom: solid rgb(223, 158, 0) 1px;
}

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

/* ---------------------- */
/* ENCABEZADO Y LISTA */
/* ---------------------- */
.encabezado{
    width: 100%;
    background: rgb(34, 34, 34);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 20px;
    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:hover{
    background: rgb(223, 158, 0);
    border-bottom: solid rgb(221, 221, 221) 1px;
}

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

    background: linear-gradient(
        180deg,
        #f9c632 0%,
        #e6a600 45%,
        #d18d00 100%
    );

    width: 240px;

    border-top: 3px solid #ffd76a;
    border-radius: 0 0 12px 12px;

    box-shadow:
        0 0 20px rgba(255,180,0,.35),
        0 8px 20px rgba(0,0,0,.5);

    z-index: 99999;
}

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

.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: 95px !important;
        max-width: 95px;
    }

    .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;
}