:root {
    --light-bg: #f5f5f7;
    --card-bg: #ffffff;
    --primary-text: #1d1d1f;
    --secondary-text: #515154;
    --accent-blue: #007aff;
    --border-color: #d2d2d7;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: var(--card-bg);
    color: var(--primary-text);
    overflow-x: hidden;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 90%;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.main-nav a {
    text-decoration: none;
    color: var(--secondary-text);
    margin: 0 15px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent-blue);
}

.cta-button {
    background-color: var(--accent-blue);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

/* --- ESTILOS PARA LA SECCIÓN HERO CON VANTA.JS --- */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
    /* El fondo se aplica desde JS, pero ponemos un color base */
    background-color: var(--light-bg);
}

.hero-content {
    position: relative;
    z-index: 2; /* Importante: el contenido debe estar sobre el fondo Vanta */
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--primary-text);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0 auto;
}
/* --- FIN DE ESTILOS HERO --- */

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    margin: 0 auto 60px auto;
    font-weight: 900;
    max-width: 800px;
    line-height: 1.2;
}

.modulos-section {
    padding: 120px 5%;
    background-color: var(--light-bg);
}

.modulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.modulo-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.modulo-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--accent-blue);
}

.modulo-icon svg {
    width: 100%;
    height: 100%;
}

.modulo-card h3 {
    font-size: 1.8rem;
    margin-top: 0;
}
.modulo-card p {
    color: var(--secondary-text);
    flex-grow: 1;
}
.demo-button {
    background: none;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 20px;
}
.demo-button:hover {
    background-color: var(--accent-blue);
    color: #fff;
}

.modulo-card--cta {
    background-color: transparent;
    border: 2px dashed var(--border-color);
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: border-color 0.3s, background-color 0.3s;
}
.modulo-card--cta:hover {
    border-color: var(--accent-blue);
    background-color: #f8fbff;
}

.como-funciona-section {
    padding: 120px 5%;
    background-color: var(--card-bg);
}
.sticky-container {
    display: flex;
    gap: 5%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}
.proceso-visual {
    width: 50%;
    position: sticky;
    top: 120px;
    height: 75vh;
}
.proceso-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}
.proceso-textos {
    width: 45%;
}
.proceso-textos .section-title {
    text-align: left;
    margin-bottom: 80px;
}
.proceso-textos .paso {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}
.proceso-textos .paso:last-child {
    border-bottom: none;
}
.proceso-textos h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.proceso-textos p {
    color: var(--secondary-text);
}

.pre-cta-section {
    padding: 80px 20px;
    background-color: var(--light-bg);
}
.pre-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.pre-cta-content h3 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin: 0 0 20px 0;
}
.link-asesor {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 700;
}
.link-asesor .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}
.link-asesor:hover .arrow {
    transform: translateX(8px);
}

.beneficios-section {
    padding: 120px 5%;
    background-color: var(--card-bg);
}
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.beneficio-card {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #e5e5e5;
}
.beneficio-card .icono {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-blue);
}
.beneficio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.cta-final-section {
    padding: 120px 20px;
    text-align: center;
    background-color: var(--light-bg);
}
.cta-button-final {
    display: inline-block;
    background-color: var(--accent-blue);
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button-final:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.4);
}

footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    color: var(--secondary-text);
}

/* --- DISEÑO RESPONSIVO --- */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    .sticky-container {
        flex-direction: column;
    }
    .proceso-visual {
        position: relative;
        width: 100%;
        height: 40vh;
        top: 0;
        margin-bottom: 40px;
    }
    .proceso-textos {
        width: 100%;
    }
    .proceso-textos .section-title {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cta-button {
        display: none;
    }
    .hero-content {
        padding: 20px;
    }
    .modulos-grid {
        grid-template-columns: 1fr;
    }
}