/* Variable CSS para viewport height corregido en iOS */
:root {
    --vh: 1vh;
    /* Design tokens */
    --color-bg: #18132a;
    --color-surface: #1e1838;
    --color-surface-raised: #262044;
    --color-accent: #411967;
    --color-gold: #fcd74a;
    --color-orange: #f08c21;
    --color-text: #f2efe9;
    --color-text-muted: #b0adc0;
    --color-border: rgba(65, 25, 103, 0.4);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.25);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.3);
}

/* Estilos personalizados para la barra de scroll */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(65, 25, 103, 0.6);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(252, 215, 74, 0.5);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Fallback para Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(65, 25, 103, 0.6) transparent;
}

/* Animación pulse para indicaciones */
@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

body { 
    font-family: 'Inter', 'Segoe UI', 'Arial', sans-serif; 
    background: var(--color-bg); 
    color: var(--color-text); 
    margin: 0; 
    padding: 0; 
    line-height: 1.6;
}

/* Pantalla de video de arranque */
.startup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Correcciones específicas para iOS Safari */
    height: calc(var(--vh, 1vh) * 100);
    height: -webkit-fill-available;
    background: #060606;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-out;
}

.startup-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.startup-video {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    padding: 0;
    background: #060606;
    display: block;
}

/* Ocultar el contenido principal inicialmente */
.main-content {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.main-content.show {
    opacity: 1;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .startup-video {
        max-width: 85%;
        max-height: 75%;
        width: auto;
        height: auto;
    }
}

/* Para móviles muy pequeños */
@media (max-width: 480px) {
    .startup-video {
        max-width: 80%;
        max-height: 70%;
        width: auto;
        height: auto;
    }
}

/* Menú flotante para móviles */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #411967;
    border-radius: 50%;
    z-index: 1000;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #5a2587;
    transform: scale(1.1);
}

.mobile-menu-toggle svg {
    color: #fcd74a;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    z-index: 9999;
    backdrop-filter: blur(0px);
    transition: all 0.3s ease;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.show {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.mobile-menu-overlay.show .mobile-menu {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.mobile-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2em;
    min-width: 280px;
    max-width: 90vw;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5em;
    border-bottom: 2px solid #fcd74a;
    padding-bottom: 1em;
}

.mobile-menu-header h3 {
    color: #fcd74a;
    margin: 0;
    font-size: 1.2em;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #fcd74a;
    cursor: pointer;
    padding: 0.5em;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(252, 215, 74, 0.1);
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 60vh; /* Máximo 60% de la altura de la pantalla */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5em; /* Espacio para la scrollbar */
    position: relative;
}

/* Contenedor para indicadores de scroll */
.mobile-menu-scroll-indicators {
    position: relative;
}

/* Indicador de más contenido abajo */
.mobile-menu-scroll-indicator-down {
    position: absolute;
    bottom: 10px;
    right: 15px;
    background: rgba(252, 215, 74, 0.9);
    color: #411967;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Indicador de más contenido arriba */
.mobile-menu-scroll-indicator-up {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(252, 215, 74, 0.9);
    color: #411967;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Estados activos */
.mobile-menu-scroll-indicators.show-down .mobile-menu-scroll-indicator-down {
    opacity: 1;
}

.mobile-menu-scroll-indicators.show-up .mobile-menu-scroll-indicator-up {
    opacity: 1;
}

/* Scrollbar personalizada para el menú móvil */
.mobile-menu-list::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu-list::-webkit-scrollbar-track {
    background: rgba(65, 25, 103, 0.3);
    border-radius: 3px;
}

.mobile-menu-list::-webkit-scrollbar-thumb {
    background: rgba(252, 215, 74, 0.6);
    border-radius: 3px;
}

.mobile-menu-list::-webkit-scrollbar-thumb:hover {
    background: rgba(252, 215, 74, 0.8);
}

.mobile-menu-list li {
    margin-bottom: 0.5em;
}

.mobile-menu-item {
    display: block;
    color: #f2efe9;
    text-decoration: none;
    padding: 1em;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1em;
    border: 1px solid transparent;
}

.mobile-menu-item:hover {
    background: rgba(252, 215, 74, 0.1);
    border-color: #fcd74a;
    transform: translateX(5px);
}

/* Mostrar menú solo en móviles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-scroll-btn {
        display: none;
    }
    
    .sticky-nav-container {
        padding: 0 1em 0.5em 1em;
        max-height: none;
    }
    
    .sticky-header:hover .sticky-nav-container {
        max-height: 200px; /* Altura limitada en móvil */
    }
    
    .sticky-nav {
        gap: 0.8em;
        flex-direction: column;
        align-items: flex-start;
        max-height: 180px;
        overflow-y: auto;
        overflow-x: hidden;
        cursor: default;
        user-select: auto;
        width: 100%;
        padding: 0.5em 0;
    }
    
    .sticky-nav::-webkit-scrollbar {
        width: 4px;
        display: block;
    }
    
    .sticky-nav::-webkit-scrollbar-track {
        background: rgba(65, 25, 103, 0.3);
        border-radius: 2px;
    }
    
    .sticky-nav::-webkit-scrollbar-thumb {
        background: rgba(252, 215, 74, 0.6);
        border-radius: 2px;
    }
    
    .sticky-nav::-webkit-scrollbar-thumb:hover {
        background: rgba(252, 215, 74, 0.8);
    }
    
    .nav-item {
        width: 100%;
        padding: 0.6em 0.8em;
        border-radius: 4px;
        transition: background 0.2s ease;
    }
    
    .nav-item:hover {
        background: rgba(240, 140, 33, 0.1);
    }
}

header { 
    background: var(--color-bg); 
    color: var(--color-gold); 
    text-align: center; 
    padding: 1.5em 0; 
    border-bottom: 1px solid var(--color-border);
}

footer { 
    background: var(--color-bg); 
    color: var(--color-gold); 
    text-align: center; 
    padding: 2em 0 1.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    border-top: 1px solid var(--color-border);
}

footer small {
    font-size: 0.9em;
    color: var(--color-text-muted);
}

/* Selector de idioma */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.9em;
}

.language-label {
    color: #ccc;
}

.language-select {
    background: #2a1a40;
    color: #fcd74a;
    border: 1px solid #411967;
    padding: 0.3em 0.5em;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-select:hover {
    border-color: #fcd74a;
    background: #3a2a50;
}

.language-select:focus {
    outline: none;
    border-color: #f08c21;
    box-shadow: 0 0 5px rgba(240, 140, 33, 0.3);
}

h1, h2, h3 { 
    font-family: 'Press Start 2P', 'Arial', monospace;
    letter-spacing: 0.5px;
}

h1 { 
    font-size: 2em; 
    margin-bottom: 0; 
}

h2 { 
    color: var(--color-orange); 
    border-bottom: 1px solid var(--color-border); 
    padding-bottom: 0.5em;
    text-align: center;
    margin-bottom: 1.2em;
}

h3 { 
    color: var(--color-gold); 
    margin-top: 2em;
    margin-bottom: 0.8em;
}

section { 
    margin: 2em auto; 
    max-width: 750px; 
    background: var(--color-surface-raised); 
    border-radius: var(--radius-lg); 
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md); 
    padding: 2em 2em 1.5em 2em; 
}

img { 
    display: block; 
    margin: 1em auto; 
    border-radius: 7px; 
    max-width: 100%; 
}

.curiosidad { 
    background: rgba(0,0,0,0.2); 
    border-left: 3px solid var(--color-gold); 
    margin: 1.5em 0; 
    padding: 1em 1.2em; 
    color: #e6e0fa; 
    font-style: italic;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

a { 
    color: #edb902; 
}

/* Enlace inline estilizado */
.inline-link {
    color: #fcd74a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.inline-link:hover {
    color: #ffee77;
    border-bottom: 1px solid rgba(252, 215, 74, 0.5);
}

.inline-link:active {
    color: #fcd74a;
}

.legacy { 
    color: #ff6b47; 
    font-weight: bold; 
    letter-spacing: 1px; 
}

.discontinued {
    color: #ff6b47;
    font-size: 0.75em;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.coming-soon {
    color: #4ecdc4;
    font-size: 0.75em;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.hardware ul li {
    margin-bottom: 1em;
}

/* Espaciado general para listas principales en las secciones */
section > ul > li {
    margin-bottom: 1em;
}

.arcade { 
    color: #6F439B; 
    font-weight: bold; 
    letter-spacing: 1px; 
}

.console { 
    color: #C10230; 
    font-weight: bold; 
    letter-spacing: 1px; 
}

.computer { 
    color: #345E9F; 
    font-weight: bold; 
    letter-spacing: 1px; 
}

.hardware { 
    background: rgba(56, 36, 96, 0.4); 
    padding: 1em; 
    border-radius: var(--radius-md); 
    margin-top: 1em; 
}

.news-month { 
    margin: 1em 0; 
    border: 1px solid rgba(100, 50, 160, 0.6); 
    border-radius: var(--radius-md); 
}

.news-header { 
    background: rgba(65, 25, 103, 0.75); 
    color: var(--color-gold); 
    padding: 1em; 
    cursor: pointer; 
    user-select: none; 
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: background 0.2s ease;
}

.news-header:hover { 
    background: rgba(90, 35, 128, 0.75); 
}

.news-content { 
    display: none; 
    padding: 1em; 
    background: rgba(42, 31, 64, 0.85); 
    border-radius: 0 0 var(--radius-md) var(--radius-md); 
    overflow: hidden; 
}

.news-content.active { 
    display: block; 
}

.news-header::after { 
    content: ' ▼'; 
    float: right; 
    transition: transform 0.3s; 
}

.news-header.collapsed::after { 
    transform: rotate(-90deg); 
}

/* Imagen específica para las noticias de octubre */
#oct2025 img {
    max-width: 54% !important;
}

html { 
    scroll-behavior: auto; 
}

/* Estilos sutiles mejorados para la sección de Contenido */
.content-index {
    list-style: none;
    padding: 0;
    margin: 1em 0;
}

.content-index li {
    margin: 0.5em 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--color-border);
    transition: all 0.2s ease;
}

.content-index li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--color-gold);
}

.content-index a {
    display: block;
    width: 100%;
    color: #f2efe9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.8em 1em;
}

.content-index a:hover {
    color: #fcd74a;
}

/* Estilos para botones de compartir */
.share-section { 
    margin: 1.5em 0; 
    text-align: center; 
}

.social-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 0.8em; 
    flex-wrap: wrap; 
    margin-top: 1em; 
}

.social-btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5em; 
    padding: 0.6em 1em; 
    text-decoration: none; 
    border-radius: var(--radius-md); 
    font-size: 0.85em; 
    font-weight: 600; 
    transition: opacity 0.2s ease; 
    color: white; 
    letter-spacing: 0.3px;
}

.social-btn:hover { 
    opacity: 0.85; 
}

.social-btn.twitter { 
    background: #1da1f2; 
}

.social-btn.twitter:hover { 
    background: #0d8bd9; 
    color: white; 
}

.social-btn.whatsapp { 
    background: #25d366; 
}

.social-btn.whatsapp:hover { 
    background: #1ebe57; 
    color: white; 
}

.social-btn.reddit { 
    background: #ff4500; 
}

.social-btn.reddit:hover { 
    background: #e63e00; 
    color: white; 
}

.social-btn.telegram { 
    background: #0088cc; 
}

.social-btn.telegram:hover { 
    background: #007bb3; 
    color: white; 
}

.social-btn svg { 
    flex-shrink: 0; 
}

/* Estilos para la sección Evercadiano */
.evercade-player-section {
    background: rgba(42, 31, 64, 0.6);
    border-radius: var(--radius-lg);
    padding: 1.5em;
    margin: 2em 0;
    text-align: center;
    border: 1px solid var(--color-border);
}

