/* ============================================
   VALIPAGO - SITIO FINtech
   valipago.com - One-page
   ============================================ */

:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --accent: #f59e0b;

    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;

    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-light: #94a3b8;

    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    --gradient-soft: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);

    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3rem;

    --transition: 0.2s ease;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--primary);
    color: white;
    font-weight: 600;
    z-index: 10000;
    border-radius: var(--radius);
    transition: top var(--transition);
}
.skip-link:focus {
    top: var(--space-md);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { color: var(--text-gray); margin-bottom: var(--space-md); }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--text-base);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-lg { padding: 1rem 2rem; font-size: var(--text-lg); }
.btn-block { width: 100%; }

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
    gap: var(--space-xl);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: var(--text-xl);
    color: var(--text-dark);
    flex-shrink: 0;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius);
    font-weight: 700;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-list a {
    color: var(--text-gray);
    font-weight: 500;
}
.nav-list a:hover {
    color: var(--primary);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: var(--space-lg);
}

.btn-text {
    background: transparent;
    color: var(--text-gray);
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-text:hover {
    color: var(--primary);
    transform: none;
    box-shadow: none;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: var(--text-sm);
}

.navbar-toggler {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.toggler-icon {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 1px;
}

/* Hero Slider */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(16, 185, 129, 0.1), transparent),
        radial-gradient(ellipse 40% 30% at 0% 80%, rgba(139, 92, 246, 0.08), transparent);
    pointer-events: none;
}

.hero-slider-track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.hero-slide.hero-slide-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero-slide .container {
    width: 100%;
}

.hero .hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-cta .btn-outline {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}
.hero-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.hero-graphic {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graphic-box {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.graphic-box-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
}

.graphic-box-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    animation-delay: 2s;
    animation-direction: reverse;
}

.graphic-box-3 {
    width: 200px;
    height: 200px;
    background: rgba(139, 92, 246, 0.6);
    animation-delay: 1s;
}

.hero-graphic-slide2 .graphic-box-1 { background: var(--primary); }
.hero-graphic-slide2 .graphic-box-2 { background: var(--secondary); }
.hero-graphic-slide2 .graphic-box-3 { background: #8b5cf6; }

.hero-graphic-slide3 .graphic-box-1 { background: var(--secondary); }
.hero-graphic-slide3 .graphic-box-2 { background: var(--primary); }

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -30px); }
}

/* Hero Slider Nav */
.hero-slider-nav {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.hero-slider-prev,
.hero-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-prev::before,
.hero-slider-next::before {
    content: '';
    width: 12px;
    height: 12px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

.hero-slider-next::before {
    transform: rotate(135deg);
}

.hero-slider-prev {
    left: var(--space-lg);
}

.hero-slider-next {
    right: var(--space-lg);
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Hero Slider Dots */
.hero-slider-dots {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: var(--space-sm);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition);
}

.hero-dot:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.3);
}

.hero-dot.hero-dot-active {
    background: white;
    border-color: white;
}

/* Sections */
section {
    padding: var(--space-3xl) 0;
}

.section-light { background: var(--bg-light); }
.section-white { background: var(--bg-white); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-gray);
}

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--bg-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: var(--text-sm);
    margin: 0;
}

/* Flow diagram */
.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    background: var(--bg-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}

.flow-step {
    flex: 1;
    min-width: 140px;
    text-align: center;
}

.flow-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.flow-label {
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-xs);
}

.flow-desc {
    font-size: var(--text-sm);
    color: var(--text-gray);
    margin: 0;
}

.flow-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.feature-item {
    padding: var(--space-xl);
    border-left: 4px solid var(--primary);
    background: var(--bg-white);
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: all var(--transition);
}

.feature-item:hover {
    border-left-color: var(--secondary);
    transform: translateX(8px);
}

