/* ===========================
   🎬 TRANSICIÓN DE PÁGINA Y PRELOADER
   =========================== */

/* Estilo para el spinner (reutilizado del overlay) */
.loader {
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top: 6px solid #4af979;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ✅ AÑADIR: ESTILOS PARA EL PRELOADER INICIAL */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #181a1b; /* Mismo color que el overlay de transición */
  z-index: 100000; /* El más alto de todos */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  visibility: visible;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}


/* ===========================
   🎮 ESTILOS BASE
   =========================== */
/* En style.css (al principio del archivo) */
html, body {
  
  width: 100%;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
  background: transparent;
  position: relative;
  z-index: 1;
  
  /* ✅ AÑADIDO: Estructura Flex para empujar el footer hacia abajo */
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* El body ocupa al menos toda la altura de la pantalla */
}
#video-background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-color: #181a1b; /* Color de fondo sólido por si todo falla */
  background-size: cover;
  background-position: center;
}
.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

/* NUEVO: Clase de fallback que se activará con JS */
#video-background-wrapper.video-failed-fallback .background-video {
  /* Ocultamos el elemento de video si falla para mostrar solo el background-image */
  display: none;
}

/* ===========================
   🧭 BARRA SUPERIOR
   =========================== */
/* ===================================================================
   🧭 BARRA SUPERIOR (VERSIÓN MEJORADA Y ORGANIZADA)
   =================================================================== */

/* Animación de Resplandor para Halloween */
@keyframes halloween-glow {
  0% { box-shadow: 0 0 8px rgba(255, 102, 0, 0.4), 0 0 3px rgba(255, 102, 0, 0.4) inset; }
  50% { box-shadow: 0 0 18px rgba(255, 102, 0, 0.7), 0 0 5px rgba(255, 102, 0, 0.7) inset; }
  100% { box-shadow: 0 0 8px rgba(255, 102, 0, 0.4), 0 0 3px rgba(255, 102, 0, 0.4) inset; }
}

.topbar {
    background: linear-gradient(90deg, rgba(25, 10, 0, 0.9) 0%, rgba(15, 5, 0, 0.95) 100%);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    padding: 0 10px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100000;
    border-bottom: 2px solid rgba(255, 102, 0, 0.4);
    
}

/* Telaraña en la esquina izquierda */
.topbar::before {
z-index: 100000;
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 80px;
    height: 80px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M 0 0 L 100 0 A 100 100 0 0 1 0 100 Z" fill="rgba(200, 200, 200, 0.1)"/><path d="M 0 0 L 100 20 A 100 100 0 0 1 20 100 Z" fill="none" stroke="rgba(200, 200, 200, 0.2)" stroke-width="1"/><path d="M 0 0 L 100 40 A 100 100 0 0 1 40 100 Z" fill="none" stroke="rgba(200, 200, 200, 0.2)" stroke-width="1"/><path d="M 0 0 L 100 60 A 100 100 0 0 1 60 100 Z" fill="none" stroke="rgba(200, 200, 200, 0.2)" stroke-width="1"/><path d="M 0 0 L 100 80 A 100 100 0 0 1 80 100 Z" fill="none" stroke="rgba(200, 200, 200, 0.2)" stroke-width="1"/><path d="M 0 0 L 50 0 A 50 50 0 0 1 0 50 Z" fill="none" stroke="rgba(200, 200, 200, 0.3)" stroke-width="1"/><line x1="0" y1="0" x2="100" y2="100" stroke="rgba(200, 200, 200, 0.2)" stroke-width="1"/><line x1="0" y1="0" x2="70.7" y2="70.7" stroke="rgba(200, 200, 200, 0.2)" stroke-width="1"/><line x1="0" y1="0" x2="0" y2="100" stroke="rgba(200, 200, 200, 0.2)" stroke-width="1"/><line x1="0" y1="0" x2="100" y2="0" stroke="rgba(200, 200, 200, 0.2)" stroke-width="1"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9;
    pointer-events: none; /* Para que no interfiera con los clics */
}

/* Telaraña en la esquina derecha (reflejada) */
.topbar::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 1px;
    width: 80px;
    height: 80px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M 0 0 L 100 0 A 100 100 0 0 1 0 100 Z" fill="rgba(200, 200, 200, 0.1)"/><path d="M 0 0 L 100 20 A 100 100 0 0 1 20 100 Z" fill="none" stroke="rgba(200, 200, 200, 0.2)" stroke-width="1"/><path d="M 0 0 L 100 40 A 100 100 0 0 1 40 100 Z" fill="none" stroke="rgba(200, 200, 200, 0.2)" stroke-width="1"/><path d="M 0 0 L 100 60 A 100 100 0 0 1 60 100 Z" fill="none" stroke="rgba(200, 200, 200, 0.2)" stroke-width="1"/><path d="M 0 0 L 100 80 A 100 100 0 0 1 80 100 Z" fill="none" stroke="rgba(200, 200, 200, 0.2)" stroke-width="1"/><path d="M 0 0 L 50 0 A 50 50 0 0 1 0 50 Z" fill="none" stroke="rgba(200, 200, 200, 0.3)" stroke-width="1"/><line x1="0" y1="0" x2="100" y2="100" stroke="rgba(200, 200, 200, 0.2)" stroke-width="1"/><line x1="0" y1="0" x2="70.7" y2="70.7" stroke="rgba(200, 200, 200, 0.2)" stroke-width="1"/><line x1="0" y1="0" x2="0" y2="100" stroke="rgba(200, 200, 200, 0.2)" stroke-width="1"/><line x1="0" y1="0" x2="100" y2="0" stroke="rgba(200, 200, 200, 0.2)" stroke-width="1"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    transform: scaleX(-1); /* Reflejar horizontalmente */
    opacity: 0.9;
    pointer-events: none;
}

.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
}

.logo img {
    height: 74px;
    opacity: 0.7;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px #ff6600);
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 18px; /* AUMENTADO: Más espacio entre elementos */
    margin: 0 auto;
}

.nav-icon {
    height: 20px;
    width: 20px;
    margin-right: 3px;
    vertical-align: middle;
    filter: grayscale(100%) brightness(2);
    transition: filter 0.2s ease;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px; /* AUMENTADO: Botones más grandes y cómodos */
    color: #ccc;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    border-radius: 8px;
    position: relative;
    border: 1px solid transparent;
}

.nav-item:hover {
    color: #ffffff;
}

.nav-item.active {
    color: #ff6600; 
}

.nav-item.active .nav-icon {
    filter: brightness(0) saturate(100%) invert(48%) sepia(89%) saturate(4101%) hue-rotate(359deg) brightness(101%) contrast(104%);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #ff6600;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.25s ease-out;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 80%;
}

.vip-button {
    background-color: #ff6600;
    color: #000;
    font-weight: bold;
    border-radius: 8px;
    margin-right: 15px;
    animation: halloween-glow 3s linear infinite;
    position: relative;
    padding-left: 30px; /* Espacio para el ícono de calabaza */
}
.vip-button::before {
    content: '🎃';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
}

.vip-button:hover {
    background-color: #ff8c00;
    color: #000;
}

.dropdown-container {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 8px 8px;
    color: #ccc;
    font-weight: bold;
    font-size: 16px;
    border-radius: 8px;
}

.dropdown-container:hover .dropdown-toggle {
    color: #ffffff;
    background-color: rgba(255, 102, 0, 0.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(18, 9, 0, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 102, 0, 0.5);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    padding: 10px;
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.dropdown-container:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    color: #ccc;
    padding: 12px 18px; /* AUMENTADO: Más espacio en el desplegable */
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
}
.dropdown-menu a:hover {
    background-color: #ff6600;
    color: #000;
}

.dropdown-column h4 {
    color: #ff6600;
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 102, 0, 0.3);
}
.categories-menu {
    display: none;
    gap: 30px; /* AUMENTADO: Más espacio entre columnas */
    padding: 25px; /* AUMENTADO: Más espacio interno */
    min-width: 550px; /* AUMENTADO: Ancho para acomodar la nueva columna */
}
.dropdown-container:hover .categories-menu {
    display: flex; /* Se muestra con flexbox */
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.search-trigger-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 15px;
    color: #ccc;
    cursor: pointer;
    font-size: 15px;
}

.search-trigger-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.search-trigger-btn i {
    color: #ff6600;
}

.action-btn {
    background: transparent;
    border: 1px solid #555;
    color: #ccc;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}
.action-btn:hover {
    background-color: #ff6600;
    color: #000;
    border-color: #ff6600;
}
@media (max-width: 768px) {
    .search-trigger-btn span {
        display: none; /* En móvil, mostramos solo el ícono */
    }
    .search-trigger-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
}


/* ===================================
   🔍 MODAL DE BÚSQUEDA (VERSIÓN MEJORADA)
   =================================== */
body.no-scroll {
  overflow: hidden;
}

.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ✅ CAMBIO: Fondo más oscuro y opaco. Es mucho más rápido que el blur. */
    background-color: rgba(18, 18, 18, 0.9); 
    z-index: 100050;
    
    display: none; 
    opacity: 0;
    
    justify-content: center;
    /* ✅ AÑADIDO: Alinear el contenido en la parte superior para dar espacio a las sugerencias */
    align-items: flex-start; 
    padding-top: 15vh; /* Distancia desde la parte superior */

    /* Animación de entrada rápida */
    animation: fadeInModal 0.2s ease-out forwards;
}

.search-modal-overlay.closing {
    animation: fadeOutModal 0.2s ease-in forwards;
}

@keyframes fadeInModal {
    to { opacity: 1; }
}
@keyframes fadeOutModal {
    to { opacity: 0; }
}

.search-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    transform: scale(0.98);
    /* ✅ AÑADIDO: Estructura flex para separar el input de las sugerencias */
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: scaleInModal 0.2s ease-out forwards;
}

.search-modal-overlay.closing .search-modal-content {
    animation: scaleOutModal 0.2s ease-in forwards;
}

@keyframes scaleInModal {
    to { transform: scale(1); }
}

@keyframes scaleOutModal {
    to { transform: scale(0.98); }
}

/* ✅ CAMBIO: Posición del botón de cerrar mejorada */
.search-modal-close-btn {
    position: absolute;
    top: -15px;      /* Más arriba */
    right: -15px;     /* Más a la derecha */
    background: #1e1e1e;
    border: 2px solid #ff4d4d;
    color: #ff4d4d;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
}

.search-modal-close-btn:hover {
    background: #ff4d4d;
    color: #1e1e1e;
    transform: rotate(90deg) scale(1.1);
}

.search-modal-form {
    display: flex;
    width: 100%;
    background-color: #1e1e1e;
    border-radius: 12px;
    border: 1px solid #4af979;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

#search-modal-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 20px 25px;
    font-size: 1.2rem;
    color: #fff;
}

.search-modal-submit-btn {
    background: #4af979;
    border: none;
    color: #000;
    padding: 0 25px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color 0.3s;
}

.search-modal-submit-btn:hover {
    background-color: #39e06c;
}

/* ⭐ NUEVO: Estilos para la barra de sugerencias */
#search-suggestions-container {
    background-color: #1e1e1e;
    border-radius: 12px;
    border: 1px solid #333;
    max-height: 300px; /* Altura máxima antes de mostrar scroll */
    overflow-y: auto;
    display: none; /* Oculto por defecto */
    animation: fadeInSuggestions 0.3s ease;
}

@keyframes fadeInSuggestions {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.suggestion-item {
    padding: 15px 25px;
    color: #ccc;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid #2a2a2a;
    font-size: 1rem;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #4af979;
    color: #000;
}

/* Para resaltar el texto coincidente en la sugerencia */
.suggestion-item strong {
    color: #4af979;
}

.suggestion-item:hover strong {
    color: #000;
}

/* Scrollbar personalizado para las sugerencias */
#search-suggestions-container::-webkit-scrollbar {
  width: 6px;
}
#search-suggestions-container::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 10px;
}
#search-suggestions-container::-webkit-scrollbar-thumb {
  background: #4af979;
  border-radius: 10px;
}
/* --- Botones de Acción (Tema y Cuenta) --- */
.action-btn {
    background: transparent;
    border: 1px solid #555;
    color: #ccc;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}
.action-btn:hover {
    background-color: #4af979;
    color: #000;
    border-color: #4af979;
}
#auth-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    justify-content: center; /* Ensures icon is centered */
}

#auth-btn .user-profile-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

/* 🍔 INICIO: MENÚ HAMBURGUESA Y OVERLAY (OCULTOS EN ESCRITORIO) */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10002;
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background-color: #fff;
    border-radius: 5px;
    transition: all 0.3s linear;
    transform-origin: 1px;
}

.burger-menu.open span:nth-child(1) {
    transform: rotate(45deg);
}
.burger-menu.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}
.burger-menu.open span:nth-child(3) {
    transform: rotate(-45deg);
}

/* El overlay oscuro que aparece detrás del menú */
#mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}
/* FIN MENÚ HAMBURGUESA */

/* ===================================================================
   📱 ESTILOS PARA MÓVIL Y TABLET (RESPONSIVE)
   =================================================================== */

@media (max-width: 768px) {
    .burger-menu {
        display: flex; /* 🍔 Mostramos el botón de hamburguesa */
    }

    /* Ocultamos la navegación principal y la preparamos para ser un panel lateral */
    .topbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        position: fixed;
        top: 0;
        left: -100%; /* Inicia fuera de la pantalla */
        width: 220px;
        height: 100vh; /* ✨ CAMBIO CLAVE: Ocupa el 100% de la altura de la pantalla */
        padding: 80px 0 20px;
        background: linear-gradient(180deg, rgba(10, 46, 28, 1) 0%, rgba(15, 30, 22, 0.98) 100%);
        backdrop-filter: blur(10px);
        box-shadow: 5px 0 20px rgba(0,0,0,0.4);
        z-index: 10001;
        overflow-y: auto;
        transition: left 0.4s ease-in-out;
    }

    .topbar-nav.mobile-nav-active {
        left: 0;
    }

    .topbar-nav .nav-item,
    .topbar-nav .dropdown-container {
        width: 100%;
        text-align: left;
        padding: 5px 25px;
        box-sizing: border-box;
    }