.evercade-player-section p {
    margin-bottom: 1.2em;
    color: #f2efe9;
    font-size: 1.1em;
}

.evercade-icon {
    width: 6%;
    height: 6%;
    vertical-align: middle;
    margin-right: 0.5em;
    display: inline-block;
}

.player-declaration {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

.evercade-player-btn {
    background: var(--color-gold);
    color: var(--color-bg);
    border: none;
    padding: 0.8em 1.8em;
    border-radius: var(--radius-md);
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.evercade-player-btn:hover {
    background: #ffee77;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.evercade-player-btn:active {
    transform: translateY(0);
}

.evercade-player-btn:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

.evercade-error-message {
    color: #dc3545;
    text-align: center;
    margin-top: 1em;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
    font-size: 0.95em;
    font-weight: 500;
}

.evercade-error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.player-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3em;
}

.counter-label {
    color: #e6e0fa;
    font-size: 0.9em;
    font-weight: 500;
}

.counter-number {
    color: #fcd74a;
    font-size: 1.8em;
    font-weight: bold;
    font-family: 'Press Start 2P', monospace;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.player-status {
    margin-top: 0.5em;
}

.status-badge {
    background: #4CAF50;
    color: white;
    padding: 0.8em 1.5em;
    border-radius: var(--radius-md);
    font-weight: bold;
    font-size: 1em;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
}



@keyframes badge-glow {
    from { box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3); }
    to { box-shadow: 0 3px 15px rgba(76, 175, 80, 0.6); }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .evercade-player-section {
        padding: 1.2em;
        margin: 1.5em 0;
    }
    
    .evercade-player-btn {
        padding: 0.9em 1.5em;
        font-size: 1em;
    }
    
    .counter-number {
        font-size: 1.5em;
    }
    
    .status-badge {
        padding: 0.7em 1.2em;
        font-size: 0.9em;
    }
    
    .evercade-error-message {
        font-size: 0.9em;
        margin-top: 0.8em;
    }
}

@media (min-width: 769px) {
    .player-declaration {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2em;
    }
}

/* Estilos del buscador de juegos */
#buscador {
    background: var(--color-surface-raised);
    position: relative;
    overflow: visible;
}

.search-container {
    position: relative;
    margin: 1.5em 0;
}

#gameSearch {
    width: 100%;
    padding: 0.8em 1em;
    font-size: 1em;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(0,0,0,0.2);
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

#gameSearch:focus {
    border-color: var(--color-gold);
}

#gameSearch::placeholder {
    color: #999;
    font-style: italic;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow-lg);
}

/* Estilos personalizados para scrollbar de resultados de búsqueda */
.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(65, 25, 103, 0.6);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(252, 215, 74, 0.5);
}

/* Soporte para Firefox */
.search-results {
    scrollbar-width: thin;
    scrollbar-color: rgba(65, 25, 103, 0.6) transparent;
}

.search-header {
    background: rgba(65, 25, 103, 0.4);
    color: var(--color-gold);
    padding: 0.8em 1.2em;
    font-weight: bold;
    border-bottom: 1px solid var(--color-border);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7em;
}

/* Estilos del Buscador Avanzado de Cartuchos */
#buscador-avanzado {
    background: var(--color-surface-raised);
    padding: 2em 2em 1.5em 2em;
    border-radius: var(--radius-lg);
    margin: 2em auto;
    max-width: 750px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    overflow-x: hidden;
}

#buscador-avanzado h2 {
    text-align: center;
    position: relative;
    z-index: 1;
}

#buscador-avanzado p {
    color: #e0e0e0;
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 2em;
    line-height: 1.6;
}

.advanced-search-container {
    display: flex;
    flex-direction: column;
    gap: 2em;
    width: 100%;
    box-sizing: border-box;
}

.search-filters {
    background: rgba(255, 255, 255, 0.05);
    padding: 2em;
    border-radius: 12px;
    border: 1px solid #411967;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5em;
    align-items: start;
    transition: all 0.3s ease;
}

/* Efecto de feedback visual para búsqueda */
.search-filters.search-feedback {
    background: rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.6);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
    transform: scale(1.02);
}

@keyframes searchPulse {
    0% { 
        background: rgba(255, 255, 255, 0.05);
        border-color: #411967;
        box-shadow: none;
        transform: scale(1);
    }
    50% { 
        background: rgba(74, 144, 226, 0.15);
        border-color: rgba(74, 144, 226, 0.8);
        box-shadow: 0 0 25px rgba(74, 144, 226, 0.4);
        transform: scale(1.02);
    }
    100% { 
        background: rgba(255, 255, 255, 0.05);
        border-color: #411967;
        box-shadow: none;
        transform: scale(1);
    }
}

@keyframes searchPulseNoResults {
    0% { 
        background: rgba(255, 255, 255, 0.05);
        border-color: #411967;
        box-shadow: none;
        transform: scale(1);
    }
    50% { 
        background: rgba(255, 107, 107, 0.15);
        border-color: rgba(255, 107, 107, 0.8);
        box-shadow: 0 0 25px rgba(255, 107, 107, 0.4);
        transform: scale(1.02);
    }
    100% { 
        background: rgba(255, 255, 255, 0.05);
        border-color: #411967;
        box-shadow: none;
        transform: scale(1);
    }
}

.filter-group {
    margin-bottom: 0.2em;
}

.filter-group label {
    display: block;
    color: #fcd74a;
    font-weight: bold;
    margin-bottom: 0.5em;
    font-size: 0.9em;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.7em 0.9em;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1em;
    box-sizing: border-box;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--color-gold);
}

.filter-group select option {
    background: var(--color-surface-raised);
    color: white;
    padding: 0.5em;
    border: none;
}

.filter-group select option:hover {
    background: #411967;
    color: #fcd74a;
}

.filter-group select option:checked {
    background: #fcd74a;
    color: #262044;
    font-weight: bold;
}

.filter-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.preferences-group {
    grid-column: 1 / -1;
    border-top: 2px solid #411967;
    padding-top: 0.5em;
    margin-top: 0.5em;
}

.genre-preferences {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.preference-item {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.preference-item label {
    color: #fcd74a;
    font-weight: bold;
    margin-bottom: 0;
    font-size: 0.9em;
}

.preference-item select {
    width: 100%;
    padding: 0.7em 0.9em;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1em;
    box-sizing: border-box;
}

.preference-item select:focus {
    outline: none;
    border-color: var(--color-gold);
}

.preference-item select option {
    background: var(--color-surface-raised);
    color: white;
    padding: 0.5em;
    border: none;
}

.preference-item select option:hover {
    background: #411967;
    color: #fcd74a;
}

.preference-item select option:checked {
    background: #fcd74a;
    color: #262044;
    font-weight: bold;
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 2em;
    margin-top: 1.2em;
}

.search-btn,
.clear-btn {
    flex: 1;
    padding: 0.8em 1.2em;
    border: none;
    border-radius: var(--radius-md);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    white-space: nowrap;
}

.search-btn {
    background: var(--color-orange);
    color: white;
}

.search-btn:hover {
    background: #e07a1a;
    transform: translateY(-1px);
}

.clear-btn {
    background: rgba(255,255,255,0.08);
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.15);
}

.clear-btn:hover {
    background: rgba(255,255,255,0.12);
}

.advanced-search-results {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    max-height: 700px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5em;
    width: 100%;
    box-sizing: border-box;
}

.search-placeholder {
    text-align: center;
    color: #888;
    padding: 3em 2em;
}

.search-placeholder p {
    margin-bottom: 1em;
}

.advanced-search-results .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5em;
    width: 100%;
    box-sizing: border-box;
}

