:root {
    --bg: #ffffff;
    --surface: #f8f9fa;
    --surface-alt: #eef1f6;
    --text: #212529;
    --text-secondary: #495057;
    --muted: #6c757d;
    --accent: #22458e;
    --accent-hover: #0e2760;
    --accent-light: #e6eef8;
    --blue-bright: #2469ff;
    --yellow: #ffdf00;
    --yellow-hover: #e6c900;
    --yellow-light: #fff8d6;
    --red: #d60014;
    --red-hover: #b30014;
    --red-light: #fde8ea;
    --green: #11be39;
    --green-light: #e6f9ec;
    --border: #dee2e6;
    --border-light: #eef1f6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
    --radius: 0;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

/* ── HEADER ── */
.site-header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 3px solid var(--accent);
    z-index: 100;
    transition: box-shadow .3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand-logo {
    height: 2.4rem;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

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

.site-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    padding: .55rem 1rem;
    transition: color .2s ease, background .2s ease;
}

.site-nav a:not(.btn):hover {
    color: var(--accent);
    background: var(--accent-light);
}

.btn-nav {
    background: var(--accent) !important;
    color: #fff !important;
    padding: .55rem 1.25rem !important;
    font-weight: 700 !important;
}

.btn-nav:hover {
    background: var(--accent-hover) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--accent);
    transition: transform .3s ease, opacity .3s ease;
}

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

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

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

/* ── HERO ── */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    text-align: center;
    overflow: hidden;
    background: var(--accent);
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .18;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(34, 69, 142, 0.94) 0%, rgba(14, 39, 96, 0.97) 100%);
}

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

.hero-badge {
    display: inline-block;
    background: var(--yellow);
    color: var(--accent);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: .4rem 1.2rem;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-slogan {
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--yellow);
    margin-bottom: .5rem;
}

.hero-sub {
    font-size: clamp(.95rem, 1.5vw, 1.05rem);
    color: rgba(255, 255, 255, .8);
    max-width: 620px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

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

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-size: .9rem;
    font-family: var(--font);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
    white-space: nowrap;
}

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

.btn-lg {
    padding: .85rem 1.85rem;
    font-size: .95rem;
}

.btn-full { width: 100%; }

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(34, 69, 142, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 69, 142, 0.35);
}

.btn-yellow {
    background: var(--yellow);
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(255, 209, 0, 0.3);
}

.btn-yellow:hover {
    background: var(--yellow-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 209, 0, 0.4);
}

.btn-red {
    background: var(--red);
    color: #fff;
    box-shadow: 0 2px 8px rgba(209, 0, 25, 0.3);
}