.topbar-nav .dropdown-menu,
    .topbar-nav .categories-menu {
       /* We control visibility with max-height, not display */
        
        max-height: 0;    /* Starts completely closed */
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out, margin 0.4s ease-in-out;

        /* Visuals and Layout */
        background: rgba(10, 4, 0, 0.85);
        border: none;
        box-shadow: inset 0 5px 15px rgba(0,0,0,0.6);
        border-radius: 8px;
        min-width: unset;
        width: auto;      /* The menu will fit inside the sidebar */
        
        /* No padding or margin when closed */
        padding: 0 15px 0 30px;
        margin: 0 20px;
    }

.topbar-nav .dropdown-container.menu-open .dropdown-menu,
    .topbar-nav .dropdown-container.menu-open .categories-menu {
        max-height: 350px; /* Max height before scrolling starts */
        overflow-y: auto;  /* ✅ THIS ADDS THE INTERNAL SCROLLBAR */
        
        /* Add back padding/margin to look good when open */
        padding: 15px 15px 15px 25px;
        margin: 5px 20px 15px;
        
        border: 1px solid rgba(255, 102, 0, 0.6);
    }

   


    /* Simplificamos el botón de cuenta para que solo muestre el ícono */
    #auth-btn .auth-text {
        display: none;
    }
    #auth-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 0 15px;
        height: 65px;
    }

    /* ✨ ELIMINADO: Ya no necesitamos la clase para ocultar la barra. */
    /* .topbar-hidden { ... } */

    .logo img {
        height: 45px;
    }

    .search-container.active .search-input {
        width: 150px;
    }
}

/* ===========================
   ⭐ MODAL DE AUTENTICACIÓN
   =========================== */
.auth-modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 100010;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-modal-content {
  background-color: #1e1e1e;
  padding: 40px;
  border-radius: 12px;
  position: relative;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-modal-btn {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
}
.close-modal-btn:hover,
.close-modal-btn:focus {
  color: #fff;
  text-decoration: none;
}

.auth-tabs {
  display: flex;
  margin-bottom: 25px;
  border-bottom: 2px solid #4af979;
}
.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 15px 10px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ccc;
  transition: color 0.3s ease;
  border-bottom: 2px solid transparent;
}
.auth-tab-btn.active {
  color: #fff;
  border-bottom: 2px solid #fff;
}

.auth-tab-content {
  display: none;
}
.auth-tab-content.active {
  display: block;
}

h2 {
  font-family: 'Unkempt', sans-serif;
  color: #72f58d;
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #444;
  background-color: #2a2a2a;
  color: #fff;
  border-radius: 6px;
  box-sizing: border-box;
}

.auth-submit-btn, .social-btn {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  margin-top: 10px;
}
.auth-submit-btn {
  background-color: #4af979;
  color: #000;
  transition: background-color 0.3s;
}
.auth-submit-btn:hover {
  background-color: #39e06c;
}

.auth-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
  color: #aaa;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background-color: #444;
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
}
.social-btn i { font-size: 1.2rem; }
.google-btn { background-color: #dd4b39; }
.google-btn:hover { background-color: #c43c2c; }
.facebook-btn { background-color: #3b5998; }
.facebook-btn:hover { background-color: #2d4373; }
.facebook-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
}
.auth-message.error {
  background-color: #ffcccc;
  color: #cc0000;
}
.auth-message.success {
  background-color: #ccffcc;
  color: #008000;
}
/* ===========================
   ⭐ MODAL DE PERFIL
   =========================== */
.profile-modal-content {
  padding: 30px;
  text-align: center;
}
.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.profile-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #4af979;
}
.profile-details {
  text-align: left;
  line-height: 1.6;
}
.profile-details p {
  margin: 5px 0;
  font-size: 1rem;
}
.profile-details strong {
  color: #72f58d;
}

.profile-actions {
  display: flex;
  justify-content: center;
}

.registro-desactivado {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
  font-size: 15px;
  text-align: center;
}
/* ===========================
   ⭐ distintivos rol
   =========================== */
/* Distintivos de rol */
.user-badge {
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  display: inline-block;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Colores por rol */
.badge-gratis { background: #777; color: #fff; }
.badge-vip { background: #ffd700; color: #000; }
.badge-donador { background: #ff69b4; color: #fff; }
.badge-creador { background: #1e90ff; color: #fff; }
.badge-soporte { background: #32cd32; color: #fff; }

.upgrade-vip {
  margin-top: 15px;
  text-align: center;
}


/* =================================== */
/* ⭐ NUEVO MODAL DE PERFIL PROFESIONAL */
/* =================================== */

/* Contenedor principal del nuevo modal */
#profile-modal-content-v2 {
  background: #1e1e1e; /* Fondo oscuro base */
  border-radius: 15px;
  padding: 0; /* Quitamos el padding para controlar cada sección */
  max-width: 420px;
  overflow: hidden; /* Clave para que los bordes redondeados funcionen */
  border: 2px solid #4af979; /* Borde verde por defecto */
  box-shadow: 0 0 25px rgba(74, 249, 121, 0.3);
  text-align: center;
  transition: border-color 0.4s ease;
}

/* Encabezado del perfil */
.profile-header {
  background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
  height: 100px;
  position: relative;
}

/* Imagen de perfil mejorada */
.profile-img-v2 {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 5px solid #1e1e1e; /* Borde que coincide con el fondo del modal */
  object-fit: cover;
  position: absolute;
  bottom: -50px; /* La mitad de la imagen sobresale hacia abajo */
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Cuerpo del perfil */
.profile-body {
  padding: 65px 25px 20px; /* Padding superior alto para dejar espacio a la imagen, inferior reducido */
  display: flex;
  flex-direction: column;
  gap: 12px; /* Espacio reducido entre elementos */
}

.profile-name-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.profile-name {
  font-family: 'Unkempt', sans-serif;
  font-size: 2rem;
  color: #fff;
  margin: 0;
  line-height: 1;
}

.edit-name-btn {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.edit-name-btn:hover {
  color: #4af979;
}

.name-change-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.name-change-form input {
  width: 90%;
  text-align: center;
  margin-bottom: 5px;
}

.name-change-form button {
  padding: 8px 20px;
  background-color: #4af979;
  color: #000;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.name-change-warning {
  font-size: 0.75rem;
  color: #ffc107;
  margin: 5px 0 0 0;
}


/* Contenedor de la insignia de rol */
#user-badge-v2 {
  margin: 0; /* Reducido el margen superior */
  display: inline-block; /* Para que el margin funcione */
}

/* Nivel y Barra de XP */
.profile-level-container {
  width: 100%;
  margin: 5px 0;
}
.level-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #ccc;
  margin-bottom: 5px;
  padding: 0 5px;
}
.level-bar {
  width: 100%;
  height: 10px;
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #333;
}
.level-bar-progress {
  height: 100%;
  background: linear-gradient(90deg, #4af979, #72f58d);
  border-radius: 10px;
  transition: width 0.5s ease-in-out;
}

/* Estadísticas del usuario */
.profile-stats {
  display: flex;
  justify-content: space-around;
  margin: 5px 0; /* Margen reducido */
  background: rgba(0,0,0,0.2);
  padding: 12px; /* Padding reducido */
  border-radius: 10px;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-value {
  font-size: 1.6rem; /* Tamaño reducido */
  font-weight: bold;
  color: #72f58d;
}
.stat-label {
  font-size: 0.75rem; /* Tamaño reducido */
  color: #aaa;
  text-transform: uppercase;
}

/* Placeholder de Misiones */
.missions-bar-placeholder {
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px dashed #444;
    border-radius: 8px;
    color: #888;
    font-weight: bold;
    font-size: 0.9rem;
}
.missions-bar-placeholder i {
    margin-right: 8px;
}

/* Detalles (email, miembro desde) */
.profile-details-v2 {
  text-align: left;
  line-height: 1.6;
  font-size: 0.9rem;
  color: #ccc;
  width: 100%;
}
.profile-details-v2 i {
  color: #4af979; /* Iconos en verde */
  margin-right: 10px;
  width: 20px; /* Alineación */
  text-align: center;
}
.profile-details-v2 p {
  margin: 5px 0;
}
.profile-details-v2 strong {
  color: #fff; /* El texto "Email:" en blanco */
}

/* Llamada a la acción para ser VIP (más compacta) */
.profile-cta {
  margin-top: 5px;
  width: 100%;
}
.cta-button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(74, 249, 121, 0.1);
  border: 1px dashed #4af979;
  border-radius: 10px;
  padding: 12px 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.cta-button:hover {
  background: rgba(74, 249, 121, 0.2);
  border-style: solid;
  transform: scale(1.02);
}

.cta-icon {
  font-size: 1.5rem;
}

.cta-text {
  color: #ccc;
  font-size: 0.85rem;
  text-align: left;
  line-height: 1.3;
}
.cta-text strong {
  color: #fff;
  display: block;
}


/* Pie del modal */
.profile-footer {
  background: rgba(0,0,0,0.2);
  padding: 15px;
}
.logout-btn-v2 {
  background-color: #d9534f; /* Botón de logout en rojo */
  width: 100%;
}
.logout-btn-v2:hover {
  background-color: #c9302c;
}

/* --- ESTILOS ESPECÍFICOS PARA VIP --- */

/* Clase que se añade con JS al contenedor del modal */
#profile-modal-content-v2.is-vip {
  border-color: #ffd700; /* Borde dorado para VIP */
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

/* Ocultar la llamada a la acción para VIPs */
#profile-modal-content-v2.is-vip .profile-cta {
  display: none;
}

/* Cambiar el color del banner para VIPs */
#profile-modal-content-v2.is-vip .profile-header {
  background: linear-gradient(45deg, #4d3d00, #b38f00);
}

/* --- ESTILOS PARA MODAL DE SEGURIDAD --- */
/* ✅ AÑADIDO: Hacemos el modal de seguridad más ancho */
#security-modal .auth-modal-content {
    max-width: 800px; /* Puedes ajustar este valor como quieras */
}

#security-info-content {
    text-align: left;
    color: #ddd;
    line-height: 1.2;
}

#security-info-content h2 {
    text-align: center;
}

#security-info-content p {
    margin-bottom: 12px;
}

#security-info-content strong {
    color: #4af979;
}

/* =======================================
   ✨ FONDO DE PARTÍCULAS (FALLBACK)
   ======================================= */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* Se posiciona detrás del video para no interferir */
  z-index: -2;
  /* Oculto por defecto, se activa con JS si el video falla */
  display: none;
}
/* ===========================
   🌙 MODO OSCURO
   =========================== */
body.dark-mode {
  background-color: #111;
  color: #ddd;
}

body.dark-mode .logo {
  color: #72f58d;
}

body.dark-mode .busqueda-modern {
  background-color: rgba(20, 20, 20, 0.8);
}

body.dark-mode .buscador-principal,
body.dark-mode .input-con-icono {
  background-color: #1e1e1e;
}

body.dark-mode .btn-buscar {
  background-color: #0062cc;
}

body.dark-mode .btn-buscar:hover {
  background-color: #004a99;
}


/* ===========================
   🎬 ANIMACIONES VIDEO FONDO
   =========================== */
.background-video.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.background-video.fade-in {
  opacity: 1;
  transition: opacity 0.5s ease;
}
/* ===========================
   bara inferior donaciones idioma etc
   =========================== */
.glug-language-switcher {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  font-family: sans-serif;
}

.lang-main {
  background-color: #1f1f1f;
  color: #fff;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 20px;
  border: 2px solid #4af979;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: width 0.3s ease;
  overflow: hidden;
  width: 100px;
  height: 38px;
}

.lang-main.open {
  width: 215px;
}

.lang-main img.flag-icon {
  width: 22px;
  height: 15px;
  object-fit: cover;
}

.lang-menu {
  display: none;
  flex-direction: column;
  margin-top: 6px;
  background-color: #2b2b2b;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  width: 200px;
}

.lang-menu button {
  background: none;
  color: #fff;
  border: none;
  padding: 6px 8px;
  text-align: left;
  width: 100%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-menu button:hover {
  background-color: #4af979;
  color: #000;
  border-radius: 6px;
}

.lang-menu img {
  width: 22px;
  height: 15px;
  object-fit: cover;
}
.lang-main .arrow {
  transition: transform 0.3s ease;
  display: inline-block;
}

.lang-main.open .arrow {
  transform: rotate(180deg);
}

.glug-donation-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100000;
}

.donate-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #1f1f1f;
  color: #fff;
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 20px;
  border: 2px solid #4af979;
  cursor: pointer;
  transition: transform 0.3s;
}

.donate-btn img {
  width: 20px;
  height: 20px;
  object-fit: cover;
}

.donate-btn:hover {
  transform: scale(1.05);
}


.glug-donation-box {
  position: fixed;
  bottom: 100px;
  right: -400px;
  width: 300px;
  background-color: #2b2b2b;
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
  transition: right 0.4s ease;
  z-index: 99999;
}

.glug-donation-box.open {
  right: 20px;
}

.glug-donation-box h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #4af979;
}

.glug-donation-box p {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.donation-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.donation-buttons a {
  text-decoration: none;
  background-color: #4af979;
  color: #000;
  padding: 8px;
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
}

.donation-buttons a:hover {
  background-color: #39e06c;
}

/* ===================================================================
   ✅ INICIO: REDISEÑO COMPLETO DEL FOOTER (BARRA INFERIOR)
   =================================================================== */

.glug-footer {
  background-color: #121212; /* Un negro más profundo y profesional */
  color: #a0a0a0;
  padding: 50px 40px 0; /* Más padding arriba, sin padding abajo (lo maneja el .footer-bottom) */
  margin-top: 60px; /* Asegura un espacio con el contenido de arriba */
  border-top: 3px solid #4af979; /* Borde superior verde para un look premium */
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  /* ✨ MAGIA RESPONSIVE: Las columnas se ajustan solas. Mínimo 220px, máximo 1fr (fracción del espacio) */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px; /* Espacio entre columnas */
  padding-bottom: 40px;
}

.footer-column h4 {
  font-family: 'Unkempt', sans-serif;
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

/* Línea decorativa debajo de los títulos */
.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: #4af979;
  border-radius: 2px;
}

/* Columna 1: Logo y "Sobre nosotros" */
.footer-about .footer-logo {
  max-width: 180px;
  margin-bottom: 15px;
}

.footer-about .footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Columnas 2 y 3: Listas de enlaces */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #a0a0a0;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
  position: relative;
}

