:root {
  --borde: #c9a959;
  --titulo: #fff6e0;
  --fondo: #fff;
  --texto: #222;
}

body {
  font-family: 'Orbitron', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--fondo);
  color: var(--texto);
}

.contenedor-tatuajes {
  width: min(1000px, calc(100% - 40px));
  margin: 35px auto 45px;
  padding: 22px;

  background: #fff;

  border: 1px solid #d7d7d7;
  border-radius: 4px;

  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.18);
}

/* ===== Tabla PUBG ===== */
.tattoo-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #777;
  table-layout: fixed;
  background: #fff;
  box-shadow: none;
}

.tattoo-table thead th {
  background: linear-gradient(180deg, #f7d77b, #c9a959);
  border: 1px solid var(--borde);
  padding: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: #222;
  letter-spacing: 1px;
}

.tattoo-table tbody td {
  border: 1px solid var(--borde);
  padding: 10px;
  vertical-align: middle;
  height: 45px;
  text-align: center;
  font-weight: 500;
}

/* Columnas */
.name-col { width: 35%; font-weight: 700; }
.preview-col { width: 20%; }
.col-ghost { width: 6.428%; }

/* Bloques de color */
.color-block {
  height: 30px;
  width: 100%;
  border-radius: 3px;
  background: #ddd;
  border: 1px solid #bbb;
}

/* Hover imagen */
.mostrar_img img {
  display: none;
  position: absolute;
  transform: translate(-105%, -40%);
  z-index: 10;
  max-width: 250px;
  border: 2px solid var(--borde);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(0,0,0,0.6);
}
.mostrar_img:hover img {
  display: block;
}

/* Título */
.title {
  text-align: center;
  font-weight: 900;
  padding: 14px 0;
  border: 2px solid var(--borde);
  margin-bottom: 8px;
  background: linear-gradient(90deg, #f7d77b, #c9a959, #f7d77b);
  color: #222;
  font-size: 18px;
  letter-spacing: 2px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .tattoo-table, .tattoo-table thead, .tattoo-table tbody, .tattoo-table tr, .tattoo-table td, .tattoo-table th {
    display: block;
  }
  .tattoo-table thead th {
    width: 100%;
  }
}

/* ===== Dark Mode PUBG ===== */
body.dark-mode {
  background: #121212;
  color: #eee;
}
body.dark-mode .tattoo-table {
  background: #1e1e1e;
  border-color: #d4af37;
}
body.dark-mode .tattoo-table thead th {
  background: linear-gradient(180deg, #d4af37, #8b6f25);
  color: #000;
}
body.dark-mode .title {
  background: linear-gradient(90deg, #d4af37, #8b6f25, #d4af37);
  color: #000;
}

.separador-categoria {
    height: 35px;
}

.title-bar:not(:first-child) {
    margin-top: 20px;
}
    
/* =====================================================
   COLORES CORRECTOS CLARO / OSCURO
   ===================================================== */

/* ================= MODO CLARO ================= */

.contenedor-tatuajes {
    background: #ffffff;
    color: #111111;
}

/* Todas las letras del cuerpo de la tabla */
.tattoo-table tbody td {
    color: #111111 !important;
}

/* ================= MODO OSCURO ================= */

body.dark-mode .contenedor-tatuajes {
    background: #0b0b0b !important;
    border-color: #333333;
}

/* Fondo oscuro de las filas */
body.dark-mode .tattoo-table tbody td {
    background-color: #1e1e1e;
}

/* TODAS las letras blancas:
   nombre + DR + GL + DB + DP + SP */
body.dark-mode .tattoo-table tbody td {
    color: #ffffff !important;
}

/* =====================================================
   MODAL IMAGEN TATUAJE
   ===================================================== */

.modal-tatuaje {
    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.88);

    z-index: 999999;

    align-items: center;
    justify-content: center;

    padding: 30px;

    box-sizing: border-box;
}

.modal-tatuaje.activo {
    display: flex;
}

.modal-tatuaje-imagen {
    display: block;

    width: 1000px;
    max-width: 90vw;
    max-height: 88vh;
    height: auto;

    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);

    object-fit: contain;
}

.modal-tatuaje-cerrar {
    position: fixed;

    top: 20px;
    right: 30px;

    color: #ffffff;

    font-size: 42px;
    font-weight: bold;

    cursor: pointer;

    z-index: 1000000;

    line-height: 1;
}

.modal-tatuaje-cerrar:hover {
    color: #ffc400;
}

.mostrar_img {
    cursor: zoom-in !important;
}

.modal-tatuaje-imagen {
    cursor: default;
}