.cartridge-result {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5em;
    transition: border-color 0.2s ease;
    cursor: pointer;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.cartridge-result:hover {
    border-color: rgba(252, 215, 74, 0.3);
}

.cartridge-title {
    color: #fcd74a;
    font-size: 1.1em;
    margin: 0;
    font-family: 'Press Start 2P', monospace;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Eliminada definición duplicada de .cartridge-info */

.basic-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
    margin-bottom: 0.5em;
}

.info-item {
    background: rgba(65, 25, 103, 0.4);
    padding: 0.3em 0.8em;
    border-radius: var(--radius-sm);
    color: #e0e0e0;
    font-size: 0.85em;
    font-weight: 500;
}

.genres-info {
    background: rgba(240, 140, 33, 0.1);
    padding: 1em;
    border-radius: 8px;
    border-left: 4px solid #f08c21;
    min-height: 80px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.genres-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
    margin-top: 0.6em;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
}

.genre-item {
    background: rgba(240, 140, 33, 0.3);
    color: #f08c21;
    padding: 0.4em 0.8em;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    border: 1px solid rgba(240, 140, 33, 0.4);
}

.games-section {
    background: rgba(252, 215, 74, 0.05);
    padding: 1.2em;
    border-radius: 8px;
    border-top: 2px solid #fcd74a;
    min-height: 120px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.section-title {
    color: #fcd74a;
    font-size: 0.9em;
    margin: 0 0 0.8em 0;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75em;
}

.games-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
    line-height: 1.4;
}

.game-tag {
    background: rgba(252, 215, 74, 0.2);
    color: #fcd74a;
    padding: 0.4em 0.7em;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 500;
    border: 1px solid rgba(252, 215, 74, 0.3);
    transition: all 0.2s ease;
}

.game-tag:hover {
    background: rgba(252, 215, 74, 0.25);
    transform: translateY(-0.5px);
}

.game-tag.more-games {
    background: rgba(65, 25, 103, 0.4);
    color: #b388d4;
    border-color: rgba(65, 25, 103, 0.6);
}

.game-tag.clickable-game {
    cursor: pointer;
    background: rgba(74, 252, 199, 0.2);
    color: #4afcc7;
    border-color: rgba(74, 252, 199, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.game-tag.clickable-game:hover {
    background: rgba(74, 252, 199, 0.3);
    color: #35f5b4;
    border-color: rgba(74, 252, 199, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 252, 199, 0.2);
}

.game-tag.clickable-game::after {
    content: '🔗';
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 0.6em;
    opacity: 0.7;
    background: rgba(74, 252, 199, 0.8);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d1821;
}

.hidden-games {
    display: none;
}

/* Sección de acciones (reseña y precios) */
.actions-section {
    padding-top: 0.8em;
    text-align: right;
    display: flex;
    gap: 0.5em;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.review-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.3em 0.6em;
    background: transparent;
    color: #ff6b6b;
    font-size: 0.8em;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 107, 107, 0.3);
    font-family: inherit;
    text-decoration: none;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.review-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff5252;
    border-color: rgba(255, 107, 107, 0.5);
    transform: translateY(-0.5px);
}

.review-btn:active {
    transform: translateY(0);
    background: rgba(255, 107, 107, 0.05);
}

.price-check-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.3em 0.6em;
    background: transparent;
    color: #4afcc7;
    font-size: 0.8em;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(74, 252, 199, 0.3);
    font-family: inherit;
    text-decoration: none;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.price-check-link:hover {
    background: rgba(74, 252, 199, 0.1);
    color: #35f5b4;
    border-color: rgba(74, 252, 199, 0.5);
    transform: translateY(-0.5px);
}

.price-check-link:active {
    transform: translateY(0);
    background: rgba(74, 252, 199, 0.05);
}

/* Explicación de puntuación */
.score-explanation {
    background: rgba(65, 25, 103, 0.25);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    animation: fadeInScore 0.5s ease-out;
}

.score-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.score-icon {
    font-size: 24px;
    flex-shrink: 0;
    animation: sparkle 2s ease-in-out infinite;
}

.score-text {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.score-text strong {
    color: var(--color-text);
    font-weight: 600;
}

@keyframes fadeInScore {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.search-stats {
    text-align: center;
    color: #888;
    font-style: italic;
}

.database-info {
    text-align: center;
    margin-top: 0.2em;
}

#database-last-update-date {
    display: block;
    color: #888;
    font-size: 0.85em;
    font-style: italic;
    text-align: center;
}

#games-database-last-update-date {
    display: block;
    color: #888;
    font-size: 0.85em;
    font-style: italic;
    text-align: center;
    margin-top: 0.2em;
}

/* Responsive para buscador avanzado */
@media (max-width: 1023px) {
    .search-filters {
        grid-template-columns: 1fr;
        gap: 1em;
        padding: 1.5em;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 1em;
    }
    
    .genre-preferences {
        gap: 0.8em;
    }
    
    .preference-item {
        gap: 0.4em;
    }
    
    .preference-item label {
        font-size: 0.8em;
    }
    
    .results-grid {
        grid-template-columns: 1fr !important;
    }
    
    .cartridge-result {
        padding: 1.5em;
        gap: 1em;
    }
    
    .basic-info {
        flex-direction: column;
        gap: 0.5em;
    }
    
    .games-section {
        padding: 1em;
    }
    
    .cartridge-title {
        font-size: 0.9em;
        line-height: 1.3;
    }
    
    .advanced-search-results {
        padding: 1em;
    }
    
    /* Explicación de puntuación responsive */
    .score-explanation {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .score-text {
        font-size: 13px;
    }
    
    .score-icon {
        font-size: 20px;
    }
}

/* Sección de fuentes de datos */
.sources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    margin-bottom: 2em;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.sources-category h3 {
    color: #fcd74a;
    margin-bottom: 1em;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    text-align: center;
    justify-content: center;
}

.source-list {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

.source-item {
    display: flex;
    align-items: flex-start;
    gap: 1em;
    background: rgba(252, 215, 74, 0.05);
    padding: 1.2em;
    border-radius: var(--radius-md);
    border: 1px solid rgba(252, 215, 74, 0.1);
    transition: border-color 0.2s ease;
}

.source-item:hover {
    border-color: rgba(252, 215, 74, 0.3);
}

.source-icon {
    font-size: 1.5em;
    flex-shrink: 0;
    padding: 0.3em;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d1821;
}

/* Ajuste de padding vertical para iconos con imagen */
.source-icon:has(.source-icon-img) {
    padding: 0.15em 0.3em;
}

.source-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.source-info h4 {
    margin: 0 0 0.5em 0;
    color: #fcd74a;
    font-size: 1.1em;
}

.source-info h4 a {
    color: #fcd74a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.source-info h4 a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.source-info p {
    margin: 0;
    color: #ddd;
    font-size: 0.95em;
    line-height: 1.4;
}

.acknowledgments {
    background: rgba(252, 215, 74, 0.05);
    border-radius: 12px;
    padding: 2em;
    border: 1px solid rgba(252, 215, 74, 0.1);
    max-width: 1200px;
    margin: 2em auto;
}

.acknowledgments h3 {
    color: #fcd74a;
    margin-bottom: 1em;
    text-align: center;
    font-size: 1.4em;
}

.acknowledgments > p {
    text-align: center;
    font-size: 1.05em;
    line-height: 1.6;
    margin-bottom: 1.5em;
}

.disclaimer {
    border-top: 1px solid rgba(252, 215, 74, 0.2);
    padding-top: 1.5em;
    margin-top: 1.5em;
}

.disclaimer p {
    color: #aaa;
    font-size: 0.9em;
    text-align: center;
    line-height: 1.5;
    font-style: italic;
    margin: 0;
}

.disclaimer strong {
    color: #fcd74a;
}

/* Responsive para la sección de fuentes */
@media (max-width: 768px) {
    .data-sources-section {
        padding: 1.5em;
        margin: 2em 0;
    }
    
    .sources-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
    
    .source-item {
        padding: 1em;
        gap: 0.8em;
    }
    
    .source-icon {
        font-size: 1.3em;
    }
    
    .acknowledgments {
        padding: 1.5em;
    }
}

.search-result {
    display: block;
    padding: 1em 1.2em;
    border-bottom: 1px solid #333;
    transition: background 0.2s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.search-result:hover {
    background: #1a1530;
    text-decoration: none;
}

.search-result.keyboard-selected {
    background: #2a1f40;
    outline: 2px solid #f08c21;
    outline-offset: -2px;
}

.search-result:last-child {
    border-bottom: none;
}

.game-name {
    font-weight: bold;
    color: #fcd74a;
    margin-bottom: 0.5em;
    font-size: 1.1em;
}

.cartridge-info {
    display: flex;
    align-items: center;
    gap: 0.8em;
    flex-wrap: nowrap;
    margin-top: 0.3em;
    min-height: 1.5em;
    width: 100%;
    box-sizing: border-box;
}

.cartridge-info > .cartridge-name + .review-link {
    margin-left: 0.4em;
    margin-right: 0.2em;
}

.cartridge-type {
    margin-left: auto;
}

.cartridge-tags {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.cartridge-type {
    padding: 0.3em 0.6em;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cartridge-type.console {
    background: #C10230;
    color: white;
}

.cartridge-type.arcade {
    background: #6F439B;
    color: white;
}

.cartridge-type.computer {
    background: #345E9F;
    color: white;
}

.cartridge-name {
    color: #edb902;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.legacy-indicator {
    background: #ff4444;
    color: white;
    padding: 0.3em 0.6em;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: pulse-legacy 2s infinite;
    white-space: nowrap;
}

@keyframes pulse-legacy {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.05);
    }
}

.review-link {
    background: #ff6b35;
    color: white;
    padding: 0.25em 0.5em;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    vertical-align: middle;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    line-height: 1;
}

.review-link:hover {
    background: #e55a30;
    transform: translateY(-0.5px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    text-decoration: none;
}

.review-icon {
    font-size: 1em;
}

.no-results, .search-error {
    padding: 1.5em 1.2em;
    text-align: center;
    color: #ff6b47;
    font-style: italic;
}

.search-info {
    margin-top: 1em;
    text-align: center;
}

.search-info p {
    color: #999;
    font-size: 0.9em;
}

#last-update-date {
    display: block;
    color: #888;
    font-size: 0.85em;
    font-style: italic;
    margin-top: 10px;
    text-align: center;
}

/* Sección CrucetaPlay */
.crucetaplay-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5em;
    margin: 1.5em 0;
}

.crucetaplay-item {
    background: rgba(42, 77, 58, 0.1);
    border: 2px solid #2a4d3a;
    border-radius: 10px;
    padding: 1.5em;
    text-align: center;
    transition: all 0.3s ease;
}

.crucetaplay-item:hover {
    background: rgba(42, 77, 58, 0.2);
    border-color: #3a6d4e;
}

.crucetaplay-icon {
    font-size: 3em;
    margin-bottom: 0.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.crucetaplay-icon img,
.crucetaplay-icon svg {
    max-width: 48px;
    max-height: 48px;
}

.crucetaplay-item h3 {
    color: #2a4d3a;
    margin-bottom: 0.5em;
    font-size: 1.1em;
}

.crucetaplay-item p {
    margin-bottom: 1em;
    font-size: 0.9em;
    line-height: 1.4;
}

.crucetaplay-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    background: #2a4d3a;
    color: white;
    text-decoration: none;
    padding: 0.8em 1.5em;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9em;
    white-space: nowrap;
}

.crucetaplay-btn:hover {
    background: #1e3b2d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Botón volver al inicio */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-accent);
    color: var(--color-gold);
    border: none;
    border-radius: 50px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    z-index: 1000;
    display: none;
}

.back-to-top:hover {
    background: #5a2380;
    transform: translateY(-2px);
}

.back-to-top.show {
    display: block;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    /* Logo más grande en móvil */
    header img {
        max-width: 70% !important;
        margin-bottom: 1.5em !important;
    }
    
    /* Header con más padding en móvil */
    header {
        padding: 1.5em 1em !important;
    }
    
    /* Secciones con menos padding lateral */
    section {
        margin: 1.5em 1em !important;
        padding: 1.5em 1em !important;
    }
    
    /* Títulos más pequeños en móvil */
    h1 { font-size: 1.5em !important; }
    h2 { font-size: 1.2em !important; }
    h3 { font-size: 1em !important; }
    
    /* Botones sociales optimizados para móviles - solo iconos */
    .social-buttons { 
        gap: 1em;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    .social-btn { 
        padding: 0.8em;
        font-size: 0;
        min-width: auto;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        justify-content: center;
        align-items: center;
    }
    
    .social-btn svg {
        width: 24px;
        height: 24px;
    }
    
    /* News headers más grandes en móvil */
    .news-header {
        font-size: 1.1em;
        padding: 1.2em !important;
    }
    
    /* Mejores márgenes para curiosidades */
    .curiosidad {
        margin: 1.5em 0 !important;
        padding: 1.2em !important;
    }
    
    /* Sección CrucetaPlay en móvil */
    .crucetaplay-links {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    .crucetaplay-item {
        padding: 1.2em;
    }
    .crucetaplay-btn {
        padding: 0.7em 1.3em;
        font-size: 0.85em;
    }
    
    /* Buscador responsive */
    .search-container {
        margin: 1em 0;
    }
    
    .cartridge-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }
    
    .cartridge-name {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Logo aún más grande en pantallas muy pequeras */
    header img {
        max-width: 85% !important;
    }
    
    /* Texto del header más grande */
    header p {
        font-size: 1.1em !important;
        padding: 0 0.5em;
    }
}

/* Estilos para la sección de Juegos Ocultos */
#juegos-ocultos {
    /* Usar estilos base de section + decoraciones especiales */
    position: relative;
    overflow: hidden;
}

#juegos-ocultos h2 {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hidden-games-intro {
    background: rgba(0,0,0,0.2);
    padding: 1.2em;
    border-radius: var(--radius-md);
    margin-bottom: 1.5em;
    border-left: 3px solid var(--color-orange);
    position: relative;
    z-index: 1;
}

.hidden-games-intro p {
    margin-bottom: 1em;
    line-height: 1.6;
    font-size: 1.1em;
}

.hidden-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5em;
    margin-bottom: 2em;
    position: relative;
    z-index: 1;
}

.hidden-game-card {
    background: rgba(50, 38, 75, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.5em;
    transition: border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.hidden-game-card::before {
    display: none;
}

.hidden-game-card:hover {
    border-color: rgba(240, 140, 33, 0.4);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.game-header h3 {
    color: #fcd74a;
    margin: 0;
    font-size: 1.3em;
    font-weight: bold;
}

.unlock-type {
    padding: 0.3em 0.8em;
    border-radius: 20px;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.unlock-type.code {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

.unlock-type.buttons {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.unlock-type.cartridge {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: white;
}

.game-description {
    color: #ccc;
    font-style: italic;
    margin-bottom: 1em;
    line-height: 1.4;
}

.unlock-method {
    background: rgba(0,0,0,0.4);
    padding: 1em;
    border-radius: 8px;
    border-left: 3px solid #f08c21;
}

.unlock-method strong {
    color: #f08c21;
    display: block;
    margin-bottom: 0.5em;
}

.unlock-method code {
    background: #1a1435;
    color: #fcd74a;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border: 1px solid #444;
    display: inline-block;
    word-break: break-word;
    white-space: normal;
    line-height: 1.3;
}

/* Estilo para el símbolo + en combinaciones */
.cartridge-plus {
    color: #f08c21;
    font-size: 1.3em;
    font-weight: bold;
    margin: 0 0.4em;
    vertical-align: middle;
}

.unlock-method small {
    color: #aaa;
    font-size: 0.85em;
    display: block;
    margin-top: 0.8em;
}

.hidden-games-tips {
    background: rgba(0,0,0,0.4);
    padding: 1.5em;
    border-radius: 10px;
    border: 1px solid #444;
    position: relative;
    z-index: 1;
}

.hidden-games-tips h3 {
    color: #f08c21;
    margin-bottom: 1em;
    font-size: 1.4em;
}

.hidden-games-tips ul {
    list-style: none;
    padding: 0;
}

.hidden-games-tips li {
    margin-bottom: 0.8em;
    padding-left: 1.5em;
    position: relative;
    line-height: 1.5;
}

.hidden-games-tips li::before {
    content: '🎯';
    position: absolute;
    left: 0;
    top: 0;
}

.hidden-games-tips b {
    color: #fcd74a;
}

.hidden-games-extras {
    margin-top: 1.5em;
    padding: 1em;
    background: rgba(240, 140, 33, 0.1);
    border-radius: 8px;
    border-left: 3px solid #f08c21;
}

.hidden-games-extras h4 {
    color: #f08c21;
    margin-bottom: 0.8em;
    font-size: 1.1em;
}

.hidden-games-extras p {
    margin: 0.5em 0;
    font-size: 0.9em;
}

.hidden-games-extras code {
    background: #1a1435;
    color: #fcd74a;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .hidden-games-grid {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    
    .hidden-game-card {
        padding: 1em;
    }
    
    .game-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }
    
    .game-header h3 {
        font-size: 1.1em;
    }
    
    .unlock-type {
        align-self: flex-end;
    }
    
    #juegos-ocultos {
        margin: 1em 0;
        padding: 1em;
    }
    
    #juegos-ocultos h2 {
        text-align: center;
    }
}

/* ==========================================
   CALENDARIO DE LANZAMIENTOS
   ========================================== */

.timeline-container {
    position: relative;
    margin: 2em 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 2.5em;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 55px;
    bottom: -25px;
    width: 2px;
    background: linear-gradient(180deg, #f08c21 0%, #6F439B 100%);
    z-index: 1;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-date {
    width: 80px;
    text-align: center;
    background: var(--color-orange);
    color: white;
    padding: 0.8em 0.5em;
    border-radius: var(--radius-md);
    position: relative;
    z-index: 2;
    height: fit-content;
}

.timeline-date .month {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
}

.timeline-date .year {
    display: block;
    font-size: 0.9em;
    opacity: 0.9;
}

.timeline-content {
    flex: 1;
    margin-left: 2em;
    padding: 0.5em 0;
}

.timeline-content h3 {
    margin-top: 0;
    color: #fcd74a;
    font-size: 1.1em;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

.release-cards {
    display: grid;
    gap: 1em;
}

.release-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 1.2em;
    border-left: 3px solid;
    transition: background 0.2s ease;
    position: relative;
}

.release-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.release-card.premium {
    border-left-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.08));
}

.release-card.standard {
    border-left-color: #f08c21;
}

.release-card.arcade {
    border-left-color: #6F439B;
}

.release-card.legacy {
    border-left-color: #ff4444;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1), rgba(255, 255, 255, 0.08));
}

.release-card.firmware-update {
    background: linear-gradient(135deg, rgba(74, 252, 199, 0.1) 0%, rgba(74, 252, 199, 0.05) 100%);
    border-left: 4px solid #4afcc7;
}

.release-card.legacy-warning {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
    border-left: 4px solid #ff6b6b;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5em;
}

.card-header h4 {
    margin: 0;
    color: #eee;
    font-size: 1.05em;
}

.console-badge, .computer-badge, .collection-badge, .arcade-badge, .legacy-badge {
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.console-badge {
    background: #C10230;
    color: white;
}

.computer-badge {
    background: #345E9F;
    color: white;
}

.collection-badge {
    background: #C10230;
    color: white;
}

.arcade-badge {
    background: #6F439B;
    color: white;
}

.legacy-badge {
    background: #ff4444;
    color: white;
    animation: pulse-legacy 2s infinite;
}

.card-highlights {
    display: flex;
    gap: 0.8em;
    flex-wrap: wrap;
    margin-top: 0.8em;
}

.highlight-tag {
    color: #f0a050;
    font-size: 0.8em;
    font-weight: 600;
}

/* Estilos para noticias del firmware */
.news-section {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 2px solid rgba(74, 252, 199, 0.3);
}

.news-section h4 {
    color: #4afcc7;
    margin-bottom: 1em;
    font-size: 1.2em;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0.5em 0;
}

.feature-list li {
    padding: 0.5em 0;
    color: #cccccc;
    position: relative;
    padding-left: 1.5em;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4afcc7;
    font-weight: bold;
}

.legacy-list {
    list-style: none;
    padding: 0;
    margin: 0.5em 0;
}

.legacy-list li {
    padding: 0.25em 0;
    color: #ff6b6b;
}

.legacy-alert-list {
    list-style: none;
    padding: 0;
    margin: 0.5em 0;
}

.legacy-alert-list li {
    padding: 0.25em 0;
    color: #ff6b6b;
    font-weight: bold;
}



/* Estilos específicos para items de timeline */
.timeline-item.future .timeline-date {
    background: #4CAF50;
}

.timeline-item.recent .timeline-date {
    background: #2196F3;
}

.timeline-item.legacy-alert .timeline-date {
    background: #ff4444;
    animation: pulse-legacy 2s infinite;
}

.timeline-item.legacy-alert .release-card {
    border-left-color: #ff4444;
}

.legacy-warning {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 8px;
    padding: 1em;
    margin-bottom: 1.5em;
    text-align: center;
}

.legacy-warning p {
    margin: 0;
    color: #ff6b6b;
    font-weight: bold;
}

.legacy-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.calendar-footer {
    margin-top: 3em;
    padding: 1.5em;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #f08c21;
}

.calendar-footer p {
    margin: 0.5em 0;
}

/* Responsive para calendario */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        margin-bottom: 2.5em;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .timeline-date {
        width: auto;
        margin-bottom: 1em;
        align-self: center;
    }
    
    .timeline-content {
        margin-left: 0;
    }
    
    .release-cards {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }
    
    .card-highlights {
        justify-content: center;
    }
    
    .calendar-footer {
        margin-top: 2em;
        padding: 1em;
    }
}

/* Estilos para la sección de cartuchos favoritos - usa estilos base del tema */

.favorites-container {
    display: flex;
    flex-direction: column;
    gap: 2em;
    margin: 2em 0;
}

.cartridge-search-section, .ranking-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cartridge-search-section h3, .ranking-section h3 {
    color: #f08c21;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

#cartridgeSearch {
    width: 100%;
    padding: 0.8em 1em;
    border: 2px solid #f08c21;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1em;
    margin-bottom: 1em;
    box-sizing: border-box;
}

#cartridgeSearch:focus {
    outline: none;
    border-color: #e07a1a;
    box-shadow: 0 0 10px rgba(240, 140, 33, 0.3);
}

#cartridgeSearch::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#cartridgeSearchResults {
    background: rgba(24, 19, 42, 0.95);
    border: 2px solid #f08c21;
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1em;
    padding: 1em;
    display: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

#cartridgeSearchResults.show {
    display: block;
}

/* Estilos para el buscador de cartuchos favoritos */
#favoriteCartridgeSearch {
    width: 100%;
    padding: 0.8em 1em;
    border: 2px solid #f08c21;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1em;
    margin-bottom: 1em;
    box-sizing: border-box;
}

#favoriteCartridgeSearch:focus {
    outline: none;
    border-color: #e07a1a;
    box-shadow: 0 0 10px rgba(240, 140, 33, 0.3);
}

#favoriteCartridgeSearch::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#favoriteCartridgeSearchResults {
    background: rgba(24, 19, 42, 0.95);
    border: 2px solid #f08c21;
    border-radius: 10px;
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 1em;
    padding: 0.6em;
    display: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

#favoriteCartridgeSearchResults.show {
    display: block;
}

/* Estilos específicos para los elementos del comparador de precios */
.search-result-item {
    padding: 1.5em 1.8em;
    margin: 0.8em 0;
    border: 1px solid rgba(240, 140, 33, 0.4);
    border-radius: 8px;
    background: rgba(65, 25, 103, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(65, 25, 103, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.search-result-item:first-child {
    margin-top: 0;
}

.search-result-item:last-child {
    margin-bottom: 0;
}

#favoriteCartridgeSearchResults .cartridge-result {
    padding: 0.8em 1.2em;
    margin: 0.5em 0;
    border: 1px solid rgba(240, 140, 33, 0.4);
    border-radius: 6px;
    background: rgba(65, 25, 103, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center;
    gap: 0.5em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    min-height: auto;
}

#favoriteCartridgeSearchResults .cartridge-result:hover, 
#favoriteCartridgeSearchResults .cartridge-result.keyboard-selected {
    background: rgba(255, 255, 255, 0.06);
    border-color: #4a2a5c;
    transform: translateY(-0.5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    color: #fff;
}

#favoriteCartridgeSearchResults .cartridge-result:first-child {
    margin-top: 0;
}

#favoriteCartridgeSearchResults .cartridge-result:last-child {
    margin-bottom: 0;
}

#favoriteCartridgeSearchResults .cartridge-info {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    text-align: center;
    width: 100%;
    align-items: center;
}

.cartridge-name {
    font-weight: bold;
    color: #f08c21;
    font-size: 1em;
    line-height: 1.2;
}

.cartridge-games-count {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

#favoriteCartridgeSearchResults .cartridge-type {
    padding: 0.3em 0.6em;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    align-self: center;
    text-align: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.cartridge-type.console {
    background: #e74c3c;
    color: white;
}

.cartridge-type.arcade {
    background: #9b59b6;
    color: white;
}

.cartridge-type.computer {
    background: #3498db;
    color: white;
}

/* Responsive improvements for favorite cartridge search */
@media (max-width: 768px) {
    #favoriteCartridgeSearchResults .cartridge-result {
        padding: 0.6em 0.8em;
        margin: 0.4em 0;
        gap: 0.4em;
    }
    
    #favoriteCartridgeSearchResults .cartridge-info {
        width: 100%;
    }
    
    #favoriteCartridgeSearchResults .cartridge-type {
        font-size: 0.7em;
        padding: 0.2em 0.5em;
    }
    
    #favoriteCartridgeSearchResults {
        padding: 0.5em;
        max-height: 280px;
    }
}