.footer-links a:hover {
  color: #4af979;
  padding-left: 8px; /* Efecto de desplazamiento al pasar el mouse */
}

/* Flechita que aparece al hacer hover */
.footer-links a:hover::before {
  content: '»';
  position: absolute;
  left: 0;
  top: 0;
  color: #4af979;
}

/* Columna 4: Redes Sociales */
.footer-social p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social-icons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-social-icons a {
  color: #a0a0a0;
  font-size: 1.8rem; /* Tamaño para los íconos de Font Awesome */
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-icons a:hover {
  color: #4af979;
  transform: scale(1.2) rotate(5deg); /* Efecto dinámico */
}


/* Barra inferior de Copyright */
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  margin-top: 30px;
  border-top: 1px solid #2a2a2a; /* Línea separadora sutil */
  font-size: 0.9rem;
  color: #777;
}

.footer-bottom .heart {
  color: #4af979;
}


/* --- Responsive para el Footer --- */
@media (max-width: 768px) {
  .glug-footer {
    padding: 40px 20px 0;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr; /* Dos columnas en tablets */
  }
  .footer-about, .footer-social {
    grid-column: 1 / -1; /* Hacemos que la primera y última columna ocupen todo el ancho */
    text-align: center;
  }
  .footer-about .footer-logo {
    margin: 0 auto 15px;
  }
  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr; /* Una sola columna en móviles */
    text-align: center;
  }
}
/* ===========================
   🎬 TRANSICIÓN DE PÁGINA PROFESIONAL
   =========================== */

/* ===========================
   🎬 TRANSICIÓN DE CONTENIDO (FADE)
   =========================== */


/* ===========================
   🎬 TRANSICIÓN DE PÁGINA PROFESIONAL
   =========================== */

#page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* ✅ EFECTO BASE: Compatible con todos los dispositivos, incluido Android */
  background-color: rgba(24, 26, 27, 0.85); /* Aumenté ligeramente la opacidad para mejor visibilidad */
  z-index: 99998;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-out, visibility 0.2s ease-out;
}

/* ✅ MEJORA PROGRESIVA: El desenfoque se aplica SOLO si el navegador lo soporta */
@supports (backdrop-filter: blur(5px)) {
  #page-transition-overlay {
    backdrop-filter: blur(5px);
  }
}

#page-transition-overlay.active {
  opacity: 1;
  visibility: visible;
}
#app-content {
  flex-grow: 1; 
  transition: opacity 0.4s ease-in-out; 
  
  /* ✅ AÑADIDO: El "bloque invisible" que pediste */
  /* Esto garantiza que el área de contenido nunca colapse. */
  /* 100vh significa 65% de la altura de la pantalla, un buen valor. */
  min-height: 100vh; 
}

/* ✅ AÑADIDO: Clase para la animación de desvanecimiento */
#app-content.fade-out {
  opacity: 0;
}

content-loader-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  /* Usa la misma altura mínima para consistencia */
  min-height: 65vh; 
}
/* El spinner de carga */
.loader {
  border: 6px solid rgba(255, 255, 255, 0.2); /* Borde gris semi-transparente */
  border-top: 6px solid #4af979;             /* Borde verde para la parte que gira */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

/* Animación de rotación para el spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- LIMPIEZA DE CÓDIGO ANTIGUO --- */
/* Eliminamos la transición anterior para evitar conflictos. */
/* Busca la regla #app-content y asegúrate de que no tenga la propiedad 'transition'. */
/* Si la tiene, bórrala. También puedes borrar la regla #app-content.fade-out. */

/* Mostrar la mano en enlaces y controles */
a, button, input, textarea, label, [role="button"] {
  cursor: pointer !important;
}

/* Mostrar la mano también para cualquier elemento con onclick (divs, spans, etc) */
*[onclick] {
  cursor: pointer !important;
}







/*----------------------------------*/
/*----------------------------------*/
/*PAGINAS SECUNDARIAS HOME Y EXPLORAR*/
/*----------------------------------*/
/*----------------------------------*/

/* En style.css */

.page-crear-juego {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
}

.creator-form {
  background-color: rgba(27, 27, 27, 0.9);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #444;
}

.creator-form fieldset {
  border: 1px solid #444;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
}

.creator-form legend {
  padding: 0 10px;
  font-weight: bold;
  font-size: 1.2rem;
  color: #4af979;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label, .form-group h3 {
  margin-bottom: 8px;
  color: #ccc;
  font-weight: bold;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 10px;
  background-color: #2a2a2a;
  border: 1px solid #555;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
}

.form-group.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.tags.interactive-tags .tag {
  cursor: pointer;
  transition: all 0.2s ease;
}
.tags.interactive-tags .tag:hover,
.tags.interactive-tags .tag.activa {
  background-color: #4af979;
  color: #000;
  transform: scale(1.05);
}

.hidden { display: none !important; }

.link-group {
    background: #121212;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #333;
}
.link-group input {
    margin-bottom: 10px;
}
.link-group input:last-child {
    margin-bottom: 0;
}


.submit-creator-form {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    background-color: #4af979;
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.submit-creator-form:hover {
    background-color: #39e06c;
}

.results-container {
    margin-top: 40px;
    background: #111;
    border: 1px solid #4af979;
    padding: 20px;
    border-radius: 12px;
}
.result-step {
    background: #1c1c1c;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.result-step h3 { color: #4af979; }
.result-step button {
    padding: 8px 15px;
    margin-bottom: 10px;
    background-color: #4af979;
    color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.result-step pre {
    background: #000;
    padding: 10px;
    border-radius: 6px;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
}
/* --- Estilos para los nuevos tags en 'crear-juego.html' --- */

.creator-form .tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px; /* Espacio entre las cajas */
}

.creator-form .tag-wrapper {
  flex-grow: 1; /* Permite que las cajas se estiren para llenar el espacio */
}

.creator-form .tags-container .tag {
  display: block; /* Hacemos que el span ocupe todo el wrapper */
  width: 100%;
  text-align: center;
  background-color: #3f4247;
  padding: 10px 15px; /* Más padding para que se vea como caja */
  border-radius: 8px; /* Bordes menos redondeados */
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #555;
}

.creator-form .tags-container .tag:hover {
  background-color: #5a5e63;
  border-color: #777;
  transform: translateY(-2px); /* Efecto de levantar */
}

.creator-form .tags-container .tag.activa {
  background-color: #4af979;
  color: #000;
  font-weight: bold;
  border-color: #4af979;
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(74, 249, 121, 0.4);
}
/* ===================================================================
   ⭐ INICIO: NUEVOS ESTILOS PARA CARRUSEL EXCLUSIVO (TIPO EPIC STORE)
   =================================================================== */

.page-home .carrusel-exclusivo {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  height: 450px;
  background-color: #121212;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
}

/* --- Vista Principal (Izquierda) --- */
.page-home .carrusel-main-view {
  flex: 3;
  position: relative;
  overflow: hidden;
  /* ✅ AÑADIDO: Transición suave para el efecto de elevación y cursor */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  cursor: pointer;
  /* Opcional: Esto ayuda a que la sombra se vea bien con los bordes redondeados del contenedor padre */
  border-radius: 16px 0 0 16px;
}
.page-home .carrusel-main-view:hover {
  transform: translateY(-5px); /* Lo levantamos 5px (puedes ajustarlo si lo quieres más sutil) */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6); /* Sombra para dar profundidad */
}
.page-home .carrusel-background {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
will-change: background-image;
}
.page-home .carrusel-main-view:hover .carrusel-background {
    transform: scale(1.03);
}

/* ✅ CAMBIO: Transición de FADE para el fondo (Crossfade) */
.page-home .carrusel-background::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-image: var(--old-bg-image); /* Se asignará con JS */
    opacity: 0;
will-change: opacity;
}

/* La animación que desvanece la imagen antigua */
@keyframes background-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}
.page-home .carrusel-background.is-fading::before {
    opacity: 1; /* Hacemos visible la imagen antigua por encima */
    animation: background-fade-out 0.8s ease-in-out forwards;
}


/* Overlay para oscurecer la imagen y que el texto sea legible */
.page-home .carrusel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(18, 18, 18, 0.8) 0%, rgba(18, 18, 18, 0.5) 50%, transparent 100%);
}

/* Contenedor de la información del juego */
.page-home .carrusel-info {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: #fff;
  max-width: 50%;
will-change: transform, opacity;
}

