/* Variable CSS para viewport height corregido en iOS */
:root {
    --vh: 1vh;
}

/* Estilos personalizados para la barra de scroll */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #18132a;
    border-radius: 10px;
    border: 1px solid #411967;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #411967 0%, #fcd74a 100%);
    border-radius: 10px;
    border: 1px solid #262044;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #fcd74a 0%, #f08c21 100%);
    box-shadow: 0 0 8px rgba(252, 215, 74, 0.3);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #f08c21 0%, #411967 100%);
}

::-webkit-scrollbar-corner {
    background: #18132a;
}

/* Fallback para Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #411967 #18132a;
}

/* Animación pulse para indicaciones */
@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

body { 
    font-family: 'Arial', sans-serif; 
    background: #18132a; 
    color: #f2efe9; 
    margin: 0; 
    padding: 0; 
}

/* 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: linear-gradient(135deg, #2a1f40, #411967);
    border-radius: 16px;
    padding: 2em;
    min-width: 280px;
    max-width: 90vw;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    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: #411967; 
    color: #fcd74a; 
    text-align: center; 
    padding: 1.0em 0; 
}

footer { 
    background: #411967; 
    color: #fcd74a; 
    text-align: center; 
    padding: 1.5em 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

/* 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; 
}

h1 { 
    font-size: 2em; 
    margin-bottom: 0; 
}

h2 { 
    color: #f08c21; 
    border-bottom: 2px solid #fcd74a; 
    padding-bottom: 0.2em; 
}

h3 { 
    color: #fcd74a; 
    margin-top: 2.5em;
    margin-bottom: 1em;
}

section { 
    margin: 2em auto; 
    max-width: 750px; 
    background: #262044; 
    border-radius: 14px; 
    box-shadow: 0 0 22px 0 #000a; 
    padding: 2em 2em 1em 2em; 
}

img { 
    display: block; 
    margin: 1em auto; 
    border-radius: 7px; 
    max-width: 100%; 
}

.curiosidad { 
    background: #333; 
    border-left: 7px solid #fcd74a; 
    margin: 2em 0; 
    padding: 1em; 
    color: #e6e0fa; 
    font-style: italic; 
}

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;
}

.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: #382460; 
    padding: 1em; 
    border-radius: 14px; 
    margin-top: 1em; 
}

.news-month { 
    margin: 1em 0; 
    border: 1px solid #411967; 
    border-radius: 8px; 
}

.news-header { 
    background: #411967; 
    color: #fcd74a; 
    padding: 1em; 
    cursor: pointer; 
    user-select: none; 
    border-radius: 8px 8px 0 0; 
}

.news-header:hover { 
    background: #5a2380; 
}

.news-content { 
    display: none; 
    padding: 1em; 
    background: #2a1f40; 
    border-radius: 0 0 8px 8px; 
    overflow: hidden; 
}

.news-content.active { 
    display: block; 
}

.news-header::after { 
    content: ' ▼'; 
    float: right; 
    transition: transform 0.3s; 
}

.news-header.collapsed::after { 
    transform: rotate(-90deg); 
}

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.7em 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid #fcd74a;
    transition: all 0.2s ease;
}

.content-index li:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #f08c21;
    transform: translateX(2px);
}

.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.7em 1.2em; 
    text-decoration: none; 
    border-radius: 8px; 
    font-size: 0.9em; 
    font-weight: bold; 
    transition: all 0.3s ease; 
    color: white; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); 
}

.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: linear-gradient(135deg, #2a1f40, #411967);
    border-radius: 12px;
    padding: 1.5em;
    margin: 2em 0;
    text-align: center;
    border: 2px solid #fcd74a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.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: linear-gradient(135deg, #f08c21, #fcd74a);
    color: #18132a;
    border: none;
    padding: 1em 2em;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(240, 140, 33, 0.3);
    font-family: inherit;
}

.evercade-player-btn:hover {
    background: linear-gradient(135deg, #fcd74a, #f08c21);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(240, 140, 33, 0.4);
}

.evercade-player-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(240, 140, 33, 0.3);
}

.evercade-player-btn:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: 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: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 1em 2em;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    display: inline-block;
    animation: badge-glow 2s ease-in-out infinite alternate;
    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: #262044;
    position: relative;
    overflow: visible;
}

.search-container {
    position: relative;
    margin: 1.5em 0;
}

#gameSearch {
    width: 100%;
    padding: 1em 1.2em;
    font-size: 1em;
    border: 2px solid #411967;
    border-radius: 8px;
    background: #18132a;
    color: #f2efe9;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#gameSearch:focus {
    border-color: #fcd74a;
    box-shadow: 0 0 10px rgba(252, 215, 74, 0.3);
}

#gameSearch::placeholder {
    color: #999;
    font-style: italic;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #18132a;
    border: 2px solid #411967;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Estilos personalizados para scrollbar de resultados de búsqueda */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: #18132a;
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #411967;
    border-radius: 4px;
    border: 1px solid #262044;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #5a2380;
}

.search-results::-webkit-scrollbar-thumb:active {
    background: #fcd74a;
}

