/* Variables globales */
:root {
    --primary-color: #7e22ce; /* Morado como color principal */
    --secondary-color: #ff9f43; /* Naranja como color secundario */
    --dark-color: #2b3654;
    --light-color: #f5f6fa;
    --text-color: #333333;
    --accent-color: #38b2ac;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, #c084fc 100%);
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

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

html {
    font-size: 62.5%; /* Para facilitar los cálculos rem (10px) */
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

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

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

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

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

img, svg {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* Componentes UI */
.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(126, 34, 206, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(126, 34, 206, 0.4);
    color: white;
}

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

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

.btn-large {
    font-size: 1.8rem;
    padding: 1.4rem 3.2rem;
}

.section-title {
    font-size: 3.2rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    padding-bottom: 2rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 0.4rem;
    background: var(--gradient-primary);
    border-radius: 5px;
}

/* Header y navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

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

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

.logo h1 span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links li a {
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
}

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding: 15rem 0 10rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-section h2 {
    font-size: 4.8rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.hero-section p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: #666;
}

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

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    max-width: 500px;
}

.ai-svg {
    width: 100%;
    height: auto;
}

/* Features Section */
.features-section {
    padding: 10rem 0;
    background-color: white;
}

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

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

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 2rem;
}

.feature-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-card p {
    color: #666;
}

/* How it works Section */
.how-section {
    padding: 10rem 0;
    background-color: #f9f9f9;
}

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

.step {
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2.5rem;
    right: -1.5rem;
    width: 3rem;
    height: 2px;
    background-color: var(--primary-color);
    display: none;
}

@media (min-width: 768px) {
    .step:not(:last-child)::after {
        display: block;
    }
}

.step-number {
    width: 5rem;
    height: 5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    font-size: 2.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.step h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.cta-center {
    text-align: center;
    margin-top: 4rem;
}

/* FAQ Section */
.faq-section {
    padding: 10rem 0;
    background-color: white;
}

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

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

.accordion-header {
    padding: 2rem;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-left: 4px solid var(--primary-color);
}

.accordion-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

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

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.accordion-item.active .accordion-content {
    padding: 0 2rem 2rem;
    max-height: 500px;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

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

.cta-section p {
    font-size: 2rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-section .btn-primary:hover {
    background: var(--secondary-color);
    color: white;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 6rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-icon {
    width: 10rem;
    height: 10rem;
    margin-bottom: 1.5rem;
}

.footer-logo p {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.footer-logo p span {
    color: var(--secondary-color);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 1.4rem;
    color: #aaa;
}

/* Media Queries */
@media (max-width: 992px) {
    html {
        font-size: 55%;
    }
    
    .hero-visual {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 80%;
        margin: 5rem auto 0;
    }
    
    .hero-section {
        padding: 12rem 0 6rem;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        background-color: white;
        width: 100%;
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .hero-section h2 {
        font-size: 3.6rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .cta-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-section h2 {
        font-size: 3rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
}
