/* ============================================
   CONSULTA SOAT - Professional Stylesheet
   ============================================ */

:root {
    --bg: #ffffff;
    --bg-alt: #f0fdf4;
    --surface: #f8fafc;
    --surface-2: #f1f5f9;
    --text: #0f172a;
    --text-secondary: #475569;
    --muted: #64748b;
    --accent: #7B01F7;
    --accent-light: #9B3AFF;
    --accent-dark: #5A00C0;
    --accent-50: #f5eeff;
    --accent-100: #e8d5ff;
    --accent-600: #7B01F7;
    --wa: #25d366;
    --wa-dark: #128c7e;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.text-accent { color: var(--accent); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all .3s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .875rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    z-index: 10;
}

.brand-icon { display: flex; flex-shrink: 0; }

.brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width .25s ease;
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

/* Menu toggle - mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .6rem 1.35rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: .9rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:active { transform: scale(.97); }

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 1px 3px rgba(123,1,247,.3);
}

.btn-primary:hover {
    background: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(123,1,247,.3);
    transform: translateY(-1px);
}

.btn-ghost {
    border-color: var(--border);
    color: var(--text);
    background: rgba(255,255,255,.8);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-50);
}

.btn-nav {
    background: var(--accent);
    color: #fff;
    padding: .5rem 1.25rem;
    font-size: .85rem;
    border-radius: var(--radius-full);
}

.btn-nav:hover {
    background: var(--accent-dark);
    box-shadow: 0 2px 8px rgba(123,1,247,.25);
    transform: translateY(-1px);
}

.btn-white {
    background: #fff;
    color: var(--accent-dark);
    font-weight: 700;
}

.btn-white:hover {
    background: var(--accent-50);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-lg {
    padding: .8rem 1.75rem;
    font-size: 1rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: 8rem 0 5rem;
    overflow: hidden;
    background: linear-gradient(135deg, #f5eeff 0%, #ffffff 50%, #f5eeff 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .5;
}

.hero-shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(123, 1, 247, .12);
    top: -150px;
    right: -100px;
}

.hero-shape-2 {
    width: 350px;
    height: 350px;
    background: rgba(123, 1, 247, .08);
    bottom: -100px;
    left: -50px;
}

.hero-shape-3 {
    width: 200px;
    height: 200px;
    background: rgba(123, 1, 247, .1);
    top: 50%;
    left: 30%;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .85rem;
    background: var(--accent-100);
    color: var(--accent-dark);
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.hero-sub {
    font-size: clamp(.95rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--accent);
    font-size: .82rem;
    font-weight: 600;
}

/* Hero visual card */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card-stack {
    perspective: 1000px;
}

.hero-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    width: 300px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    animation: float 6s ease-in-out infinite;
}

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

.hero-card-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.hero-card-header span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.hero-card-body {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.hero-card-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.field-label {
    font-size: .8rem;
    color: var(--muted);
    font-weight: 500;
}

.field-value {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
}

.hero-card-status {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem .85rem;
    background: var(--accent-50);
    border-radius: var(--radius-sm);
    font-size: .78rem;
    font-weight: 600;
    color: var(--accent-dark);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: .3rem .75rem;
    background: var(--accent-100);
    color: var(--accent-dark);
    border-radius: var(--radius-full);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .75rem;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: .75rem;
}

.section-sub {
    color: var(--text-secondary);
    font-size: clamp(.9rem, 1.3vw, 1.05rem);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
}

/* ============================================
   STEPS
   ============================================ */
.section-steps {
    background: var(--surface);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 280px;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: var(--accent-50);
    margin: 0 auto 1rem;
}

.step-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .5rem;
    letter-spacing: -0.01em;
}

.step-desc {
    font-size: .88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 3.5rem;
    flex-shrink: 0;
}

.steps-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ============================================
   SERVICES
   ============================================ */
.section-services {
    background: var(--bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transition: transform .3s ease;
}

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

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--accent-50);
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .6rem;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    font-size: .9rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--accent);
    font-size: .88rem;
    font-weight: 600;
    transition: gap .2s;
}

.service-link:hover { gap: .6rem; }

/* ============================================
   WHY SECTION
   ============================================ */
.section-why {
    background: var(--surface);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.why-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all .3s ease;
}

.why-card:hover {
    border-color: var(--accent-100);
    box-shadow: var(--shadow-md);
}

.why-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent-50);
    color: var(--accent);
}

.why-content h4 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .3rem;
    letter-spacing: -0.01em;
}

.why-content p {
    font-size: .82rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ============================================
   BANNER / CTA
   ============================================ */
.section-banner {
    padding: 4rem 0;
    background: var(--bg);
}

.banner-card {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 3.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}

.banner-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}

.banner-content { position: relative; z-index: 1; }

.banner-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: .75rem;
}

.banner-sub {
    color: rgba(255,255,255,.85);
    font-size: clamp(.9rem, 1.3vw, 1.05rem);
    max-width: 500px;
    margin: 0 auto 1.75rem;
    line-height: 1.6;
}

.banner-actions {
    display: flex;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
}

/* ============================================
   CONTACT
   ============================================ */
.section-contact {
    background: var(--surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 640px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all .3s ease;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-wa:hover { border-color: var(--wa); }
.contact-email:hover { border-color: var(--accent); }

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.contact-wa .contact-icon {
    background: rgba(37,211,102,.1);
    color: var(--wa);
}

.contact-email .contact-icon {
    background: var(--accent-50);
    color: var(--accent);
}

.contact-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .3rem;
}

.contact-card p {
    font-size: .88rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-cta {
    font-size: .82rem;
    font-weight: 600;
    color: var(--accent);
}

.contact-wa .contact-cta { color: var(--wa); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--text);
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.footer-brand-text {
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
}

.footer-copy {
    color: rgba(255,255,255,.5);
    font-size: .8rem;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--wa);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,.4);
    z-index: 999;
    transition: all .3s ease;
    animation: pulse-wa 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37,211,102,.5);
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.4); }
    70% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================
   ANIMATIONS
   ============================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate]:nth-child(2) { transition-delay: .1s; }
[data-animate]:nth-child(3) { transition-delay: .2s; }
[data-animate]:nth-child(4) { transition-delay: .3s; }
[data-animate]:nth-child(5) { transition-delay: .4s; }
[data-animate]:nth-child(6) { transition-delay: .5s; }

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content { order: 1; }
    .hero-visual { order: 0; margin-bottom: 1rem; }

    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .section { padding: 3.5rem 0; }

    .site-nav {
        position: fixed;
        inset: 0;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s ease;
    }

    .site-nav.is-open {
        opacity: 1;
        pointer-events: all;
    }

    .site-nav .nav-link {
        font-size: 1.25rem;
    }

    .site-nav .btn-nav {
        font-size: 1rem;
        padding: .75rem 2rem;
    }

    .menu-toggle { display: flex; }

    .hero { padding: 7rem 0 3.5rem; }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }

    .hero-card {
        width: 260px;
        padding: 1.5rem;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .step-connector {
        padding-top: 0;
        transform: rotate(90deg);
        padding: .5rem 0;
    }

    .step-card { max-width: 320px; }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: .75rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .banner-card {
        padding: 2.5rem 1.5rem;
        border-radius: var(--radius-lg);
    }

    .footer-inner {
        flex-direction: column;
        gap: .75rem;
        text-align: center;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-float svg { width: 24px; height: 24px; }

    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 300px; }

    .steps-cta .btn { width: 100%; max-width: 300px; }
}

@media (max-width: 400px) {
    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: .5rem;
    }

    .hero-card { width: 240px; }
}
