/* ================================
 *   ESTILOS GENERALES
 * ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #151515;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #252525;
    --border: #333333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================================
 *   NAVEGACIÓN
 * ================================ */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(37, 37, 37, 0.6);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    cursor: pointer;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-primary);
    transition: width 0.3s ease;
}

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

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--text-primary);
}

/* ================================
 *   CONTENEDOR HORIZONTAL
 * ================================ */
.horizontal-container {
    display: flex;
    width: 400vw; /* 4 secciones = 400% */
    height: 100vh;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

/* ================================
 *   ESTILOS COMUNES DE SECCIONES
 * ================================ */
section {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 8%;
    position: relative;
    overflow: hidden;
}

h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    border-left: 5px solid var(--text-primary);
    padding-left: 2rem;
}

p {
    max-width: 700px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.9;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* ================================
 *   SECCIÓN 1: INICIO / HERO
 * ================================ */
#inicio {
background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

#inicio::before {
content: '';
position: absolute;
top: -50%;
right: -50%;
width: 100%;
height: 100%;
background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
}

/* ================================
 *   SECCIÓN 2: QUIÉNES SOMOS
 * ================================ */
#nosotros {
background-color: var(--bg-secondary);
/* border-left: 1px solid var(--border); */
/* border-right: 1px solid var(--border); */
}

#nosotros h2 {
margin-top: 50px;
margin-bottom: 15px;
}

#nosotros h2:first-of-type {
margin-top: 0; /* Para que el primer h2 no tenga margen superior */
}

.rounded-madafaka {
    border-radius: 20px;
    max-width: 100%; /* Para que sea responsive */
    margin-top: 50px;
}

/* ================================
 *   SECCIÓN 3: DESCARGAS
 * ================================ */
#juegos {
background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1a1a 100%);
}

/* Cards de juegos */
.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 4rem;
}

.card {
    background: linear-gradient(135deg, var(--accent) 0%, var(--bg-secondary) 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.5s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--text-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.card h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.5rem;
}

.card p {
    font-size: 1rem;
}

.btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 3rem;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--text-primary);
}

.btn:hover {
    background-color: transparent;
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* ================================
 *   SECCIÓN 4: CONTACTO
 * ================================ */
#contacto {
background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

/* ================================
 *   INDICADOR DE SCROLL (DOTS)
 * ================================ */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    z-index: 1000;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: var(--text-secondary);
    transform: scale(1.2);
}

.dot.active {
    background-color: var(--text-primary);
    transform: scale(1.3);
}

/* ================================
 *   RESPONSIVE
 * ================================ */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }

    nav {
        padding: 0.8rem 1.5rem;
        width: 90%;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.8rem;
    }

    section {
        padding: 4rem 5%;
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
        letter-spacing: 4px;
    }
}