#favoriteCartridgeSearchResults .no-results {
    padding: 1em;
    text-align: center;
    color: #ff6b47;
    font-style: italic;
    font-size: 0.9em;
}

.user-favorites h4 {
    color: #f08c21;
    margin: 1.5em 0 1em 0;
}

.favorites-list {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1em;
    min-height: 100px;
}

.favorite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em;
    margin: 0.5em 0;
    background: rgba(240, 140, 33, 0.1);
    border-radius: 6px;
    border-left: 3px solid #f08c21;
}

.favorite-item .cartridge-name {
    flex-grow: 1;
    color: white;
}

.remove-favorite {
    background: none;
    border: none;
    color: #f08c21;
    cursor: pointer;
    padding: 0.2em 0.5em;
    font-size: 1.2em;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.remove-favorite:hover {
    background: rgba(240, 140, 33, 0.2);
    color: #fff;
}

.no-favorites {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    padding: 2em 1em;
}

.ranking-container {
    min-height: 200px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 0.8em 0.5em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease;
    gap: 0.8em;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ranking-position {
    font-size: 1.1em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    min-width: 2.2em;
    text-align: center;
    flex-shrink: 0;
}

.ranking-item[data-position="1"] .ranking-position {
    color: #f1c40f;
}

.ranking-item[data-position="2"] .ranking-position {
    color: #aab7b8;
}

.ranking-item[data-position="3"] .ranking-position {
    color: #cd7f32;
}

.ranking-cartridge-info {
    flex-grow: 1;
}

.ranking-cartridge-name {
    font-weight: bold;
    color: white;
    margin-bottom: 0.2em;
}

.ranking-votes {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85em;
    font-weight: 500;
    margin-left: 0;
}

/* Scoped ranking item styles (JS uses .cartridge-info, .cartridge-name, .vote-count) */
.ranking-item .cartridge-info {
    flex-grow: 1;
    min-width: 0;
}

.ranking-item .cartridge-name {
    font-weight: 600;
    color: #eee;
    font-size: 0.95em;
    margin: 0;
}

.ranking-item .vote-count {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8em;
}

.loading-message {
    text-align: center;
    padding: 2em 1em;
    color: rgba(255, 255, 255, 0.6);
}

.ranking-info {
    margin-top: 0.8em;
    padding: 0.5em 0;
    text-align: right;
}

.ranking-info p {
    margin: 0.3em 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85em;
}

/* Estilos para el header del ranking con botón de refresco */
.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    flex-wrap: wrap;
    gap: 0.8em;
}

.ranking-header h3 {
    margin: 0;
    flex-grow: 1;
}

.refresh-ranking-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.35em 0.8em;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    height: fit-content;
    flex-shrink: 0;
}

