/* Variables de colores y fuentes */
:root {
    --primary: #6E0B7E;
    --secondary: #FF4081;
    --accent: #9C27B0;
    --light: #F5F5F5;
    --dark: #212121;
    --gray: #757575;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    transition: opacity 0.3s ease;
}

body.loaded {
    opacity: 1;
}

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

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
    color: var(--gray);
}

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

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

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

section {
    padding: 80px 0;
}

/* Botones */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

/* Header y navegación */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo {
    height: 50px;
    width: auto;
}

header h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0;
}

/* Hero section */
.hero {
    background-image: radial-gradient(circle at top right, rgba(156, 39, 176, 0.1), rgba(255, 64, 129, 0.05));
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 100px 0;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--dark);
}

.hero-graphic {
    max-width: 500px;
    margin: 0 auto;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Features */
.features {
    background-color: var(--white);
}

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

.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: var(--radius);
    background-color: var(--light);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

/* How it works */
.how-it-works {
    background-color: rgba(110, 11, 126, 0.05);
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 50px;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 20px;
    position: relative;
    margin-bottom: 20px;
}

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

.cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
}

.quote {
    font-style: italic;
    position: relative;
    padding-left: 20px;
}

.quote::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    left: -15px;
    top: -20px;
    color: var(--primary);
    opacity: 0.2;
}

.author {
    text-align: right;
    font-weight: 600;
    margin-top: 15px;
    color: var(--primary);
}

/* FAQ */
.faq-item {
    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-item h3 {
    cursor: pointer;
    color: var(--primary);
    position: relative;
    padding-right: 30px;
    transition: all 0.3s ease;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    margin-bottom: 30px;
}

.logo-small {
    height: 40px;
    width: auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--light);
}

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

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    width: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .btn-primary {
        padding: 10px 20px;
    }
    
    .hero {
        padding: 80px 0;
        min-height: 60vh;
    }
}

/* Animaciones y efectos */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item, .testimonial, .faq-item, .step {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
    animation-delay: calc(var(--animation-order, 0) * 0.1s);
}

.feature-item:nth-child(1) { --animation-order: 1; }
.feature-item:nth-child(2) { --animation-order: 2; }
.feature-item:nth-child(3) { --animation-order: 3; }
.feature-item:nth-child(4) { --animation-order: 4; }

.testimonial:nth-child(1) { --animation-order: 1; }
.testimonial:nth-child(2) { --animation-order: 2; }
.testimonial:nth-child(3) { --animation-order: 3; }

.faq-item:nth-child(1) { --animation-order: 1; }
.faq-item:nth-child(2) { --animation-order: 2; }
.faq-item:nth-child(3) { --animation-order: 3; }
.faq-item:nth-child(4) { --animation-order: 4; }
