/* Variables */
:root {
    --primary-color: #8A3FFC;
    --secondary-color: #4589FF;
    --accent-color: #33B1FF;
    --light-color: #F5F0FF;
    --dark-color: #1A1A3A;
    --text-color: #333333;
    --bg-color: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #6929C4);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    --border-radius: 12px;
    --box-shadow: 0 15px 35px rgba(138, 63, 252, 0.1);
    --transition: all 0.3s ease;
    --font-main: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Open+Sans:wght@400;600&display=swap');

/* Reset y estilos base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.main-wrapper {
    position: relative;
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

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

a:hover {
    color: var(--secondary-color);
}

section {
    position: relative;
    padding: 8rem 0;
}

.section-title {
    font-size: 3.6rem;
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 0.5rem;
    background: var(--gradient-primary);
    border-radius: 10px;
}

/* Botones */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1.4rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.6rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(138, 63, 252, 0.05);
}

/* Animación de pulse para botones */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(138, 63, 252, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 20px rgba(138, 63, 252, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(138, 63, 252, 0.4);
    }
}

/* Header y Navegación */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 2rem 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.logo-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.logo-svg {
    width: 4rem;
    height: 4rem;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--primary-color);
}

.nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 4rem;
}

.nav a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.6rem;
    transition: var(--transition);
    position: relative;
}

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

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding-top: 18rem;
    padding-bottom: 14rem;
    background: linear-gradient(135deg, #F9F5FF 0%, #EAE2FD 100%);
    overflow: hidden;
    position: relative;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 4.5rem;
    margin-bottom: 2.5rem;
    color: var(--dark-color);
}

.hero .subtitle {
    font-size: 1.8rem;
    margin-bottom: 3.5rem;
    color: var(--text-color);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-40%);
    width: 45%;
    max-width: 500px;
    z-index: 1;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

/* Cómo funciona / How it works */
.how-works {
    padding-top: 10rem;
    padding-bottom: 10rem;
    background-color: var(--bg-color);
}

.process-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 5rem;
}

.process-item {
    flex: 1;
    min-width: 250px;
    padding: 3rem 2rem;
    text-align: center;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.process-item:hover {
    transform: translateY(-10px);
}

.process-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2.5rem;
}

.process-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.process-arrow {
    width: 50px;
    flex-shrink: 0;
    margin: 0 -10px;
}

.centered-button {
    text-align: center;
    margin-top: 5rem;
}

/* Ventajas / Advantages */
.advantages {
    background-color: var(--light-color);
    padding-top: 6rem;
    padding-bottom: 6rem;
    position: relative;
}

.wave-top, .wave-bottom {
    position: absolute;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-top {
    top: 0;
}

.wave-bottom {
    bottom: 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.advantage-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-8px);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 2rem;
}

.advantage-card h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Preguntas frecuentes / FAQ */
.faq {
    padding-top: 10rem;
    padding-bottom: 10rem;
}

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

.faq-item {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(138, 63, 252, 0.05);
}

.faq-question h3 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--dark-color);
}

.faq-toggle {
    font-size: 2.4rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-answer p {
    padding: 0 3rem 2rem;
    color: var(--text-color);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* CTA Section */
.cta {
    background: var(--gradient-primary);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 3.6rem;
    color: white;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3.5rem;
}

.cta .btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.cta .btn-primary:hover {
    background: var(--light-color);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 8rem;
    padding-bottom: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.footer-logo-svg {
    width: 4rem;
    height: 4rem;
}

.footer-logo p {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
}

.footer-tagline {
    font-size: 1.4rem;
    line-height: 1.6;
}

.footer h4 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links li, .footer-legal li {
    margin-bottom: 1.2rem;
}

.footer-links a, .footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p:not(:last-child) {
    margin-bottom: 1rem;
}

/* Responsividad */
@media (max-width: 992px) {
    html {
        font-size: 58%;
    }
    
    .hero {
        padding-top: 16rem;
        padding-bottom: 10rem;
    }
    
    .hero-image {
        position: static;
        width: 100%;
        max-width: 400px;
        margin: 4rem auto 0;
        transform: none;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .process-container {
        flex-direction: column;
    }
    
    .process-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .process-item {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 3.6rem;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background-color: white;
        padding-top: 8rem;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active span:first-child {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:last-child {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 576px) {
    section {
        padding: 6rem 0;
    }
    
    .hero {
        padding-top: 12rem;
    }
    
    .hero h2 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.6rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
}
