/* --- CONFIGURACIÓN BASE --- */
:root {
    --bg-deep: #050508;
    --bg-sidebar: #0a0b12;
    --bg-card: #131520;
    --accent-cyan: #00f3ff;
    --accent-purple: #bc13fe;
    --accent-hover: #bc13fe;
    --text-main: #ffffff;
    --text-dim: #a0a6cc;
    --border: rgba(67, 72, 99, 0.3);
    --border-color: rgba(67, 72, 99, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep) !important;
    color: var(--text-main) !important;
    font-family: 'Outfit', sans-serif;
    /* --- ELIMINAR SCROLLBAR HORIZONTAL --- */
    overflow-x: hidden; 
}

/* --- ESTRUCTURA --- */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar) !important;
    height: 100vh;
    position: fixed;
    border-right: 1px solid var(--border) !important;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

/* --- LOGO CENTRADO Y ESTILIZADO --- */
.sidebar-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    text-align: center;
}

.sidebar-logo img {
    max-width: 100%;
    height: auto;
    max-height: 120px; 
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.15));
    transition: transform 0.3s ease;
}

.sidebar-logo img:hover {
    transform: scale(1.03);
}

/* --- SCROLLBAR PERSONALIZADO PARA SIDEBAR --- */
.sidebar {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #252a41 var(--bg-sidebar);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-sidebar);
}

.sidebar::-webkit-scrollbar-thumb {
    background: #252a41;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* --- ACORDEÓN (ESTILO CATEGORÍAS) --- */
.accordion-item { 
    background: transparent !important; 
    border: none !important; 
    margin-bottom: 5px;
}

.accordion-header {
    padding: 0 10px;
}

.accordion-button {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-dim) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    padding: 1rem 1.2rem !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
}

/* Estado cuando la categoría está abierta */
.accordion-button:not(.collapsed) {
    color: var(--accent-cyan) !important;
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.1), transparent) !important;
    border: 1px solid rgba(0, 243, 255, 0.3) !important;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.05) !important;
}

.accordion-button::after {
    filter: invert(1);
    transform: scale(0.7);
}

/* ENLACES DE GUÍAS DENTRO DEL SIDEBAR */
.guia-link {
    display: flex;
    align-items: center;
    padding: 8px 25px 8px 45px !important;
    color: #6b7299 !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    transition: 0.3s;
    position: relative;
}

.guia-link::before {
    content: "";
    position: absolute;
    left: 30px;
    width: 4px;
    height: 4px;
    background-color: #3d355e;
    border-radius: 50%;
}

.guia-link:hover {
    color: var(--accent-cyan) !important;
    padding-left: 50px !important;
}

/* --- CONTENIDO CENTRAL --- */
.main-content {
    margin-left: 280px;
    padding: 40px;
    width: calc(100% - 280px);
    background-color: var(--bg-deep);
}

/* --- TARJETAS GAMING (ÚLTIMAS GUÍAS) --- */
.card.bg-dark {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.card.bg-dark:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.15);
}

.card.bg-dark .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card.bg-dark h6 {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

/* --- BOTONES ESTILO GAMING (REGRESAR Y ACCIÓN) --- */
.btn-outline-secondary, 
.btn-outline-primary {
    border-radius: 6px !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    position: relative;
    overflow: hidden;
}

/* Estilo Púrpura Neón (Para "Regresar" y botones de tarjetas) */
.btn-outline-secondary, .card.bg-dark .btn-outline-primary {
    border: 1px solid var(--accent-purple) !important;
    color: var(--accent-purple) !important;
}

.btn-outline-secondary:hover, .card.bg-dark .btn-outline-primary:hover {
    background: var(--accent-purple) !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.4) !important;
    transform: translateY(-2px);
}

