/* ----------------------------------------------------------- */
/* LIGHT MODE THEME VARIABLES (Fondo Blanco, Acentos Negros) */
/* ----------------------------------------------------------- */
:root {
    --primary-color: #000000; /* Color dominante para acentos y botones: Negro */
    --secondary-color: #FFFFFF; /* Fondo de la página: Blanco */
    --background-color: #F8F8F8; /* Fondo de secciones y tarjetas: Gris muy claro */
    --text-color: #000000; /* Texto principal: Negro */
    --light-gray: #555555; /* Texto secundario: Gris oscuro */
    --highlight-color: #e0e0e0; /* Para bordes y separadores sutiles */
    --hover-black: #111111; /* Nuevo color para hover del botón CTA (Fix punto 1) */
    --max-content-width: 1200px;
    --font-serif: 'Inter', sans-serif;
}

/* GENERAL STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    background-color: var(--secondary-color); /* Fondo blanco en todo el body */
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--light-gray);
}

/* Eliminación de lados grises, el fondo ocupa todo el ancho */
.section {
    padding: 100px 20px;
    width: 100%; 
    text-align: center;
}

.section-container {
     /* Contenedor interno para limitar el ancho del contenido */
    max-width: var(--max-content-width);
    margin: 0 auto;
}

/* Título de sección en negro y grande */
.section-title {
    font-size: 3.5em; 
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-color);
}

.subtitle {
    font-size: 1.2em;
    color: var(--light-gray);
    margin-bottom: 50px;
}

/* HEADER / HERO SECTION */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--secondary-color);
    overflow: hidden;
    border-bottom: 2px solid var(--highlight-color);
}

/* Contenedor para el nuevo efecto Three.js en el Hero */
#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    pointer-events: none;
}

.navbar {
    position: fixed; 
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.95); /* Fondo blanco semitransparente */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--highlight-color); 
}

.logo {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--primary-color); 
}

/* Estilo para que los links estén uno al lado del otro */
.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--light-gray); 
    transition: color 0.3s ease;
    font-weight: 500;
}

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

.hero-content {
    position: relative; 
    z-index: 1;
    padding-top: 80px;
    max-width: 900px;
}

/* Estilo del título principal: ELYON QUICKDEPLOY */
.hero-content h1 {
    font-size: 5.5em; 
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0px; /* Reducido para acercar el h2 */
    color: var(--text-color);
}

/* Nuevo estilo del subtitulo en el Hero: Control Total Android. */
.hero-content h2 {
    font-size: 3em; 
    font-weight: 700;
    line-height: 1.2;
    margin-top: 10px;
    margin-bottom: 20px;
    color: var(--light-gray);
}

.hero-content h1 strong {
    color: var(--primary-color);
    transition: color 0.3s;
}

/* CTA BUTTONS - Color negro dominante */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color); /* Negro */
    color: var(--secondary-color); /* Blanco */
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 30px;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--primary-color);
}

.cta-button:hover {
    background-color: var(--hover-black); /* FIX PUNTO 1: Negro oscuro, mantiene texto blanco */
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cta-button.secondary {
    border-radius: 50px;
    box-shadow: none;
    border: 2px solid var(--light-gray);
    color: var(--light-gray);
    background-color: transparent;
}

.cta-button.secondary:hover {
    border-color: var(--primary-color);
    background-color: var(--highlight-color);
    color: var(--primary-color);
}

/* Formulario de login */
.login-form {
    background-color: var(--background-color);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--highlight-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    margin: 0 auto;
}

.login-form h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.login-form p {
    color: var(--light-gray);
    margin-bottom: 30px;
}

.form-control {
    margin-bottom: 20px;
}

.form-control label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: 500;
}

.form-control input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--highlight-color);
    border-radius: 8px;
    font-size: 1em;
}

.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #c33;
}

.hidden {
    display: none;
}

/* ANIMATIONS (Scroll-controlled) */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.anim-fade-up { 
    opacity: 0; 
}

.animated.anim-fade-up { animation: fadeUp 0.8s ease-out forwards; }

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; } 
.delay-4 { animation-delay: 0.8s; } 
.delay-5 { animation-delay: 1.0s; } 

/* Responsive Design */
@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 3.5em; 
    }
    .hero-content h2 { 
        font-size: 2em; 
    }
    .navbar {
        padding: 15px 20px;
    }
    .nav-links {
        display: none; 
    }
}