/* ------------------ Base ------------------ */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

body {
    font-family: Arial, sans-serif;
    color: #fff;
}

/*ESTILOS DEL BUSCADOR*/

    /* ===========================
   titulobuscador_pubg.css
   Estilo PUBG/épico para títulos
   =========================== */

.titulobuscador {
  text-align: center;
  margin: 25px 0;
}

.titulobuscador h2 {
  font-size: 1.8em;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #c9a959, #ffd700);
  display: inline-block;
  padding: 12px 25px;
  border-radius: 12px;
  border: 2px solid #c9a959;
  box-shadow: 0 0 12px rgba(201,169,89,0.8), 0 0 25px rgba(0,0,0,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.titulobuscador h2:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(201,169,89,1), 0 0 30px rgba(0,0,0,0.5);
}

/* ================= Dark Mode ================= */
body.dark-mode .titulobuscador h2 {
  background: linear-gradient(135deg, #ffcc33, #ffd966);
  border: 2px solid #ffcc33;
  box-shadow: 0 0 12px rgba(255,204,51,0.9), 0 0 25px rgba(0,0,0,0.5);
  color: #000;
}

body.dark-mode .titulobuscador h2:hover {
  box-shadow: 0 0 20px rgba(255,204,51,1), 0 0 35px rgba(0,0,0,0.6);
}


/*------------------*/

.contenedor_armas {
    width: 70%;
    margin: auto;
}

/*-----ESTILOS DEL BUSCADOR-------*/

/* ===========================
   filtros_pubg.css
   Estilo PUBG/épico para buscador
   =========================== */

.filtros {
  display: flex;
  justify-content: center;
  margin: 15px 0;
  position: relative;
}

/* BUSCADOR - MODO CLARO */
.filtros input[type="text"] {
    width: 320px;
    padding: 12px 40px 12px 15px;

    border-radius: 12px;
    border: 2px solid #c9a959;

    background: #fff8dc;

    color: #111111 !important;

    font-size: 1em;
    font-weight: bold;

    outline: none;

    box-shadow:
        0 0 10px rgba(201,169,89,0.7),
        0 0 20px rgba(0,0,0,0.25);

    transition: 0.3s all;
}

.filtros input[type="text"]::placeholder {
    color: #555555 !important;
    opacity: 1;
}

.filtros input[type="text"]:focus {
  background: rgba(255, 223, 0, 0.25);
  box-shadow: 0 0 14px rgba(201,169,89,1), 0 0 25px rgba(0,0,0,0.5);
  transform: scale(1.02);
}

/* Icono opcional dentro del input */
.filtros .icono_buscador {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffd700;
  font-size: 1.2em;
  pointer-events: none;
  text-shadow: 0 0 5px rgba(255,215,0,0.8);
}

/* ================= Dark Mode ================= */
/* BUSCADOR - MODO OSCURO */
body.dark-mode .filtros input[type="text"] {
    background: #2b2b2b !important;
    border: 2px solid #ffcc33;

    color: #ffffff !important;

    box-shadow:
        0 0 10px rgba(255,204,51,0.8),
        0 0 20px rgba(0,0,0,0.5);
}

body.dark-mode .filtros input[type="text"]::placeholder {
    color: #cfcfcf !important;
    opacity: 1;
}

body.dark-mode .filtros input[type="text"]:focus {
  background: rgba(255, 215, 0, 0.2);
  box-shadow: 0 0 14px rgba(255,204,51,1), 0 0 25px rgba(0,0,0,0.6);
}

body.dark-mode .filtros .icono_buscador {
  color: #ffcc33;
  text-shadow: 0 0 5px rgba(255,204,51,0.9);
}
/* ===========================

/*--------------------------------*/

/* --------------- Estilos de las Tabs --------------- */
/* ===========================
   tabs_pubg.css
   Estilo PUBG/épico para tabs
   =========================== */

.main-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.container-tabheader {
  display: flex;
  list-style: none;
  padding: 0;
  border-bottom: 3px solid #c9a959;
  border-radius: 8px;
  background: rgba(255, 223, 0, 0.15);
  box-shadow: 0 0 15px rgba(201,169,89,0.5), 0 2px 6px rgba(0,0,0,0.4);
}

.container-tabheader .tabheader {
  padding: 10px 20px;
  margin: 0;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s ease;
  position: relative;
  border-right: 1px solid rgba(255,215,0,0.3);
}

.container-tabheader .tabheader:last-child {
  border-right: none;
}

.container-tabheader .tabheader:hover {
  background: rgba(255, 223, 0, 0.25);
  color: #ffd700;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255,223,0,0.8), 0 0 24px rgba(0,0,0,0.3);
}

.container-tabheader .tabheader.active {
  background: linear-gradient(135deg, #ffd700, #ffcc33);
  color: #000;
  box-shadow: 0 0 18px rgba(255,215,0,0.9), 0 0 28px rgba(0,0,0,0.5);
}

/* ================= Dark Mode ================= */
body.dark-mode .container-tabheader {
  background: rgba(255,215,0,0.1);
  border-bottom: 3px solid #ffcc33;
  box-shadow: 0 0 12px rgba(255,204,51,0.6), 0 2px 6px rgba(0,0,0,0.5);
}

body.dark-mode .container-tabheader .tabheader {
  color: #000;
  border-right: 1px solid rgba(255,204,51,0.3);
}

body.dark-mode .container-tabheader .tabheader:hover {
  background: rgba(255,204,51,0.25);
  color: #ffcc33;
  box-shadow: 0 0 12px rgba(255,204,51,0.9), 0 0 20px rgba(0,0,0,0.4);
}

body.dark-mode .container-tabheader .tabheader.active {
  background: linear-gradient(135deg, #ffcc33, #ffd700);
  color: #000;
  box-shadow: 0 0 18px rgba(255,204,51,1), 0 0 28px rgba(0,0,0,0.5);
}

/*-----------------------------------*/

.tab-content {
    width: 100%;
    border: none;
    position: relative;
    margin: auto;
}

.tabpage {
    width: 100%;
    display: none;
}

.tabpage:first-child {
    display: block;
}

.active {
    background: rgba(204,0,0,0.2);
    border-bottom: 1px solid;
    box-shadow: inset -5px -20px 30px -5px rgba(0,0,0,0.6);
}

/* --------------- Estilos de los Cuadros --------------- */

/* Usaremos grid para distribuir 3 columnas fácilmente */
.grid-tarjetas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
}

.contenedor-cuadro {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 180px;
    background: #fff;
    color: #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,.5);
    /* Mantiene consistencia si el grid cambia de tamaño */
}

.contenedor-boton_titulo {
    display: flex;
    border-bottom: 1px solid #C8C8C8;
    padding: 5px;
}
.contenedor-boton {
    display: flex;
    width: 100%;
}
.contenedor-boton button {
    background: #DC0101;
    cursor: pointer;
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
    color: #f8f9fa;
    border: 1px solid #f8f9fa;
    box-shadow: inset 1px -2px 5px 1px rgba(0,0,0,0.5);
    margin: 2px;
    width: 100%;
}

.contenedor-titulo {
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
}

.contenedor-titulo span {
    color: #000;
    font-weight: bold;
    font-family: 'FjallaOne', sans-serif;
    margin-left: -35px;
}

/* Imagen debajo */
.contenedor-img {
    width: 100%;
    height: 150px;
    background: #c8c8c8;
    display: flex;
}
.contenedor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------------- Modales (Mantiene funcionalidad) --------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #222222;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

iframe {
   width: 100%;
   height: 500px;
}

/* --------------- Breakpoints: Grid adaptativo (3 columnas) --------------- */

/* Tres columnas por defecto (ya definido con grid-tarjetas) */

/* Ajuste para pantallas grandes si quieres diferentes tamaños de tarjetas (opcional) */
/* No se cambia la lógica base para mantener 3 columnas en desktop

/* Responsivo: 2 columnas en tabletas y 1 en móviles */
@media (max-width: 1024px) {
  .grid-tarjetas {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid-tarjetas {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   CONTENEDOR GENERAL - MAPAS
===================================================== */

.contenedor_armas {
    width: 70%;
    margin: 25px auto 45px;
    padding: 22px;

    background: #ffffff;
    color: #111111;

    border: 1px solid #d7d7d7;
    border-radius: 4px;

    box-shadow: 0 5px 22px rgba(0,0,0,0.18);
}


/* TARJETAS MODO CLARO */

.contenedor-cuadro {
    background: #ffffff;
    color: #111111;
}

.contenedor-boton_titulo,
.contenedor-titulo {
    background: #ffffff;
}

.contenedor-titulo span {
    color: #111111 !important;
}


/* MODO OSCURO */

body.dark-mode .contenedor_armas {
    background: #181818;
    color: #ffffff;
    border-color: #333333;
}

body.dark-mode .contenedor-cuadro {
    background: #252525;
    color: #ffffff;
}

body.dark-mode .contenedor-boton_titulo,
body.dark-mode .contenedor-titulo {
    background: #252525;
}

body.dark-mode .contenedor-titulo span {
    color: #ffffff !important;
}





/* =====================================================
   MODAL MINIMAPA HD
   MISMO PATRÓN QUE MOCHILAS / GARRAZOS
===================================================== */

.modal-mapa-hd {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 999999;

    background: rgba(0,0,0,.90);

    align-items: center;
    justify-content: center;

    padding: 30px;
}


.modal-mapa-hd.activo {
    display: flex;
}


.modal-mapa-hd img {
    width: 1000px;
    max-width: 90vw;
    max-height: 88vh;

    height: auto;

    object-fit: contain;

    border: 2px solid #c9a959;
    border-radius: 7px;

    box-shadow:
        0 0 20px rgba(0,0,0,.8),
        0 0 35px rgba(201,169,89,.35);
}


.modal-mapa-hd-cerrar {
    position: fixed;

    top: 20px;
    right: 30px;

    z-index: 1000000;

    color: #ffffff;

    font-size: 42px;
    font-weight: bold;
    line-height: 1;

    cursor: pointer;
}


.modal-mapa-hd-cerrar:hover {
    color: #ffc400;
}

/* =====================================================
   TABS MAPAS - CLARO / OSCURO
===================================================== */

/* MODO CLARO - tabs NO seleccionados */
.container-tabheader .tabheader {
    background: #e8e8e8 !important;
    color: #111 !important;

    border-right: 1px solid #c9a959 !important;

    box-shadow: none !important;
}


/* MODO CLARO - seleccionado */
.container-tabheader .tabheader.active {
    background: linear-gradient(135deg, #ffd700, #ffcc33) !important;
    color: #000 !important;

    box-shadow:
        0 0 12px rgba(255,215,0,.75),
        inset 0 -2px 4px rgba(0,0,0,.2) !important;
}


/* HOVER CLARO */
.container-tabheader .tabheader:not(.active):hover {
    background: #d6d6d6 !important;
    color: #000 !important;

    transform: none;
}


/* ================= MODO OSCURO ================= */

/* NO seleccionados */
body.dark-mode .container-tabheader .tabheader {
    background: #292929 !important;
    color: #fff !important;

    border-right: 1px solid #6d5a20 !important;
}


/* Seleccionado */
body.dark-mode .container-tabheader .tabheader.active {
    background: linear-gradient(135deg, #ffd700, #ffcc33) !important;
    color: #000 !important;

    box-shadow:
        0 0 14px rgba(255,204,51,.8),
        inset 0 -2px 4px rgba(0,0,0,.25) !important;
}


/* HOVER OSCURO */
body.dark-mode .container-tabheader .tabheader:not(.active):hover {
    background: #3b3b3b !important;
    color: #fff !important;

    transform: none;
}

/* =====================================================
   BOTÓN MOSTRAR MINIMAPA
===================================================== */

.contenedor-boton button,
.btn-minimapa-hd,
.btn-minimapa-sin-hd {
    display: block !important;

    width: 100% !important;

    background: #dc0101 !important;
    color: #ffffff !important;

    border: 1px solid #ffffff !important;
    border-radius: 3px !important;

    padding: 5px 8px !important;

    font-size: 14px !important;
    font-weight: 500 !important;

    cursor: pointer;

    opacity: 1 !important;

    box-shadow:
        inset 1px -2px 5px 1px rgba(0,0,0,.50) !important;
}


/* Hover cuando SÍ tiene HD */
.btn-minimapa-hd:hover {
    background: #f00000 !important;

    box-shadow:
        inset 1px -2px 5px rgba(0,0,0,.45),
        0 0 8px rgba(220,1,1,.6) !important;
}


/* Todavía no tiene HD */
.btn-minimapa-sin-hd {
    background: #dc0101 !important;
    color: #ffffff !important;

    cursor: default !important;

    opacity: 0.40 !important;

    pointer-events: none !important;
}