.feature-number {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.feature-item h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.feature-item p {
    font-size: var(--text-sm);
    margin: 0;
}

/* Code block */
.code-block {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.code-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-method {
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: var(--text-sm);
}

.code-url {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: var(--text-sm);
}

.code-block pre {
    padding: var(--space-lg);
    overflow-x: auto;
    margin: 0;
}

.code-block code {
    color: #e2e8f0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* Pricing */
.pricing-category {
    font-size: var(--text-xl);
    font-weight: 600;
    margin: var(--space-xl) 0 var(--space-md);
    color: var(--text-dark);
}

.pricing-annual-note {
    font-size: var(--text-sm);
    color: var(--text-gray);
    margin: 0 0 var(--space-md);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.pricing-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pricing-card {
    position: relative;
    background: var(--bg-white);
    padding: var(--space-lg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pricing-card.pricing-featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
}

.pricing-badge {
    position: absolute;
    top: -8px;
    left: var(--space-md);
    background: var(--gradient-primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    font-size: 0.65rem;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-xs);
}

.pricing-header {
    margin-bottom: var(--space-md);
}

.pricing-amount {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary);
}

.pricing-period {
    font-size: var(--text-sm);
    color: var(--text-gray);
    font-weight: 400;
}

.pricing-alt {
    font-size: var(--text-xs);
    color: var(--text-gray);
    margin-top: var(--space-xs);
    margin-bottom: 0;
}

.pricing-features {
    list-style: none;
    margin: var(--space-md) 0;
}

.pricing-features li {
    padding: var(--space-xs) 0;
    padding-left: 1.25rem;
    color: var(--text-gray);
    font-size: var(--text-xs);
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.7rem;
}

.pricing-card .btn {
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
    margin-top: var(--space-sm);
}

/* Dev section */
.dev-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.dev-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.dev-feature {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-lg);
    color: var(--text-dark);
}

.dev-icon {
    color: var(--primary);
    font-weight: 700;
}

.dev-visual {
    background: var(--bg-light);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.code-snippet {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: var(--text-sm);
    line-height: 1.8;
    color: #334155;
}

.code-comment { color: #64748b; }
.code-keyword { color: #7c3aed; }
.code-function { color: var(--primary); }
.code-string { color: var(--secondary); }

/* Testimonials */
.testimonials {
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--bg-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.testimonial-quote {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.testimonial-text {
    font-size: var(--text-base);
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    font-style: italic;
}

.testimonial-text::before,
.testimonial-text::after {
    content: none;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.testimonial-name {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    font-style: normal;
    font-size: var(--text-base);
}

.testimonial-role {
    font-size: var(--text-sm);
    color: var(--text-gray);
}

/* Legal notice */
.legal-notice {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
}

.legal-notice h3 {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.legal-notice p {
    color: var(--text-dark);
    margin: 0;
}

/* CTA final */
.cta-final {
    padding: var(--space-3xl) 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

body.modal-open {
    overflow: hidden;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--space-2xl) 0;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-lg);
}

.footer-brand-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

@media (max-width: 576px) {
    .footer-top {
        flex-direction: column;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: var(--text-xl);
}

.footer-brand .brand-icon {
    background: var(--gradient-primary);
}

.footer-brand .brand-text {
    color: white;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}
.footer-links a:hover {
    color: white;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    margin: 0;
}

/* ============================================
   MODALS
   ============================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}


.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.is-open .modal-dialog {
    transform: scale(1);
}

.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    flex-shrink: 0;
}

.modal-header-terms {
    background: var(--gradient-primary);
    color: white;
}

.modal-header-privacy {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
}

.modal-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin: 0;
    color: inherit;
}

.modal-header .modal-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.9;
    transition: opacity var(--transition);
}

.modal-header .modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: var(--space-xl);
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.modal-article h3 {
    font-size: var(--text-lg);
    color: var(--primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.modal-article h3:first-child {
    margin-top: 0;
}

.modal-article h4 {
    font-size: var(--text-base);
    color: var(--secondary-dark);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-xs);
}

.modal-article p {
    font-size: var(--text-sm);
    color: var(--text-gray);
    line-height: 1.8;
}

.modal-article ul {
    margin: var(--space-sm) 0 var(--space-lg) var(--space-xl);
    color: var(--text-gray);
}

.modal-article li {
    margin-bottom: var(--space-xs);
    line-height: 1.7;
}

.modal-update {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    font-size: var(--text-xs);
    color: var(--text-light);
}

.modal-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Responsive */
@media (max-width: 992px) {
    .hero .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
        height: 280px;
    }

    .hero-slider-prev {
        left: var(--space-sm);
    }

    .hero-slider-next {
        right: var(--space-sm);
    }

    .hero-slider-prev,
    .hero-slider-next {
        width: 40px;
        height: 40px;
    }

    .dev-grid {
        grid-template-columns: 1fr;
    }

    .dev-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .navbar-toggler {
        display: flex;
    }

    .navbar-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border);
        padding: var(--space-md);
        display: none;
    }

    .navbar-nav.is-open {
        display: block;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-list {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .navbar-actions {
        margin-left: 0;
        margin-top: var(--space-md);
        flex-direction: column;
        width: 100%;
    }

    .navbar-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .flow-diagram {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: var(--text-2xl);
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .pricing-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .pricing-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
