/* ===========================================
   NEXIO Landing - Estilos Compartidos
   =========================================== */

:root {
    --primary: #0EA5E9;
    --primary-dark: #0284C7;
    --primary-light: #7dd3fc;
    --secondary: #10B981;
    --accent: #10B981;
    --dark: #0F172A;
    --dark-light: #1E293B;
    --gray: #64748B;
    --light: #F8FAFC;
    --gradient: linear-gradient(135deg, #0EA5E9 0%, #10B981 100%);
    --gradient-light: linear-gradient(135deg, #e0f2fe 0%, #d1fae5 100%);
    --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utility Classes */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-bg { background: var(--gradient); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: 12px; font-weight: 600; font-size: 15px;
    text-decoration: none; transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--gradient); color: white; box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-ghost { background: transparent; color: var(--dark); }
.btn-ghost:hover { background: rgba(14, 165, 233, 0.1); color: var(--primary); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-secondary { background: white; color: var(--dark); border: 2px solid #E2E8F0; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-dark { background: var(--dark); color: white; }
.btn-dark:hover { background: var(--dark-light); }

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.nav.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 40px; }
.nav-logo span { font-size: 24px; font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--gray); text-decoration: none; font-weight: 500; font-size: 15px; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-mobile { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-mobile svg { width: 28px; height: 28px; color: var(--dark); }

@media (max-width: 968px) {
    .nav-links, .nav-cta { display: none; }
    .nav-mobile { display: block; }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 85;
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--dark); text-decoration: none; font-size: 18px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid #E2E8F0; }

/* Page Header */
.page-header {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, #F0F9FF 0%, var(--light) 100%);
    text-align: center;
}
.page-hero {
    padding: 120px 0 60px;
    text-align: center;
    color: white;
}
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 18px; opacity: 0.9; }
.page-header h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; margin-bottom: 16px; }
.page-header p { font-size: 20px; color: var(--gray); max-width: 600px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 24px; font-size: 14px; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb span { color: var(--gray); }

/* Section Styles */
.section { padding: 100px 0; }
.section-alt { background: #F0F9FF; }
.section-dark { background: var(--gradient-dark); color: white; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 64px; }
.section-header .label { color: var(--primary); font-weight: 600; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.section-header h2 { font-size: 42px; font-weight: 800; margin-bottom: 16px; }
.section-header p { color: var(--gray); font-size: 18px; }

/* Cards */
.card {
    background: white;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); }

/* Footer */
.footer { background: var(--dark); color: white; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); margin-top: 16px; font-size: 14px; line-height: 1.8; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 32px; text-align: center; color: rgba(255, 255, 255, 0.5); font-size: 14px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* CTA Section */
.cta-section { padding: 100px 0; background: var(--gradient); text-align: center; color: white; }
.cta-section h2 { font-size: 42px; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 18px; opacity: 0.9; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cta-section .btn-primary { background: white; color: var(--primary); }
.cta-section .btn-secondary { background: transparent; border-color: white; color: white; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 968px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Feature Cards */
.feature-card {
    background: white;
    padding: 40px 32px;
    border-radius: 24px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); border-color: transparent; }
.feature-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 24px; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.feature-card p { color: var(--gray); font-size: 15px; margin-bottom: 20px; }
.feature-list { list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray); margin-bottom: 8px; }
.feature-list li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    border: 2px solid #E2E8F0;
    transition: all 0.3s ease;
    position: relative;
}
.pricing-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); }
.pricing-card.popular { border-color: var(--primary); transform: scale(1.05); }
.pricing-card.popular:hover { transform: scale(1.05) translateY(-8px); }
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}
.pricing-header { text-align: center; margin-bottom: 24px; padding-top: 8px; }
.pricing-header h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.pricing-header p { color: var(--gray); font-size: 14px; }
.pricing-price { text-align: center; margin-bottom: 24px; }
.pricing-price .amount { font-size: 42px; font-weight: 800; }
.pricing-price .period { color: var(--gray); font-size: 14px; }
.pricing-features { list-style: none; margin-bottom: 24px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F1F5F9; font-size: 14px; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.pricing-features li.ai { color: #7C3AED; font-weight: 600; }
.pricing-features li.ai svg { color: #7C3AED; }
@media (max-width: 1100px) { .pricing-card.popular { transform: none; } }

/* FAQ */
.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.faq-question {
    width: 100%;
    padding: 24px 32px;
    background: white;
    border: none;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: inherit;
    transition: background 0.2s;
}
.faq-question:hover { background: #F8FAFC; }
.faq-question svg { width: 24px; height: 24px; color: var(--primary); flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-content { padding: 0 32px 24px; font-size: 15px; line-height: 1.8; color: var(--gray); }
.faq-answer-content a { color: var(--primary); }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 15px;
    transition: border-color 0.3s;
    font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* Header (alternative to nav) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.header.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); }
.header.nav-hidden { transform: translateY(-100%); }
.header .nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.header .logo { display: flex; align-items: center; text-decoration: none; }
.header .logo img { height: 40px; }
.header .nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.header .nav-links a { color: var(--gray); text-decoration: none; font-weight: 500; font-size: 15px; transition: color 0.3s; }
.header .nav-links a:hover, .header .nav-links a.active { color: var(--primary); }
.header .nav-buttons { display: flex; align-items: center; gap: 12px; }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s ease;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 968px) {
    .header .nav-links, .header .nav-buttons { display: none; }
    .mobile-menu-btn { display: flex; }
    .header .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        padding: 24px;
        gap: 0;
    }
    .header .nav-links.mobile-open a {
        padding: 16px 0;
        border-bottom: 1px solid #e2e8f0;
        font-size: 18px;
    }
}

/* Social Links */
.social-links { display: flex; gap: 16px; margin-top: 20px; }
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }

/* Footer Links (for new structure) */
.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: white; }
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: 14px; line-height: 1.8; }

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); }
.testimonial-content { font-size: 16px; line-height: 1.8; color: var(--gray); margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
}
.testimonial-info h4 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.testimonial-info p { font-size: 14px; color: var(--gray); }
.testimonial-rating { display: flex; gap: 4px; margin-bottom: 16px; }
.testimonial-rating svg { width: 20px; height: 20px; color: #fbbf24; fill: #fbbf24; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-item { text-align: center; }
.stat-number { font-size: 48px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; }
.stat-label { font-size: 16px; color: var(--gray); }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient);
    border-radius: 3px;
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}
.timeline-date { font-size: 14px; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.timeline-title { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.timeline-content { font-size: 15px; color: var(--gray); line-height: 1.7; }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
    border: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5); }
.back-to-top svg { width: 24px; height: 24px; }

/* Animations */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

/* Body menu open state */
body.menu-open { overflow: hidden; }

/* Cookie banner positioning fix */
@media (max-width: 640px) {
    .cookie-banner { padding: 16px !important; }
}

/* ===========================================
   Screenshots Gallery
   =========================================== */
.demo-screenshot {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.screenshots-section {
    padding: 80px 0;
    background: var(--light);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.screenshot-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.screenshot-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.15);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #e2e8f0;
}

.screenshot-card-content {
    padding: 20px;
}

.screenshot-card-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.screenshot-card-content p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}

.screenshot-badge {
    display: inline-block;
    background: var(--gradient-light);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .screenshots-section {
        padding: 60px 0;
    }
}
