:root {
    --navy: #08111f;
    --navy-soft: #111d30;
    --orange: #ff6500;
    --orange-hover: #e95700;
    --blue: #1769e8;
    --bg: #ffffff;
    --bg-alt: #f7f8fa;
    --text: #111827;
    --text-soft: #5f6b7a;
    --line: #e5e7eb;
    --line-strong: #d7dde5;
    --shadow-soft: 0 18px 40px rgba(8, 17, 31, 0.08);
    --shadow-card: 0 18px 44px rgba(8, 17, 31, 0.06);
    --radius-xl: 28px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --radius-button: 12px;
    --container: 1220px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Instrument Sans", sans-serif;
    color: var(--text);
    background: var(--bg);
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
textarea {
    font: inherit;
}

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

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 12% 15%, rgba(255, 101, 0, 0.08), transparent 22%),
        radial-gradient(circle at 88% 24%, rgba(23, 105, 232, 0.06), transparent 22%),
        linear-gradient(180deg, #ffffff 0%, #ffffff 56%, #fbfbfc 100%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    padding: 0;
    background: rgba(8, 17, 31, 0.995);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 0.85rem 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: transparent;
    box-shadow: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-symbol {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
}

.brand-wordmark {
    font-family: "Manrope", sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1;
    text-transform: lowercase;
}

.brand-header .brand-wordmark {
    color: #f8fafc;
}

.footer-brand .brand-wordmark {
    color: var(--navy);
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.header-nav a,
.footer-nav a {
    transition: color 0.18s ease;
}

.header-nav a:hover,
.footer-nav a:hover {
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: currentColor;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.9rem 1.3rem;
    border: 1px solid transparent;
    border-radius: var(--radius-button);
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-large {
    min-height: 54px;
    padding-inline: 1.5rem;
}

.button-header {
    min-height: 48px;
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(180deg, #ff7a21 0%, var(--orange) 100%);
    box-shadow: 0 14px 28px rgba(255, 101, 0, 0.24);
}

.button-primary:hover {
    background: linear-gradient(180deg, #ff7010 0%, var(--orange-hover) 100%);
}

.button-secondary {
    color: var(--navy);
    background: #ffffff;
    border-color: var(--line);
}

.button-secondary:hover {
    border-color: #cfd4db;
}

.button-ghost {
    color: var(--navy);
    background: #ffffff;
    border-color: var(--line);
}

.button-outline-light {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
    background: transparent;
}

.button-outline-light:hover {
    border-color: rgba(255, 255, 255, 0.42);
}

.hero-section {
    padding: 1.5rem 0 1.75rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);
    gap: 1.5rem;
    align-items: start;
}

.hero-copy {
    padding: 2rem 0.6rem 1rem 0;
}

.eyebrow,
.section-kicker {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--orange);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255, 101, 0, 0.08);
}

.eyebrow-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffb37e, var(--orange));
    box-shadow: 0 0 0 6px rgba(255, 101, 0, 0.08);
}

.hero-copy h1,
.section-heading h2,
.final-cta h2 {
    margin: 1.2rem 0 0;
    font-family: "Manrope", sans-serif;
    letter-spacing: -0.05em;
    line-height: 0.97;
}

.hero-copy h1 {
    max-width: 13.2ch;
    font-size: clamp(3rem, 4.75vw, 4.85rem);
    text-wrap: balance;
}

.hero-copy h1 span {
    color: var(--orange);
}

.hero-lead,
.section-heading p,
.use-case-card p,
.capability-card p,
.step-card p,
.final-cta p,
.footer-copy {
    color: var(--text-soft);
    line-height: 1.68;
}

.hero-lead {
    margin: 1.5rem 0 0;
    max-width: 60ch;
    font-size: 1.12rem;
}

.hero-actions,
.final-cta-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.7rem;
}