.refresh-ranking-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.refresh-ranking-btn:active {
    background: rgba(255, 255, 255, 0.05);
}

.refresh-ranking-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .ranking-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .refresh-ranking-btn {
        align-self: center;
        width: fit-content;
    }
}

/* Estilos para los botones de acción en cada cartucho del ranking */
#favoritesRanking .cartridge-actions {
    display: flex;
    gap: 0.3em;
    margin-top: 0 !important;
    flex-wrap: wrap;
    padding-top: 0 !important;
    border-top: none !important;
    justify-content: flex-end;
    flex-shrink: 0;
}

.btn-view-official,
.btn-check-prices,
.btn-add-to-wishlist {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.3em 0.6em;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75em;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25em;
    white-space: nowrap;
}

.btn-view-official:hover,
.btn-check-prices:hover,
.btn-add-to-wishlist:hover {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.btn-check-prices {
    background: transparent;
}

.btn-check-prices:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-add-to-wishlist {
    background: transparent;
}

.btn-add-to-wishlist:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-add-to-wishlist.in-wishlist {
    color: #27ae60;
    border-color: rgba(39, 174, 96, 0.3);
}

.btn-add-to-wishlist.in-wishlist:hover {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
    background: rgba(231, 76, 60, 0.05);
}

/* Responsive para botones de acción */
@media (max-width: 768px) {
    #favoritesRanking .cartridge-actions {
        gap: 0.3em;
    }
    
    .btn-view-official,
    .btn-check-prices,
    .btn-add-to-wishlist {
        font-size: 0.7em;
        padding: 0.25em 0.5em;
    }
}

.favorites-tips {
    margin-top: 2em;
    padding: 1.2em 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.favorites-tips h3 {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95em;
    margin-top: 0;
    margin-bottom: 0.8em;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8em;
}

.tip-item {
    padding: 0.8em 1em;
    border-radius: 6px;
    background: transparent;
    border-left: 2px solid rgba(240, 140, 33, 0.3);
}

.tip-item strong {
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 0.3em;
    font-size: 0.9em;
}

/* Responsive para móviles - cartuchos favoritos */
@media (max-width: 768px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking-item {
        flex-wrap: wrap;
        padding: 0.7em 0.3em;
        gap: 0.5em;
    }
    
    .ranking-position {
        font-size: 1em;
        min-width: 1.8em;
    }

    #favoritesRanking .cartridge-actions {
        width: 100%;
        justify-content: flex-start;
        padding-left: 2.5em;
    }
    
    .cartridge-search-section, .ranking-section {
        padding: 1em;
    }
}

/* Cabecera Sticky para Escritorio */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(24, 19, 42, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    border-bottom: 1px solid var(--color-border);
    display: none !important; /* Oculto por defecto, se muestra solo en escritorio */
    overflow: visible;
    min-height: 65px;
}

/* Asegurar que la cabecera sticky nunca se muestre en móvil */
@media (max-width: 1023px) {
    .sticky-header {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

.sticky-header.visible {
    transform: translateY(0);
}

.sticky-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8em 1.5em;
    text-align: center;
    min-height: 65px;
}

/* Ajustar el contenedor para pantallas grandes */
@media (min-width: 1400px) {
    .sticky-header-content {
        max-width: 1400px;
        padding: 0.8em 2em;
    }
}

@media (min-width: 1600px) {
    .sticky-header-content {
        max-width: 1600px;
        padding: 0.8em 3em;
    }
}

.sticky-logo h1 {
    color: #f08c21;
    font-size: 1.4em;
    margin: 0;
    font-weight: bold;
}

.logo-link {
    color: #f08c21;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-link:hover {
    color: #ff9d3d;
    text-shadow: 0 0 8px rgba(240, 140, 33, 0.4);
}

.subtitle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    margin-top: 0.6em;
}

.sticky-logo p {
    color: #bbb;
    font-size: 0.85em;
    margin: 0;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #bbb 0%, #f08c21 50%, #bbb 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: subtitleShimmer 4s ease-in-out infinite;
}

@keyframes subtitleShimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.hover-indicator {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.hamburger-menu {
    width: 18px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #f08c21;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.sticky-header:hover .hamburger-menu {
    opacity: 1;
    animation: none;
}

.sticky-header:hover .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.sticky-header:hover .hamburger-line:nth-child(2) {
    opacity: 0;
}

.sticky-header:hover .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.5;
        transform: scale(1);
    }
    50% { 
        opacity: 0.9;
        transform: scale(1.05);
    }
}

.sticky-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5em 0.5em 1.5em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

.sticky-header:hover .sticky-nav-container {
    opacity: 1;
    max-height: 60px;
    padding-top: 0.3em;
    padding-bottom: 0.8em;
}

.sticky-nav {
    display: flex;
    align-items: center;
    gap: 1.2em;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 0.2em 0;
    cursor: grab;
    user-select: none;
}

.sticky-nav::-webkit-scrollbar {
    display: none;
}

.sticky-nav:active {
    cursor: grabbing;
}

.sticky-nav.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.nav-scroll-btn {
    background: rgba(65, 25, 103, 0.8);
    border: none;
    color: #fcd74a;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
    opacity: 0.7;
}

.nav-scroll-btn:hover {
    background: rgba(65, 25, 103, 1);
    opacity: 1;
    transform: scale(1.1);
}

.nav-scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.nav-scroll-btn span {
    line-height: 1;
    margin: 0;
}

/* Removidos los gradientes indicadores que chocaban con los botones */

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.3em;
    text-decoration: none;
    color: #ccc;
    transition: all 0.3s ease;
    padding: 0.2em 0.4em;
    white-space: nowrap;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-item:hover {
    color: #f08c21;
}

.nav-icon {
    font-size: 1.1em;
}

.nav-text {
    font-size: 0.85em;
    font-weight: 500;
}

/* Mostrar sticky header solo en escritorio */
@media (min-width: 1024px) {
    .sticky-header {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Añadir padding-top al body cuando sticky header esté visible */
    body.sticky-active {
        padding-top: 75px;
    }
}

/* Ajustes responsivos para la navegación sticky */
@media (min-width: 1024px) and (max-width: 1200px) {
    .sticky-nav {
        gap: 0.8em;
    }
    
    .nav-text {
        font-size: 0.75em;
    }
    
    .nav-icon {
        font-size: 0.95em;
    }
    
    .nav-scroll-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

@media (min-width: 1200px) and (max-width: 1400px) {
    .sticky-nav {
        gap: 1em;
    }
    
    .nav-text {
        font-size: 0.8em;
    }
    
    .nav-icon {
        font-size: 1em;
    }
}

@media (min-width: 1400px) {
    .sticky-nav-container {
        max-width: 1400px;
        padding: 0 2em 0.5em 2em;
    }
    
    .sticky-nav {
        gap: 1.5em;
    }
    
    .nav-text {
        font-size: 0.9em;
    }
}

/* Para pantallas muy anchas (monitores grandes, ultrawide) */
@media (min-width: 1600px) {
    .sticky-nav {
        max-width: 1600px;
        gap: 2em;
        padding: 0 3em 0.5em 3em;
    }
    
    .nav-text {
        font-size: 1em;
    }
    
    .nav-icon {
        font-size: 1.2em;
    }
}

/* Comparador de Precios de Cartuchos */
.price-results {
    margin-top: 2em;
    padding: 1.5em;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(240, 140, 33, 0.3);
}

.price-results h3 {
    color: #f08c21;
    margin-bottom: 1.5em;
    text-align: center;
}

.price-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
    margin-bottom: 1.5em;
}

.price-option {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5em;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.price-option:hover {
    border-color: rgba(240, 140, 33, 0.5);
    background: rgba(240, 140, 33, 0.1);
}

.store-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin-bottom: 1em;
}

.store-logo {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
    object-position: center;
}

/* Logo específico para Todoconsolas (formato alargado) */
#todoconsolas-option .store-logo {
    width: 50%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Logo específico para GAME (formato alargado) */
#game-option .store-logo {
    width: 36%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Logo específico para Amazon (formato alargado) */
#amazon-option .store-logo {
    width: 36%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Logo específico para Funstock (formato alargado) */
#funstock-option .store-logo {
    width: 36%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.store-name {
    color: white;
    font-weight: bold;
    font-size: 1.1em;
}

.price-info {
    margin-bottom: 1.5em;
}

.price {
    display: block;
    color: #f08c21;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.availability {
    color: #ccc;
    font-size: 0.9em;
}

.availability.in-stock {
    color: #4CAF50;
}

.availability.out-of-stock {
    color: #f44336;
}

.availability.reserve-option {
    color: #FF9800; /* Color naranja para "Reservar" */
}

.buy-button {
    background: var(--color-orange);
    color: white;
    border: none;
    padding: 0.7em 1.2em;
    border-radius: var(--radius-md);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.buy-button:hover:not(:disabled) {
    background: #e07a1a;
    transform: translateY(-1px);
}

.buy-button:disabled {
    background: #444;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Sección de Sugerencias y Feedback */
#sugerencias {
    /* Usar estilos base de section */
    margin: 2em auto;
    max-width: 750px;
    background: var(--color-surface-raised);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 2em 2em 1em 2em;
    text-align: center;
}

#sugerencias h2 {
    text-align: center;
    position: relative;
    z-index: 1;
}

#sugerencias p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 2em;
    text-align: center;
    color: #fff;
}

.feedback-form-container {
    max-width: 700px;
    margin: 0 auto 2em auto;
    background: rgba(0, 0, 0, 0.15);
    padding: 1.5em;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    text-align: left;
}

.feedback-form .form-group {
    margin-bottom: 1.5em;
}

.feedback-form label {
    display: block;
    color: #fcd74a;
    font-weight: bold;
    margin-bottom: 0.5em;
    font-size: 1.1em;
}

.feedback-form input[type="email"],
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.feedback-form input[type="email"]:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
}

/* Estilos específicos para el selector */
.feedback-form select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fcd74a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.feedback-form select option {
    background-color: #262044;
    color: #fff;
    padding: 8px 12px;
    border: none;
}

.feedback-form select option:hover,
.feedback-form select option:focus {
    background-color: #3a3565;
    color: #fcd74a;
}

.feedback-form select option:checked {
    background-color: #fcd74a;
    color: #262044;
    font-weight: bold;
}

.feedback-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-help {
    display: block;
    font-size: 0.85em;
    color: #bbb;
    margin-top: 0.3em;
    font-style: italic;
}

.character-counter {
    text-align: right;
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #bbb;
}

.character-counter.warning {
    color: #ffaa00;
}

.character-counter.danger {
    color: #ff4444;
}

.form-actions {
    text-align: center;
    margin-top: 2em;
}

.submit-btn {
    background: var(--color-gold);
    color: var(--color-surface-raised);
    border: none;
    padding: 0.8em 1.8em;
    border-radius: var(--radius-md);
    font-size: 1.05em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    white-space: nowrap;
}

