:root {
    --bg: #f5f8fc;
    --surface: #ffffff;
    --surface-muted: #eef4fb;
    --text: #10243d;
    --text-soft: #51637b;
    --brand: #0a4fb3;
    --brand-dark: #08397f;
    --brand-soft: #dce9fb;
    --accent: #ff7a21;
    --accent-dark: #e15d0d;
    --success: #1f9c64;
    --border: rgba(16, 36, 61, 0.12);
    --shadow-lg: 0 24px 64px rgba(10, 40, 88, 0.14);
    --shadow-md: 0 16px 40px rgba(10, 40, 88, 0.1);
    --shadow-sm: 0 8px 24px rgba(10, 40, 88, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: 1180px;
    --header-height: 78px;
}

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

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(10, 79, 179, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(255, 122, 33, 0.1), transparent 24%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    max-width: 100%;
    overflow-x: clip;
}

body.nav-open {
    overflow: hidden;
}

body.page-urgent {
    --brand: #d75415;
    --brand-dark: #9f3403;
    --brand-soft: #ffe5d5;
    --accent: #ff8d42;
    --accent-dark: #df5f11;
}

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

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

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

.section {
    padding: 72px 0;
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.section-header {
    max-width: 760px;
    margin-bottom: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(10, 79, 179, 0.1);
    color: var(--brand);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.section-title {
    margin-top: 16px;
    font-family: "Sora", sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.section-lead {
    margin-top: 16px;
    color: var(--text-soft);
    font-size: clamp(1rem, 1.8vw, 1.12rem);
}

.stack,
.stack-sm,
.stack-lg {
    display: grid;
}

.stack {
    gap: 18px;
}

.stack-sm {
    gap: 12px;
}

.stack-lg {
    gap: 24px;
}

.topbar {
    background: linear-gradient(90deg, #062b63, #0a4fb3);
    color: #f7fbff;
    font-size: 0.86rem;
}

.page-urgent .topbar {
    background: linear-gradient(90deg, var(--brand-dark), var(--brand));
}

.topbar-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.topbar p {
    font-weight: 700;
}

.topbar a {
    text-decoration: none;
    color: #f7fbff;
    font-weight: 800;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(245, 248, 252, 0.9);
    border-bottom: 1px solid rgba(16, 36, 61, 0.08);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.brand img {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.brand-copy {
    min-width: 0;
}

.brand-name {
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.1;
}

.brand-copy span {
    display: block;
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-toggle {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--text);
    stroke-width: 2.2;
    fill: none;
}

.site-nav {
    position: fixed;
    inset: calc(var(--header-height) + 8px) 16px auto 16px;
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    color: var(--text);
    background: var(--surface-muted);
}

.site-nav a.is-current {
    background: rgba(10, 79, 179, 0.12);
    color: var(--brand);
}

.site-nav a.nav-phone {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
}

.page-hero {
    padding: 40px 0 28px;
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.page-shell {
    display: grid;
    gap: 24px;
    align-items: center;
}

.page-copy h1 {
    margin-top: 18px;
    font-family: "Sora", sans-serif;
    font-size: clamp(2.3rem, 7vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.page-copy p {
    margin-top: 18px;
    max-width: 62ch;
    color: var(--text-soft);
    font-size: clamp(1rem, 2vw, 1.12rem);
}

.hero-actions,
.contact-actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.button,
.button-secondary,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 22px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 14px 32px rgba(255, 122, 33, 0.28);
}

.button-secondary {
    background: linear-gradient(135deg, #22c55e, #16924b);
    color: #fff;
    box-shadow: 0 14px 32px rgba(34, 197, 94, 0.22);
}

.button-link {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.button:hover,
.button-secondary:hover,
.button-link:hover {
    transform: translateY(-2px);
}

.hero-points,
.chip-list,
.check-list,
.stat-list,
.brand-pills {
    list-style: none;
}

.hero-points,
.check-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    color: var(--text);
    font-weight: 700;
}

.hero-points li,
.check-list li {
    display: flex;
    gap: 10px;
}

.hero-points strong {
    color: var(--brand-dark);
}

.hero-side {
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(145deg, #ffffff, #edf4fc);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.hero-side h2,
.card h3,
.callout h3,
.metric strong,
.contact-card h3,
.content-card h3,
.footer-brand strong,
.timeline-card h3 {
    font-family: "Sora", sans-serif;
}

.hero-side h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.1;
}

.hero-side h2 + p,
.card h3 + p,
.content-card h3 + p,
.contact-card h3 + p,
.timeline-card h3 + p,
.callout h3 + p {
    margin-top: 10px;
}

.hero-side p,
.card p,
.content-card p,
.contact-card p,
.timeline-card p,
.footer-meta,
.hero-side ul {
    color: var(--text-soft);
}

.hero-media {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    background: #dbe7f8;
}

.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 57, 127, 0.08), rgba(8, 57, 127, 0.56));
}

.metrics-grid,
.cards-grid,
.timeline-grid,
.contact-grid,
.content-grid {
    display: grid;
    gap: 16px;
}

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

.metric,
.card,
.timeline-card,
.contact-card,
.content-card,
.callout {
    padding: 22px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.metric strong {
    display: block;
    font-size: 1.6rem;
    line-height: 1;
}

.metric span {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 700;
}

.card-icon,
.contact-icon,
.timeline-index {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--surface-muted);
    color: var(--brand);
    font-size: 1.45rem;
    margin-bottom: 14px;
}

.timeline-card {
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: attr(data-step);
    position: absolute;
    top: 16px;
    right: 18px;
    color: rgba(10, 79, 179, 0.1);
    font-family: "Sora", sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.timeline-index {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
}

.content-prose {
    display: grid;
    gap: 16px;
    color: var(--text-soft);
}

.content-prose strong {
    color: var(--text);
}

.chip-list,
.brand-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-side .metrics-grid,
.hero-side .chip-list,
.hero-side .brand-pills,
.hero-side .check-list,
.callout .hero-actions,
.card .button-link,
.content-card .button-link,
.contact-card .button-link {
    margin-top: 18px;
}

.chip-list li,
.brand-pills li {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 700;
}

.callout {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.callout p {
    color: rgba(255, 255, 255, 0.84);
}

.contact-layout {
    display: grid;
    gap: 18px;
}

.contact-form-wrap {
    padding: 22px;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.contact-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text);
}

.field input,
.field textarea {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fbfdff;
    color: var(--text);
}

.field textarea {
    min-height: 140px;
    padding-top: 16px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(10, 79, 179, 0.45);
    box-shadow: 0 0 0 4px rgba(10, 79, 179, 0.08);
}

.form-feedback {
    min-height: 24px;
    font-size: 0.95rem;
    font-weight: 700;
}

.form-feedback.is-success {
    color: var(--success);
}

.form-feedback.is-error {
    color: #c0392b;
}

.site-footer {
    padding: 36px 0 110px;
    background: #081a36;
    color: rgba(255, 255, 255, 0.84);
}

.footer-shell {
    display: grid;
    gap: 20px;
}

.footer-top {
    display: grid;
    gap: 18px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.footer-brand strong {
    display: block;
    color: #fff;
}

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

.footer-nav a {
    text-decoration: none;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
}

.footer-meta {
    display: grid;
    gap: 8px;
    font-size: 0.95rem;
}

.mobile-cta {
    position: fixed;
    left: 50%;
    bottom: 16px;
    width: min(420px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 8px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(16, 36, 61, 0.1);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    transform: translateX(-50%);
    overflow: hidden;
}

.mobile-cta a {
    min-width: 0;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
}

.mobile-call {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
}

.mobile-whatsapp {
    background: linear-gradient(135deg, #22c55e, #16924b);
    color: #fff;
}

@media (min-width: 720px) {
    .hero-actions,
    .contact-actions {
        grid-auto-flow: column;
        grid-auto-columns: max-content;
    }

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

    .contact-layout {
        grid-template-columns: 1.02fr 0.98fr;
    }

    .footer-top {
        grid-template-columns: 1.2fr auto;
        align-items: center;
    }
}

@media (min-width: 980px) {
    .nav-toggle {
        display: none;
    }

    .site-nav {
        position: static;
        inset: auto;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav a {
        min-height: 44px;
        padding: 0 14px;
        background: transparent;
    }

    .site-nav a:hover {
        background: rgba(10, 79, 179, 0.08);
    }

    .site-nav a.nav-phone {
        background: linear-gradient(135deg, var(--brand), var(--brand-dark));
        color: #fff;
        box-shadow: var(--shadow-sm);
    }

    .page-shell {
        grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    }

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

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

    .mobile-cta {
        display: none;
    }

    .site-footer {
        padding-bottom: 42px;
    }
}

@media (max-width: 719px) {
    .topbar-inner {
        flex-direction: column;
        justify-content: center;
        padding: 10px 0;
        text-align: center;
    }

    .page-hero {
        padding-top: 28px;
    }

    .hero-side,
    .metric,
    .card,
    .timeline-card,
    .contact-card,
    .content-card,
    .callout,
    .contact-form-wrap {
        padding: 18px;
    }

    .hero-media {
        min-height: 280px;
    }

    .metrics-grid,
    .cards-grid,
    .timeline-grid,
    .content-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .mobile-cta {
        width: min(420px, calc(100vw - 16px));
        max-width: calc(100vw - 16px);
        gap: 8px;
    }

    .mobile-cta a {
        padding: 0 10px;
        font-size: 0.9rem;
    }
}