.btn-red:hover {
    background: var(--red-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(209, 0, 25, 0.35);
}

.btn-wa {
    background: #25d366;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
    background: #1fb85a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
}

/* ── STATS BAR ── */
.stats-bar {
    background: var(--yellow);
    padding: 1.75rem 0;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat-item { color: var(--accent); }

.stat-number {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    display: inline;
}

.stat-suffix {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 800;
    color: rgba(0,61,165,.5);
}

.stat-label {
    display: block;
    font-size: .78rem;
    color: rgba(0,61,165,.65);
    margin-top: .15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── SECTIONS ── */
.section { padding: 4.5rem 0; }

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

.section-dark {
    background: var(--surface-alt);
    border-top: 3px solid var(--accent);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-tag {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: .4rem 1rem;
    margin-bottom: .75rem;
}

.tag-yellow {
    background: var(--yellow);
    color: var(--accent);
}

.tag-red {
    background: var(--red);
    color: #fff;
}

.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.15rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: .5rem;
    color: var(--text);
}

.section-sub {
    color: var(--muted);
    font-size: clamp(.92rem, 1.5vw, 1rem);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ── SERVICES GRID ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.service-card {
    background: #fff;
    border: 2px solid var(--border);
    padding: 2rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

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

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

.service-icon.icon-yellow { background: var(--yellow); color: var(--accent); }
.service-icon.icon-red { background: var(--red); color: #fff; }

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

.service-card p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.65;
}

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

.step-card {
    background: #fff;
    border: 2px solid var(--border);
    padding: 2rem 1.75rem;
    text-align: center;
    flex: 1;
    max-width: 300px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-card:nth-child(1) .step-number { background: var(--red); }
.step-card:nth-child(3) .step-number { background: var(--yellow); color: var(--accent); }
.step-card:nth-child(5) .step-number { background: var(--accent); }

.step-card h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: .4rem;
}

.step-card p {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.6;
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 3.5rem;
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 900;
    flex-shrink: 0;
}

/* ── CTA / CONSULTA ── */
.section-cta { padding: 4.5rem 0; }

.cta-card {
    background: var(--accent);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    box-shadow: var(--shadow-xl);
}

.cta-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-content {
    padding: 2.5rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-content h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 900;
    margin-bottom: .5rem;
}

.cta-content > p {
    color: rgba(255,255,255,.8);
    font-size: .92rem;
    margin-bottom: 1.25rem;
    line-height: 1.65;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.form-group { position: relative; }

.form-input, .form-select {
    width: 100%;
    padding: .8rem 1rem;
    border: 2px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: .9rem;
    font-family: var(--font);
    font-weight: 600;
    transition: border-color .2s ease, background .2s ease;
    outline: none;
    border-radius: var(--radius);
}

.form-input::placeholder { color: rgba(255,255,255,.5); }

.form-input:focus, .form-select:focus {
    border-color: var(--yellow);
    background: rgba(255,255,255,.15);
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,.7)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-select option {
    background: var(--accent);
    color: #fff;
}

.cta-form .btn-yellow {
    font-weight: 800;
    font-size: .95rem;
    padding: .85rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── INFO SECTION ── */
.section-info { padding: 4.5rem 0; }

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

.info-card {
    background: #fff;
    border: 2px solid var(--border);
    padding: 2rem;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.info-icon.icon-yellow { background: var(--yellow); color: var(--accent); }
.info-icon.icon-red { background: var(--red); color: #fff; }

.info-card h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: .4rem;
}

.info-card p {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.6;
}

/* ── CONTACT ── */
.contact-actions {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── FOOTER ── */
.site-footer {
    border-top: 3px solid var(--accent);
    padding: 1.75rem 0;
    background: var(--accent);
    color: #fff;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
}

.footer-logo {
    height: 1.8rem;
    width: auto;
    filter: brightness(0) invert(1);
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    transition: color .2s ease;
}

.footer-links a:hover { color: var(--yellow); }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 90;
    transition: transform .2s ease, box-shadow .2s ease;
}

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

/* ── ANIMATIONS ── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s cubic-bezier(.22, 1, .36, 1), transform .5s cubic-bezier(.22, 1, .36, 1);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in:nth-child(2) { transition-delay: .06s; }
.fade-in:nth-child(3) { transition-delay: .12s; }
.fade-in:nth-child(4) { transition-delay: .18s; }

/* ── RESPONSIVE TABLET ── */
@media (max-width: 968px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .cta-card {
        grid-template-columns: 1fr;
    }

    .cta-image {
        max-height: 220px;
    }

    .steps-grid {
        flex-wrap: wrap;
    }

    .step-connector {
        display: none;
    }

    .step-card {
        max-width: none;
        flex: none;
        width: calc(50% - .625rem);
    }

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

/* ── RESPONSIVE MOBILE ── */
@media (max-width: 640px) {
    .hero {
        padding: 4.5rem 0 3rem;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .75rem;
    }

    .stat-item { text-align: center; }

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

    .step-card {
        width: 100%;
    }

    .cta-card {
        min-height: auto;
    }

    .cta-content {
        padding: 1.75rem 1.25rem;
    }

    .section { padding: 3rem 0; }
    .section-header { margin-bottom: 1.75rem; }

    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-actions .btn { width: 100%; }

    .site-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        z-index: 100;
    }

    .site-nav.is-open { display: flex; }

    .site-nav a {
        font-size: 1.15rem;
        padding: .75rem 1.5rem;
    }

    .btn-nav {
        margin-top: .5rem;
    }

    .nav-toggle { display: flex; }

    .footer-links {
        flex-direction: column;
        gap: .6rem;
    }

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