/* ---- CONFIGURACIÓN GENERAL Y VARIABLES ---- */
:root {
    --color-background: #121212;
    --color-surface: #1E1E1E;
    --color-primary: #00aaff;
    --color-text: #E0E0E0;
    --color-text-secondary: #A0A0A0;
    --font-headings: 'Exo 2', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
}

/* ---- HEADER Y NAVEGACIÓN ---- */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

nav .logo {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--color-primary);
}

/* ---- SECCIÓN HERO (INICIO) ---- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.8)), url('https://images.pexels.com/photos/998641/pexels-photo-998641.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
}

.hero-content h1 {
    font-family: var(--font-headings);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background-color: var(--color-primary);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 170, 255, 0.2);
}

/* ---- SECCIÓN DE JUEGOS ---- */
#juegos, #acerca {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-primary);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.game-card {
    background-color: var(--color-surface);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #2a2a2a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.game-card img {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-card h3 {
    font-family: var(--font-headings);
    font-size: 1.4rem;
    margin: 0.5rem 0;
}

.game-card p {
    color: var(--color-text-secondary);
    min-height: 60px; /* Para alinear verticalmente los botones */
}

.play-store-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    background-color: var(--color-primary);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.play-store-btn:hover {
    background-color: #0088cc;
}

/* ---- SECCIÓN ACERCA DE ---- */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

/* ---- FOOTER Y CONTACTO ---- */
footer {
    background-color: var(--color-surface);
    text-align: center;
    padding: 1rem 2rem;
}

footer p {
    margin: 0.5rem 0;
    color: var(--color-text-secondary);
}

.email-link {
    font-size: 1.2rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* ---- RESPONSIVE DESIGN ---- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    nav ul {
        display: none; /* Simplificar para un menú hamburguesa futuro */
    }
}
.secondary-btn {
    background-color: #444;
}
.secondary-btn:hover {
    background-color: #555;
}