.submit-btn:hover:not(:disabled) {
    background: #ffee77;
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.feedback-result {
    margin-top: 1.5em;
    padding: 1em;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.feedback-result.success {
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

.feedback-result.error {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.feedback-info {
    max-width: 900px;
    margin: 0 auto;
}

.feedback-info h3 {
    color: #fcd74a;
    font-size: 1.5em;
    margin-bottom: 1em;
    text-align: center;
}

.feedback-info h4 {
    color: #fcd74a;
    font-size: 1.2em;
    margin: 2em 0 1em 0;
}

.feedback-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2em;
}

.feedback-info li {
    background: rgba(252, 215, 74, 0.1);
    margin: 0.8em 0;
    padding: 1em;
    border-radius: 8px;
    border-left: 4px solid #fcd74a;
}



/* Responsive para la sección de sugerencias */
@media (max-width: 768px) {
    #sugerencias {
        padding: 2em 1em;
        margin: 1em 0;
    }
    
    #sugerencias h2 {
        font-size: 1.8em;
    }
    
    .feedback-form-container {
        padding: 1.5em;
    }
    

    
    .submit-btn {
        width: 100%;
        padding: 1.2em;
    }
}

.price-notes {
    text-align: center;
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid rgba(240, 140, 33, 0.3);
}

.price-notes p {
    color: #ccc;
    font-size: 0.9em;
    margin: 0;
}

/* Responsivo para comparador de precios */
@media (max-width: 768px) {
    .price-comparison {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    
    .price-option {
        padding: 1em;
    }
    
    .store-header {
        margin-bottom: 0.8em;
    }
    
    .price {
        font-size: 1.2em;
    }
    
    /* Layout móvil para resultados de búsqueda */
    .cartridge-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }
    
    .cartridge-name {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3em;
    }
    
    .cartridge-tags {
        display: flex;
        align-items: center;
        gap: 0.5em;
        flex-wrap: wrap;
    }
    
    .cartridge-type {
        margin-left: 0;
        align-self: flex-start;
    }
    
    /* Responsivo para sección de fuentes de datos */
    .sources-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
        margin-bottom: 1.5em;
    }
    
    .source-item {
        padding: 1em;
        flex-direction: column;
        text-align: center;
    }
    
    .source-icon {
        align-self: center;
        margin-bottom: 0.5em;
    }
    
    .acknowledgments {
        padding: 1.5em;
        margin: 1.5em auto;
    }
    
    .acknowledgments h3 {
        font-size: 1.2em;
    }
    
    .acknowledgments > p {
        font-size: 1em;
    }
}

/* ==========================================
   MIS CARTUCHOS
   ========================================== */

#mis-cartuchos {
    background: var(--color-surface-raised);
    margin: 2em auto;
    max-width: 750px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 2em;
}

#mis-cartuchos h2 {
    text-align: center;
    position: relative;
    z-index: 1;
}

#mis-cartuchos > p {
    color: #e0e0e0;
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 2em;
    line-height: 1.6;
}

/* ==========================================
   SISTEMA DE PESTAÑAS PARA MIS CARTUCHOS
   ========================================== */

.my-cartridges-tabs-container {
    margin-top: 2em;
}

/* Instruction box styles */
.my-cartridges-instructions {
    margin: 1.5em 0;
    text-align: left;
}

.instruction-box {
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 2px;
    padding: 1em 1.2em;
    margin: 1em 0;
    max-width: none;
    transition: background-color 0.2s ease;
}

.instruction-box:hover {
    background: rgba(255, 255, 255, 0.05);
}

.instruction-box h3 {
    color: #e0e0e0;
    font-size: 1em;
    margin-bottom: 0.5em;
    font-weight: 500;
    line-height: 1.4;
}

.instruction-box p {
    color: #b0b0b0;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 1em;
}

.instruction-nav-link {
    display: inline-block;
    background: transparent;
    color: rgba(74, 144, 226, 0.8) !important;
    text-decoration: underline;
    text-decoration-color: rgba(74, 144, 226, 0.4);
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 400;
    font-size: 0.95em;
    transition: all 0.2s ease;
}

.instruction-nav-link:hover {
    background: rgba(74, 144, 226, 0.05);
    text-decoration: none;
    color: rgba(74, 144, 226, 1) !important;
}

.go-to-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    background: var(--color-orange);
    color: white;
    text-decoration: none;
    padding: 0.5em 1.2em;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-top: 0.8em;
}

.go-to-search-btn:hover {
    background: #e07a1a;
    color: white;
    transform: translateY(-1px);
}

/* Backup controls styles */
.backup-controls {
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid rgba(252, 215, 74, 0.3);
    border-radius: 2px;
    padding: 1em 1.2em;
    margin: 1em 0;
    transition: background-color 0.2s ease;
}

.backup-controls:hover {
    background: rgba(255, 255, 255, 0.05);
}

.backup-controls h3 {
    color: #e0e0e0;
    font-size: 1em;
    margin-bottom: 0.5em;
    font-weight: 500;
    line-height: 1.4;
}

.backup-controls p {
    color: #b0b0b0;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 1em;
}

.backup-buttons {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
}

.backup-btn {
    background: var(--color-gold);
    color: var(--color-bg);
    border: none;
    padding: 0.5em 1em;
    border-radius: var(--radius-md);
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    min-width: 140px;
    justify-content: center;
}

.backup-btn:hover {
    background: #ffee77;
    transform: translateY(-1px);
}

.backup-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(252, 215, 74, 0.2);
}

.backup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.backup-btn:disabled:hover {
    transform: none;
    box-shadow: none;
    background: var(--color-gold);
    opacity: 0.5;
}

.tabs-navigation {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2em;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.tab-button {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #ccc;
    padding: 1em 1.5em;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    position: relative;
    font-family: 'Press Start 2P', monospace;
    line-height: 1.4;
}

.tab-button:last-child {
    border-right: none;
}

.tab-button:hover {
    background: rgba(252, 215, 74, 0.1);
    color: #fcd74a;
}

.tab-button.active {
    background: var(--color-gold);
    color: var(--color-surface-raised);
    font-weight: bold;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-surface-raised);
}

.tabs-content {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 2em;
    border: 1px solid #411967;
    min-height: 400px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-description {
    color: #ccc;
    font-size: 1em;
    text-align: center;
    margin-bottom: 2em;
    font-style: italic;
    line-height: 1.5;
}

/* Footer informativo de Mis Cartuchos */
.my-cartridges-footer {
    margin-top: 2em;
    padding: 1.5em;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(252, 215, 74, 0.2);
    text-align: center;
}

.my-cartridges-footer p {
    margin: 0 0 1.5em 0;
    color: #bbb;
    font-size: 0.9em;
    line-height: 1.5;
}

.my-cartridges-footer p:last-child {
    margin-bottom: 0;
}

/* Sección de backup integrada en el footer */
.backup-section {
    margin-top: 1.5em;
    padding-top: 1.5em;
    border-top: 1px solid rgba(252, 215, 74, 0.2);
}

.backup-section h4 {
    color: #fcd74a;
    font-size: 1em;
    margin: 0 0 0.5em 0;
    font-weight: 500;
    line-height: 1.4;
}

.backup-section p {
    color: #bbb;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0 0 1em 0;
}

.backup-section .backup-buttons {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
    justify-content: center;
}

.backup-section .backup-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5em 1em;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    min-width: 120px;
    justify-content: center;
}

.backup-section .backup-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fcd74a;
    border-color: rgba(252, 215, 74, 0.3);
}

.backup-section .backup-btn:active {
    background: rgba(255, 255, 255, 0.03);
    transform: none;
}

.backup-section .backup-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    color: #666;
}

.backup-section .backup-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.02);
    color: #666;
    border-color: rgba(255, 255, 255, 0.1);
}

.cartridge-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5em;
}

/* Scrollbar personalizada para las listas */
.cartridge-list::-webkit-scrollbar {
    width: 6px;
}

.cartridge-list::-webkit-scrollbar-track {
    background: rgba(65, 25, 103, 0.3);
    border-radius: 3px;
}

.cartridge-list::-webkit-scrollbar-thumb {
    background: rgba(252, 215, 74, 0.6);
    border-radius: 3px;
}

.cartridge-list::-webkit-scrollbar-thumb:hover {
    background: rgba(252, 215, 74, 0.8);
}

/* Para Firefox */
.cartridge-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(252, 215, 74, 0.6) rgba(65, 25, 103, 0.3);
}

.empty-list-message {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 2em 1em;
    border: 2px dashed #411967;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    margin: 1em 0;
}

.cartridge-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.2em;
    transition: border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.cartridge-item:hover {
    border-color: rgba(252, 215, 74, 0.3);
}

.cartridge-header {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

.cartridge-name {
    color: #fcd74a;
    font-weight: bold;
    font-size: 1.1em;
    line-height: 1.3;
    word-wrap: break-word;
}

.cartridge-family {
    color: #f08c21;
    font-size: 0.9em;
    font-weight: 500;
    line-height: 1.2;
}

.cartridge-actions {
    display: flex;
    gap: 0.8em;
    justify-content: center;
    padding-top: 0.5em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cartridge-btn {
    background: transparent;
    border: 1px solid;
    padding: 0.5em 1em;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    max-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-btn {
    border-color: rgba(74, 252, 199, 0.5);
    color: #4afcc7;
}

.view-btn:hover {
    background: rgba(74, 252, 199, 0.1);
    border-color: #4afcc7;
    transform: translateY(-1px);
}

.price-check-btn {
    border-color: rgba(52, 152, 219, 0.5);
    color: #3498db;
    white-space: nowrap;
    max-width: none;
    font-size: 0.75em;
    padding: 0.5em 0.7em;
}

.price-check-btn:hover {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
    transform: translateY(-1px);
}

.remove-btn {
    border-color: rgba(255, 107, 71, 0.5);
    color: #ff6b47;
}

.remove-btn:hover {
    background: rgba(255, 107, 71, 0.1);
    border-color: #ff6b47;
    transform: translateY(-1px);
}

/* Estilos para botones de acción en el buscador avanzado */
.my-cartridges-actions {
    display: flex;
    gap: 0.5em;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 0.5em;
}

.cartridge-action-btn {
    background: transparent;
    border: 1px solid;
    padding: 0.4em 0.8em;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.add-to-owned {
    border-color: rgba(76, 175, 80, 0.5);
    color: #4caf50;
}

.add-to-owned:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4caf50;
    transform: translateY(-1px);
}

.add-to-wanted {
    border-color: rgba(33, 150, 243, 0.5);
    color: #2196f3;
}

.add-to-wanted:hover {
    background: rgba(33, 150, 243, 0.1);
    border-color: #2196f3;
    transform: translateY(-1px);
}

.add-to-favorites {
    border-color: rgba(233, 30, 99, 0.5);
    color: #e91e63;
}

.add-to-favorites:hover {
    background: rgba(233, 30, 99, 0.1);
    border-color: #e91e63;
    transform: translateY(-1px);
}

/* Responsive para Sistema de Pestañas */
@media (max-width: 1023px) {
    .tab-button {
        font-size: 0.8em;
        padding: 0.8em 1em;
        line-height: 1.3;
    }
    
    .tabs-content {
        padding: 1.5em;
        min-height: 300px;
    }
    
    .cartridge-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1em;
    }
    
    .cartridge-actions {
        width: 100%;
        justify-content: center;
    }
    
    .my-cartridges-actions {
        justify-content: center;
        gap: 0.8em;
    }
    
    .cartridge-action-btn {
        flex: 1;
        text-align: center;
        min-width: 80px;
    }
}

@media (max-width: 768px) {
    #mis-cartuchos {
        margin: 1.5em 1em;
        padding: 1.5em 1em;
    }
    
    #mis-cartuchos h2 {
        font-size: 1.4em;
    }
    
    /* Instruction box responsive styles */
    .instruction-box {
        margin: 0.8em 0;
        padding: 1em 1.2em;
        border-radius: 3px;
    }
    
    .instruction-box h3 {
        font-size: 0.95em;
        margin-bottom: 0.5em;
    }
    
    .instruction-box p {
        font-size: 0.9em;
        line-height: 1.4;
        margin-bottom: 0.8em;
    }
    
    .instruction-nav-link {
        padding: 3px 6px;
        font-size: 0.9em;
        border-radius: 2px;
    }
    
    .tabs-navigation {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .tab-button {
        font-size: 0.7em;
        padding: 1em;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        line-height: 1.2;
    }
    
    .tab-button:last-child {
        border-bottom: none;
    }
    
    .tabs-content {
        padding: 1em;
        min-height: 250px;
    }
    
    .my-cartridges-footer {
        margin-top: 1.5em;
        padding: 1em;
    }
    
    .my-cartridges-footer p {
        font-size: 0.85em;
    }
    
    .cartridge-item {
        padding: 1em;
    }
    
    .empty-list-message {
        padding: 1.5em 0.8em;
        font-size: 0.9em;
    }
}

/* ============================================
   📋 MODAL DE CONFIRMACIÓN PERSONALIZADO
   ============================================ */

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.custom-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-modal {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.2em;
    max-width: 300px;
    width: 85%;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95) translateY(10px);
    transition: all 0.2s ease;
}

