@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

:root {
    --radius: 1.5rem;
    --background: #ffffff;
    --foreground: #1d2433;
    --card: rgba(255,255,255,.70);
    --primary: #3154d4;
    --primary-deep: #1d2f90;
    --secondary: rgba(239,242,248,.65);
    --muted-foreground: #687083;
    --border: rgba(222,226,236,.82);
    --steel: #28303e;
    --whatsapp: #25a966;
    --shadow-sm: 0 8px 24px rgba(34,42,58,.06);
    --shadow-lg: 0 24px 70px rgba(34,42,58,.12);
    --container: 1200px;
}

* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 85% 4%, rgba(49,84,212,.08), transparent 34rem),
        radial-gradient(circle at 8% 18%, rgba(49,84,212,.045), transparent 28rem),
        var(--background);
    color: var(--foreground);
    font-family: Inter, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
p { line-height: 1.7; }
.container-page { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
.bg-grid {
    background-image:
        linear-gradient(to right, rgba(49,84,212,.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(49,84,212,.07) 1px, transparent 1px);
    background-size: clamp(24px, 5vw, 48px) clamp(24px, 5vw, 48px);
}
.text-gradient-primary { background: linear-gradient(135deg, var(--primary), var(--primary-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fluid-py { padding-block: clamp(3rem, 10vw, 8rem); }
.fluid-gap { gap: clamp(1rem, 4vw, 3rem); }
.fluid-h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1.1; }
.fluid-h2 { font-size: clamp(1.75rem, 5vw, 3rem); line-height: 1.2; }
.section-label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .25em; color: var(--primary); }
.touch-target { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    padding-block: 1.25rem;
    transition: padding .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
    padding-block: .5rem;
    background: rgba(255,255,255,.72);
    border-bottom: 1px solid rgba(255,255,255,.35);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand img { width: 36px; height: 36px; object-fit: contain; transition: transform .25s ease; }
.brand:hover img { transform: scale(1.08); }
.brand span { font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.125rem; font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) { position: relative; color: var(--muted-foreground); font-size: .875rem; font-weight: 500; transition: color .2s ease; }
.site-nav a:not(.btn):hover, .site-nav a.is-active { color: var(--primary); }
.site-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.35rem; height: 2px; background: var(--primary); }
.menu-button { display: none; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.45); width: 44px; height: 44px; border-radius: 999px; backdrop-filter: blur(12px); }
.menu-button span { display: block; width: 18px; height: 2px; background: var(--foreground); margin: 4px auto; }

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border: 0;
    border-radius: 999px;
    padding: 0 1.6rem;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.btn-primary { color: #fff; background: var(--primary); box-shadow: 0 16px 34px rgba(49,84,212,.22); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-3px); }
.btn-secondary { color: var(--foreground); background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: rgba(255,255,255,.82); transform: translateY(-2px); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; animation: whatsappPulse 2.4s ease-in-out infinite; }

.hero { position: relative; overflow: hidden; padding: clamp(7.5rem, 15vw, 12rem) 0 clamp(3rem, 8vw, 8rem); }
.hero .bg-grid { position: absolute; inset: 0; opacity: .30; }
.hero-content { position: relative; max-width: 900px; margin-inline: auto; text-align: center; }
.hero-content p.lead { margin: 1.7rem auto 0; max-width: 760px; color: var(--muted-foreground); font-size: clamp(1rem, 1.8vw, 1.125rem); }
.hero-actions { margin-top: 2.4rem; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1rem; }
.hero-note { margin-top: 1.5rem; color: rgba(104,112,131,.72); font-size: .875rem; }
.proof-row { margin-top: clamp(3rem, 7vw, 4rem); display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 4vw, 3rem); color: rgba(29,36,51,.62); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.proof-row span { display: inline-flex; align-items: center; gap: .55rem; }
.proof-row span::before { content: ""; width: .4rem; height: .4rem; border-radius: 999px; background: var(--primary); }

.section-soft { background: rgba(244,246,250,.58); border-block: 1px solid rgba(255,255,255,.42); backdrop-filter: blur(12px); }
.section-dark { background: var(--steel); color: #fff; position: relative; overflow: hidden; }
.section-dark::after { content: ""; position: absolute; top: -8rem; right: -8rem; width: 18rem; height: 18rem; border-radius: 999px; background: rgba(49,84,212,.22); filter: blur(56px); }
.section-dark .section-label { color: #6d8cff; }
.section-dark p { color: rgba(255,255,255,.72); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: center; gap: clamp(2rem, 6vw, 4rem); }
.split-start { align-items: start; }
.center { text-align: center; }
.max-3xl { max-width: 760px; margin-inline: auto; }
.lead { color: var(--muted-foreground); font-size: clamp(1rem, 1.8vw, 1.125rem); }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; }

.grid { display: grid; gap: clamp(1rem, 3vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.card {
    border: 1px solid rgba(255,255,255,.55);
    background: rgba(255,255,255,.62);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(49,84,212,.25); box-shadow: var(--shadow-lg); background: rgba(255,255,255,.82); }
.icon-box { width: 3rem; height: 3rem; border-radius: 1rem; display: grid; place-items: center; background: rgba(49,84,212,.10); color: var(--primary); font-weight: 900; margin-bottom: 1.25rem; }
.problem-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
.benefit { display: flex; gap: 1rem; }
.check { color: var(--primary); font-weight: 900; font-size: 1.25rem; line-height: 1.1; }
.step .number { font-family: "Space Grotesk"; color: rgba(49,84,212,.20); font-size: 2rem; font-weight: 700; transition: color .2s ease; }
.step:hover .number { color: rgba(49,84,212,.45); }
.about-panel { position: relative; }
.about-panel::before { content: ""; position: absolute; inset: -1rem; background: rgba(49,84,212,.06); filter: blur(28px); border-radius: 2rem; }
.about-panel > .card { position: relative; }
.avatar { width: 3rem; height: 3rem; border-radius: 999px; display: grid; place-items: center; background: rgba(49,84,212,.10); color: var(--primary); font-weight: 800; }
.person { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--border); background: rgba(255,255,255,.55); border-radius: 1rem; }
.metric { background: #fff; border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; text-align: center; box-shadow: var(--shadow-sm); }
.metric strong { display: block; color: var(--primary); font-family: "Space Grotesk"; font-size: 2rem; }
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.pill { padding: .7rem 1.25rem; border-radius: 999px; background: #fff; border: 1px solid rgba(255,255,255,.8); box-shadow: var(--shadow-sm); font-size: .875rem; font-weight: 600; }
.portfolio-tile { overflow: hidden; padding: 0; }
.portfolio-media { aspect-ratio: 16/10; display: grid; place-items: center; background: linear-gradient(135deg, rgba(49,84,212,.16), rgba(40,48,62,.92)); color: rgba(255,255,255,.58); font-family: "Space Grotesk"; font-weight: 700; transition: transform .5s ease; }
.portfolio-tile:hover .portfolio-media { transform: scale(1.04); }
.portfolio-tile figcaption { padding: 1.5rem; }

.lead-form { border: 1px solid rgba(255,255,255,.58); background: rgba(255,255,255,.72); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.5rem); box-shadow: var(--shadow-lg); backdrop-filter: blur(14px); }
.field { margin-bottom: 1.25rem; }
.field-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field label { display: block; margin: 0 0 .45rem .25rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: rgba(29,36,51,.74); }
.field input, .field textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dce1ec;
    border-radius: .85rem;
    background: rgba(255,255,255,.62);
    padding: .8rem 1rem;
    color: var(--foreground);
    font: inherit;
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(49,84,212,.11); background: #fff; }
.field .is-invalid { border-color: #d43145; }
.field-error { min-height: 18px; margin-top: .35rem; color: #d43145; font-size: .78rem; font-weight: 700; }
.form-status { margin: 1rem 0 0; color: var(--muted-foreground); font-size: .9rem; }

.faq-list { display: grid; gap: 1rem; }
.faq-item { border: 1px solid var(--border); background: rgba(255,255,255,.45); border-radius: 1rem; padding: 0 1.5rem; box-shadow: var(--shadow-sm); }
.faq-item.is-open { background: #fff; }
.faq-question { width: 100%; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 0; background: transparent; cursor: pointer; font: inherit; font-weight: 800; text-align: left; }
.faq-question::after { content: "+"; width: 2.5rem; height: 2.5rem; flex: 0 0 auto; border-radius: 999px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--primary); transition: transform .25s ease; }
.faq-item.is-open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; color: var(--muted-foreground); transition: max-height .28s ease; }
.faq-answer p { margin: 0 0 1.5rem; }

.contact-card { display: flex; gap: 1rem; align-items: center; padding: 1.5rem; border-radius: 1rem; background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.85); box-shadow: var(--shadow-sm); transition: background .2s ease, border-color .2s ease; }
.contact-card:hover { background: #fff; border-color: rgba(49,84,212,.28); }
.contact-icon { width: 3rem; height: 3rem; border-radius: .9rem; display: grid; place-items: center; background: rgba(49,84,212,.10); color: var(--primary); font-weight: 900; }
.map-frame { width: 100%; height: 450px; border: 0; filter: grayscale(1); opacity: .82; display: block; }

.footer { margin-top: 6rem; background: rgba(40,48,62,.97); color: rgba(255,255,255,.8); border-top: 1px solid rgba(255,255,255,.12); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 3rem; padding-block: 4rem; }
.footer-brand { display: flex; align-items: center; gap: .75rem; color: #fff; }
.footer-brand img { width: 40px; height: 40px; border-radius: .5rem; background: #fff; padding: .25rem; }
.footer h4 { color: rgba(255,255,255,.92); font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; }
.footer p, .footer a { color: rgba(255,255,255,.62); font-size: .9rem; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); }
.footer-bottom .container-page { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.5rem; font-size: .75rem; color: rgba(255,255,255,.42); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.reveal, .stagger-card { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.is-loaded .hero .reveal, .reveal.is-visible, .stagger-card.is-visible { opacity: 1; transform: translateY(0); }

@keyframes whatsappPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(37,169,102,.23); }
    50% { box-shadow: 0 0 0 10px rgba(37,169,102,0); }
}

@media (max-width: 960px) {
    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
        padding: 1.5rem clamp(1.25rem, 5vw, 2.5rem);
        background: rgba(255,255,255,.92);
        border-top: 1px solid rgba(255,255,255,.42);
        box-shadow: var(--shadow-lg);
        backdrop-filter: blur(22px);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a:not(.btn) { min-height: 44px; display: flex; align-items: center; padding-inline: 1rem; border-radius: .85rem; color: var(--foreground); font-size: 1rem; }
    .menu-button { display: block; }
    .split, .grid-2, .grid-3, .grid-5, .footer-grid { grid-template-columns: 1fr; }
    .hero-content { text-align: left; }
    .hero-actions, .proof-row { justify-content: flex-start; }
    .btn { width: 100%; }
    .footer-bottom .container-page { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
    .reveal, .stagger-card { opacity: 1; transform: none; }
}