/* Soporte para Firefox */
.search-results {
    scrollbar-width: thin;
    scrollbar-color: #411967 #18132a;
}

.search-header {
    background: #411967;
    color: #fcd74a;
    padding: 0.8em 1.2em;
    font-weight: bold;
    border-bottom: 1px solid #333;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7em;
}

/* Estilos del Buscador Avanzado de Cartuchos */
#buscador-avanzado {
    background: #262044;
    padding: 2em 2em 1em 2em;
    border-radius: 14px;
    margin: 2em auto;
    max-width: 750px;
    box-shadow: 0 0 22px 0 #000a;
    overflow-x: hidden;
}

#buscador-avanzado h2 {
    color: #fcd74a;
    font-family: 'Press Start 2P', monospace;
    font-size: 1.8em;
    margin-bottom: 0.8em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#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;
}

.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.8em 1em;
    border: 2px solid #411967;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1em;
    box-sizing: border-box;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #fcd74a;
    box-shadow: 0 0 10px rgba(252, 215, 74, 0.3);
}

.filter-group select option {
    background: #262044;
    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.8em 1em;
    border: 2px solid #411967;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1em;
    box-sizing: border-box;
}

.preference-item select:focus {
    outline: none;
    border-color: #fcd74a;
    box-shadow: 0 0 10px rgba(252, 215, 74, 0.3);
}

