﻿:root {
    color-scheme: dark light;
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-xl: 1.75rem;
    --radius-lg: 1.25rem;
    --radius-md: 1rem;
    --radius-sm: 0.75rem;
    --shadow-soft: 0 22px 48px rgba(15, 23, 42, 0.35);
    --shadow-hover: 0 30px 60px rgba(15, 23, 42, 0.45);
    --transition-base: all 0.35s ease;
    --accent: #60a5fa;
    --accent-strong: #2563eb;
}

body {
    font-family: var(--font-family-base);
    background: radial-gradient(120% 120% at 85% 0%, rgba(37, 99, 235, 0.35) 0%, rgba(15, 23, 42, 0.98) 42%, #020617 100%);
    color: #f8fafc;
    min-height: 100vh;
    letter-spacing: -0.01em;
    transition: background 0.4s ease, color 0.4s ease;
    --card-bg: rgba(15, 23, 42, 0.75);
    --card-border: rgba(59, 130, 246, 0.25);
    --text-muted: #94a3b8;
    --badge-bg: rgba(59, 130, 246, 0.18);
    --hero-gradient: linear-gradient(135deg, #0f172a 0%, #111b2f 45%, #1e293b 100%);
    --hero-overlay: rgba(8, 15, 26, 0.65);
}

body[data-theme="light"] {
    background: radial-gradient(120% 120% at 80% 0%, rgba(37, 99, 235, 0.12) 0%, #f8fafc 48%, #e2e8f0 100%);
    color: #1f2937;
    --card-bg: rgba(255, 255, 255, 0.92);
    --card-border: rgba(15, 23, 42, 0.1);
    --text-muted: #64748b;
    --badge-bg: rgba(37, 99, 235, 0.12);
    --hero-gradient: linear-gradient(135deg, #ecf5ff 0%, #dee8ff 55%, #d0e2ff 100%);
    --hero-overlay: rgba(255, 255, 255, 0.35);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(55% 55% at 20% 20%, rgba(59, 130, 246, 0.15), transparent 65%), radial-gradient(60% 60% at 85% 10%, rgba(236, 72, 153, 0.12), transparent 60%);
    opacity: 0.9;
    z-index: -2;
}

a {
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--accent-strong);
}

.hero {
    position: relative;
    background: var(--hero-gradient);
    overflow: hidden;
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    mix-blend-mode: multiply;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero .badge {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.avatar-wrapper {
    position: relative;
    width: clamp(200px, 28vw, 240px);
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 0.4rem;
    background: conic-gradient(from 120deg, rgba(37, 99, 235, 0.2), rgba(236, 72, 153, 0.4), rgba(37, 99, 235, 0.2));
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.55);
    overflow: hidden;
}

body[data-theme="light"] .avatar-wrapper {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.avatar-wrapper::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(30, 58, 138, 0.55));
    z-index: -1;
}

body[data-theme="light"] .avatar-wrapper::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(211, 227, 253, 0.92));
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.theme-toggle .btn-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.theme-toggle .btn-icon:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.6);
}

body[data-theme="light"] .theme-toggle .btn-icon {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(15, 23, 42, 0.12);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    background: var(--badge-bg);
    color: var(--accent);
}

body[data-theme="light"] .section-label {
    color: var(--accent-strong);
}

.section-title {
    font-size: clamp(1.9rem, 2.8vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 1rem;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.78) !important;
}

.card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(96, 165, 250, 0.55);
}

body[data-theme="light"] .card:hover {
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.15);
    border-color: rgba(37, 99, 235, 0.25);
}

.highlight-card {
    height: 100%;
    display: flex;
}

.icon-stack {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1.1rem;
    background: rgba(96, 165, 250, 0.18);
    color: #bfdbfe;
}

body[data-theme="light"] .icon-stack {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.bg-gradient-primary {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.95) 0%, rgba(147, 197, 253, 0.75) 100%);
}

body[data-theme="light"] .bg-gradient-primary {
    background: linear-gradient(145deg, #2563eb 0%, #60a5fa 100%);
}

.bg-gradient-primary .card-body {
    color: #0f172a;
}

body[data-theme="dark"] .bg-gradient-primary .card-body {
    color: #f8fafc;
}

.bg-gradient-primary .card-body .badge {
    line-height: 1;
}

.solution-card .badge {
    font-size: 0.75rem;
}

.solution-card a {
    color: var(--accent);
}

body[data-theme="light"] .solution-card a {
    color: var(--accent-strong);
}

.solution-card a:hover {
    color: var(--accent-strong);
}

.link-card:hover {
    transform: translateY(-8px);
}

.stats-grid .stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.stat-card .display-6 {
    font-size: 2.4rem;
}

.testimonial {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.6);
}

body[data-theme="light"] .testimonial {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.08);
}

.testimonial blockquote {
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.btn-icon:hover {
    transform: translateY(-3px);
}

footer .btn-icon {
    border: 1px solid rgba(148, 163, 184, 0.32);
    color: inherit;
}

footer .btn-icon:hover {
    background: rgba(96, 165, 250, 0.15);
    color: var(--accent-strong);
}

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    box-shadow: 0 24px 48px rgba(18, 140, 78, 0.45);
    transition: var(--transition-base);
    z-index: 1050;
}

.whatsapp-float:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 30px 60px rgba(18, 140, 78, 0.55);
}

@media (max-width: 991.98px) {
    .hero {
        border-bottom-left-radius: var(--radius-lg);
        border-bottom-right-radius: var(--radius-lg);
    }

    .avatar-wrapper {
        width: clamp(180px, 36vw, 220px);
    }

    .theme-toggle {
        padding: 1.25rem 1.25rem 0 0;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 4.5rem;
    }

    .hero {
        text-align: center;
    }

    .hero .badge {
        margin: 0 auto;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }

    .link-card {
        border-radius: var(--radius-md);
    }

    .whatsapp-float {
        right: 1.25rem;
        bottom: 1.25rem;
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
}

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