@import url('https://fonts.googleapis.com/css2?family=Anton&family=Arial:wght@400;700&display=swap');

:root {
    --color-principal: #1a1a1a;
    --color-acento: #0076ff;
    --color-fondo: #f4f4f4;
    --color-negro: #111;
    --font-titulo: 'Anton', Impact, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--color-principal);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    width: 100%;
    flex-grow: 1;
}

/* ---------------- HEADER ---------------- */
header {
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    flex-wrap: wrap;
    gap: 10px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 55px;
    width: auto;
    display: block;
}

.site-title {
    font-family: var(--font-titulo);
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin: 0 0 0 10px;
    color: var(--color-negro);
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 18px;
}

nav a {
    text-decoration: none;
    color: var(--color-principal);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav a:hover {
    color: var(--color-acento);
}

.lang-selector {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.active-lang {
    color: var(--color-acento);
    padding: 2px 5px;
}

.lang-link {
    text-decoration: none;
    color: #666;
    padding: 2px 5px;
    transition: color 0.3s ease;
}

.lang-link:hover {
    color: var(--color-principal);
}

/* ---------------- HERO ---------------- */
.hero {
    text-align: center;
    padding: 0;
}

.hero-img {
    width: 100%;
    aspect-ratio: 16 / 6;
    object-fit: cover;
    display: block;
}

.hero-caption {
    max-width: 900px;
    margin: 1.2rem auto;
    padding: 0 5%;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

/* ---------------- SECCIONES DE PROYECTOS ---------------- */
.proyectos-section {
    position: relative;
    padding: 3rem 5%;
    background-color: #fdfdfd;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0,0,0,0.05) 0, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0,0,0,0.05) 0, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0.03) 0, transparent 60%);
}

.proyectos-section h2 {
    font-family: var(--font-titulo);
    text-align: center;
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin: 0 0 2rem;
    color: var(--color-negro);
}

.juegos {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.juego {
    flex: 1 1 320px;
    max-width: 420px;
    text-align: center;
}

.juego-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fff;
    border: 2px solid var(--color-negro);
    display: block;
}

.juego figcaption {
    margin-top: 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------------- CTA "QUIERES SABER MAS" ---------------- */
.cta-section {
    text-align: center;
    padding: 3rem 5%;
    background: #fff;
}

.cta-section h2 {
    font-family: var(--font-titulo);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.cta-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.cta-columns a {
    text-decoration: none;
    color: var(--color-negro);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cta-columns a:hover {
    color: var(--color-acento);
}

.legal-strip {
    text-align: center;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    color: #777;
    padding: 1rem 5% 1.5rem;
    text-transform: uppercase;
}

/* ---------------- FOOTER ---------------- */
footer {
    text-align: center;
    padding: 1.5rem 5%;
    background: var(--color-negro);
    color: #fff;
    width: 100%;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--color-negro);
}

.social-icons svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links a:hover {
    color: #fff;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 700px) {
    nav {
        justify-content: center;
        width: 100%;
    }

    .proyectos-section h2 {
        font-size: 1.6rem;
    }
}
