/* --- Variables de Color de Walftech y Reseteo Básico --- */
:root {
    --color-bg: #111827;
    --color-primary: #a855f7;
    --color-secondary: #9333ea;
    --color-accent: #fc0054;
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-card-bg: #1f2937;
    --color-footer-bg: #1a1a2e;
    --color-footer-border: #333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Para el scroll suave al pulsar "DISCOVER" */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    overflow-x: hidden;
}

/* --- Top Header (Botón de Login) --- AHORA EN USO --- */
/* Archivo: landing_style.css */

/* Archivo: landing_style.css */

.top-header {
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between; /* <-- Esta es la línea clave */
    align-items: center; 
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}


.header-logo-img {
    height: 35px; 
    filter: brightness(0) invert(1); 
    transition: transform 0.3s ease;
}

.header-logo-img:hover {
    transform: scale(1.1);
}

.login-button {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-text-secondary);
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-button:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}


/* --- Sección Principal (Hero) --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90vh;
    padding: 80px 5% 40px 5%; /* Padding superior para no chocar con el login */
    position: relative;
    background: linear-gradient(135deg, #111827 0%, #31031a 100%);
    overflow: hidden;
}

.hero-content {
    flex: 0 0 45%;
    max-width: 600px;
    z-index: 2;
}

.hero-logo img {
    height: 40px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-text-primary);
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.3);
}

.cta-button:hover {
    background-color: var(--color-secondary);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

/* Botón de Discover en el Hero */
.discover-button {
    display: inline-block;
    background-color: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-text-secondary);
    padding: 13px 35px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.discover-button:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}


/* --- Imágenes del Hero --- */
.hero-images {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-images .image-collage {
    display: flex;
    gap: 15px;
    align-items: center;
    transform: rotate(-4deg);
}

.hero-images img {
    height: 496px;
    width: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.9);
}
.hero-images img:hover {
    transform: scale(1.05) translateY(-15px);
    filter: brightness(1);
    z-index: 10;
}

.hero-images .img1 { transform: translateY(25px); }
.hero-images .img2 { transform: translateY(-20px); }
.hero-images .img3 { transform: translateY(15px); }
.hero-images .img4 { transform: translateY(-10px); }


/* --- Sección Descubrir --- */
.discover-section {
    text-align: center;
    padding: 80px 20px;
    background-color: #0d121d;
}

.discover-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.game-card {
    background-color: var(--color-card-bg);
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    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.4);
}
.game-card img { width: 100%; height: 300px; object-fit: cover; display: block; }
.game-card p { padding: 15px; font-weight: 500; }

/* --- Sección de Características --- */
.features {
    padding: 80px 20px;
    width: 100%;
    text-align: center;
    background-color: var(--color-bg);
}

.features h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--color-text-primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: var(--color-card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    border: 1px solid #374151;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.feature-item h4 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.feature-item p {
    line-height: 1.6;
    color: var(--color-text-secondary);
}


/* --- Footer --- */
.site-footer {
    width: 100%;
    background-color: #05050e;
    color: var(--color-text-secondary);
    padding: 40px 0 20px 0;
    margin-top: auto;
    border-top: 1px solid var(--color-footer-border);
    font-size: 0.95rem;
}

.footer-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-top-section { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; margin-bottom: 30px; }
.footer-left { flex: 2; min-width: 300px; }
.footer-logo-container { display: flex; align-items: center; margin-bottom: 15px; }
.footer-logo-container img { height: 35px; margin-right: 10px; }
.footer-logo-container span { font-size: 1.4rem; font-weight: 600; color: var(--color-text-primary); }
.footer-left p { line-height: 1.6; max-width: 400px; }
.footer-right { flex: 1; min-width: 200px; text-align: right; }
.footer-right h4 { font-size: 1.1rem; color: var(--color-text-primary); margin-bottom: 15px; font-weight: 500; }
.social-icons { display: flex; justify-content: flex-end; gap: 15px; }
.social-icons a { display: flex; justify-content: center; align-items: center; width: 38px; height: 38px; background-color: #2e2e4e; color: var(--color-text-primary); border-radius: 50%; text-decoration: none; font-weight: bold; font-size: 1.1rem; transition: background-color 0.3s, transform 0.2s; }
.social-icons a:hover { background-color: var(--color-primary); transform: translateY(-2px); }
.footer-divider { border: none; height: 1px; background-color: var(--color-footer-border); margin: 30px 0; }
.footer-bottom-section { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-bottom-section .footer-links a { color: var(--color-text-secondary); text-decoration: none; margin-left: 25px; transition: color 0.3s; }
.footer-bottom-section .footer-links a:hover { color: var(--color-text-primary); }

/* --- Diseño Responsivo --- */
@media (max-width: 992px) {
    .top-header {
    background-color: rgba(17, 24, 39, 0.8);
    padding: 10px 20px;
}
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 40px 20px;
    }
    .hero-content {
        max-width: 100%;
        margin-right: 0;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-images {
        margin-top: 60px;
        margin-left: 0;
        transform: scale(0.8);
    }
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
    .discover-section h2, .features h3 { font-size: 2rem; }
    .footer-top-section, .footer-bottom-section { flex-direction: column; text-align: center; align-items: center; }
    .footer-right { text-align: center; }
    .social-icons { justify-content: center; }
}

/* Archivo: landing_style.css (dentro de @media (max-width: 480px)) */

/* AÑADE ESTAS REGLAS NUEVAS */
.header-logo-img { height: 35px; }
.login-button { padding: 6px 15px; }