.preference-item select option {
    background: #262044;
    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: 1em 1.5em;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.search-btn {
    background: linear-gradient(135deg, #f08c21 0%, #e07a1a 100%);
    color: white;
}

.search-btn:hover {
    background: linear-gradient(135deg, #e07a1a 0%, #d06b18 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 140, 33, 0.3);
}

.clear-btn {
    background: linear-gradient(135deg, #666 0%, #555 100%);
    color: white;
}

.clear-btn:hover {
    background: linear-gradient(135deg, #777 0%, #666 100%);
    transform: translateY(-2px);
}

.advanced-search-results {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #411967;
    border-radius: 12px;
    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.08);
    border: 2px solid #411967;
    border-radius: 10px;
    padding: 1.8em;
    transition: all 0.3s ease;
    cursor: pointer;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

.cartridge-result:hover {
    border-color: #4a2a5c;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-0.5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.cartridge-header {
    border-bottom: 2px solid #411967;
    padding-bottom: 1em;
    margin-bottom: 0.5em;
}

.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.6);
    padding: 0.4em 0.9em;
    border-radius: 18px;
    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;
}

/* Explicación de puntuación */
.score-explanation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
    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: #495057;
    font-size: 14px;
    line-height: 1.5;
}

.score-text strong {
    color: #343a40;
    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;
    margin-top: 1em;
    color: #888;
    font-style: italic;
}

/* 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.1);
    padding: 1.2em;
    border-radius: 10px;
    border: 1px solid rgba(252, 215, 74, 0.2);
    transition: all 0.3s ease;
}

.source-item:hover {
    background: rgba(252, 215, 74, 0.15);
    border-color: rgba(252, 215, 74, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 215, 74, 0.2);
}

.source-icon {
    font-size: 1.5em;
    flex-shrink: 0;
    padding: 0.3em;
    background: rgba(252, 215, 74, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d1821;
}

.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.5em;
    margin-right: 0.3em;
}

.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.4em 0.8em;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    vertical-align: middle;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.review-link:hover {
    background: #e55a30;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    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;
}

/* 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);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.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-block;
    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;
}

.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: #2a4d3a;
    color: white;
    border: none;
    border-radius: 50px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
}

.back-to-top:hover {
    background: #1e3b2d;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.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::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(240, 140, 33, 0.1) 0%, transparent 70%);
    animation: pulse-bg 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-bg {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.1; }
}

#juegos-ocultos h2 {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hidden-games-intro {
    background: rgba(0,0,0,0.3);
    padding: 1.5em;
    border-radius: 10px;
    margin-bottom: 2em;
    border-left: 4px solid #f08c21;
    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: linear-gradient(145deg, #2a1f40 0%, #1e1533 100%);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 1.5em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hidden-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 140, 33, 0.1), transparent);
    transition: left 0.5s ease;
}

.hidden-game-card:hover {
    border-color: #f08c21;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(240, 140, 33, 0.2);
}

.hidden-game-card:hover::before {
    left: 100%;
}

.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: 3em;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 50px;
    bottom: -30px;
    width: 3px;
    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: linear-gradient(135deg, #f08c21, #e55a30);
    color: white;
    padding: 1em 0.5em;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(240, 140, 33, 0.3);
    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;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5em;
    border-left: 4px solid #f08c21;
}

.timeline-content h3 {
    margin-top: 0;
    color: #fcd74a;
    font-size: 1.1em;
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.release-cards {
    display: grid;
    gap: 1.5em;
    margin-top: 1.5em;
}

.release-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.2em;
    border-left: 4px solid;
    transition: all 0.3s ease;
    position: relative;
}

.release-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.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));
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8em;
}

.card-header h4 {
    margin: 0;
    color: #edb902;
    font-size: 1.1em;
}

.console-badge, .computer-badge, .collection-badge, .arcade-badge, .legacy-badge {
    padding: 0.3em 0.8em;
    border-radius: 20px;
    font-size: 0.75em;
    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.5em;
    flex-wrap: wrap;
    margin-top: 1em;
}

.highlight-tag {
    background: rgba(240, 140, 33, 0.2);
    color: #f08c21;
    padding: 0.2em 0.6em;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    border: 1px solid rgba(240, 140, 33, 0.3);
}

/* Estilos específicos para items de timeline */
.timeline-item.future .timeline-date {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.timeline-item.recent .timeline-date {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.timeline-item.legacy-alert .timeline-date {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
    animation: pulse-legacy 2s infinite;
}

.timeline-item.legacy-alert .timeline-content {
    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: 300px;
    overflow-y: auto;
    margin-bottom: 1em;
    padding: 1em;
    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;
}

.cartridge-result {
    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;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.cartridge-result:hover, .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;
}

.cartridge-result:first-child {
    margin-top: 0;
}

.cartridge-result:last-child {
    margin-bottom: 0;
}

.cartridge-name {
    font-weight: bold;
    color: #f08c21;
}

.cartridge-type {
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.cartridge-type.console {
    background: #e74c3c;
    color: white;
}

.cartridge-type.arcade {
    background: #9b59b6;
    color: white;
}

.cartridge-type.computer {
    background: #3498db;
    color: white;
}

.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 {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1em;
    min-height: 300px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 1em;
    margin: 0.5em 0;
    background: linear-gradient(90deg, rgba(240, 140, 33, 0.1) 0%, rgba(240, 140, 33, 0.05) 100%);
    border-radius: 8px;
    border-left: 4px solid #f08c21;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: linear-gradient(90deg, rgba(240, 140, 33, 0.2) 0%, rgba(240, 140, 33, 0.1) 100%);
    transform: translateX(5px);
}

.ranking-position {
    font-size: 1.5em;
    font-weight: bold;
    color: #f08c21;
    margin-right: 1em;
    min-width: 2em;
    text-align: center;
}

.ranking-position.first {
    color: #f1c40f;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

.ranking-position.second {
    color: #95a5a6;
    text-shadow: 0 0 10px rgba(149, 165, 166, 0.5);
}

.ranking-position.third {
    color: #cd7f32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.ranking-cartridge-info {
    flex-grow: 1;
}

.ranking-cartridge-name {
    font-weight: bold;
    color: white;
    margin-bottom: 0.2em;
}

.ranking-votes {
    background: #f08c21;
    color: white;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-left: 1em;
}

.loading-message {
    text-align: center;
    padding: 2em 1em;
    color: rgba(255, 255, 255, 0.6);
}

.ranking-info {
    margin-top: 1em;
    padding: 1em;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(240, 140, 33, 0.2);
}

.ranking-info p {
    margin: 0.3em 0;
    color: rgba(255, 255, 255, 0.7);
}

.favorites-tips {
    margin-top: 2em;
    padding: 1.5em;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(240, 140, 33, 0.2);
}

.favorites-tips h3 {
    color: #f08c21;
    margin-bottom: 1em;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
}

.tip-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1em;
    border-radius: 8px;
    border-left: 3px solid #f08c21;
}

.tip-item strong {
    color: #f08c21;
    display: block;
    margin-bottom: 0.5em;
}

/* Responsive para móviles - cartuchos favoritos */
@media (max-width: 768px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking-item {
        padding: 0.8em;
    }
    
    .ranking-position {
        font-size: 1.2em;
        min-width: 1.5em;
    }
    
    .cartridge-search-section, .ranking-section {
        padding: 1em;
    }
}

/* Cabecera Sticky para Escritorio */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(27, 27, 27, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: none !important; /* Oculto por defecto, se muestra solo en escritorio */
    overflow: visible; /* Cambiado de hidden a visible para permitir que se vea todo */
    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;
}

.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;
}

.buy-button {
    background: linear-gradient(135deg, #f08c21 0%, #ff6b35 100%);
    color: white;
    border: none;
    padding: 0.8em 1.5em;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1em;
}

.buy-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff6b35 0%, #f08c21 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 140, 33, 0.3);
}

.buy-button:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Sección de Sugerencias y Feedback */
#sugerencias {
    /* Usar estilos base de section */
    margin: 2em auto;
    max-width: 750px;
    background: #262044;
    border-radius: 14px;
    box-shadow: 0 0 22px 0 #000a;
    padding: 2em 2em 1em 2em;
    text-align: center;
}

#sugerencias h2 {
    color: #fcd74a;
    font-size: 2.2em;
    margin-bottom: 1em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#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(255, 255, 255, 0.05);
    padding: 2em;
    border-radius: 12px;
    border: 1px solid rgba(252, 215, 74, 0.3);
    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: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(252, 215, 74, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.feedback-form input[type="email"]:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: #fcd74a;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(252, 215, 74, 0.1);
}

/* 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: linear-gradient(135deg, #fcd74a 0%, #ffee77 100%);
    color: #262044;
    border: none;
    padding: 1em 2em;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 200px;
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffee77 0%, #fcd74a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 215, 74, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    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;
    }
}