/* ✅ CAMBIO CLAVE: Nuevas animaciones de texto "Epic Style" */
@keyframes epic-text-out {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(-20%); /* Se mueve solo un poco */
        opacity: 0; 
    }
}
@keyframes epic-text-in {
    from { 
        transform: translateX(20%); /* Empieza desde cerca */
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}
/* Usamos una curva de aceleración suave (ease-in-out) */
.page-home .carrusel-info.slide-out {
    animation: epic-text-out 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.page-home .carrusel-info.slide-in {
    animation: epic-text-in 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}


.page-home .carrusel-title {
  font-size: 2.8rem;
  font-weight: bold;
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.page-home .carrusel-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}


/* --- Lista de Navegación (Derecha) --- */
.page-home .carrusel-nav-list {
  flex: 1;
  background-color: #1a1a1a;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.page-home .nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background-color: #252525;
  border: 2px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.page-home .nav-item:hover {
    background-color: #333;
}

.page-home .nav-item.active {
  background-color: #333;
  border-color: #fff;
}

.page-home .nav-item-img {
  width: 90px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.page-home .nav-item-title {
  color: #ccc;
  font-weight: bold;
  flex-grow: 1;
}
.page-home .nav-item.active .nav-item-title {
    color: #fff;
}

/* Barra de progreso de la autonavegación */
.page-home .nav-item .progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0;
  background-color: #4af979;
  border-radius: 0 2px 2px 0;
}

.page-home .nav-item.active .progress-bar {
  width: 100%;
  transition: width 5s linear;
}

/* --- ÚLTIMAS PUBLICACIONES --- */
.page-home .ultimas-header {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 40px auto 0 auto;
  padding: 0 40px;
}

.page-home .ultimas-header img.ultimas-icon {
  width: 85px;
  height: 85px;
  object-fit: contain;
  filter: drop-shadow(0 0 2px #000) drop-shadow(0 0 6px #000);
}

.page-home .ultimas-header h2 {
  margin: 0;
  font-size: 3.5rem;
  color: #72f58d;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.page-home .juegos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  padding: 20px 40px;
  max-width: 1220px;
  margin: auto;
}

.page-home .juego-card {
  background-color: #181818;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 5px 14px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.2s ease;
  border: 1.5px solid #808080;
  text-decoration: none;
}

.page-home .juego-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-home .juego-img-container {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.page-home .juego-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .juego-tag {
  position: absolute;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 14px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6);
}

.page-home .tag-version {
  top: 8px;
  right: 8px;
  background-color: rgba(80, 80, 80, 0.85);
  color: #fff;
}

.page-home .tag-plataforma {
  display: flex;
  align-items: center;
  gap: 5px;
  top: 8px;
  left: 8px;
  background-color: rgba(80, 80, 80, 0.85);
}

.page-home .tag-plataforma img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.page-home .tag-cracker {
  bottom: 8px;
  left: 8px;
  background-color: rgba(80, 80, 80, 0.85);
}

.page-home .juego-info {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .juego-info h3 {
  margin: 0;
  font-size: 1.45rem;
  color: #fff;
  text-decoration: none;
}

.page-home .juego-info p {
  font-size: 1.0rem;
  line-height: 1.4;
  color: #bbb;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-home .juego-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .juego-tags span {
  font-size: 0.85rem;
  background: #333;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
}

.page-home .ver-mas-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #1f1f1f;
  border: 4px dashed #4af979;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.page-home .ver-mas-card:hover {
  background-color: #2b2b2b;
  transform: scale(1.03);
}

.page-home .ver-mas-card h3 {
  margin: 0;
  font-size: 1.45rem;
  color: #fff;
  text-decoration: none;
}

.page-home .ver-mas-card p {
  font-size: 1.0rem;
  line-height: 1.4;
  color: #bbb;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-home .ver-mas-contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.page-home .ver-mas-icono {
  font-size: 80px;
  font-weight: bold;
  color: #4af979;
  line-height: 1;
}

/* --- Colores por plataforma --- */
.page-home .tag-plataforma.pc,
.page-home .plataforma-tag.pc { background-color: #555; }
.page-home .tag-plataforma.android,
.page-home .plataforma-tag.android { background-color: #2ecc71; }
.page-home .tag-plataforma.roms,
.page-home .plataforma-tag.roms { background-color: #3498db; }
.page-home .tag-plataforma.pc-apps,
.page-home .plataforma-tag.pc-apps { background-color: #e67e22; }
.page-home .tag-plataforma.android-apps,
.page-home .plataforma-tag.android-apps { background-color: #1abc9c; }
.page-home .tag-plataforma.pc-mods,
.page-home .plataforma-tag.pc-mods { background-color: #95a5a6; }
.page-home .tag-plataforma.android-mods,
.page-home .plataforma-tag.android-mods { background-color: #9acd32; }
.page-home .tag-plataforma.android-emus,
.page-home .plataforma-tag.android-emus { background-color: #16a085; }
.page-home .tag-plataforma.pc-emuladores,
.page-home .plataforma-tag.pc-emuladores { background-color: #8e44ad; }


/* --- Media Queries de Inicio --- */
@media (max-width: 768px) {
 .page-home .carrusel-exclusivo {
        flex-direction: column;
        height: auto;
    }
    .page-home .carrusel-main-view {
        height: 350px; /* Altura para la imagen principal en móvil */
    }
    .page-home .carrusel-info {
        max-width: 90%;
        left: 20px;
        bottom: 20px;
    }
    .page-home .carrusel-title {
        font-size: 2rem;
    }
    .page-home .carrusel-nav-list {
        flex-direction: row;
        overflow-x: auto; /* Scroll horizontal en móvil */
    }
    .page-home .nav-item {
        flex-direction: column;
        min-width: 120px; /* Ancho mínimo de cada item en la lista */
    }
    .page-home .nav-item-img {
        width: 100%;
        height: 60px;
    }

  .page-home .ultimas-header {
    padding: 0 15px;
    margin-top: 20px;
    justify-content: center;
  }

  .page-home .ultimas-header img.ultimas-icon {
    width: 50px;
    height: 50px;
  }

  .page-home .ultimas-header h2 {
    font-size: 2rem;
  }
  
  .page-home .juegos-grid {
    grid-template-columns: 1fr;
    padding: 20px 15px;
    gap: 30px;
  }
}

/* ===================================
   🏠 HOME: NUEVO DISEÑO DE INICIO
   =================================== */

/* --- Estructura Principal de 2 Columnas --- */
.page-home .home-content-grid {
  display: grid;
  grid-template-columns: 3fr 1fr; /* 75% para juegos, 25% para sidebar */
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
}

.page-home .juegos-recientes-container h2 {
  font-family: 'Unkempt', sans-serif;
  font-size: 2rem;
  color: #72f58d;
  margin-bottom: 20px;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
}

/* --- Cuadrícula de Juegos (reutiliza estilos de 'explorar') --- */
.page-home #juegos-grid-paginado {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 juegos por fila */
  gap: 25px;
}

/* --- Controles de Paginación --- */
.page-home .paginacion {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.page-home .paginacion-btn {
  background-color: #2a2a2a;
  border: 1px solid #444;
  color: #ccc;
  font-weight: bold;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-home .paginacion-btn:hover:not(:disabled) {
  background-color: #4af979;
  color: #000;
  border-color: #4af979;
}

.page-home .paginacion-btn.pagina-activa {
  background-color: #4af979;
  color: #000;
  border-color: #4af979;
}

.page-home .paginacion-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Sidebar y Widget de Búsqueda --- */
.page-home .home-sidebar {
  background-color: #1a1c1d;
  border-radius: 12px;
  padding: 10px;
  height: fit-content; /* Se ajusta al contenido */

  top: 90px; /* Se queda fijo al hacer scroll, 20px por debajo del topbar */
}
.page-home .home-sidebar h2{
 font-size: 1.6rem;
}


.page-home .search-widget h3 {
  font-size: 1.3rem;
  margin: 0 0 15px 0;
  color: #fff;
}

.page-home #home-search-form {
  display: flex;
  border: 1px solid #444;
  border-radius: 8px;
  overflow: hidden;
}

.page-home #home-search-input {
  flex-grow: 1;
  background: #2a2a2a;
  border: none;
  padding: 12px 15px;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.page-home #home-search-form button {
  background: #4af979;
  border: none;
  color: #000;
  padding: 0 15px;
  cursor: pointer;
  font-size: 1.3rem;
}

/* --- Espacio para Publicidad Futura --- */
.ad-placeholder-bottom {
  min-height: 100px; /* Altura mínima para el futuro bloque de anuncios */
  max-width: 1200px;
  margin: 40px auto;
}

/* --- Responsive para Móviles --- */
@media (max-width: 992px) {
  .page-home .home-content-grid {
    grid-template-columns: 1fr; /* Sidebar se va abajo */
  }
  .page-home .home-sidebar {
    position: static; /* Quitamos el sticky en móvil */
  }
  .page-home #juegos-grid-paginado {
    grid-template-columns: repeat(2, 1fr); /* 2 juegos por fila en tablet */
  }
}

@media (max-width: 576px) {
  .page-home #juegos-grid-paginado {
    grid-template-columns: 1fr; /* 1 juego por fila en móvil */
  }
}
.page-home .home-main-container-carpet {
  background-color: rgba(18, 18, 18, 0.8);
  border: 1px solid #333;
  border-radius: 16px;
  padding: 30px;
  max-width: 1200px;
  margin: 40px auto;
}

/* --- 2. Buscador de la Sidebar (Más Vistoso) --- */
.page-home .search-widget {
  background-color: #101112;
  border: 1px solid #444;
  padding: 25px;
  border-radius: 12px;
}

.page-home .search-widget h3 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
}

.page-home #home-search-form {
  border: none;
  border-radius: 10px;
  overflow: visible; /* Permitir sombra en el input */
}

.page-home #home-search-input {
  padding: 15px 20px;
  font-size: 1.1rem;
  border: 2px solid #555;
  border-radius: 10px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.page-home #home-search-input:focus {
  border-color: #4af979;
  box-shadow: 0 0 15px rgba(74, 249, 121, 0.4);
}

.page-home #home-search-form button {
  background: #4af979;
  border-radius: 10px;
  padding: 0 20px;
  font-size: 1.5rem;
  margin-left: 10px; /* Espacio entre input y botón */
  transition: background-color 0.3s, transform 0.2s;
}

.page-home #home-search-form button:hover {
    background-color: #62ff92;
    transform: scale(1.05);
}
/* ===================================
   🏠 INICIO: MINI CARRUSELES DINÁMICOS (VERSIÓN FINAL)
   =================================== */
#mini-carrusel-destacado-container {
  max-width: 1200px;
  margin: 40px auto;
}
/* Contenedor principal alineado con el carrusel de arriba */
#mini-carruseles-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 30px 20px;
  background-color: rgba(0,0,0,0.7);
  border-radius: 16px;
  margin: 20px auto;
  max-width: 1200px; /* Alineado con el carrusel principal */

}

/* Alfombra de fondo */
.mini-carrusel-section {
  background-color: rgba(10, 10, 10, 0.95);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  box-shadow: 0 8px 25px rgba(22, 22, 22, 0.95);
border: 1px solid #fff;
}

.mini-carrusel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 10px;
}

.mini-carrusel-header h2 {
  font-family: 'Unkempt', sans-serif;
  font-size: 1.8rem;
  color: #72f58d;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn-vista-rapida {
  background: rgba(40, 40, 40, 0.8);
  border: 1px solid #555;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  transition: background-color 0.3s, border-color 0.3s;
}
.btn-vista-rapida:hover { background-color: #4af979; border-color: #fff; }
.btn-vista-rapida span { width: 4px; height: 4px; background-color: #fff; border-radius: 50%; }
.btn-vista-rapida:hover span { background-color: #000; }

/* Contenedor con scroll suave */
.mini-carrusel-container {
    overflow-x: scroll; /* Permitimos el scroll horizontal */
    scroll-behavior: smooth; /* Hacemos que el scroll con JS sea suave */
    -ms-overflow-style: none;  /* IE y Edge */
    scrollbar-width: none;  /* Firefox */
}
.mini-carrusel-container::-webkit-scrollbar {
    display: none; /* Ocultamos la barra de scroll en Chrome, Safari y Opera */
}


.mini-carrusel-track {
  display: flex;
  gap: 20px;
transition: transform 0.5s ease-in-out;
}

/* Flechas laterales grandes */
.btn-carrusel-prev,
.btn-carrusel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.btn-carrusel-prev { left: -15px; }
.btn-carrusel-next { right: -15px; }
.btn-carrusel-prev:hover,
.btn-carrusel-next:hover {
    background-color: #4af979;
    color: #000;
    transform: translateY(-50%) scale(1.1);
}
.btn-carrusel-prev:disabled,
.btn-carrusel-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

/* --- Paginación con puntos simples --- */
.mini-carrusel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-top: 25px;
}
.dot {
    height: 10px;
    width: 10px;
    background-color: #555;
    border-radius: 50%;
    transition: all 0.4s ease-in-out;
}
.dot.active {
    background-color: #4af979;
    transform: scale(1.2);
}

/* --- ESTILOS DE TARJETA --- */
.mini-carrusel-track .juego-card {
  /* Ancho fijo para que se vean 4 y un poco de la 5ta */
  flex: 0 0 22%;
  min-width: 250px; /* Ancho mínimo en pantallas pequeñas */
  background-color: #212429;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  border: 1px solid #333;
}
.mini-carrusel-track .juego-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.7);
  border-color: #4af979;
}

.mini-carrusel-track .juego-img-container {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
}
.mini-carrusel-track .juego-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tags sobre la imagen */
.mini-carrusel-track .juego-tag {
    position: absolute;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255,255,255,0.1);
}
.mini-carrusel-track .tag-plataforma {
  display: flex; align-items: center; gap: 6px;
  top: 10px; left: 10px; border-radius: 8px;
}
.mini-carrusel-track .tag-plataforma img { width: 16px; height: 16px; object-fit: contain; }
.mini-carrusel-track .tag-version { top: 10px; right: 10px; border-radius: 15px; }
.mini-carrusel-track .tag-cracker {
  bottom: 10px; left: 10px; border-radius: 8px; background-color: rgba(20,20,20, 0.8);
}

/* Contenido de texto */
.mini-carrusel-track .juego-info {
  padding: 16px; display: flex; flex-direction: column; flex-grow: 1; gap: 10px;
}
.mini-carrusel-track .juego-info h3 {
  margin: 0; font-size: 1.4rem; color: #fff; font-weight: bold;
}

/* Párrafo con límite de 3 líneas */
.mini-carrusel-track .juego-info p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #aebac3;
  margin: 0;
  flex-grow: 1;
  /* El código que pediste para cortar el texto */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tags de género/requisitos */
.mini-carrusel-track .juego-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 10px; border-top: 1px solid #333;
}
.mini-carrusel-track .juego-tags span {
  font-size: 0.8rem; background: #363b42; color: #ccc;
  padding: 5px 12px; border-radius: 8px;
}

/* Tarjeta "Ver más" */
.mini-carrusel-track .ver-mas-card {
    border: 2px dashed #444; justify-content: center;
    align-items: center; background-color: transparent;
}
.mini-carrusel-track .ver-mas-card:hover {
    border-color: #4af979; background-color: rgba(74, 249, 121, 0.1);
}
.ver-mas-contenido { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ver-mas-icono { font-size: 3rem; font-weight: bold; color: #4af979; }
.ver-mas-contenido h3 { color: #ccc; }

/* Responsive */
@media (max-width: 992px) {
  .btn-carrusel-prev, .btn-carrusel-next { display: none; }
  .mini-carrusel-track .juego-card { flex-basis: 30%; min-width: 220px; }
}
@media (max-width: 576px) {
   .mini-carrusel-track .juego-card { flex-basis: 60%; min-width: 200px; }
}
/* ==================================================
   🏠 INICIO: ANIMACIÓN PARA MINI CARRUSELES
   ================================================== */

/* Definimos la animación de scroll. 
  Mueve el carrusel el ancho de 8 tarjetas (270px * 8).
  Ajusta '40s' a un valor más alto para hacerlo más lento, o más bajo para más rápido.
*/
@keyframes scrollContinuo {
  0% {
    transform: translateX(0%);
  }
  100% {
    /* 270px (ancho de tarjeta + gap) * 8 tarjetas = 2160px */
    transform: translateX(calc(-270px * 8));
  }
}




/* =======================================================
   ✅ MODAL VISTA RÁPIDA: ENLACE FINAL "VER MÁS"
   ======================================================= */

/* Este es el estilo para el nuevo enlace que pondremos
  al final del grid de juegos en el modal.
*/
.vista-rapida-ver-mas {
  display: block;
  text-align: center;
  margin-top: 20px; /* Espacio que lo separa del grid de juegos */
  padding: 15px;
  background-color: rgba(74, 249, 121, 0.1);
  border: 1px dashed #4af979;
  border-radius: 10px;
  color: #c7fdd5;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0; /* Evita que se encoja */
}

.vista-rapida-ver-mas:hover {
  background-color: rgba(74, 249, 121, 0.2);
  border-style: solid;
  color: #fff;
  transform: scale(1.02);
}
/* ===================================================================
   ✅ INICIO: MODAL DE VISTA RÁPIDA PARA MINI CARRUSELES
   =================================================================== */

/* Clase para evitar el scroll del body cuando el modal está abierto */
body.no-scroll {
  overflow: hidden;
}

/* El contenedor principal del modal (overlay) */
.vista-rapida-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 17, 18, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100020; /* Muy alto para estar por encima de todo */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeInModal 0.4s ease-out forwards;
}

/* Animación de entrada */
@keyframes fadeInModal {
  to {
    opacity: 1;
  }
}

/* Animación de salida (controlada por JS al añadir la clase 'closing') */
.vista-rapida-modal.closing {
  animation: fadeOutModal 0.4s ease-in forwards;
}

@keyframes fadeOutModal {
  to {
    opacity: 0;
  }
}


/* El cuadro de contenido del modal */
.vista-rapida-contenido {
overflow: hidden;
  background-color: #1a1c1d;
  width: 90%;
  max-width: 950px; /* Ancho máximo para el modal */
  height: 85vh; /* Alto máximo */
  border-radius: 16px;
  border: 1px solid #4af979;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  padding: 25px;
  position: relative;
  display: flex;
  flex-direction: column; /* Estructura vertical: título, grid, botón "ver más" */
  gap: 15px;
  /* Animación de entrada para el contenido */
  transform: scale(0.95);
  animation: scaleInModal 0.4s ease-out forwards;
}

@keyframes scaleInModal {
    to {
        transform: scale(1);
    }
}


.vista-rapida-modal.closing .vista-rapida-contenido {
overflow: hidden;
    animation: scaleOutModal 0.4s ease-in forwards;
}

@keyframes scaleOutModal {
    to {
        transform: scale(0.95);
    }
}


/* Título del modal */
.vista-rapida-contenido h2 {
  font-family: 'Unkempt', sans-serif;
  color: #72f58d;
  font-size: 1.8rem;
  margin: 0;
  text-align: center;
  flex-shrink: 0; /* Evita que el título se encoja */
}

/* Botón para cerrar el modal */
.vista-rapida-cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s, transform 0.3s;
}

.vista-rapida-cerrar:hover {
  color: #fff;
  transform: rotate(90deg);
}

/* Grilla que contiene las tarjetas de los juegos */
.vista-rapida-grid {
  display: grid;
  /* Crea columnas responsivas: se ajustan entre 110px y 1fr */
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 20px;
  overflow-y: auto; /* Permite scroll si hay muchos juegos */
  flex-grow: 1; /* Ocupa el espacio disponible */
  padding: 15px;
  background-color: rgba(0,0,0,0.2);
  border-radius: 8px;
}

/* Estilo de la barra de scroll (para navegadores Webkit) */
.vista-rapida-grid::-webkit-scrollbar {
  width: 8px;
}
.vista-rapida-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}
.vista-rapida-grid::-webkit-scrollbar-thumb {
  background: #4af979;
  border-radius: 10px;
}

