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

:root {
    --primary: #ff3b3b;
    --primary-glow: rgba(255, 59, 59, 0.4);
    --secondary: #ff7676;
    --bg-dark: #050505;
    --bg-card: rgba(25, 25, 25, 0.7);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
}

/* Bloqueo estricto de scroll horizontal y zoom */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.8;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

* {
    box-sizing: border-box;
}

/* Animaciones */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 15px var(--primary-glow); }
    50% { box-shadow: 0 0 30px var(--primary-glow); }
    100% { box-shadow: 0 0 15px var(--primary-glow); }
}

.animate-fade {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Contenedor Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    overflow: hidden; /* Evita que los brillos rompan la web */
}

/* Header & Navegación */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    z-index: 1001; /* Siempre por encima del menú */
}

.logo-img {
    height: 45px;
    width: auto;
    border-radius: 10px;
}

.logo-text {
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

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

nav a:hover::after, nav a.active::after {
    width: 100%;
}

nav a:hover, nav a.active {
    color: var(--text-main);
}

/* Menú Hamburguesa (Oculto en PC) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: 0.4s all ease;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 20px 80px 20px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    z-index: -1;
    opacity: 0.4;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 50px auto;
}

/* Botones */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), #b30000);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 59, 59, 0.3);
    animation: glowPulse 3s infinite;
}

.btn:hover {
    transform: translateY(-5px) scale(1.03);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary);
    box-shadow: none;
    animation: none;
    margin-left: 15px;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* Secciones Nuevas (Características y FAQ) */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 80px 0 40px 0;
    color: var(--text-main);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0 60px 0;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.faq-item {
    background: var(--bg-card);
    margin-bottom: 15px;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.faq-item h4 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Textos Legales */
.legal-container {
    background: var(--bg-card);
    padding: 60px;
    border-radius: 20px;
    margin: 40px 0 80px 0;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
}

.legal-container h1 { font-size: 2.5rem; margin-bottom: 10px; }
.legal-container .update-date { color: var(--primary); font-weight: 600; margin-bottom: 40px; display: inline-block; }
.legal-container h2 { color: var(--secondary); margin-top: 50px; margin-bottom: 20px; font-size: 1.6rem; border-left: 4px solid var(--primary); padding-left: 15px; }
.legal-container p, .legal-container li { color: var(--text-muted); margin-bottom: 15px; font-size: 1.05rem; }
.legal-container ul { margin-left: 20px; margin-bottom: 20px; }

/* Footer */
footer {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #020202;
}

/* RESPONSIVE EXTREMO PARA CELULARES */
@media (max-width: 900px) {
    .hero h1 { font-size: 3.2rem; }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Muestra el botón hamburguesa */
    }

    /* Diseño del Menú Desplegable en Móvil */
    nav {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto fuera de la pantalla a la derecha */
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
    }

    nav.active {
        right: 0; /* Desliza el menú hacia adentro */
    }

    nav a {
        margin: 20px 0;
        font-size: 1.5rem;
    }

    /* Animación de la Hamburguesa a "X" */
    .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Ajustes generales de móvil */
    .hero { padding: 80px 10px 40px 10px; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.05rem; }
    .btn { display: block; margin: 0 auto 15px auto; width: 100%; max-width: 300px; text-align: center; }
    .btn-outline { margin-left: auto; }
    .legal-container { padding: 30px 20px; }
    .legal-container h1 { font-size: 1.8rem; }
}