.hero-badges {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-badges span {
    padding: 0.72rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(8, 17, 31, 0.04);
}

.hero-chat-card,
.capability-card,
.use-case-card,
.step-card,
.final-cta {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.hero-chat-card {
    padding: 1rem;
}

.hero-chat-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0.25rem 1rem;
}

.chat-kicker {
    margin: 0;
    color: var(--orange);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-chat-intro h2 {
    margin: 0.35rem 0 0;
    font-size: 1.8rem;
    letter-spacing: -0.04em;
}

.hero-chat-intro p:last-child {
    margin: 0.3rem 0 0;
    color: var(--text-soft);
}

.mat-widget-shell {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.mat-whatsapp-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 1rem 0.9rem;
    margin-bottom: -1px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 211, 102, 0.12), transparent 36%),
        linear-gradient(180deg, #fcfffd 0%, #f7fbf8 100%);
}

.mat-whatsapp-copy {
    max-width: 100%;
}

.mat-whatsapp-copy h3 {
    margin: 0.25rem 0 0;
    font-family: "Manrope", sans-serif;
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

.mat-whatsapp-copy p {
    margin: 0.65rem 0 0;
    color: var(--text-soft);
    line-height: 1.62;
}

.mat-whatsapp-kicker {
    margin: 0;
    color: #1f9d55;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mat-whatsapp-note {
    font-size: 0.96rem;
}

.mat-whatsapp-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
}

.mat-whatsapp-actions .button {
    min-width: min(100%, 300px);
}

.button-whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
}

.button-whatsapp-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.button-whatsapp {
    color: #ffffff;
    background: linear-gradient(180deg, #2bd66f 0%, #1faa59 100%);
    box-shadow: 0 14px 28px rgba(31, 170, 89, 0.22);
}

.button-whatsapp:hover {
    background: linear-gradient(180deg, #24cb66 0%, #18964d 100%);
}

.button-whatsapp[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.7;
}

.mat-whatsapp-meta {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    text-align: center;
}

.mat-widget-mount {
    width: 100%;
    padding-top: 0.65rem;
    overflow: hidden;
}

.mat-widget-mount .dm-widget-host {
    display: block;
    width: 100%;
    margin-top: -18px;
}

.section {
    padding: 1.5rem 0 1.25rem;
}

.section-tight {
    padding-top: 0;
}

.section-alt {
    background: var(--bg-alt);
}

#capacidades,
#casos,
#como-funciona,
#mat,
#footer {
    scroll-margin-top: 104px;
}

.section-heading {
    margin-bottom: 1.25rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 3.4vw, 3.15rem);
}

.section-heading p {
    max-width: 68ch;
    margin: 0.9rem 0 0;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.capability-card,
.step-card,
.use-case-card {
    padding: 1.35rem;
}

.icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    margin-bottom: 1rem;
}

.icon-wrap svg {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-orange {
    color: var(--orange);
    background: rgba(255, 101, 0, 0.1);
}

.icon-blue {
    color: var(--blue);
    background: rgba(23, 105, 232, 0.1);
}

.capability-card h3,
.use-case-card h3,
.step-card h3 {
    margin: 0;
    font-size: 1.16rem;
    letter-spacing: -0.03em;
}

.capability-card p,
.use-case-card p,
.step-card p {
    margin: 0.7rem 0 0;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.use-case-card {
    min-height: 168px;
}

.section-programming {
    padding-top: 0.25rem;
}

.programming-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 1rem;
    align-items: stretch;
}

.programming-spotlight,
.programming-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.programming-spotlight {
    padding: 1.7rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 101, 0, 0.16), transparent 28%),
        linear-gradient(180deg, #08111f 0%, #0c1526 100%);
    color: #ffffff;
}

.programming-spotlight h2 {
    margin: 1rem 0 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(2rem, 3.1vw, 3.05rem);
    letter-spacing: -0.05em;
    line-height: 1.02;
}

.programming-spotlight p {
    margin: 1rem 0 0;
    color: rgba(248, 250, 252, 0.8);
    line-height: 1.72;
}

.programming-sidecards {
    display: grid;
    gap: 1rem;
}

.programming-card {
    padding: 1.4rem;
    background: #ffffff;
}

