@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #3B82F6;
    --primary-hover: #2563EB;
    /* Light Theme Colors based on user's portfolio index.html */
    --secondary: #F9FAFB;
    --surface: #FFFFFF;
    --surface-light: #F3F4F6;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --accent: #10B981;
    --error: #EF4444;
    --white: #FFFFFF;
    --glass: rgba(0, 0, 0, 0.02);
    --glass-border: rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--secondary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--text-main); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; color: var(--text-main); }
h3 { font-size: 1.5rem; margin-bottom: 16px; color: var(--text-main); }

.text-gradient {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

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

/* Sections */
section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--surface-light);
}

.bg-surface {
    background-color: var(--surface);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

nav .container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 140px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--white);
}

.hero::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 24px 0 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.feature-card .icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 700;
}

.proceso-steps .feature-card .icon {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

/* Dashbord Section - Refined */
.dashboard-showcase {
    background-color: var(--surface-light);
    padding: 100px 0;
}

.dashboard-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 10px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.dashboard-container img {
    border-radius: var(--radius-md);
}

/* Check-list styling */
.check-list {
    margin-top: 32px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 500;
}

.check-list .accent {
    color: var(--accent);
}

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

.testimonial-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.client {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 24px;
}

.client strong {
    color: var(--text-main);
    font-size: 1.1rem;
}

.client span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--surface-light);
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-muted);
    display: none;
    line-height: 1.6;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background: var(--surface);
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 24px;
    color: var(--text-main);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

/* CTA Final */
.cta-final {
    padding: 120px 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

.cta-final p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 20px auto;
}

/* Base Reveal Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-btns {
        justify-content: center;
    }
    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .hero {
        padding-top: 100px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .hero-btns {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
}