.custom-modal-overlay.show .custom-modal {
    transform: scale(1) translateY(0);
}

.custom-modal-header {
    text-align: center;
    margin-bottom: 1em;
}

.custom-modal-icon {
    font-size: 2em;
    margin-bottom: 0.3em;
    display: block;
    color: #f08c21;
    text-shadow: 0 0 5px rgba(240, 140, 33, 0.3);
}

.custom-modal-title {
    color: #fcd74a;
    font-size: 1.1em;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.custom-modal-message {
    color: #e0ddf7;
    text-align: center;
    margin-bottom: 1.2em;
    line-height: 1.4;
    font-size: 0.9em;
}

.custom-modal-actions {
    display: flex;
    gap: 0.8em;
    justify-content: center;
}

.custom-modal-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.6em 1.2em;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
    position: relative;
    overflow: hidden;
    min-width: 80px;
    line-height: 1;
}

.custom-modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.3s;
}

.custom-modal-btn:hover::before {
    left: 100%;
}

.custom-modal-btn.confirm {
    background: #dc3545;
    color: white;
}

.custom-modal-btn.confirm:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.custom-modal-btn.cancel {
    background: rgba(255,255,255,0.08);
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.15);
}

.custom-modal-btn.cancel:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}

.custom-modal-btn:active {
    transform: translateY(0);
}

/* Animaciones */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .custom-modal {
        padding: 1em;
        max-width: 280px;
    }
    
    .custom-modal-title {
        font-size: 1em;
    }
    
    .custom-modal-message {
        font-size: 0.85em;
    }
    
    .custom-modal-actions {
        gap: 0.6em;
    }
    
    .custom-modal-btn {
        padding: 0.5em 1em;
        font-size: 0.85em;
        min-width: 70px;
    }
}

/* =============================================================================
   📊 ESTADÍSTICAS
   ============================================================================= */

#estadisticas {
    /* Usar estilos base de section + decoraciones especiales */
    position: relative;
    overflow: hidden;
}

#estadisticas h2 {
    text-align: center;
    position: relative;
    z-index: 1;
}

.statistics-intro {
    background: rgba(0,0,0,0.3);
    padding: 1.5em;
    border-radius: 10px;
    margin-bottom: 2em;
    border-left: 4px solid #4afcc7;
    position: relative;
    z-index: 1;
}

.statistics-intro p {
    color: #cccccc;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 1em;
}

.statistics-container {
    display: flex;
    flex-direction: column;
    gap: 2em;
    position: relative;
    z-index: 1;
}

/* Contenedor del gráfico */
.chart-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 1.5em;
    border: 1px solid rgba(74, 252, 199, 0.15);
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#platformChart {
    max-width: 100%;
    max-height: 100%;
}

/* Tarjetas de estadísticas */
.statistics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5em;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 1.5em;
    text-align: center;
    border: 1px solid rgba(74, 252, 199, 0.15);
    transition: border-color 0.2s ease;
}

.stat-card:hover {
    border-color: rgba(74, 252, 199, 0.3);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #4afcc7;
    margin-bottom: 0.3em;
}

.stat-label {
    color: #cccccc;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Leyenda de plataformas */
.platform-legend {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5em;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 252, 199, 0.2);
    max-height: 400px;
    overflow-y: auto;
}

.platform-legend h3 {
    color: #4afcc7;
    margin-bottom: 1em;
    font-size: 1.2em;
    text-align: center;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5em 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item:last-child {
    border-bottom: none;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 1em;
    flex-shrink: 0;
}

.legend-name {
    color: #cccccc;
    flex-grow: 1;
    font-size: 0.9em;
}

.legend-count {
    color: #4afcc7;
    font-weight: bold;
    margin-left: 1em;
}

.legend-percentage {
    color: #999;
    font-size: 0.8em;
    margin-left: 0.5em;
}

/* Footer de estadísticas */
.statistics-footer {
    text-align: center;
    margin-top: 2em;
    padding-top: 2em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.stats-last-update {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 0.5em;
}

.stats-source {
    color: #777;
    font-size: 0.8em;
}

.stats-source a {
    color: #4afcc7;
    text-decoration: none;
}

.stats-source a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (min-width: 768px) {
    .chart-container {
        height: 800px;
    }

    .statistics-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .platform-legend {
        max-height: 400px;
        overflow-y: auto;
    }
}

/* =================================================================
   SECCIÓN SUGERENCIAS DE JUEGOS (What Should I Play?)
   ================================================================= */

/* Contenedor principal de sugerencias */
.game-suggestion-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.genre-filter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.genre-filter-container label {
    font-weight: bold;
    color: #fcd74a;
    font-size: 1.1em;
}

.genre-filter-select {
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    font-size: 1em;
    min-width: 200px;
    text-align: center;
    transition: border-color 0.2s ease;
}

.genre-filter-select:focus {
    outline: none;
    border-color: var(--color-gold);
}

.genre-filter-select option {
    background: var(--color-surface-raised);
    color: #ffffff;
    padding: 10px;
}

/* Botón de sugerir juego */
.suggest-game-btn {
    background: var(--color-gold);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    color: var(--color-bg);
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggest-game-btn:hover {
    background: #ffee77;
    transform: translateY(-1px);
}

.suggest-game-btn:active {
    transform: translateY(0);
}

.suggest-game-btn:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.3em;
    display: inline-block;
    transition: transform 0.2s ease;
}

.btn-icon.spinning {
    animation: dice-roll 0.4s linear infinite;
}

@keyframes dice-roll {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Contenedor de la ruleta */
.game-roulette-container {
    margin: 30px 0;
    display: none; /* Oculto por defecto */
}

.roulette-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
}

.roulette-image-container {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid #fcd74a;
    box-shadow: 0 0 20px rgba(252, 215, 74, 0.3);
}

.roulette-game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.1s ease;
}

.roulette-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(65, 25, 103, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.roulette-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(252, 215, 74, 0.3);
    border-top: 4px solid #fcd74a;
    border-radius: 50%;
    animation: spin 0.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.roulette-info {
    text-align: center;
}

.roulette-status {
    font-size: 1.2em;
    font-weight: bold;
    color: #fcd74a;
    margin-bottom: 10px;
}

/* Resultado de la sugerencia */
.game-suggestion-result {
    display: none;
    background: rgba(65, 25, 103, 0.3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.suggested-game-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #fcd74a;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.suggested-game-info h3 {
    color: #fcd74a;
    font-size: 2em;
    margin-bottom: 15px;
}

.suggested-game-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
    text-align: left;
}

.game-detail {
    background: rgba(24, 19, 42, 0.7);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #411967;
}

.game-detail-label {
    color: #fcd74a;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.game-detail-value {
    color: #ffffff;
    font-size: 1.1em;
}

.suggested-game-description {
    background: rgba(24, 19, 42, 0.7);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #411967;
    margin: 20px 0;
    text-align: left;
}

.cartridge-info {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cartridge-info h4 {
    color: #fcd74a;
    margin: 0;
    font-size: 1.1em;
}

.cartridge-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4afcc7;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(74, 252, 199, 0.1);
    border: 1px solid rgba(74, 252, 199, 0.2);
}

.cartridge-link:hover {
    color: #fcd74a;
    background: rgba(252, 215, 74, 0.1);
    border-color: rgba(252, 215, 74, 0.3);
    text-decoration: none;
    transform: translateY(-1px);
}

.play-again-btn {
    background: #4afcc7;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    color: var(--color-bg);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
}

.play-again-btn:hover {
    background: #6bffd6;
    transform: translateY(-1px);
}

/* Mensaje de información */
.suggestion-message {
    margin: 30px 0;
}

.suggestion-message .info-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 25px;
    text-align: center;
}

.suggestion-message .info-box h3 {
    color: #fcd74a;
    margin-bottom: 15px;
}

.suggestion-message .info-box p {
    color: #ffffff;
    line-height: 1.6;
}

.suggestion-message .inline-link {
    color: #4afcc7;
    text-decoration: none;
    font-weight: bold;
}

.suggestion-message .inline-link:hover {
    color: #fcd74a;
    text-decoration: underline;
}

/* Estados de error */
.error-message {
    background: rgba(139, 0, 0, 0.4);
    border: 1px solid #ff4444;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    color: #ffffff;
}

.error-message h3 {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .game-suggestion-controls {
        gap: 15px;
    }
    
    .genre-filter-select {
        min-width: 180px;
        font-size: 0.9em;
    }
    
    .suggest-game-btn {
        font-size: 1em;
        padding: 12px 25px;
    }
    
    .roulette-image-container {
        width: 250px;
        height: 250px;
    }
    
    .suggested-game-image {
        width: 200px;
        height: 200px;
    }
    
    .suggested-game-info h3 {
        font-size: 1.5em;
    }
    
    .suggested-game-details {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cartridge-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        text-align: center;
    }
    
    .cartridge-info h4 {
        align-self: center;
    }
    
    .cartridge-link {
        align-self: center;
    }
}

@media (min-width: 768px) {
    .game-suggestion-controls {
        flex-direction: row;
        justify-content: center;
        align-items: flex-end;
    }
    
    .genre-filter-container {
        margin-right: 20px;
    }
}

/* ================================================================
   BANNER DE CONSENTIMIENTO DE COOKIES - GDPR
   ================================================================ */

.cookie-consent-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface-raised);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    display: block;
}

.cookie-consent-modal.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
    color: #ffffff;
}

.cookie-consent-text h3 {
    color: #fcd74a;
    font-size: 1.1em;
    margin: 0 0 8px 0;
    font-weight: bold;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
    color: #e0e0e0;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-consent-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 100px;
}

.btn-accept {
    background: var(--color-gold);
    color: var(--color-bg);
}

.btn-accept:hover {
    background: #ffee77;
    transform: translateY(-1px);
}

.btn-necessary {\n    background: transparent;\n    color: var(--color-gold);\n    border: 1px solid var(--color-gold);\n}

.btn-necessary:hover {
    background: rgba(252, 215, 74, 0.1);
}

.btn-reject {
    background: transparent;
    color: #999;
    border: 1px solid #666;
}

.btn-reject:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
}

.btn-details {
    background: transparent;
    color: #fcd74a;
    border: none;
    text-decoration: underline;
    font-size: 0.8em;
    padding: 4px 8px;
}

.btn-details:hover {
    color: #ffffff;
}

/* Modal detallado para cuando se hace clic en "Más detalles" */
.cookie-consent-detailed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-consent-detailed.show {
    opacity: 1;
}

