:root {
    --bg: #f7f9fc;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --line: #dbe3ee;
    --accent: #0c6cf2;
    --accent-strong: #0a56be;
    --success: #0a8f57;
    --error: #b42318;
    --shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius: 12px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --container: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #f9fbff 0%, #f4f7fb 100%);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3 {
    margin: 0 0 var(--space-2);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(1.9rem, 4vw, 3.1rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 var(--space-2);
    color: var(--muted);
}

ul {
    margin: 0;
    padding-left: 18px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
    z-index: 1000;
    background: #fff;
    border: 2px solid var(--accent);
    padding: 8px 10px;
    border-radius: 8px;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: var(--space-6) 0;
}

.section-soft {
    background: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(12, 108, 242, 0.08);
    border-bottom: 1px solid rgba(12, 108, 242, 0.08);
}

.section-head {
    max-width: 740px;
    margin-bottom: var(--space-4);
}

.eyebrow {
    margin: 0 0 var(--space-1);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--accent);
    font-weight: 700;
}

.lead {
    font-size: 1.08rem;
    max-width: 70ch;
}

.center {
    text-align: center;
    margin-top: var(--space-3);
}

.grid {
    display: grid;
    gap: var(--space-3);
}

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

.grid-2 > * {
    grid-column: span 6;
}

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

.grid-3 > * {
    grid-column: span 4;
}

.grid-4 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.grid-4 > * {
    grid-column: span 3;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-3);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(12, 108, 242, 0.26);
}

.card-link {
    margin-top: var(--space-2);
    display: inline-flex;
    color: var(--accent);
    font-weight: 700;
}

.btn {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.btn:focus,
a:focus,
input:focus,
select:focus,
textarea:focus,
summary:focus {
    outline: 3px solid rgba(12, 108, 242, 0.35);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

.btn-secondary {
    border-color: #9ab4de;
    color: #0d3d82;
    background: transparent;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(140deg, #0e3f86 0%, #0c6cf2 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    font-weight: 800;
}

.brand-text {
    font-weight: 800;
    letter-spacing: -0.01em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav a {
    font-weight: 600;
    color: #1e293b;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.header-cta {
    white-space: nowrap;
}

.menu-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
}

.menu-toggle span {
    height: 2px;
    width: 100%;
    background: #1e293b;
    border-radius: 2px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: min(78vh, 760px);
    display: flex;
    align-items: center;
    background: #0f172a;
}

.hero-media {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg, rgba(7, 12, 24, 0.76) 0%, rgba(7, 12, 24, 0.4) 48%, rgba(7, 12, 24, 0.58) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 740px;
    padding: var(--space-5) 0;
}

.hero-content p,
.hero-content li {
    color: rgba(255, 255, 255, 0.9);
}

.hero-bullets {
    margin: var(--space-2) 0 var(--space-3);
    padding-left: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.hero .btn-secondary {
    border-color: rgba(255, 255, 255, 0.92) !important;
    color: #ffffff !important;
    background: rgba(8, 16, 32, 0.35);
    backdrop-filter: blur(2px);
}

.hero .btn-secondary:hover {
    border-color: #ffffff !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18);
}

.page-hero {
    padding-top: var(--space-5);
    padding-bottom: var(--space-4);
    background: radial-gradient(circle at 20% 20%, rgba(12, 108, 242, 0.1), transparent 45%), #f7fafe;
    border-bottom: 1px solid var(--line);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badges span {
    display: inline-flex;
    align-items: center;
    border: 1px solid #c8d5e9;
    background: #fff;
    color: #0f172a;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
}

.badges-large span {
    padding: 10px 14px;
}

.compact-card {
    border: 1px dashed #b9cae2;
    border-radius: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    color: #1e293b;
}

.media-card {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.media-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid #c8d7ee;
}

.timeline li {
    padding: 0 0 24px 22px;
    position: relative;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
}

.timeline span {
    color: var(--muted);
}

.process-boxes {
    margin-top: var(--space-3);
}

.stats .stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: var(--space-3) var(--space-2);
    text-align: center;
}

.stats strong {
    display: block;
    font-size: 1.7rem;
    color: #0b4ea8;
    line-height: 1.1;
}

.testimonial {
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-3);
}

.testimonial p {
    color: #1e293b;
}

.testimonial cite {
    color: #475569;
    font-style: normal;
    font-size: 0.95rem;
}

.faq-wrap details {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
    margin-bottom: 10px;
}

.faq-wrap summary {
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
}

.section-cta-final {
    background: linear-gradient(140deg, #0b4ea8 0%, #0a5fcb 100%);
    color: #fff;
}

.section-cta-final h2,
.section-cta-final p {
    color: #fff;
    max-width: 780px;
}

.contact-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-3);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.form-grid {
    display: grid;
    gap: var(--space-2);
    grid-template-columns: repeat(12, minmax(0, 1fr));
    margin-bottom: var(--space-2);
}

.form-grid label {
    grid-column: span 6;
    display: block;
    font-weight: 600;
    color: #1e293b;
}

.form-grid label.full {
    grid-column: span 12;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 6px;
    border: 1px solid #c7d4e7;
    border-radius: 10px;
    padding: 12px;
    font: inherit;
    background: #fff;
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.alert {
    margin-bottom: var(--space-2);
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid;
}

.alert p,
.alert li,
.alert strong {
    color: inherit;
}

.alert-success {
    color: #075937;
    border-color: #78d7ad;
    background: #ecfff5;
}

.alert-error {
    color: #7a1f18;
    border-color: #f0b8b3;
    background: #fff2f1;
}

.contact-layout ul {
    padding-left: 18px;
}

.site-footer {
    background: #0d1422;
    color: #e2e8f0;
    padding-top: var(--space-5);
}

.site-footer h3 {
    color: #fff;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: #c8d3e4;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-3);
    padding-bottom: var(--space-4);
}

.footer-grid > * {
    grid-column: span 4;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(226, 232, 240, 0.2);
    padding: 16px 0 20px;
}

.floating-contact-stack {
    position: fixed;
    right: 18px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 130;
}

.floating-btn {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.floating-btn svg {
    width: 30px;
    height: 30px;
}

.floating-btn:hover {
    transform: translateY(-2px);
    filter: brightness(0.95);
}

.floating-btn-whatsapp {
    background: #16a34a;
}

.floating-btn-call {
    background: #1d70f2;
}

.floating-call-btn {
    position: fixed;
    right: 18px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    box-shadow: 0 12px 26px rgba(22, 163, 74, 0.35);
    z-index: 130;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.floating-call-btn:hover {
    transform: translateY(-2px);
    background: #15803d;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

@media (max-width: 980px) {
    .main-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 78px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 12px 16px 16px;
        flex-direction: column;
        align-items: flex-start;
        display: none;
    }

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

    .menu-toggle {
        display: inline-flex;
    }

    .header-cta {
        display: none;
    }
}

@media (max-width: 860px) {
    .grid-2 > *,
    .grid-3 > *,
    .grid-4 > *,
    .footer-grid > * {
        grid-column: span 12;
    }

    .form-grid label,
    .form-grid label.full {
        grid-column: span 12;
    }

    .section {
        padding: var(--space-5) 0;
    }

    .hero {
        min-height: 70vh;
    }

    .floating-contact-stack {
        right: 14px;
        bottom: 16px;
    }

    .floating-btn {
        width: 52px;
        height: 52px;
    }

    .floating-btn svg {
        width: 24px;
        height: 24px;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition-duration: 0s !important;
        animation-duration: 0s !important;
    }
}
