/* ========== Global ========== */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    background-color: #1a1a1a;
    color: #fff;
    line-height: 1.4;
}

/* ========== Escritorio: One-Page ========== */
@media (min-width: 769px) {
    html, body {
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* rellena la pantalla */
        overflow: hidden;
    }

    header, .previous-works, .contact, .social, footer {
        flex-shrink: 0;
    }
}

/* ========== Header ========== */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

header img {
    width: 100px;
    height: 100px;
    margin-top: 20px; /* espacio extra arriba del logo */
}

header h1 {
    color: #e69500;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 5px 0;
}

.description {
    font-size: 1rem; /* igual que los títulos de los juegos */
    max-width: 400px;
    text-align: center;
}

/* ========== Previous Works ========== */
.previous-works {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.previous-works .section-title {
    flex-basis: 100%;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.game-card {
    text-align: center;
    width: 150px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.game-card h3 {
    font-weight: 700;
    margin-bottom: 2px;
    font-size: 1rem;
}

/* Año / Coming Soon + botón en la misma fila */
.game-card .game-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-size: 1rem; /* mismo tamaño que descripción */
}

.game-card .game-info p {
    margin: 0;
}

.game-card .game-info button {
    background: none;
    border: none;
    cursor: pointer;
    color: #888888;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.7rem; /* más pequeño */
}

.game-card .game-info button i {
    font-size: 0.5rem; /* icono más pequeño */
}

/* ========== Contact ========== */
.contact {
    text-align: center;
    margin: 10px 0;
    font-size: 1rem; /* mismo tamaño que los títulos */
}

.contact a {
    color: #e69500;
    text-decoration: none;
}

/* ========== Footer ========== */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    margin: 10px 0;
}

footer .location-icon {
    font-size: 1.2rem;
    color: #e69500;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

footer .social-footer {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px; /* separación del footer */
}

footer .social-footer a {
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
}

footer .social-footer a:hover {
    color: #e69500;
}

/* ========== Responsive Móvil ========== */
@media (max-width: 768px) {
    html, body {
        height: auto;
        overflow: auto;
    }

    header img {
        width: 80px;
        height: 80px;
        margin-top: 15px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .description {
        font-size: 1rem;
        max-width: 90%;
    }

    .previous-works .section-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .game-card {
        width: 120px;
    }

    .game-card h3 {
        font-size: 0.95rem;
    }

    .game-card .game-info {
        font-size: 0.95rem;
    }

    .game-card .game-info button {
        font-size: 0.7rem;
    }

    footer .social-footer {
        margin-top: 6px;
        gap: 6px;
    }

    .contact {
        margin: 15px 0 5px 0;
        font-size: 1rem;
    }

    footer p {
        font-size: 0.85rem;
    }
}