.programming-card h3 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.programming-card p {
    margin: 0.7rem 0 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.language-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.language-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.timeline-note {
    margin: 1rem 0 0;
    font-weight: 700;
    color: var(--navy);
}

.step-card {
    position: relative;
    padding-top: 4.6rem;
}

.step-number {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--orange);
    color: #ffffff;
    font-weight: 800;
}

.section-cta {
    padding-bottom: 2rem;
}

.final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    border-color: rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 101, 0, 0.14), transparent 28%),
        linear-gradient(180deg, #08111f 0%, #0d1829 100%);
    color: #ffffff;
}

.final-cta h2,
.final-cta p {
    color: #ffffff;
}

.section-kicker-dark {
    color: #ff9b5e;
}

.site-footer {
    padding: 0 0 2.5rem;
}

.footer-shell {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 1rem;
}

.footer-brand .brand-symbol {
    width: 38px;
    height: 38px;
}

.footer-brand .brand-wordmark {
    width: 168px;
}

.footer-copy {
    max-width: 46ch;
    margin: 1rem 0 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem 1.4rem;
    color: var(--text-soft);
    font-weight: 600;
}

@media (max-width: 1180px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-copy {
        padding-right: 0;
    }

    .hero-copy h1 {
        max-width: 12ch;
    }

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

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

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

@media (max-width: 920px) {
    .header-shell {
        grid-template-columns: auto auto 1fr auto;
        border-radius: 0 0 22px 22px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        justify-self: end;
    }

    .header-nav {
        position: absolute;
        top: calc(100% + 0.2rem);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.15rem;
        border-radius: 20px;
        background: rgba(8, 17, 31, 0.98);
        box-shadow: 0 18px 44px rgba(8, 17, 31, 0.18);
    }

    .header-shell.menu-open .header-nav {
        display: flex;
    }

    .header-actions {
        justify-self: end;
    }

    .button-header {
        min-height: 44px;
        padding-inline: 1rem;
    }

    .steps-grid,
    .final-cta,
    .footer-shell {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(var(--container), calc(100% - 1rem));
    }

    .header-shell {
        padding: 0.8rem 0;
        gap: 0.75rem;
    }

    .brand-symbol {
        width: 38px;
        height: 38px;
    }

    .brand-wordmark {
        font-size: 1.54rem;
    }

    .hero-section {
        padding-top: 1rem;
    }

    .hero-copy {
        padding-top: 0.2rem;
    }

    .hero-copy h1 {
        max-width: 12.6ch;
        font-size: clamp(2.26rem, 11vw, 3.3rem);
    }

    .hero-chat-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .mat-whatsapp-card {
        padding: 0.95rem;
    }

    .mat-whatsapp-copy h3 {
        font-size: 1.28rem;
    }

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

    .hero-actions .button,
    .final-cta-actions .button,
    .mat-whatsapp-actions .button {
        width: 100%;
        min-width: 0;
    }

    .hero-badges {
        gap: 0.55rem;
    }

    .hero-badges span {
        font-size: 0.88rem;
    }

    .capabilities-grid,
    .programming-sidecards,
    .use-cases-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .capability-card,
    .use-case-card,
    .step-card,
    .programming-card,
    .programming-spotlight,
    .hero-chat-card,
    .final-cta {
        border-radius: 22px;
    }

    .mat-widget-shell {
        border-radius: 18px;
    }

    .hero-lead,
    .section-heading p,
    .capability-card p,
    .use-case-card p,
    .step-card p,
    .programming-spotlight p,
    .programming-card p,
    .final-cta p,
    .footer-copy,
    .timeline-note {
        text-align: justify;
        hyphens: auto;
        text-wrap: pretty;
    }

    .site-footer {
        padding-bottom: 1.6rem;
    }

    .footer-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 360px) {
    .hero-lead,
    .section-heading p,
    .capability-card p,
    .use-case-card p,
    .step-card p,
    .programming-spotlight p,
    .programming-card p,
    .final-cta p,
    .footer-copy,
    .timeline-note {
        text-align: left;
    }
}
