:root {
    /* Colores gamer neón */
    --primary-neon: #00FFFF; /* Cyan neón */
    --dark-neon: #FF00FF;   /* Morado neón */
    --accent-neon: #FF4444; /* Rojo neón */
    --bg-dark: #1A1A1A;     /* Fondo oscuro */
    --text-light: #FFFFFF;  /* Texto claro */
    --card-radius: 15px;
}

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

body {
    background: var(--bg-dark) url('neon-circuit-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-light);
    padding: 1rem;
    min-height: 100vh;
}

header {
    background: rgba(0, 0, 0, 0.7) url('neon-gamer-logo.png') no-repeat center center;
    background-size: contain;
    padding: 2rem 1rem;
    border-radius: var(--card-radius);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    position: relative;
    border: 2px solid var(--primary-neon);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-neon);
    cursor: pointer;
}

header p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: var(--text-light);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px var(--primary-neon);
    margin-top: 1rem;
}

.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: linear-gradient(90deg, var(--primary-neon), var(--dark-neon));
    color: var(--text-light);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s, box-shadow 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(90deg, var(--dark-neon), var(--accent-neon));
    box-shadow: 0 0 10px var(--primary-neon);
    transform: scale(1.05);
}

.category h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--primary-neon);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5), 0 0 10px var(--primary-neon);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    padding: 0.5rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--card-radius);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--dark-neon);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--primary-neon);
}

.game-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 0.8rem;
}

.game-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.game-card p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.platform {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    display: block;
    padding: 0.3rem;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 5px;
    font-weight: 600;
    color: var(--primary-neon);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.play-button {
    background: linear-gradient(90deg, var(--primary-neon), var(--dark-neon));
    color: var(--text-light);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.play-button:hover {
    background: linear-gradient(90deg, var(--accent-neon), var(--primary-neon));
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--dark-neon);
}

.play-button i {
    margin-right: 0.5rem;
}

.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.1);
    width: 95%;
    max-width: 900px;
    height: 90vh;
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 2px solid var(--primary-neon);
}

.modal-header {
    background: linear-gradient(90deg, var(--primary-neon), var(--dark-neon));
    color: var(--text-light);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.6rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--accent-neon);
}

.game-iframe {
    width: 100%;
    height: calc(90vh - 50px);
    border: none;
    background-color: #000;
}

footer {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2)); /* Degradado suave */
    padding: 2rem 1.5rem; /* Más espacio interno */
    margin-top: 2.5rem;
    border-radius: 20px; /* Bordes más redondeados */
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3); /* Sombra neón */
    border: 1px solid var(--primary-neon); /* Borde sutil */
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Más separación entre elementos */
}

footer p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem; /* Un poco más grande */
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7), 0 0 10px var(--primary-neon); /* Glow cyan */
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px; /* Más espacio entre enlaces */
}

.footer-links a {
    color: var(--accent-neon); /* Rojo neón */
    text-decoration: none;
    font-size: 1rem; /* Tamaño legible */
    font-weight: 600;
    transition: color 0.3s, text-shadow 0.3s;
}

.footer-links a:hover {
    color: var(--primary-neon); /* Cyan al pasar el mouse */
    text-shadow: 0 0 5px var(--primary-neon);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Espacio fijo entre íconos */
}

.share-btn {
    color: var(--text-light);
    font-size: 2rem; /* Tamaño uniforme (32px aprox) */
    width: 50px; /* Tamaño fijo del círculo */
    height: 50px;
    line-height: 50px; /* Centrado vertical */
    text-align: center;
    border-radius: 50%;
    text-decoration: none;
    background: linear-gradient(45deg, var(--dark-neon), var(--primary-neon)); /* Degradado neón */
    transition: transform 0.3s, box-shadow 0.3s;
}

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-neon); /* Brillo más intenso */
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem 0.5rem;
    }
    .header-container {
        flex-direction: column;
        align-items: center;
    }
    .menu-toggle {
        display: block;
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
    .category-filter {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0, 0, 0, 0.8);
        padding: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
    }
    .category-filter.active {
        display: flex;
    }
    header p {
        font-size: 1.2rem;
    }
    .category h2 {
        font-size: 1.6rem;
    }
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    .game-card h3 {
        font-size: 1.2rem;
    }
    .game-card p {
        font-size: 0.85rem;
    }
    .platform {
        font-size: 1.2rem;
        padding: 0.2rem;
    }
    .play-button {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
    .modal-header h2 {
        font-size: 1.4rem;
    }
    .close-modal {
        font-size: 1.4rem;
    }
    footer {
        padding: 1.5rem 1rem;
    }
    footer p {
        font-size: 1rem;
    }
    .footer-links {
        gap: 15px;
    }
    .footer-links a {
        font-size: 0.9rem;
    }
    .share-btn {
        font-size: 1.8rem; /* Ajuste en móviles */
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
}