/* --- ESTILO DE LA GUÍA RENDERIZADA --- */
.guia-renderizada, .guia-body {
    background-color: var(--bg-sidebar) !important;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* Títulos dentro del contenido */
.guia-renderizada h1, .guia-body h1 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Título H2 con línea de neón púrpura */
.guia-renderizada h2 {
    font-size: 2rem;
    color: #fff;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    display: inline-block;
    width: 100%;
    font-weight: bold;
}

.guia-renderizada h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 1px;
    background: var(--accent-hover);
    box-shadow: 0 0 10px var(--accent-hover);
}

/* TABLAS */
.guia-renderizada table, .guia-body table {
    width: 100% !important;
    background-color: var(--bg-card) !important;
    border-collapse: separate !important;
    border: 1px solid var(--border) !important;
    margin: 25px 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.guia-renderizada table tr, .guia-body table tr,
.guia-renderizada table td, .guia-body table td {
    background-color: transparent !important;
    color: var(--text-dim) !important;
    border: 1px solid var(--border) !important;
    padding: 12px !important;
}

.guia-renderizada table th, .guia-body table th {
    background-color: rgba(0, 243, 255, 0.05) !important;
    color: var(--accent-cyan) !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    padding: 1rem;
}

.guia-descripcion {
    color: var(--text-dim);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    line-height: 1.6;
    border-left: 3px solid var(--accent-cyan);
    padding-left: 1.5rem;
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.02), transparent);
}

/* IMÁGENES */
.guia-renderizada img, .guia-body img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 2rem auto !important;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .sidebar { width: 100%; position: relative; height: auto; }
    .main-content { margin-left: 0; width: 100%; }
    .wrapper { flex-direction: column; }
}



/* */

.guia-acceso-rapido-keyboard-universal {
    background: #22232b;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 2.2rem 1.2rem 1.2rem 1.2rem;
    margin-bottom: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
    position: relative;
    overflow: visible;
    font-family: 'Inter', sans-serif;
  }
  .guia-acceso-rapido-row {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    font-family: 'Inter', sans-serif;
  }
  .guia-acceso-rapido-key {
    background: #292a33;
    color: #888;
    font-weight: 700;
    font-size: 1.08rem;
    border-radius: 7px;
    border: 2px solid #444;
    min-width: 48px;
    min-height: 44px;
    padding: 0.3rem 0.7rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    position: relative;
    cursor: default;
    transition: background 0.2s, color 0.2s, border 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.55;
    user-select: none;
    z-index: 1;
    font-family: 'Inter', sans-serif;
  }
  .guia-acceso-rapido-key-fn {
    background: #a165ff;
    color: #23232b;
    border: 2px solid #a165ff;
    opacity: 1;
    cursor: pointer;
    z-index: 10;
    font-family: 'Inter', sans-serif;
  }
  .guia-acceso-rapido-key-fn:hover::after {
    content: attr(data-funcion);
    position: absolute;
    left: 50%;
    top: 110%;
    transform: translateX(-50%);
    background: #23232b;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 400;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    white-space: nowrap;
    z-index: 1000;
    border: 1.5px solid #a165ff99;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
  }
  .guia-acceso-rapido-key-fn:hover {
    background: #fffbe6;
    color: #23232b;
    border: 2px solid #a165ff;
    z-index: 100;
    font-family: 'Inter', sans-serif;
  }
  .guia-acceso-rapido-key-off {
    background: #292a33;
    color: #888;
    border: 2px solid #444;
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
    z-index: 1;
    font-family: 'Inter', sans-serif;
  }
  .guia-acceso-rapido-leyenda {
    text-align: center;
    color: #a165ff;
    font-size: 1.01rem;
    margin-top: 1.2rem;
    opacity: 0.85;
    font-family: 'Inter', sans-serif;
  }
  @media (max-width: 900px) {
    .guia-acceso-rapido-keyboard-universal {
      padding: 1.2rem 0.2rem 0.7rem 0.2rem;
    }
    .guia-acceso-rapido-row {
      gap: 0.2rem;
    }
    .guia-acceso-rapido-key {
      min-width: 32px;
      min-height: 28px;
      font-size: 0.98rem;
      padding: 0.2rem 0.3rem;
    }
  }
 