/* ----------------------------------------------------------- */
/* 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);
}

/* BENEFITS SECTION */
.benefits-section {
    background-color: var(--background-color); /* Fondo gris muy claro */
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
    margin-top: 50px;
    /* Aplicar altura 100% para que las tarjetas se estiren y los contenedores de texto estén alineados */
    align-items: stretch;
}

.benefit-card {
    background-color: var(--secondary-color); /* Fondo blanco */
    padding: 35px;
    border-radius: 16px;
    border: 1px solid var(--highlight-color);
    border-left: 6px solid var(--primary-color); /* Borde negro para destacar */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Ajuste para Alineación Vertical (Asegura que el contenido ocupe el espacio) */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinea el contenido al inicio de la tarjeta */
    height: 100%; /* Permite que la tarjeta se estire en el grid */
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-title-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.benefit-card h3 {
    /* Ajuste de tamaño de título */
    font-size: 1.6em; /* Ligeramente más grande */
    color: var(--text-color);
    margin-left: 15px;
    font-weight: 700;
}

.benefit-icon {
    color: var(--primary-color); /* Negro */
    width: 40px; /* Ligeramente más pequeño para mejor integración */
    height: 40px;
    min-width: 40px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    color: var(--light-gray);
    transform: scale(1.1);
}

.benefit-card p {
    /* Ajuste de tamaño de cuerpo de texto */
    color: var(--light-gray);
    font-size: 1.05em; /* Ligeramente más grande */
}

/* PARTICLE / PARTNER SECTION */
.partner-section {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color); /* Fondo blanco */
}

.partner-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.9); /* Fondo blanco semitransparente */
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--highlight-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.partner-card {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
}

.partner-card h3 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.partner-card p {
    color: var(--light-gray);
    font-size: 1.1em;
}

/* APP DEPLOYMENT SECTION (New Section) */
.app-deploy-section {
    background-color: var(--background-color);
    padding: 100px 20px;
}

.app-deploy-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 50px;
    max-width: var(--max-content-width);
    margin: 0 auto;
}

.app-deploy-text {
    max-width: 50%;
}

.app-deploy-text h2 {
    font-size: 3em;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-color);
}

.app-deploy-text p {
    color: var(--light-gray);
    font-size: 1.1em;
    margin-bottom: 30px;
}

.app-image-placeholder {
    width: 45%;
    aspect-ratio: 16 / 10; /* Proporción de una pantalla de aplicación */
    background-color: var(--highlight-color);
    border-radius: 16px;
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
}

/* PRICING SECTION */
.pricing-section {
    padding-top: 100px; /* Ajuste de padding después de añadir la sección anterior */
    padding-bottom: 100px;
    background-color: var(--secondary-color); /* Fondo blanco */
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
    padding: 0 50px; /* Ajuste de padding lateral */
}

.plan-card {
    background-color: var(--background-color); /* Fondo gris claro */
    padding: 40px 30px;
    border-radius: 15px;
    text-align: left;
    border: 1px solid var(--highlight-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.plan-card:hover {
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.plan-card.featured {
    background-color: var(--primary-color); /* Negro puro para destacar */
    color: var(--secondary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.plan-card.featured h3, .plan-card.featured .price {
     color: var(--secondary-color); /* Texto blanco */
}
.plan-card.featured .per-month, .plan-card.featured li {
    color: #ccc;
}

.plan-card h3 {
    font-size: 2em;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--text-color);
}

.plan-card .badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: 700;
    margin-bottom: 15px;
    border: 1px solid var(--primary-color);
}

.plan-card.featured .badge {
     background-color: var(--secondary-color);
     color: var(--primary-color);
}

.plan-card .price {
    font-size: 3em;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.plan-card .per-month {
    color: var(--light-gray);
    margin-bottom: 20px;
}

.plan-card ul {
    list-style: none;
    margin-bottom: 30px;
}

.plan-card li {
    margin-bottom: 10px;
    color: var(--light-gray);
}

.plan-card.featured li {
     color: #ccc;
}

.plan-card li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.plan-card.featured li::before {
     color: var(--secondary-color);
}

.plan-cta {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--primary-color);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.plan-card.featured .plan-cta {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.plan-cta:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.plan-card.featured .plan-cta:hover {
    background-color: var(--light-gray);
    border-color: var(--light-gray);
}

/* FOOTER */
.footer {
    padding: 50px 20px;
    max-width: var(--max-content-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--highlight-color);
    color: var(--light-gray);
}

.footer-links a, .footer-contact a {
    display: block;
    color: var(--light-gray);
    margin-bottom: 5px;
}

.footer-contact p {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

/* ----------------------------------------------------------- */
/* ANIMATIONS (Scroll-controlled) - [Mismo código anterior] */
/* ----------------------------------------------------------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.anim-fade-up, .anim-slide-in, .anim-slide-up {
    opacity: 0;
}

.animated.anim-fade-up { animation: fadeUp 0.8s ease-out forwards; }
.animated.anim-slide-in { animation: slideIn 0.8s ease-out forwards; }
.animated.anim-slide-up { animation: slideUp 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; }

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: var(--background-color);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid var(--primary-color);
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2, .modal-content h3 {
    color: var(--primary-color);
}

.close-button {
    color: var(--light-gray);
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 3.5em;
    }
    .hero-content h2 { /* Ajuste en móvil */
        font-size: 2em;
    }
    .section-title {
        font-size: 2.5em;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .navbar {
        padding: 15px 20px;
    }
    /* Ocultar links para simplificar el header en móvil */
    .nav-links {
        display: none;
    }

    .app-deploy-content {
        flex-direction: column;
        text-align: center;
    }
    .app-deploy-text {
        max-width: 100%;
    }
    .app-deploy-text h2 {
        font-size: 2.5em;
    }
    .app-image-placeholder {
        width: 100%;
        min-height: 300px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        margin-bottom: 20px;
    }
}