/* Importar una fuente moderna */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    /* Fondo oscuro y profundo */
    background: #0d0a21; 
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- Barra de Navegación (Header) --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    /* Fondo Glassmorphism semi-transparente */
    background: rgba(13, 10, 33, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-logo .nav-logo {
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
}

.nav-links {
    display: flex;
    transition: all 0.3s ease-in-out;
}

.nav-links a {
    color: #c9c9ff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #667eea;
}

/* NUEVA REGLA: Botón de menú oculto por defecto */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    margin: 0 10px; /* Separación del botón CTA */
}

.btn-play-now {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-play-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
}

/* --- Contenido Principal --- */
.content-wrapper {
    padding-top: 50px;
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 70vh;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text {
    max-width: 600px;
    text-align: left;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    /* Gradiente para el título */
    background: linear-gradient(90deg, #fff 0%, #a8a8ff 100%);
    
    /* CORRECCIÓN: Compatibilidad de gradiente de texto */
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.brand-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* CORRECCIÓN: Compatibilidad de gradiente de texto */
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin-bottom: 40px;
}

.logo-hero-container {
    padding: 20px;
}

.main-logo {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 0 50px rgba(102, 126, 234, 0.5));
    animation: float-logo 4s ease-in-out infinite alternate;
    transition: transform 0.3s ease; /* Para el parallax */
}

/* Animación flotante del logo (como en Brawlhalla) */
@keyframes float-logo {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

/* Botón principal CTA (Estilo Brawlhalla) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%); 
    color: white;
    text-decoration: none;
    padding: 20px 45px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.7);
}

.arrow-icon {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .arrow-icon {
    transform: translateX(8px);
}

/* --- Key Features (Como "Free to Play", "Cross-Platform") --- */
.key-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.key-feature-item {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #a8a8ff;
    border: 1px solid rgba(102, 126, 234, 0.4);
}

.key-feature-item span {
    margin-right: 5px;
}

/* --- Sección de Anuncios/Noticias --- */
.news-section {
    padding: 80px 5%;
    text-align: center;
    background-color: #1a1738;
}

.news-section h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-item {
    background: #242142;
    padding: 25px;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #302b63;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.news-date {
    display: block;
    font-size: 0.85rem;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 700;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.read-more {
    color: #a8a8ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #fff;
}


/* --- SECCIÓN: FUNDADORES (CORREGIDA PARA WRAP Y CENTRADO) --- */
.founders-section {
    padding: 80px 5%;
    text-align: center;
    background-color: #0d0a21;
}

.founders-section h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 50px;
    font-weight: 300;
}

.founders-grid {
    display: flex; /* CAMBIO CLAVE para centrado y wrap */
    flex-wrap: wrap; 
    justify-content: center; /* Centra las tarjetas restantes */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.founder-card {
    /* Calculamos el ancho para que quepan 5 en una línea con gap de 20px */
    width: calc(20% - 16px); 
    min-width: 150px; /* Ancho mínimo para evitar colapso extremo */
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1a1738;
    padding: 20px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #302b63;
}

.founder-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: #242142;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: #667eea;
}

.founder-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.founder-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.founder-role {
    font-size: 0.85rem;
    color: #a8a8ff;
    margin-bottom: 10px;
}

.founder-link {
    font-size: 0.8rem;
    color: #667eea;
    text-decoration: underline;
    opacity: 0.8;
}

/* --- Sección de Características (Features) --- */
.features-section {
    padding: 80px 5%;
    text-align: center;
}

.features-section h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 30px 20px;
    border-radius: 15px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    /* Gradiente sutil en los iconos */
    background: linear-gradient(45deg, #a8a8ff, #667eea);
    
    /* CORRECCIÓN: Compatibilidad de gradiente de texto */
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Footer --- */
.landing-footer {
    padding: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    border-top: 1px solid rgba(107, 33, 33, 0.936);
}

/* ------------------------------------------- */
/* --- Responsive (Correcciones Finales) --- */
/* ------------------------------------------- */

@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 50px;
    }

    .hero-text {
        max-width: none;
        margin-bottom: 40px;
        text-align: center;
    }

    .key-features {
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .main-logo {
        max-width: 350px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* --- MENÚ DE NAVEGACIÓN (Corrección) --- */
    .menu-toggle {
        display: block; /* Mostrar el botón de menú */
    }

    .navbar {
        flex-wrap: wrap; 
        justify-content: space-between; /* Ajustar el espacio entre Logo, Botón y CTA */
    }
    
    .nav-links {
        display: none; /* Oculto por defecto y preparado para ser un menú vertical */
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: #1a1738;
        padding: 10px 0;
        margin-top: 10px;
        order: 3; /* Asegura que el menú aparezca debajo del logo/CTA */
    }

    .nav-links.active {
        display: flex; /* Mostrar cuando se hace clic (manejado por JS) */
    }

    .nav-links a {
        margin: 10px 0;
        padding: 8px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-links a:last-child {
        border-bottom: none;
    }

    .btn-play-now {
        margin-top: 0;
    }
    
    /* --- FUNDADORES (Ajuste para 3 o 2 columnas) --- */
    .founder-card {
        /* En tablet, mostramos 3 por fila, wrap automático */
        width: calc(33.33% - 14px); 
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .founder-card {
        /* En móvil pequeño, mostramos 2 por fila */
        width: calc(50% - 10px); 
    }
}