/* Tarjeta individual de cada juego dentro del modal */
.vista-rapida-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: #ddd;
  transition: transform 0.2s ease-out;
}

.vista-rapida-item:hover {
  transform: translateY(-5px);
}

.vista-rapida-item img {
  width: 100%;
  aspect-ratio: 16 / 9; /* Proporción de la imagen */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.vista-rapida-item span {
  font-size: 0.9rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Añade "..." si el texto es muy largo */
}
.page-home .juego-card,
.page-home .carrusel-main-view,
.vista-rapida-contenido,
.search-modal-content {
  will-change: transform, opacity;
}

/* Para el fondo del carrusel principal */
.page-home .carrusel-background {
    will-change: transform, opacity, background-image;
}
/* ===================================================================
   ✅ FIN: ESTILOS MIGRADOS DE inicio.css
   =================================================================== */


/* ===================================================================
   ✅ INICIO: ESTILOS MIGRADOS DE explorar.css
   =================================================================== */

/* ===================================================================
   EPIC REMODEL FOR EXPLORAR PAGE V2
   =================================================================== */

/* --- 1. Main Structure & Layout --- */
.page-explorar {
  --accent-color: #4af979;
  --background-dark: #121212;
  --background-med: #1a1c1d;
  --background-light: #242627;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --border-color: #333;
}

.page-explorar .explorar-container {
  display: flex;
  gap: 30px;
  max-width: 1600px;
  margin: 20px auto;
  padding: 0 25px;
  align-items: flex-start;
}

.page-explorar .explorar-sidebar {
  flex: 0 0 280px;
  background-color: var(--background-med);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  
}

/* ✅ CAMBIO: Se ha añadido la "alfombra" para los juegos */
.page-explorar .explorar-main {
  flex: 1;
  min-width: 0;
  background: rgba(18, 18, 18, 0.8); /* Un fondo base más oscuro y menos opaco */
  border: 1px solid var(--border-color); /* Mantenemos el borde sutil */
  border-radius: 12px;
  padding: 20px;
  position: relative;
}

/* ✅ CAMBIO: La "alfombra interior" ahora es un negro casi sólido para dar profundidad. */
.page-explorar .explorar-main::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: #101112; /* Un fondo mucho más oscuro */
    border-radius: 8px;
    z-index: -1;
}


/* --- 2. Hero Header & Search Bar --- */
.page-explorar .explorar-header {
  padding: 40px 25px 30px;
  text-align: center;
  background: linear-gradient(180deg, rgba(26,28,29,0.9) 0%, rgba(18,18,18,1) 100%);
  border-bottom: 1px solid var(--border-color);
}

.page-explorar .explorar-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-explorar #explorar-banner-text {
  font-family: 'Unkempt', sans-serif;
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 25px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.page-explorar #explorar-banner-text .highlight {
    color: var(--accent-color);
}

.page-explorar .central-search-container .input-con-icono {
  position: relative;
}

.page-explorar .central-search-container .icono-input {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.page-explorar #search-input {
  width: 100%;
  padding: 18px 20px 18px 55px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  font-size: 1.1rem;
  background-color: var(--background-med);
  color: var(--text-primary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-explorar #search-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(74, 249, 121, 0.3);
}

/* --- 3. Active Filters Bar --- */
.page-explorar .active-filters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 15px 25px;
    min-height: 60px;
    background-color: rgba(18,18,18,0.8);
    border-bottom: 1px solid var(--border-color);
}

.page-explorar #active-filters-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-grow: 1;
}

.page-explorar .active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-color);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    animation: fadeInTag 0.3s ease;
}
@keyframes fadeInTag { from { opacity:0; transform: scale(0.8); } to { opacity:1; transform: scale(1); } }


.page-explorar .active-filter-tag .remove-filter {
    background: rgba(0,0,0,0.2);
    border: none;
    color: #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
.page-explorar .active-filter-tag .remove-filter:hover {
    background: rgba(0,0,0,0.4);
}

.page-explorar .reset-btn-main {
    background: transparent;
    border: 1px solid #d9534f;
    color: #d9534f;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: none;
}
.page-explorar .reset-btn-main:hover {
    background: #d9534f;
    color: #fff;
}


/* --- 4. Sidebar & Filters --- */
.page-explorar .sidebar-header {
  margin-bottom: 15px;
}
.page-explorar .sidebar-header h3 {
  font-size: 1.4rem;
  color: #fff;
}

/* ✅ CAMBIO: Estilos para el nuevo modo "focus" del acordeón */
.page-explorar .accordion.focus-mode .accordion-item {
    transition: opacity 0.3s ease, max-height 0.3s ease;
}
.page-explorar .accordion.focus-mode .accordion-item:not(.is-focused) {
    opacity: 0.4;
    pointer-events: none; /* Evita clics en los ítems no enfocados */
    max-height: 55px; /* Altura del header */
    overflow: hidden;
}
.page-explorar .accordion.focus-mode .accordion-item.is-focused {
    opacity: 1;
}

.page-explorar .accordion-item {
  border-bottom: 1px solid var(--border-color);
}
.page-explorar .accordion-item:last-child {
  border-bottom: none;
}

.page-explorar .accordion-header {
  width: 100%;
  background: none; border: none;
  color: var(--text-primary);
  padding: 18px 5px;
  text-align: left;
  font-size: 1.1rem; font-weight: bold;
  cursor: pointer; position: relative;
  transition: color 0.2s ease;
}
.page-explorar .accordion-header:hover {
    color: #fff;
}

.page-explorar .accordion-header::after {
  content: '›';
  position: absolute; right: 5px;
  transition: transform 0.3s ease;
  font-size: 1.5rem; transform: rotate(90deg);
}
.page-explorar .accordion-header.active::after {
  transform: rotate(-90deg);
}

.page-explorar .accordion-content {
  max-height: 0;
  overflow: hidden; /* ✅ CAMBIO: Se quita el scroll por defecto */
  transition: max-height 0.4s ease-out; /* Transición más suave */
}

/* ✅ CAMBIO: Se añade scroll SOLO al ítem enfocado */
.page-explorar .accordion-item.is-focused .accordion-content {
    overflow-y: auto;
}

.page-explorar .filter-list {
  display: flex;
  flex-direction: column;
  padding: 10px 0 1px 0; /* ✅ CAMBIO: Se quita el gap y se añade padding inferior */
}
.page-explorar .filter-list h4 {
    color: var(--accent-color);
    padding: 10px 15px 5px;
    font-size: 1rem;
}

.page-explorar .filter-item {
  background: none; border: none;
  color: var(--text-secondary);
  padding: 12px 15px;
  text-align: left;
  width: 100%;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-left: 3px solid transparent;
}

.page-explorar .filter-item:hover {
  background-color: var(--background-light);
  color: #fff;
}

.page-explorar .filter-item.activa {
  background-color: rgba(74, 249, 121, 0.1);
  color: var(--accent-color);
  font-weight: bold;
  border-left: 3px solid var(--accent-color);
}

.page-explorar .filter-item.disabled {
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

/* --- 5. Main Content, Controls & Pagination --- */
.page-explorar .view-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  background-color: var(--background-med);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  
 
}

.page-explorar .sort-control { display: flex; align-items: center; gap: 10px; }
.page-explorar .sort-control label { font-weight: bold; color: var(--text-secondary); }
.page-explorar #sort-order {
  background-color: var(--background-light);
  color: #fff; border: 1px solid var(--border-color);
  border-radius: 8px; padding: 10px 15px;
  font-size: 1rem;
}

.page-explorar .view-buttons { display: flex; gap: 10px; }

.page-explorar .random-btn {
  background-color: var(--accent-color);
  color: #000;
}
.page-explorar .filters-btn {
    background-color: var(--background-light);
    color: var(--text-primary);
}
.page-explorar .random-btn, .page-explorar .filters-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  display: none;
}
.page-explorar .random-btn { display: block; }
.page-explorar .random-btn:hover, .page-explorar .filters-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.page-explorar .paginacion {
  display: flex; justify-content: center;
  align-items: center; gap: 8px;
  margin: 30px 0; flex-wrap: wrap;
}

.page-explorar .paginacion-btn {
  min-width: 45px; height: 45px;
  padding: 0 15px; border-radius: 10px;
  font-size: 1rem; font-weight: bold;
  background-color: var(--background-med);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-explorar .paginacion-btn:hover:not(.pagina-activa) {
    background-color: var(--background-light);
    border-color: #fff;
}

.page-explorar .paginacion-btn.pagina-activa {
  background-color: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
}
.page-explorar .paginacion-btn.disabled {
    opacity: 0.5; cursor: not-allowed;
}
.page-explorar .paginacion-ellipsis { color: var(--text-secondary); }

/* --- 6. Game Grid & Cards --- */
.page-explorar #game-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.page-explorar .juego-card {
  background-color: var(--background-med);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-explorar .juego-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  border-color: var(--accent-color);
}

.page-explorar .juego-img-container {
  position: relative;
  aspect-ratio: 16 / 10;
}
.page-explorar .juego-img-container img {
  width: 100%; height: 100%; object-fit: cover;
}

.page-explorar .juego-tag {
  position: absolute;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: bold;
  color: #fff;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
}

.page-explorar .tag-plataforma {
  display: flex; align-items: center; gap: 6px;
  top: 10px; left: 10px; border-radius: 8px;
}
.page-explorar .tag-plataforma img { width: 18px; height: 18px; object-fit: contain; }
.page-explorar .tag-version { top: 10px; right: 10px; border-radius: 15px; }
.page-explorar .tag-cracker { bottom: 10px; left: 10px; border-radius: 8px; }

.page-explorar .juego-info {
  padding: 15px;
  display: flex; flex-direction: column;
  flex-grow: 1;
}

.page-explorar .juego-info h3 {
  font-size: 1.3rem;
  color: #fff;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.page-explorar .juego-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.page-explorar .juego-tags span {
  font-size: 0.8rem;
  background: var(--background-light);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 6px;
}

/* --- 7. Not Found Card --- */
.page-explorar .not-found-card {
  grid-column: 1 / -1;
  background-color: var(--background-med);
  border-radius: 14px;
  padding: 50px 20px;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
  border: 2px dashed var(--border-color);
}
.page-explorar .not-found-icon { font-size: 4rem; color: var(--accent-color); }
.page-explorar .not-found-card h3 { font-size: 2rem; color: var(--accent-color); margin: 0; }
.page-explorar .not-found-card p { color: var(--text-secondary); max-width: 500px; margin: 0; }
.page-explorar .not-found-button {
  display: inline-flex; align-items: center; gap: 10px;
  background-color: var(--accent-color);
  color: #000; padding: 12px 24px;
  border-radius: 8px; text-decoration: none;
  font-weight: bold; font-size: 1rem; margin-top: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page-explorar .not-found-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(74, 249, 121, 0.5);
}


/* ===================================
   🎲 MODAL DE JUEGO ALEATORIO
   =================================== */
.random-modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 100020; /* Asegura que esté por encima de todo */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 17, 18, 0.85);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  animation: fadeInModal 0.4s ease-out forwards; /* Animación de entrada */
}

.random-modal-content {
  position: relative;
  background-color: var(--background-med); /* Usa tus variables de color */
  border-radius: 12px;
  border: 1px solid var(--accent-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  width: 90%;
  max-width: 380px; /* Un ancho ideal para mostrar una sola tarjeta de juego */
  padding: 20px;
  transform: scale(0.95);
  animation: scaleInModal 0.4s ease-out forwards; /* Animación de entrada */
}

.close-random-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s, transform 0.3s;
}

.close-random-btn:hover {
  color: #fff;
  transform: rotate(90deg);
}

/* Contenedor para la tarjeta del juego dentro del modal */
#random-game-card-container {
  min-height: 200px; /* Un espacio mínimo mientras carga la tarjeta */
}
/* --- 8. Modals --- */
.page-explorar .filters-modal {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7); backdrop-filter: blur(5px);
    z-index: 100030;
    animation: fadeInModal 0.3s ease;
}

.page-explorar .filters-modal-content {
    background-color: var(--background-med);
    width: 100%; max-width: 500px;
    height: 100%;
    margin-left: auto;
    display: flex; flex-direction: column;
    animation: slideInFromRight 0.4s ease;
}
@keyframes slideInFromRight { from { transform: translateX(100%); } to { transform: translateX(0); } }

