html, body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0; /* Asegura que no haya márgenes por defecto */
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    /* padding-bottom: 50px; <-- ELIMINADO: esto causaba el hueco inferior */
}

/* Hacemos que el contenedor principal ocupe todo el espacio disponible */
#app {
    flex: 1; 
}

:root {
    --bg-main: #121212;
    --bg-secondary: #1e1e1e;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-blue: #ED222F;
    --accent-hover: #005bb5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo span {
    /* Gradiente moderno en lugar de un color sólido */
    background: linear-gradient(90deg, var(--accent-blue), #ff5e62);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Resplandor sutil para dar aspecto "Gamer" */
    filter: drop-shadow(0 0 8px rgba(237, 34, 47, 0.4));
}
.search-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.03); /* Fondo casi transparente */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Borde sutil */
    border-radius: 25px;
    padding: 8px 20px;
    width: 350px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3); /* Sombra interior para dar profundidad */
}

/* Efecto cuando el usuario hace clic para escribir */
.search-bar:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(237, 34, 47, 0.15), inset 0 2px 4px rgba(0,0,0,0.3);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-main);
    outline: none;
    width: 100%;
    font-size: 14px;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.search-bar button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* El ícono de lupa se ilumina al pasar el mouse */
.search-bar button:hover {
    color: var(--accent-blue);
    transform: scale(1.1);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: 0.2s;
}

.nav-links a:hover { color: var(--text-main); }

/* --- NUEVA ESTRUCTURA DEL FOOTER --- */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* La marca ocupa más espacio */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    text-align: left;
}

.footer-column h3 {
    color: var(--text-main);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

/* Enlaces de navegación del footer */
.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

/* Botón de Discord */
.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #5865F2; /* Color oficial de Discord */
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.3s, background 0.3s;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-3px);
}

/* --- AJUSTE PARA MÓVILES (ANDROID) --- */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Una columna arriba de otra */
        text-align: center;
        gap: 30px;
    }

    .brand-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links a:hover {
        padding-left: 0; /* Quitamos el efecto de padding en móvil */
    }

    .social-links {
        display: flex;
        justify-content: center;
    }
}

/* --- OPTIMIZACIÓN MOBILE (ANDROID / iOS) --- */
@media (max-width: 768px) {
    /* Barra Superior */
    .navbar {
        flex-wrap: wrap; /* Permite que los elementos pasen a otra línea */
        padding: 15px 5%;
        gap: 15px;
    }

    .logo {
        font-size: 22px; /* Logo ligeramente más chico */
    }

    .nav-links {
        display: flex;
        gap: 15px;
        align-items: center;
    }

    .nav-links a {
        margin-left: 0; /* Reseteamos el margen de PC */
        font-size: 14px;
    }

    /* El buscador pasa a ocupar todo el ancho en la parte inferior del nav */
    .search-bar {
        order: 3; /* Lo manda al final */
        width: 100%;
        padding: 10px 20px;
    }

    /* Barra Inferior (Footer) */
    .site-footer {
        margin-top: 40px; /* Menos margen superior en móvil */
        padding: 40px 5% 20px;
    }

    .footer-logo {
        font-size: 24px;
    }

    .footer-content p {
        font-size: 14px;
        padding: 0 10px;
    }
}