.cookie-consent-detailed-content {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.cookie-consent-detailed-header {
    padding: 20px 25px 0;
    text-align: center;
}

.cookie-consent-detailed-header h3 {
    color: #fcd74a;
    font-size: 1.2em;
    margin: 0;
}

.cookie-consent-detailed-body {
    padding: 15px 25px;
    color: #ffffff;
    line-height: 1.5;
    font-size: 0.9em;
}

.cookie-consent-details {
    background: rgba(65, 25, 103, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
    border-left: 3px solid #fcd74a;
}

.cookie-consent-details h4 {
    color: #fcd74a;
    margin: 0 0 8px 0;
    font-size: 1em;
}

.cookie-consent-details ul {
    margin: 8px 0;
    padding-left: 18px;
}

.cookie-consent-details li {
    margin-bottom: 4px;
    color: #e0e0e0;
    font-size: 0.85em;
}

.cookie-consent-detailed-actions {
    padding: 0 25px 20px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Estilos base para todos los botones en la vista detallada */
.cookie-consent-detailed-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 100px;
}

.btn-close-details {
    background: #666;
    color: #fff;
}

.btn-close-details:hover {
    background: #777;
    transform: translateY(-1px);
}

/* Enlace de gestión de cookies en el footer */
.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.manage-cookies-link {
    color: #fcd74a;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.manage-cookies-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive para el banner de cookies */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }
    
    .cookie-consent-text {
        min-width: auto;
    }
    
    .cookie-consent-text h3 {
        font-size: 1em;
        margin-bottom: 5px;
    }
    
    .cookie-consent-text p {
        font-size: 0.85em;
    }
    
    .cookie-consent-actions {
        justify-content: center;
        gap: 8px;
    }
    
    .cookie-consent-actions button {
        font-size: 0.8em;
        padding: 6px 12px;
        min-width: 80px;
    }
    
    .btn-details {
        font-size: 0.75em;
    }
    
    .footer-links {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .cookie-consent-detailed-content {
        width: 95%;
    }
    
    .cookie-consent-detailed-header,
    .cookie-consent-detailed-body,
    .cookie-consent-detailed-actions {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-consent-actions button {
        width: 100%;
        max-width: 200px;
    }
}

/* ================================================================
   PÁGINA DE POLÍTICA DE COOKIES
   ================================================================ */

.cookie-policy-main {
    min-height: 100vh;
    background: var(--color-bg);
    padding: 120px 0 40px; /* Más padding-top para el sticky header */
    position: relative;
    z-index: 1;
}

/* Estilos específicos para la cabecera de la política de cookies */
.cookie-policy-main .sticky-header {
    /* Hacer que siempre esté visible y fijo */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    opacity: 1;
    transform: translateY(0);
}

.cookie-policy-main .sticky-header .back-link {
    margin-top: 5px;
}

.cookie-policy-main .sticky-header .back-link a {
    color: #fcd74a;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.cookie-policy-main .sticky-header .back-link a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Ajustar el subtítulo en la política de cookies */
.cookie-policy-main .subtitle-container p {
    color: #e0e0e0;
    font-size: 0.95em;
    margin-bottom: 0;
}

.cookie-policy-main .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.policy-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.policy-header h1 {
    color: #fcd74a;
    font-size: 2.5em;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.policy-subtitle {
    color: #e0e0e0;
    font-size: 1.2em;
    margin: 0 0 10px 0;
    font-weight: 300;
}

.last-updated {
    color: #b0b0b0;
    font-size: 0.9em;
    font-style: italic;
    margin: 0;
}

.policy-section {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
}

.policy-section h2 {
    color: #fcd74a;
    font-size: 1.5em;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #411967;
}

.policy-section h3 {
    color: #fcd74a;
    font-size: 1.2em;
    margin: 20px 0 10px 0;
}

.policy-section p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 15px;
}

.policy-section ul {
    color: #e0e0e0;
    padding-left: 20px;
    margin-bottom: 15px;
}

.policy-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.policy-section strong {
    color: #fcd74a;
}

.policy-section a {
    color: #fcd74a;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.policy-section a:hover {
    color: #ffffff;
}

.cookie-category {
    background: rgba(65, 25, 103, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #fcd74a;
}

.cookie-management {
    background: rgba(65, 25, 103, 0.15);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.privacy-note {
    background: rgba(252, 215, 74, 0.1);
    border: 1px solid #fcd74a;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    color: #fcd74a !important;
    font-weight: bold;
}

.policy-actions {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.btn-manage-cookies {
    background: var(--color-gold);
    color: var(--color-bg);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: bold;
    font-size: 1.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-manage-cookies:hover {
    background: #ffee77;
    transform: translateY(-1px);
}

.cookie-policy-link {
    color: #fcd74a;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.cookie-policy-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive para política de cookies */
@media (max-width: 768px) {
    .cookie-policy-main {
        padding: 100px 0 20px; /* Ajustado para el sticky header */
    }
    
    .policy-header h1 {
        font-size: 2em;
    }
    
    .policy-subtitle {
        font-size: 1.1em;
    }
    
    .policy-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .policy-section h2 {
        font-size: 1.3em;
    }
    
    .cookie-policy-main .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .policy-header {
        padding: 20px;
    }
    
    .policy-header h1 {
        font-size: 1.7em;
    }
    
    .policy-subtitle {
        font-size: 1em;
    }
    
    .policy-section {
        padding: 15px;
    }
    
    .btn-manage-cookies {
        padding: 12px 20px;
        font-size: 1em;
    }
}

/* ═══════════════════════════════════════════
   🔔 PRICE ALERTS
   ═══════════════════════════════════════════ */

.price-alert-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    border: 2px dashed rgba(252, 215, 74, 0.4);
    border-radius: 8px;
    background: transparent;
    color: #fcd74a;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-alert-btn:hover {
    border-color: #fcd74a;
    background: rgba(252, 215, 74, 0.1);
}

.price-alert-btn.active {
    border-style: solid;
    border-color: #fcd74a;
    background: rgba(252, 215, 74, 0.15);
    font-weight: bold;
}

.price-alert-modal .price-alert-modal-body {
    padding: 16px 0;
}

.price-alert-modal .alert-info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.price-alert-modal .alert-label {
    color: #aaa;
    font-size: 0.9em;
}

.price-alert-modal .alert-value {
    color: #fff;
    font-weight: bold;
}

.price-alert-modal .alert-input-row {
    margin-top: 16px;
}

.price-alert-modal .alert-input-row label {
    display: block;
    color: #fcd74a;
    margin-bottom: 8px;
    font-weight: bold;
}

.price-alert-modal .alert-price-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid rgba(252, 215, 74, 0.5);
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
}

.price-alert-modal .alert-price-input:focus {
    outline: none;
    border-color: #fcd74a;
    box-shadow: 0 0 0 3px rgba(252, 215, 74, 0.2);
}

.price-alert-modal .delete-alert {
    background: rgba(244, 67, 54, 0.2) !important;
    border-color: #f44336 !important;
    color: #f44336 !important;
}

.price-alert-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #1a1a2e;
    border: 2px solid #fcd74a;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.price-alert-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.price-alert-toast.clickable {
    cursor: pointer;
}

.price-alert-toast.clickable:hover {
    border-color: #fff;
    box-shadow: 0 8px 32px rgba(252, 215, 74, 0.3);
}

.price-alert-toast.success {
    border-color: #4CAF50;
}

.price-alert-toast.warning {
    border-color: #ff9800;
}

.price-alert-toast .toast-message {
    color: #fff;
    font-size: 0.9em;
    flex: 1;
}

.price-alert-toast .toast-dismiss {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #aaa;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8em;
    white-space: nowrap;
}

.price-alert-toast .toast-dismiss:hover {
    color: #fff;
    border-color: #fff;
}

/* ═══════════════════════════════════════════
   � PRICE ALERTS PANEL
   ═══════════════════════════════════════════ */

.manage-alerts-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(252, 215, 74, 0.1);
    border: 1px solid rgba(252, 215, 74, 0.3);
    color: #fcd74a;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7em;
    margin: 1em auto 0;
    width: fit-content;
    transition: all 0.3s ease;
    line-height: 1;
}

.manage-alerts-btn:hover {
    background: rgba(252, 215, 74, 0.2);
    border-color: #fcd74a;
}

.manage-alerts-btn.active {
    background: rgba(252, 215, 74, 0.2);
    border-color: #fcd74a;
}

.price-alerts-panel {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(252, 215, 74, 0.2);
    border-radius: var(--radius-lg);
    padding: 0 1.5em;
    margin-top: 1em;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
}

.price-alerts-panel.open {
    max-height: 600px;
    opacity: 1;
    padding: 1.5em;
}

.price-alerts-panel h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fcd74a;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85em;
    margin-bottom: 1em;
    line-height: 1;
}

.alert-icon {
    font-style: normal;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    line-height: 0;
}

.price-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    gap: 12px;
    transition: background 0.2s ease;
}

.alert-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.alert-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.alert-item-name {
    color: #fff;
    font-size: 0.85em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alert-item-detail {
    color: #aaa;
    font-size: 0.75em;
}

.alert-item-detail b {
    color: #fcd74a;
}

.alert-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.alert-edit-btn,
.alert-delete-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.2s ease;
}

.alert-edit-btn:hover {
    background: rgba(252, 215, 74, 0.2);
    border-color: #fcd74a;
}

.alert-delete-btn:hover {
    background: rgba(255, 80, 80, 0.2);
    border-color: #ff5050;
}

.no-alerts-msg {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 1em;
}

.confirm-modal-body {
    padding: 1em 0;
    text-align: center;
}

.confirm-modal-body p {
    color: #ccc;
    font-size: 0.95em;
    line-height: 1.6;
}

.confirm-modal-body strong {
    color: #fcd74a;
}

.custom-modal-btn.delete-confirm {
    background: rgba(255, 80, 80, 0.2);
    border-color: #ff5050;
    color: #ff5050;
}

.custom-modal-btn.delete-confirm:hover {
    background: rgba(255, 80, 80, 0.4);
}

/* ═══════════════════════════════════════════
   �📚 SHELF VIEW
   ═══════════════════════════════════════════ */

.shelf-toggle-group {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin: -1em 0 1em;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 3px;
    width: fit-content;
    margin-left: auto;
}

.shelf-toggle-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.shelf-toggle-btn:hover {
    color: #fff;
}

.shelf-toggle-btn.active {
    background: rgba(252, 215, 74, 0.2);
    color: #fcd74a;
    font-weight: bold;
}

.shelf-container {
    padding: 20px 10px;
    overflow: visible;
}

.shelf-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    overflow: visible;
}

.shelf-cartridge {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    transition: transform 0.2s ease;
}

.shelf-cartridge:hover {
    transform: scale(1.05);
}

.shelf-cover {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.shelf-cover-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
    min-height: 100%;
}

.shelf-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    text-align: center;
}

.shelf-cover-placeholder span {
    color: #fcd74a;
    font-size: 0.75em;
    font-weight: bold;
    word-break: break-word;
    line-height: 1.2;
}

.shelf-label {
    margin-top: 6px;
    font-size: 0.75em;
    color: #ccc;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shelf-share-btn {
    display: block;
    margin: 20px auto 0;
    padding: 10px 24px;
    border: 2px solid #fcd74a;
    border-radius: 8px;
    background: rgba(252, 215, 74, 0.1);
    color: #fcd74a;
    font-size: 0.95em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shelf-share-btn:hover {
    background: rgba(252, 215, 74, 0.25);
}

@media (max-width: 480px) {
    .shelf-row {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 10px;
    }
    
    .shelf-toggle-group {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .price-alert-toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }

    .alert-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .alert-item-actions {
        align-self: flex-end;
    }

    .alert-item-name {
        white-space: normal;
    }
}

