/* ------------------ Base ------------------ */
body {
    font-family: Arial, sans-serif;
    color: #fff;
    margin: 20px;
    /* background-color: #222; */
}

/*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;
}

.filtros input[type="text"] {
  width: 320px;
  padding: 12px 40px 12px 15px;
  border-radius: 12px;
  border: 2px solid #c9a959;
  background: rgba(255, 223, 0, 0.15);
  color: #fff;
  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.4);
  transition: 0.3s all;
}

.filtros input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.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 ================= */
body.dark-mode .filtros input[type="text"] {
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid #ffcc33;
  color: #000;
  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: rgba(0,0,0,0.5);
}

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;
  }
}