.page-explorar .filters-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px; border-bottom: 1px solid var(--accent-color);
  flex-shrink: 0;
}
.page-explorar .filters-modal-header h3 { color: #fff; margin: 0; font-size: 1.5rem; }
.page-explorar .close-modal-btn { background: none; border: none; font-size: 2.5rem; color: #fff; cursor: pointer;}


.page-explorar .filters-modal-body {
  padding: 10px; overflow-y: auto; flex-grow: 1;
}

.page-explorar .filters-modal-footer {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 15px; background-color: var(--background-dark); flex-shrink: 0;
}
.page-explorar .modal-action-btn { padding: 15px; font-size: 1rem; font-weight: bold; border: none; border-radius: 8px; cursor: pointer; }
.page-explorar .modal-action-btn.cancel { background-color: #d9534f; color: #fff; }
.page-explorar .modal-action-btn.apply { background-color: var(--accent-color); color: #000; }


/* --- 9. Mobile & Responsive Design --- */
@media (max-width: 1200px) {
    .page-explorar .explorar-sidebar {
        flex-basis: 240px;
    }
}
@media (max-width: 992px) {
  .page-explorar .explorar-container { flex-direction: column; padding: 0 15px; }
  .page-explorar .explorar-sidebar { display: none; }
  .page-explorar .filters-btn { display: block; }
  .page-explorar #search-input { font-size: 1rem; padding: 15px 15px 15px 50px; }
  .page-explorar #explorar-banner-text { font-size: 2.2rem; }
}

@media (max-width: 576px) {
  .page-explorar .explorar-main { padding: 15px; }
  .page-explorar #game-list { grid-template-columns: 1fr; gap: 20px; }
  .page-explorar #explorar-banner-text { font-size: 1.8rem; }
  .page-explorar .view-controls { flex-direction: column; gap: 15px; }
  .page-explorar .paginacion-btn { min-width: 40px; height: 40px; }
  .page-explorar .filters-modal-content { max-width: 100%; }
}

/* ===================================================================
   🎨 COLORES PERSONALIZADOS POR PLATAFORMA Y EFECTO HOVER
   =================================================================== */

/* --- Colores para los tags y bordes de las tarjetas --- */

/* PC (Gris - sin cambios) */
.page-explorar .card-pc:hover { border-color: #a0a0a0; }
.page-explorar .tag-plataforma.pc { background-color: #555555; }

/* Android (Verde - sin cambios) */
.page-explorar .card-android:hover { border-color: #2ecc71; }
.page-explorar .tag-plataforma.android { background-color: #2ecc71; }

/* ROMs (Azul - sin cambios) */
.page-explorar .card-roms:hover { border-color: #3498db; }
.page-explorar .tag-plataforma.roms { background-color: #3498db; }

/* ✅ NUEVO: PC Apps (Naranja) */
.page-explorar .card-pc-apps:hover { border-color: #e67e22; }
.page-explorar .tag-plataforma.pc-apps { background-color: #e67e22; }

/* ✅ NUEVO: Android Apps (Turquesa) */
.page-explorar .card-android-apps:hover { border-color: #1abc9c; }
.page-explorar .tag-plataforma.android-apps { background-color: #1abc9c; }


/* --- Efecto de Resaltado con Ícono al pasar el mouse/tocar --- */

.page-explorar .juego-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40%; /* Tamaño del ícono */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; /* Para que no interfiera con el clic */
}

/* El efecto se activa al hacer hover sobre la tarjeta */
.page-explorar .juego-card:hover .juego-img-container::after {
    opacity: 1;
}

/* Íconos SVG para cada plataforma (incrustados para no necesitar más archivos) */

/* Ícono para PC */
.page-explorar .card-pc .juego-img-container::after,
.page-explorar .card-pc-apps .juego-img-container::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 18q.825 0 1.413-.587T22 16V6q0-.825-.587-1.413T20 4H4q-.825 0-1.413.587T2 6v10q0 .825.587 1.413T4 18h5v2h6v-2h5ZM4 14V6h16v8H4Zm0 0V6v8Z'/%3E%3C/svg%3E");
}

/* ✅ Ícono para Android (Celular) */
.page-explorar .card-android .juego-img-container::after,
.page-explorar .card-android-apps .juego-img-container::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17 1H7c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2m0 18H7V5h10v14Z'/%3E%3C/svg%3E");
}

/* ✅ Ícono para ROMs (Cartucho de juego) */
.page-explorar .card-roms .juego-img-container::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20.5 0h-17A1.5 1.5 0 0 0 2 1.5v21A1.5 1.5 0 0 0 3.5 24h17a1.5 1.5 0 0 0 1.5-1.5v-21A1.5 1.5 0 0 0 20.5 0M18 19H6v-2h12Zm0-4H6v-2h12Zm0-4H6V9h12Z'/%3E%3C/svg%3E");
}
/* ===================================================================
   ✅ FIN: ESTILOS MIGRADOS DE explorar.css
   =================================================================== */
/* ===================================================================
   ✅ INICIO: ESTILOS MIGRADOS DE solicitar.css
   =================================================================== */
/* --- Contenido tipo CV --- */
.page-solicitar .solicitar-container {
  max-width: 800px;
  margin: 100px auto;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.page-solicitar .solicitar-container h1 {
  font-size: 2em;
  color: #72f58d;
}

.page-solicitar .solicitar-container p {
  font-size: 1.1em;
  margin: 20px 0;
}

.page-solicitar .discord-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 24px;
  background-color: #5865F2;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
}

.page-solicitar .discord-btn:hover {
  background-color: #4752c4;
}


/* ===================================================================
   ✅ FIN: ESTILOS MIGRADOS DE solicitar.css
   =================================================================== */
/* ===================================================================
   ✅ INICIO: REDISEÑO ÉPICO Y ELEGANTE PARA LA PÁGINA "SOBRE MÍ"
   =================================================================== */

/* --- Contenedor Principal --- */
.page-sobre {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* --- Hero Header (Impacto Visual) --- */
.page-sobre .sobre-hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to top, rgba(18, 18, 18, 1) 5%, transparent 100%), 
              linear-gradient(to bottom, rgba(18, 18, 18, 0.8) 0%, transparent 50%),
              url('../../assets/gameslug.avif') no-repeat center center; /* Reemplaza con una imagen de fondo épica si tienes una */
  background-size: cover;
  border-radius: 16px;
  margin-bottom: 50px;
  border: 1px solid #333;
}

.page-sobre .sobre-hero-content {
    background-color: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
}

.page-sobre .sobre-main-title {
  font-family: 'Unkempt', sans-serif;
  font-size: 3.2rem;
  color: #fff;
  text-shadow: 0 0 15px rgba(0,0,0,0.8), 0 0 5px rgba(0,0,0,0.8);
  margin: 0 0 15px 0;
}

.page-sobre .sobre-subtitle {
  font-size: 1.15rem;
  color: #ccc;
  line-height: 1.7;
  max-width: 750px;
  margin: 0 auto;
}

/* --- Contenido Principal (Grid) --- */
.page-sobre .sobre-main-content {
  background-color: #1a1c1d;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.page-sobre .sobre-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: flex-start;
}

/* --- Columna Izquierda (Imagen y Tarjeta) --- */
.page-sobre .sobre-sidebar {
    position: sticky;
    top: 90px;
}

.page-sobre .profile-image-container {
    background-color: #242627;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #444;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.page-sobre .profile-main-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.page-sobre .profile-card {
    padding: 20px;
    text-align: center;
}

.page-sobre .profile-card h3 {
    font-family: 'Unkempt', sans-serif;
    font-size: 2rem;
    color: #4af979;
    margin: 0 0 5px 0;
}

.page-sobre .profile-card p {
    color: #ccc;
    margin: 0 0 20px 0;
    font-weight: bold;
}

.page-sobre .luggames-socials-v2 {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.page-sobre .luggames-socials-v2 a {
    color: #aaa;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.page-sobre .luggames-socials-v2 a:hover {
    color: #4af979;
    transform: scale(1.2);
}

/* --- Columna Derecha (Texto) --- */
.page-sobre .sobre-section-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4af979;
    display: inline-block;
}

.page-sobre .sobre-text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
}

.page-sobre .sobre-text-content strong {
    color: #fff;
    font-weight: 600;
}

/* Caja de texto destacado */
.page-sobre .highlight-box {
    background-color: rgba(74, 249, 121, 0.05);
    border-left: 4px solid #4af979;
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.page-sobre .highlight-box p {
    font-size: 1.2rem;
    font-style: italic;
    color: #e0e0e0;
    margin: 0;
    line-height: 1.7;
}

/* --- Sección de Inspiración --- */
.page-sobre .inspiration-section-sobre {
  text-align: center;
  padding: 40px 30px;
  background: linear-gradient(rgba(15, 17, 18, 0.9), rgba(15, 17, 18, 0.9)), url('URL_DE_UNA_IMAGEN_ABSTRACTA_O_DE_JUEGO_SI_TIENES');
  background-size: cover;
  margin-top: 50px;
  border-radius: 16px;
  border: 1px solid #333;
}

.page-sobre .inspiration-section-sobre .inspiration-title {
  font-family: 'Unkempt', sans-serif;
  font-size: 2.2rem;
  color: #4af979;
  text-shadow: 0 0 10px rgba(74, 249, 121, 0.3);
  margin: 0 0 15px 0;
}

.page-sobre .inspiration-section-sobre .inspiration-text {
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 25px auto;
}

.page-sobre .inspiration-section-sobre .inspiration-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #4af979;
  color: #000;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-sobre .inspiration-section-sobre .inspiration-link:hover {
  background-color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(74, 249, 121, 0.5);
}

/* --- Estilos para Móvil (Responsive) --- */
@media (max-width: 992px) {
    .page-sobre .sobre-grid {
        grid-template-columns: 1fr; /* Una sola columna */
    }

    .page-sobre .sobre-sidebar {
        position: static; /* Quitamos el sticky */
        max-width: 400px;
        margin: 0 auto 30px;
    }
}

@media (max-width: 768px) {
    .page-sobre .sobre-main-title {
        font-size: 2.5rem;
    }
    .page-sobre .sobre-subtitle {
        font-size: 1rem;
    }
    .page-sobre .sobre-main-content {
        padding: 20px;
    }
}
/* ===================================================================
   ✅ FIN: ESTILOS MIGRADOS DE sobre.css
   =================================================================== */
/* ===================================================================
   ✅ INICIO: REDISEÑO ÉPICO Y ELEGANTE PARA LA PÁGINA DE FAQ
   =================================================================== */

/* --- Contenedor Principal --- */
.page-faq {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 20px;
}

/* --- Hero Header (Impacto Visual) --- */
.page-faq .faq-hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, rgba(20, 22, 23, 0.9), transparent);
  border-radius: 16px;
  margin-bottom: 40px;
}

.page-faq .faq-main-title {
  font-family: 'Unkempt', sans-serif;
  font-size: 3.5rem;
  color: #4af979;
  text-shadow: 0 0 15px rgba(74, 249, 121, 0.4);
  margin: 0 0 15px 0;
}

.page-faq .faq-subtitle {
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* --- Contenedor Principal del Contenido --- */
.page-faq .faq-content-container {
  background-color: #1a1c1d;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- Navegación de Tabs --- */
.page-faq .faq-nav {
  display: flex;
  gap: 15px;
  border-bottom: 2px solid #333;
  margin-bottom: 30px;
  padding-bottom: 15px;
}

.page-faq .faq-nav-btn {
  flex-grow: 1;
  background: transparent;
  border: 2px solid #444;
  color: #ccc;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.page-faq .faq-nav-btn:hover {
  background-color: #2a2a2a;
  color: #fff;
}

.page-faq .faq-nav-btn.active {
  background-color: #4af979;
  border-color: #4af979;
  color: #000;
  box-shadow: 0 0 15px rgba(74, 249, 121, 0.4);
}

/* Visibilidad de los contenidos de las pestañas */
.page-faq .faq-tab-content {
  display: none;
}
.page-faq .faq-tab-content.active {
  display: block;
}

/* --- Acordeón de Preguntas (con <details>) --- */
.page-faq .faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq .faq-item {
  background-color: #242627;
  border-radius: 10px;
  border: 1px solid #333;
  transition: border-color 0.3s ease;
}

.page-faq .faq-item[open] {
  border-color: #4af979;
}

.page-faq .faq-question { /* Es la etiqueta <summary> */
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  list-style: none; /* Oculta el marcador por defecto */
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.page-faq .faq-question::-webkit-details-marker {
  display: none; /* Oculta el marcador en Chrome/Safari */
}

/* Flecha personalizada */
.page-faq .faq-question::after {
  content: '+';
  font-size: 1.8rem;
  font-weight: 300;
  color: #4af979;
  transition: transform 0.3s ease-out;
}
.page-faq .faq-item[open] > .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.page-faq .faq-answer { /* Contenido dentro de <details> */
  padding: 0 25px 20px 25px;
  color: #ccc;
  line-height: 1.7;
}
.page-faq .faq-answer p {
  margin: 0;
}
.page-faq .faq-answer strong {
  color: #fff;
}

/* --- Pestaña de Errores --- */
.page-faq .error-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.page-faq .error-card {
  background-color: #242627;
  border: 1px solid #444;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.page-faq .error-card:hover {
  transform: translateY(-8px);
  border-color: #4af979;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.page-faq .error-card-img-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #111;
}
.page-faq .error-card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-faq .error-card-info {
  padding: 15px;
}
.page-faq .error-card h3 {
  margin: 0 0 5px 0;
  color: #4af979;
  font-size: 1.2rem;
}
.page-faq .error-card p {
  margin: 0;
  color: #aaa;
  font-size: 0.9rem;
}

/* --- Estilos para los Modales (Pequeños ajustes) --- */
.page-faq .error-modal { /* Aseguramos que se muestre con flex */
  display: none;
  align-items: center;
  justify-content: center;
}
.page-faq .error-modal-content {
  background: #1e1e1e;
  backdrop-filter: blur(10px);
  border: 1px solid #4af979;
  box-shadow: 0 0 30px rgba(74, 249, 121, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}
.page-faq .image-modal {
  display: none;
  align-items: center;
  justify-content: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .page-faq .faq-main-title {
        font-size: 2.5rem;
    }
    .page-faq .faq-nav {
        flex-direction: column;
    }
    .page-faq .faq-content-container {
        padding: 15px;
    }
}
/* ===================================================================
   ✅ FIN: ESTILOS MIGRADOS DE faq.css
   =================================================================== */
/* ===================================================================
   💎 INICIO: REDISEÑO COMPLETO DE LA PÁGINA VIP (VERSIÓN FINAL)
   =================================================================== */

/* --- Contenedor y Título Principal --- */
.page-vip {
    max-width: 1200px;
    margin: 10px auto;
    padding: 20px;
}

/* ✅ MEJORA: "Alfombra" sutil para mejorar la legibilidad del texto */
.vip-hero-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 15px;
    background: radial-gradient(ellipse at center, rgba(18, 18, 18, 0.6) 0%, rgba(18, 18, 18, 0) 70%);
    border-radius: 20px;
}

/* ✅ MEJORA: Sombra de texto más fuerte para crear un contorno */
.vip-main-title {
    font-family: 'Unkempt', sans-serif;
    font-size: 3.2rem;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.5);
}

.vip-main-title .highlight {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 0 2px 4px rgba(0,0,0,0.8);
}

.vip-subtitle {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9); /* Sombra también para el subtítulo */
}


/* --- Tabla de Precios (Sin cambios) --- */
.pricing-table {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.plan-card {
    background-color: #1a1c1d;
    border: 2px solid #333;
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: #4af979;
}

.plan-card.featured {
    transform: scale(1.05);
    border-color: #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
}

.plan-card.featured:hover {
     transform: scale(1.08) translateY(-5px);
     box-shadow: 0 0 35px rgba(255, 215, 0, 0.5);
}

.featured-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ffd700, #f0c300);
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.plan-header h3 { font-size: 1.8rem; color: #fff; margin: 0; }
.plan-header p { color: #a0a0a0; margin-bottom: 25px; }

.plan-price { margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 30px; }
.plan-price .original-price { font-size: 1.1rem; color: #777; }
.plan-price .current-price { font-size: 2.8rem; font-weight: bold; color: #4af979; display: block; line-height: 1.1; }
.plan-card.featured .current-price { color: #ffd700; }
.plan-price .currency { font-size: 1.2rem; font-weight: normal; }
.plan-price .per-month { font-size: 0.9rem; color: #ccc; display: block; margin-top: 5px; }
.plan-price .savings-badge { display: inline-block; background-color: rgba(74, 249, 121, 0.1); color: #4af979; padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: bold; margin-top: 15px; }

.plan-features { list-style: none; padding: 0; margin: 0 0 30px 0; text-align: left; flex-grow: 1; display: flex; flex-direction: column; gap: 15px; }
.plan-features li { color: #ccc; display: flex; align-items: center; gap: 12px; }
.plan-features li i { color: #4af979; font-size: 1.1rem; width: 20px; }

.plan-cta .vip-comprar { width: 100%; padding: 15px; font-size: 1.1rem; font-weight: bold; background-color: #4af979; color: #000; border: none; border-radius: 8px; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease; }
.plan-cta .vip-comprar:hover { background-color: #62ff92; transform: scale(1.03); }
.plan-cta .special-cta { background: linear-gradient(45deg, #ffd700, #f0c300); }
.plan-cta .special-cta:hover { background: linear-gradient(45deg, #ffe55b, #f0c300); }


/* --- Nueva Grilla de Beneficios (Sin cambios) --- */
.benefits-grid-container { margin-top: 80px; text-align: center; }
.benefits-title { font-size: 2rem; color: #fff; margin-bottom: 40px; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; text-align: left; }
.benefit-item { background-color: #1a1c1d; padding: 25px; border-radius: 12px; border: 1px solid #333; display: flex; align-items: flex-start; gap: 20px; }
.benefit-icon { font-size: 2rem; color: #4af979; }
.benefit-text h3 { margin: 0 0 8px 0; color: #fff; font-size: 1.2rem; }
.benefit-text p { margin: 0; color: #a0a0a0; line-height: 1.6; }


/* ✅ NUEVO: Estilos para el Modal de Pago */
.vip-modal {
    display: none; /* Oculto por defecto, JS lo cambia a 'flex' */
    position: fixed;
    z-index: 100010;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeInModal 0.3s ease;
}

.vip-modal-content {
    background-color: #1e1e1e;
    padding: 30px 40px;
    border-radius: 12px;
    border: 1px solid #4af979;
    position: relative;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideInModal 0.4s ease-out;
}

@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInModal { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.vip-modal-content h2 {
    font-family: 'Unkempt', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 25px;
}

.vip-metodos {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.vip-metodos button {
    flex-grow: 1;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid #555;
    background-color: #2a2a2a;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vip-metodos button:hover {
    border-color: #4af979;
    background-color: #333;
    transform: translateY(-3px);
}

.vip-mensaje-construccion {
    display: none; /* Oculto por defecto */
    background-color: rgba(255, 204, 0, 0.1);
    border: 1px solid #ffcc00;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.vip-mensaje-construccion p {
    margin: 8px 0;
    color: #eee;
}

.vip-mensaje-construccion a {
    color: #4af979;
    font-weight: bold;
    text-decoration: none;
}
.vip-mensaje-construccion a:hover {
    text-decoration: underline;
}

.cerrar-modal {
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cerrar-modal:hover {
    background-color: #d9534f; /* Rojo al pasar el mouse */
    border-color: #d9534f;
}

/* --- Responsive (Sin cambios) --- */
@media (max-width: 992px) {
    .plan-card.featured { transform: scale(1); }
    .pricing-table { align-items: stretch; }
}

@media (max-width: 768px) {
    .vip-main-title { font-size: 2.5rem; }
    .pricing-table { flex-direction: column; align-items: center; gap: 40px; }
    .plan-card { max-width: 400px; }
    .plan-card.featured { transform: scale(1.03); }
}

/* --- Pequeños ajustes al CSS antiguo para que no interfiera --- */
.page-vip .vip-section { display: none; } /* Ocultamos la sección antigua si aún existe */

/* ===================================================================
   💎 FIN: REDISEÑO COMPLETO DE LA PÁGINA VIP
   =================================================================== */

/* ===================================================================
   ✅ FIN: ESTILOS MIGRADOS DE vip.css
   =================================================================== */

/* =================================== */
/* CORE STYLES & VARIABLES            */
/* =================================== */
:root {
    --color-background: #0D0F12;
    --color-surface: #15181E;
    --color-surface-light: #1E222A;
    --color-primary-accent: #4af979;
    --color-secondary-accent: #00B5F1;
    --color-text-primary: #EAEAEA;
    --color-text-secondary: #99A1B3;
    --color-danger: #ff4e4e;
    --color-warning: #f6c343;
    --font-body: 'Poppins', sans-serif;
    --font-headings: 'Anton', sans-serif;
    --border-radius: 12px;
}

/* NOTA: 'body' se deja global. El resto se encapsula. */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--color-background); color: var(--color-text-primary); font-family: var(--font-body); line-height: 1.6; }

.page-game-profile h1,
.page-game-profile h2,
.page-game-profile h3,
.page-game-profile h4 { font-family: var(--font-headings); color: var(--color-primary-accent); letter-spacing: 1px; text-transform: uppercase; }
.page-game-profile a { color: var(--color-secondary-accent); text-decoration: none; }
.page-game-profile .container { max-width: 1400px; margin: 20px auto; padding: 0 20px; }

/* =================================== */
/* CONTENEDOR PRINCIPAL 'GLASS'       */
/* =================================== */
.page-game-profile .main-content-area {
    background-color: rgba(13, 15, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    margin-top: 30px;
    padding: 30px;
    padding-top: 70px;
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 26, 0.85);
}
.page-game-profile .game-content-layout { margin-top: 0; }

/* =================================== */
/* HERO SECTION (MEJORADO)            */
/* =================================== */
.page-game-profile .game-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-end;
    padding: 40px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: -50px;
    z-index: 10;
    overflow: hidden;
}

.page-game-profile .hero-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease-out;
    border-radius: var(--border-radius);
}

.page-game-profile .game-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 25%, rgba(0,0,0,0.1) 70%);
    z-index: 1;
}

.page-game-profile .etiqueta-plataforma {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: var(--color-text-primary);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.page-game-profile #game-platform-icon { width: 20px; height: 20px; }

.page-game-profile .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    gap: 20px;
}
.page-game-profile .hero-info { flex: 1; min-width: 0; }
.page-game-profile .hero-actions { flex-shrink: 0; }

.page-game-profile .hero-info #game-main-title {
    font-size: 3.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    color: white;
}

.page-game-profile .lista-etiquetas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.page-game-profile .lista-etiquetas a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: background 0.3s;
}
.page-game-profile .lista-etiquetas a:hover { background: var(--color-primary-accent); color: var(--color-background); }

.page-game-profile .hero-actions { display: flex; align-items: center; gap: 20px; }
.page-game-profile .view-counter { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--color-text-secondary); }
.page-game-profile .trailer-button {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--color-primary-accent);
    color: var(--color-background);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.page-game-profile .trailer-button:hover { background: white; transform: scale(1.05); }

/* =================================== */
/* MAIN LAYOUT & TABS                 */
/* =================================== */
.page-game-profile .game-content-layout { display: grid; grid-template-columns: 1fr 350px; gap: 30px; }
.page-game-profile .main-column, .page-game-profile .sidebar-column { display: flex; flex-direction: column; gap: 30px; }
.page-game-profile .info-tabs { display: flex; background: var(--color-surface); padding: 5px; border-radius: var(--border-radius); gap: 5px; }
.page-game-profile .tab-link { flex: 1; padding: 12px; border: none; background: transparent; color: var(--color-text-secondary); font-size: 1rem; font-weight: bold; cursor: pointer; border-radius: 8px; transition: all 0.3s ease; }
.page-game-profile .tab-link:hover { background: var(--color-surface-light); color: var(--color-text-primary); }
.page-game-profile .tab-link.active { background: var(--color-primary-accent); color: var(--color-background); }
.page-game-profile .tab-content { display: none; background: var(--color-surface); padding: 25px; border-radius: var(--border-radius); animation: fadeIn 0.5s; }
.page-game-profile .tab-content.active { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.page-game-profile .tab-content h2,
.page-game-profile .downloads-section h2,
.page-game-profile .sidebar-box h3 {
    position: relative;
    padding-left: 15px;
    border-bottom: none;
    margin-bottom: 20px;
}
.page-game-profile .tab-content h2::before,
.page-game-profile .downloads-section h2::before,
.page-game-profile .sidebar-box h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background-color: var(--color-primary-accent);
    border-radius: 2px;
}
.page-game-profile .tab-content p { color: var(--color-text-secondary); }

.page-game-profile .box-screenshots,
.page-game-profile .capturas-box,
.page-game-profile .version-includes {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--color-surface-light);
}

/* =================================== */
/* CONTENT SECTIONS (ABOUT, REQS...)  */
/* =================================== */
.page-game-profile .game-screenshots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.page-game-profile .screenshot { width: 100%; border-radius: 8px; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
.page-game-profile .screenshot:hover { transform: scale(1.03); box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.page-game-profile .requisitos-box ul { list-style: none; padding-left: 0; }
.page-game-profile .requisitos-box li { padding: 8px 0; border-bottom: 1px solid var(--color-surface-light); }
.page-game-profile .requisitos-box li strong { color: var(--color-text-primary); }
.page-game-profile .instalacion-box ol { padding-left: 20px; }
.page-game-profile .win11-warning { background: rgba(246, 195, 67, 0.1); border: 1px solid var(--color-warning); border-radius: var(--border-radius); padding: 20px; color: var(--color-warning); }
.page-game-profile .win11-warning h3 { color: var(--color-warning); }


/* =================================== */
/* DOWNLOADS SECTION                  */
/* =================================== */
.page-game-profile .downloads-section {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 25px;
}

.page-game-profile .downloads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.page-game-profile .download-info {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.page-game-profile .host-selectors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}
.page-game-profile .host-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--color-surface-light);
    color: var(--color-text-primary);
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}
.page-game-profile .host-btn img { height: 28px; }
.page-game-profile .host-btn:hover { transform: scale(1.05); }
.page-game-profile .host-btn.gofile { border-color: #f6c343; }
.page-game-profile .host-btn.mediafire { border-color: #00b5f1; }
.page-game-profile .host-btn.pixeldrain { border-color: #c17ef7; }

.page-game-profile #android-version-selector .host-btn.active {
    border-color: var(--color-primary-accent);
}

.page-game-profile #hack-version-info {
    text-align: center;
    color: var(--color-danger);
    margin-top: 10px;
}

.page-game-profile .zona-descargas {
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.85);
    padding: 25px;
    border: 1px solid #00ffc8;
    border-radius: 10px;
    position: relative;
}

.page-game-profile .zona-descargas h2 {
    font-family: 'Anton', sans-serif;
    color: #4af979;
    margin-bottom: 10px;
}

.page-game-profile .descarga-opciones {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    margin-top: 20px;
}

.page-game-profile .opcion {
    flex: 1 1 30%;
    background-color: rgba(26, 26, 26, 0.85);
    border: 1px solid #00ffc8;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
}
.page-game-profile .opcion h3 {
    margin-bottom: 10px;
    font-size: 18px;
}
.page-game-profile .opcion p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.page-game-profile .btn-cuty, .page-game-profile .btn-exe {
    display: inline-block;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 16px;
    margin-top: 10px;
}
.page-game-profile .btn-cuty { background-color: #4e73df; }
.page-game-profile .btn-cuty:hover { background-color: #3456bd; }
.page-game-profile .btn-exe { background-color: #28a745; }
.page-game-profile .btn-exe:hover { background-color: #1e7e34; }

.page-game-profile .btn-vip-grande {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 20px auto 0 auto;
    background-color: #ffd700;
    color: #000;
    text-align: center;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.page-game-profile .btn-vip-grande:hover {
    background-color: #ffe54e;
    color: #000;
}
.page-game-profile .btn-vip-grande.vip-locked {
    background-color: #555;
    color: #ccc;
    cursor: pointer;
    border: 2px dashed #888;
}
.page-game-profile .btn-vip-grande.vip-locked:hover {
    background-color: #666;
    color: #fff;
    transform: scale(1.02);
}

.page-game-profile .cerrar-descargas {
    background-color: #ff4e4e;
    color: white;
    border: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.3s;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
}
.page-game-profile .cerrar-descargas:hover {
    background-color: #ff2c2c;
}


/* =================================== */
/* SIDEBAR                            */
/* =================================== */
.page-game-profile .sidebar-box { background: var(--color-surface); padding: 20px; border-radius: var(--border-radius); }
.page-game-profile .rating-box #rating-display-container { width: 150px; height: 150px; margin: 0 auto; }
.page-game-profile .rating-circle { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.page-game-profile .rating-inner-circle { width: 125px; height: 125px; background: var(--color-surface); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.page-game-profile .rating-score { font-size: 2.8rem; font-family: var(--font-headings); }
.page-game-profile .rating-stars { display: flex; justify-content: center; gap: 10px; font-size: 1.8rem; cursor: pointer; color: #555; margin: 15px 0; }
.page-game-profile .rating-stars i.rated, .page-game-profile .rating-stars i.hovered { color: #fdd835; }
.page-game-profile .rating-vote-count, .page-game-profile .rating-message { text-align: center; font-size: 0.9rem; color: var(--color-text-secondary); }
.page-game-profile .rating-message a { color: var(--color-primary-accent); }
.page-game-profile .action-btn { display: flex; width: 100%; align-items: center; gap: 10px; padding: 12px; margin-bottom: 10px; border-radius: 8px; border: 1px solid var(--color-surface-light); background: var(--color-surface-light); color: var(--color-text-primary); font-size: 0.9rem; font-weight: bold; cursor: pointer; transition: all 0.3s; }
.page-game-profile .action-btn:hover { border-color: var(--color-primary-accent); background: #2a2f3a; }
.page-game-profile .action-btn.report { border-color: var(--color-danger); }
.page-game-profile .action-btn.report:hover { background: rgba(255, 78, 78, 0.1); }

.page-game-profile .sidebar-games-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.page-game-profile .game-card-sidebar { position: relative; border-radius: var(--border-radius); overflow: hidden; color: white; display: flex; flex-direction: column; justify-content: flex-end; padding: 15px; transition: transform 0.3s ease; aspect-ratio: 3 / 4; }
.page-game-profile .game-card-sidebar:hover { transform: scale(1.05); }
.page-game-profile .game-card-sidebar .card-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.page-game-profile .game-card-sidebar::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, transparent 60%); z-index: 2; }
.page-game-profile .game-card-sidebar .card-content { position: relative; z-index: 3; }
.page-game-profile .game-card-sidebar h4 { font-family: var(--font-body); font-size: 1rem; line-height: 1.2; text-transform: none; letter-spacing: 0; color: white; margin: 0; }
.page-game-profile .game-card-sidebar .card-rating { font-size: 0.8rem; color: var(--color-primary-accent); font-weight: bold; }

/* =================================== */
/* COMMENTS (MEJORADO)                */
/* =================================== */
.page-game-profile .comments-section { background: var(--color-surface); padding: 25px; border-radius: var(--border-radius); }
.page-game-profile #comment-editor-container {
    background: var(--color-surface-light);
    border: 1px solid var(--color-surface);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}
.page-game-profile #new-comment-editor { background: var(--color-background); border-radius: 8px; border: 1px solid var(--color-surface-light); }
.page-game-profile #new-comment-editor .ql-editor {
    min-height: 120px;
    font-size: 1rem;
    color: var(--color-text-primary);
}
.page-game-profile .ql-snow .ql-toolbar { border-bottom: 1px solid var(--color-surface-light) !important; }
.page-game-profile .ql-snow .ql-stroke { stroke: var(--color-text-secondary) !important; }
.page-game-profile .comment-editor-actions { display: flex; justify-content: flex-end; align-items: center; margin-top: 15px; }
.page-game-profile .sort-options { text-align: right; margin: 20px 0; }
.page-game-profile .sort-options select { background: var(--color-surface-light); border: 1px solid #333; color: var(--color-text-primary); padding: 5px; border-radius: 5px; }
.page-game-profile .comments-list { display: flex; flex-direction: column; gap: 20px; }
.page-game-profile .comment-card { padding: 15px; background: var(--color-surface-light); border-radius: 8px; border-left: 3px solid var(--color-secondary-accent); }

/* =================================== */
/* RESPONSIVE DESIGN (OPTIMIZADO)     */
/* =================================== */
@media (max-width: 992px) {
    .page-game-profile .game-content-layout { grid-template-columns: 1fr; }
    .page-game-profile .sidebar-games-list { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
@media (max-width: 768px) {
    .page-game-profile .game-hero { height: 40vh; padding: 20px; }
    .page-game-profile .hero-info #game-main-title { font-size: 2.5rem; }
    .page-game-profile .hero-content { flex-direction: column; align-items: flex-start; }
    .page-game-profile .etiqueta-plataforma { top: 15px; right: 15px; }
    .page-game-profile .descarga-opciones { flex-direction: column; }
}
@media (max-width: 480px) {
    .page-game-profile .container { padding: 0 10px; }
    .page-game-profile .game-hero { padding: 15px; }
    .page-game-profile .hero-info #game-main-title { font-size: 2rem; }
    .page-game-profile .tab-content { padding: 15px; }
    .page-game-profile .game-screenshots { grid-template-columns: 1fr; }
    .page-game-profile .sidebar-games-list { grid-template-columns: 1fr; }
    .page-game-profile .downloads-header { flex-direction: column; align-items: flex-start; }
}

/* =================================== */
/* LIGHTBOX (Unchanged)               */
/* =================================== */
.page-game-profile .lightbox { display: none; position: fixed; z-index: 1000; padding-top: 1px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.page-game-profile .lightbox-content { display: block; margin: auto; max-width: 90%; max-height: 80vh; border-radius: 8px; }
.page-game-profile .close-lightbox { position: absolute; top: 30px; right: 40px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; }
.page-game-profile .lightbox-prev, .page-game-profile .lightbox-next { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; color: white; font-weight: bold; font-size: 40px; transition: 0.3s; user-select: none; }
.page-game-profile .lightbox-prev { left: 20px; }
.page-game-profile .lightbox-next { right: 20px; }

/* =================================== */
/* MODAL DE ADVERTENCIA (ESTILO ANTIGUO ADAPTADO) */
/* =================================== */
.page-game-profile .info-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}
.page-game-profile .info-modal-content {
  background: #1c1c1c;
  border: 1px solid var(--color-primary-accent);
  border-radius: 12px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 0 25px rgba(74, 249, 121, 0.2);
}
.page-game-profile .modal-preview-img {
  width: 100%;
  max-width: 350px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid #333;
}
.page-game-profile .modal-checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 25px 0;
}
.page-game-profile .modal-checkbox-container label {
  cursor: pointer;
  color: #aaa;
}
.page-game-profile .modal-accept-btn {
  display: inline-block;
  background-color: var(--color-primary-accent);
  color: var(--color-background);
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}
.page-game-profile .modal-accept-btn:hover {
  background-color: #fff;
  transform: scale(1.05);
}

.page-game-profile .aviso-descarga {
  border: 2px solid #ffcc00;
  background: #fff8e1;
  padding: 15px;
  border-radius: 10px;
  width: 95%;
  margin: 15px auto;
  font-family: var(--font-body);
  color: #000;
  font-size: 0.9rem;
  line-height: 1.5;
}

.page-game-profile .aviso-descarga h2 {
  color: #d32f2f;
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  font-family: var(--font-headings);
  padding: 0;
  border: none;
}
.page-game-profile .aviso-descarga h2::before {
    display: none;
}
.page-game-profile .aviso-descarga ul {
  margin: 10px 0 15px 20px;
  padding: 0;
  text-align: left;
}
.page-game-profile .aviso-descarga li {
  margin-bottom: 5px;
  border: none;
  padding: 0;
}
.page-game-profile .aviso-descarga .extra {
  margin: 0;
  font-size: 0.9rem;
}
.page-game-profile .aviso-descarga .resaltado { font-weight: bold; }
.page-game-profile .aviso-descarga .seguro { font-weight: bold; color: #1e7e34; }

/* =================================== */
/* NUEVO ESTILO 'ALFOMBRA' DE CONTENIDO */
/* =================================== */
.page-game-profile .content-carpet {
    background-color: var(--color-surface-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.page-game-profile .sidebar-box .content-carpet {
    padding: 15px;
}

/* =================================== */
/* MEJORA VISUAL DE SECCIONES         */
/* =================================== */
.page-game-profile .tab-content,
.page-game-profile .downloads-section,
.page-game-profile .comments-section,
.page-game-profile .sidebar-box {
    border: 1px solid #fff;
}

.page-game-profile #request-update-btn {
    border-color: var(--color-warning);
}

.page-game-profile #request-update-btn:hover {
    background: rgba(246, 195, 67, 0.1);
}
/* =================================== */
/* ESTILOS DE CARGA Y ESTADOS VACÍOS  */
/* =================================== */
.page-game-profile .loading-placeholder {
    text-align: center;
    padding: 20px;
    color: var(--color-text-secondary);
    font-style: italic;
}

/* =================================== */
/* ✅ NUEVO: MODAL ADVERTENCIA ONLINE-FIX */
/* =================================== */

.page-game-profile .warning-modal-content {
  border-color: #f6c343; /* Borde amarillo de advertencia */
  box-shadow: 0 0 25px rgba(246, 195, 67, 0.2);
  max-width: 550px;
}

.page-game-profile .warning-icon {
  font-size: 3rem;
  color: #f6c343;
  margin-bottom: 15px;
}

.page-game-profile .warning-modal-content h2 {
  color: #f6c343; /* Título a juego con el borde */
  font-family: var(--font-headings);
  margin-bottom: 20px;
}

/* Reutilizamos y ajustamos la clase de aviso para este contexto */
.page-game-profile .warning-modal-content .aviso-descarga.warning-text {
  background: rgba(246, 195, 67, 0.05); /* Fondo muy sutil */
  border: 1px solid rgba(246, 195, 67, 0.3);
  color: var(--color-text-primary); /* Texto blanco para buena legibilidad */
  text-align: left;
}

.page-game-profile .warning-modal-content .aviso-descarga.warning-text h2 {
  display: none; /* Ocultamos el h2 que no usamos aquí */
}

.page-game-profile .warning-modal-content .aviso-descarga.warning-text strong {
  color: #f6c343;
}

.page-game-profile .warning-modal-content .modal-accept-btn {
  background-color: #f6c343;
  color: #000;
}

.page-game-profile .warning-modal-content .modal-accept-btn:hover {
  background-color: #ffe082;
}
/* =================================== */
/* MEJORAS PARA PERFIL DE JUEGO       */
/* =================================== */

/* --- Estilos para la Descripción Truncada --- */
.page-game-profile .box-description .content-carpet {
    position: relative; /* Necesario para el botón "Ver más" */
}

/* Solo se aplica en JS para dispositivos móviles */
.page-game-profile #game-description.truncated {
    max-height: 125px; /* Altura aproximada para 5-6 líneas */
    overflow: hidden;
    position: relative;
    /* Efecto de desvanecimiento para indicar que hay más texto */
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.page-game-profile .ver-mas-btn {
    display: block;
    margin: 10px auto 0;
    padding: 8px 20px;
    background-color: var(--color-primary-accent);
    color: var(--color-background);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
.page-game-profile .ver-mas-btn:hover {
    background-color: #fff;
}


/* --- Textura y Estilo para Comentarios --- */
.page-game-profile .comment-card {
    border: 1px solid var(--color-surface);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    background: linear-gradient(145deg, var(--color-surface-light), var(--color-surface));
    border-radius: 12px; /* Bordes más suaves */
}

.page-game-profile .comment-actions button {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    border-radius: 20px; /* Forma de píldora */
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.2s ease;
}
.page-game-profile .comment-actions button:hover {
    background-color: var(--color-primary-accent);
    color: var(--color-background);
    border-color: transparent;
    transform: translateY(-2px);
}
.page-game-profile .comment-actions .like-btn.liked {
    background-color: #ff4e4e;
    color: white;
    border-color: transparent;
}

/* =================================== */
/* NUEVA SECCIÓN DE APOYO             */
/* =================================== */
.page-game-profile .support-section {
    margin-top: 25px;
    padding: 20px;
    background-color: rgba(13, 15, 18, 0.5);
    border: 1px dashed #f6c343; /* Usamos el color de advertencia */
    border-radius: var(--border-radius);
    text-align: center;
}

.page-game-profile .support-toggle-btn {
    background-color: var(--color-warning);
    color: var(--color-background);
    border: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.page-game-profile .support-toggle-btn:hover {
    background-color: #ffde7a;
    transform: scale(1.02);
}

.page-game-profile .support-links-container {
    margin-top: 20px;
    animation: fadeIn 0.5s;
}

.page-game-profile .support-links-container p {
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.page-game-profile .support-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.page-game-profile .support-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-game-profile .support-link.btn-cuty { background-color: #4e73df; color: white; }
.page-game-profile .support-link.btn-cuty:hover { background-color: #3456bd; }
.page-game-profile .support-link.btn-exe { background-color: #28a745; color: white; }
.page-game-profile .support-link.btn-exe:hover { background-color: #1e7e34; }
/* =================================== */
/* ESTILOS RESPONSIVE (ANDROID)       */
/* =================================== */
@media (max-width: 768px) {
    /* 1. Hace el layout general más ancho en móviles */
    .page-game-profile .container {
        padding: 0 10px;
    }

    /* 2. Reduce la altura de la imagen principal */
    .page-game-profile .game-hero {
        min-height: 320px;
        height: auto; /* Permite que la altura se ajuste al contenido */
    }

    /* 3. Reduce un poco la letra de la descripción */
    .page-game-profile #game-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* 4. Optimiza el modal de advertencia */
    .page-game-profile .info-modal-content {
        width: 95vw;          /* Más ancho */
        max-height: 85vh;     /* Altura máxima controlada */
        padding: 20px;
        display: flex;        /* Usamos flexbox para controlar el contenido */
        flex-direction: column;
    }

    .page-game-profile .info-modal-content .aviso-descarga {
        overflow-y: auto;     /* El contenido del aviso puede hacer scroll */
        flex-grow: 1;         /* Ocupa el espacio disponible */
        margin-bottom: 15px;
    }

    .page-game-profile .info-modal-content .modal-checkbox-container,
    .page-game-profile .info-modal-content .modal-accept-btn {
        flex-shrink: 0;       /* Evita que los botones se encojan */
    }
.page-game-profile .descarga-opciones {
    flex-direction: column;

  }
}