/* Banner Hero */
.hero-banner {
    height: 60vh;
    margin: 20px 5%;
    border-radius: 20px;
    background: linear-gradient(to top, rgba(18,18,18,1) 0%, rgba(18,18,18,0) 100%), 
                url('https://images.unsplash.com/photo-1605901309584-818e25960b8f?q=80&w=2000&auto=format&fit=crop') center/cover;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.hero-info { max-width: 500px; }

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.hero-info h1 {
    font-size: 48px;
    margin: 10px 0;
}

.hero-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-play {
    background: var(--text-main);
    color: var(--bg-main);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 800;
    cursor: pointer;
    margin-right: 10px;
    transition: 0.2s;
}

.btn-play:hover { background: #e0e0e0; }

.btn-wishlist {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-wishlist:hover { background: rgba(255, 255, 255, 0.2); }

/* Carruseles */
.carousel-section {
    margin: 40px 5%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.carousel-controls button {
    background: var(--bg-secondary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
    transition: 0.2s;
}

.carousel-controls button:hover { background: var(--accent-blue); }

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px; /* Espacio para la sombra al hacer hover */
}

/* Ocultar barra de scroll para un look más limpio */
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track { -ms-overflow-style: none; scrollbar-width: none; }

.game-card {
    min-width: 250px;
    background: var(--bg-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.img-ph {
    height: 300px;
    border-radius: 10px 10px 0 0;
    background-size: cover;
    background-position: center;
}

/* Imágenes de relleno de Unsplash */
.img-1 { background-image: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=400&auto=format&fit=crop'); }
.img-2 { background-image: url('https://images.unsplash.com/photo-1511512578047-dfb367046420?q=80&w=400&auto=format&fit=crop'); }
.img-3 { background-image: url('https://images.unsplash.com/photo-1552820728-8b83bb6b773f?q=80&w=400&auto=format&fit=crop'); }
.img-4 { background-image: url('https://images.unsplash.com/photo-1605658627885-b9034c4b5d63?q=80&w=400&auto=format&fit=crop'); }

.info { padding: 15px; }
.info h3 { font-size: 16px; margin-bottom: 5px; }
.info span { color: var(--text-muted); font-size: 14px; }

/* Modificamos un poco el banner para alojar los botones absolutos */
.hero-banner {
    position: relative; /* Necesario para los botones */
    transition: background-image 0.5s ease-in-out; /* Cambio suave de imagen */
}

/* Estilo para los botones flotantes del Hero */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: 0.3s;
    z-index: 10;
}

.hero-nav-btn:hover {
    background: var(--accent-blue);
}

#hero-prev { left: 20px; }
#hero-next { right: 20px; }

/* Para que la info no quede pegada a los botones en pantallas chicas */
.hero-info {
    position: relative;
    z-index: 5;
    margin-left: 50px; 
}

/* Actualizamos la tarjeta para quitar el comportamiento por defecto de los enlaces <a> */
.game-card {
    min-width: 250px;
    background: var(--bg-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Elimina el subrayado */
    color: var(--text-main); /* Evita que el texto se ponga violeta al visitarlo */
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* --- NUEVOS ESTILOS PARA LAS ETIQUETAS (TAGS) --- */
.card-tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.card-tag {
    /* Fondo oscuro semitransparente para dar textura */
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1); /* Borde sutil para simular relieve */
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    /* Sombra interior para darle un aspecto más táctil y 3D */
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05); 
}



/* --- ESTILOS PARA LA TIENDA --- */
.store-container {
    display: flex;
    gap: 30px;
    padding: 40px 5%;
}

.store-filters {
    width: 250px;
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 15px;
    height: fit-content;
}

.store-filters h3 {
    margin-bottom: 15px;
    color: var(--text-main);
    border-bottom: 2px solid var(--accent-green, #0078f2); /* Usa el color que prefieras */
    padding-bottom: 5px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-group label {
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-grid, .library-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* --- BUSCADOR LOCAL DE LA TIENDA --- */
.local-search {
    margin-bottom: 25px;
}

.search-bar-local {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.search-bar-local:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(237, 34, 47, 0.15), inset 0 2px 4px rgba(0,0,0,0.3);
}

.search-bar-local::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* --- ESTILOS PERFIL DE JUEGO --- */
.game-hero-banner {
    height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 40px 5%;
    /* El degradado se aplica por JS para fusionarse con el fondo */
}

.game-hero-content {
    max-width: 800px;
}

.game-hero-content h1 {
    font-size: 56px;
    margin-bottom: 5px;
}

.text-muted {
    color: var(--text-muted);
}

.game-tags-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.game-details-container {
    display: flex;
    gap: 40px;
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.game-main-info {
    flex: 2;
}

.game-main-info p {
    color: #cccccc;
    line-height: 1.6;
    margin-top: 15px;
    font-size: 16px;
}

.mt-20 { margin-top: 30px; }

.game-features-list {
    margin-top: 15px;
    padding-left: 20px;
    color: #cccccc;
    line-height: 1.8;
}

.game-features-list li::marker {
    color: var(--accent-blue);
}

.game-sidebar {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.buy-box {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 15px;
   
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.price-value {
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.btn-buy {
    width: 100%;
    background: var(--accent-blue);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 10px;
}

.btn-buy:hover { background: var(--accent-hover); }

.btn-wishlist-sidebar {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-wishlist-sidebar:hover { background: rgba(255, 255, 255, 0.1); }

.game-meta {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: var(--text-muted);
}

/* --- Capturas de Pantalla --- */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.screenshot-img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 16/9;
    border: 1px solid var(--border-color, #333); /* Usa tu variable de borde si tienes */
}

/* --- Requisitos Mínimos --- */
.requirements-box {
    background: var(--bg-secondary, #1a1a1a);
    border: 1px solid var(--border-color, #333);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.8;
}

/* --- Sidebar y Otros Juegos --- */
.other-games-sidebar {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #333);
}

.sidebar-games-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.sidebar-game-card {
    display: flex;
    text-decoration: none;
    background: var(--bg-secondary, #1a1a1a);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, background 0.2s;
    border: 1px solid transparent;
}

.sidebar-game-card:hover {
    transform: translateX(5px);
    background: var(--bg-hover, #2a2a2a);
    border-color: var(--accent-blue, #007bff); /* O el color que uses para tu sitio */
}

.sidebar-game-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.sidebar-game-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-game-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: var(--text-main, #fff);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-category-badge {
    align-self: flex-start;
    background: var(--bg-tertiary, #333);
    color: var(--text-muted, #aaa);
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: capitalize;
}

/* Clases de utilidad */
.mt-20 { margin-top: 20px; }

/* --- ESTILOS DEL MODAL DE DESCARGA --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Por encima del navbar */
}

.modal-content {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    color: var(--text-main);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid var(--accent-blue);
}

.modal-content h3 {
    margin-top: 0;
    color: var(--accent-blue);
    margin-bottom: 15px;
}

.modal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-muted);
}

.modal-content li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.modal-content code {
    background: var(--bg-main);
    padding: 2px 6px;
    border-radius: 4px;
    color: #ffcc00;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.modal-actions label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
}

.btn-continue-download {
    padding: 15px;
    background-color: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: 0.3s;
}

.btn-continue-download:disabled {
    background-color: #333;
    cursor: not-allowed;
    color: #777;
}

.btn-continue-download:not(:disabled):hover {
    background-color: var(--accent-hover);
}

/* Ajuste Sticky solo para PC (evita bugs visuales en móviles) */
@media (max-width: 768px) {
    .buy-box {
        position: static; /* Quita el sticky en móviles */
    }
}

/* Nuevos estilos para los botones de PC y Android */
.btn-pc {
    background: var(--accent-blue);
    color: white;
}
.btn-pc:hover { 
    background: var(--accent-hover); 
}

.btn-android {
    background: #3DDC84; /* Verde clásico de Android */
    color: #000000; /* Letra negra para que contraste bien */
}
.btn-android:hover { 
    background: #2cb76d; 
}

/* --- Modifica tu sección de .navbar actual por esta --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    /* Efecto Glassmorphism */
    background-color: rgba(30, 30, 30, 0.85); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* --- Añade estos estilos al final de tu archivo CSS para el Footer --- */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 5% 20px;
    margin-top: 60px; /* Separa el contenido principal del footer */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-main);
}

.footer-logo span {
    color: var(--accent-blue);
}

.footer-content p {
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    color: #555;
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- ESTILOS SOBRE NOSOTROS --- */
.about-container {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.about-hero {
    text-align: center;
    margin-bottom: 60px;
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 800;
}

.about-hero h1 span {
    color: var(--accent-blue);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text h2 {
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(237, 34, 47, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.features-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 15px;
    border-bottom: 3px solid var(--accent-blue);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-hero h1 {
        font-size: 2.2rem;
    }
}

/* --- ESTILOS DE LA PÁGINA DE CONTACTO --- */
.contact-container {
    padding: 60px 5%;
    max-width: 1000px;
    margin: 0 auto;
    /* Reutiliza la animación de fade que ya tienes o crea una transición suave */
    animation: fadeIn 0.5s ease-in-out;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h1 {
    font-size: 3rem;
    font-weight: 800;
}

.contact-header h1 span {
    color: var(--accent-blue);
}

.contact-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Usamos CSS Grid para que sea 100% responsivo */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.contact-card {
    background: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border-top: 3px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-top-color: var(--accent-blue);
}

.contact-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
}

.btn-email {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-email:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-blue);
}

.discord-btn-large {
    background: #5865F2; /* Color oficial de Discord */
    color: white;
}

.discord-btn-large:hover {
    background: #4752c4;
    transform: scale(1.05);
}

/* --- OPTIMIZACIÓN PARA MÓVILES --- */
@media (max-width: 768px) {
    .contact-header h1 {
        font-size: 2.2rem;
    }
    
    .contact-container {
        padding: 40px 5%;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
}

/* =========================================
   ESTILOS DE LA PÁGINA FAQ (Acordeón)
   ========================================= */
.faq-container {
    padding: 60px 5%;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in-out;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header h1 {
    font-size: 3rem;
    font-weight: 800;
}

.faq-header h1 span {
    color: var(--accent-blue);
}

.faq-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 10px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden; /* Importante para el acordeón */
    transition: all 0.3s ease;
}

/* El botón de la pregunta */
.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    outline: none;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* El icono de más (+) */
.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-blue);
    font-weight: 400;
    transition: transform 0.3s ease;
}

/* El contenedor de la respuesta (oculto por defecto) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.15); /* Fondo apenas más oscuro */
}

.faq-answer p {
    padding: 0 25px 20px 25px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.faq-answer p:first-child {
    padding-top: 10px;
}

/* --- ESTADOS ACTIVOS (CUANDO SE ABRE) --- */
.faq-item.active {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 15px rgba(237, 34, 47, 0.15);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); /* Transforma el (+) en una (x) */
}


/* --- OPTIMIZACIÓN PARA ANDROID / MÓVILES --- */
@media (max-width: 768px) {
    .faq-container {
        padding: 40px 5%;
    }
    
    .faq-header h1 {
        font-size: 2.2rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 15px 20px;
        line-height: 1.4; /* Mejora la lectura si la pregunta ocupa 2 líneas */
    }

    .faq-answer p {
        padding: 0 20px 15px 20px;
        font-size: 0.95rem;
    }
}

/* =========================================
   OPTIMIZACIÓN PARA ANDROID / MÓVILES
   ========================================= */
@media (max-width: 768px) {
    
    /* --- 1. INICIO: Hero Banner --- */
    .hero-banner {
        height: 50vh; /* Un poco más bajo para que se vea el carrusel de abajo */
        padding: 20px;
        margin: 10px 5%;
        justify-content: center;
        text-align: center; /* Centramos el texto en móvil */
    }

    .hero-info {
        margin-left: 0;
        z-index: 5;
    }

    .hero-info h1 {
        font-size: 32px; /* Reducimos el tamaño de la fuente */
    }

    .hero-info p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    /* Ocultamos los botones de flechas en móvil porque el usuario suele deslizar 
       o preferir que pase solo (ya tienes el auto-play activado en JS) */
    .hero-nav-btn {
        display: none; 
    }

    /* --- 2. INICIO: Carruseles --- */
    .carousel-controls {
        display: none; /* En Android es mejor deslizar con el dedo */
    }

    .game-card {
        min-width: 150px; /* Más estrecho para que entren más de 2 en la pantalla */
    }
  
    .img-ph {
        height: 200px; /* Ajustamos la altura de la imagen de la tarjeta */
    }

    .info h3 {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* Corta el texto largo con "..." */
    }

    /* --- 3. EXPLORAR: Tienda y Filtros --- */
    .store-container {
        flex-direction: column; /* Ponemos los filtros ARRIBA de los juegos */
        padding: 20px 5%;
        gap: 20px;
    }

    .store-filters {
        width: 100%; /* El buscador y categorías ocupan todo el ancho */
        height: auto;
    }

    .filter-group {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap; /* Las categorías se acomodan en botones horizontales */
        gap: 15px;
    }

    .store-grid {
        /* Permite que se vean 2 columnas de juegos en móviles en lugar de 1 gigante */
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
}

/* =========================================
   OPTIMIZACIÓN PERFIL DE JUEGO EN MÓVILES
   ========================================= */
@media (max-width: 768px) {
    /* 1. Hacer las tags mucho más pequeñas en todo el sitio */
    .tag, 
    .card-tag, 
    .game-category-badge {
        font-size: 10px !important;
        padding: 4px 6px !important;
        letter-spacing: 0;
    }

    /* 2. Ajuste del banner superior del juego */
    .game-hero-banner {
        height: auto;
        min-height: 40vh;
        padding: 30px 5% 20px;
        justify-content: center;
        text-align: center; /* Centramos el texto en el móvil */
    }

    .game-hero-content h1 {
        font-size: 32px; /* Título más chico para que no desborde */
    }

    .game-tags-container {
        justify-content: center; /* Centramos las tags debajo del título */
        gap: 6px;
    }

    /* 3. Estructura general de la información del juego */
    .game-details-container {
        flex-direction: column; /* Apilamos la descripción arriba y los botones de compra abajo */
        gap: 25px;
        padding: 20px 5%;
    }

    .game-main-info {
        order: 1; /* Prioridad a la info principal */
    }

    .game-sidebar {
        order: 2; /* Los botones de descarga quedan debajo de la descripción */
        width: 100%;
        min-width: 100%; /* Ocupa todo el ancho de la pantalla */
        max-width: 100%;
    }

    /* 4. Ajustes menores de espaciado */
    .buy-box {
        padding: 20px;
        border-radius: 12px;
    }

    .screenshots-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); /* Capturas más adaptables */
        gap: 10px;
    }
    
    .price-value {
        font-size: 22px; /* Tamaño del peso del archivo más sutil */
    }
}

.sidebar-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}