:root {
    --bg: #eef2f5;
    --surface: #ffffff;
    --surface-strong: #0f1720;
    --surface-muted: #dde4ea;
    --text: #18222d;
    --text-soft: #566371;
    --line: rgba(24, 34, 45, 0.12);
    --primary: #0a4d78;
    --primary-strong: #083a5b;
    --accent: #f4b400;
    --accent-soft: rgba(244, 180, 0, 0.14);
    --success: #23a55a;
    --danger: #d94841;
    --shadow: 0 20px 55px rgba(12, 24, 36, 0.12);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Barlow", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(10, 77, 120, 0.08), transparent 30%),
        linear-gradient(180deg, #f7f9fb 0%, var(--bg) 100%);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.page-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: rgba(247, 249, 251, 0.92);
    border-bottom: 1px solid rgba(24, 34, 45, 0.08);
}

.site-topbar {
    background: linear-gradient(90deg, #12202c, #1a2e40);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.88rem;
}

.site-topbar__inner,
.site-nav,
.section,
.footer-cta,
.site-footer__inner {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.site-topbar__inner {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-topbar__inner span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.site-nav {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.site-brand img {
    height: 60px;
    width: auto;
    mix-blend-mode: multiply;
}

.site-brand__text {
    display: flex;
    flex-direction: column;
}

.site-brand__title {
    font-family: "IBM Plex Sans", "Barlow", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-brand__subtitle {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--surface-strong);
    cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.is-open .nav-toggle::before {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle span {
    opacity: 0;
}

.site-header.is-open .nav-toggle::after {
    transform: translateY(-7px) rotate(-45deg);
}

.site-menu {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-menu a:hover,
.site-menu a:focus-visible,
.site-menu a.is-active {
    background: var(--primary);
    color: #fff;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(11, 20, 29, 0.9), rgba(10, 77, 120, 0.72)),
        var(--hero-image, linear-gradient(120deg, #12202c, #0a4d78));
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -120px auto;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(244, 180, 0, 0.28), transparent 70%);
    pointer-events: none;
}

.hero__inner {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
    padding: 4.8rem 0 4.4rem;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
    gap: 2rem;
    align-items: end;
    position: relative;
    z-index: 1;
}

.hero--simple .hero__inner {
    grid-template-columns: minmax(0, 1fr);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.section h1,
.section h2,
.section h3,
.footer-cta h2 {
    font-family: "IBM Plex Sans", "Barlow", sans-serif;
    line-height: 1.1;
    margin: 0;
}

.hero h1 {
    margin-top: 1rem;
    font-size: clamp(2.4rem, 4vw, 4.7rem);
    max-width: 11ch;
}

.hero p {
    margin: 1.1rem 0 0;
    max-width: 62ch;
    font-size: 1.07rem;
    color: rgba(255, 255, 255, 0.88);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.75rem;
}

.hero__panel,
.stat-card,
.service-card,
.content-card,
.feature,
.dark-panel,
.cta-panel,
.contact-card,
.gallery-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero__panel {
    background: rgba(247, 249, 251, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 1.5rem;
    backdrop-filter: blur(12px);
}

.hero__panel h2 {
    font-size: 1.1rem;
    margin-bottom: 0.9rem;
}

.hero__panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.95rem;
}

.hero__panel li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.98rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 0.85rem;
}

.hero__panel li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.hero__panel strong {
    color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 52px;
    padding: 0.9rem 1.35rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn--primary {
    background: var(--accent);
    color: #1d2530;
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: #ffc933;
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
    background: rgba(255, 255, 255, 0.16);
}

.btn--whatsapp {
    background: #25d366;
    color: #fff;
}

.btn--mail {
    background: #da493f;
    color: #fff;
}

.btn--maps {
    background: var(--primary);
    color: #fff;
}

.stats-grid,
.service-grid,
.card-grid,
.tag-grid,
.gallery-grid {
    display: grid;
    gap: 1.25rem;
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: -2.4rem;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: var(--surface);
    padding: 1.4rem;
    border: 1px solid rgba(24, 34, 45, 0.06);
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    color: var(--primary);
    font-family: "IBM Plex Sans", sans-serif;
}

.stat-card span {
    color: var(--text-soft);
    font-size: 0.98rem;
}

.section {
    padding: 4.5rem 0;
}

.section--tight {
    padding-top: 2rem;
}

.section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.section__head h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    max-width: 14ch;
}

.section__head p {
    margin: 0;
    color: var(--text-soft);
    max-width: 58ch;
}

.section__label {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
    min-height: 320px;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(180deg, rgba(9, 17, 26, 0.12), rgba(9, 17, 26, 0.9)),
        var(--card-image, linear-gradient(135deg, #0f1720, #0a4d78));
    background-size: cover;
    background-position: center;
    color: #fff;
}

.service-card a {
    position: absolute;
    inset: 0;
    text-indent: -9999px;
}

.service-card__content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.5rem;
}

.service-card__kicker {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(244, 180, 0, 0.14);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.service-card__content h3 {
    margin-top: 0.85rem;
    font-size: 1.35rem;
}

.service-card__content p {
    margin-top: 0.7rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.98rem;
}

.card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card {
    background: var(--surface);
    border: 1px solid rgba(24, 34, 45, 0.08);
    padding: 1.6rem;
}

.content-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.9rem;
}

.content-card p,
.content-card li,
.feature__body p,
.feature__body li,
.dark-panel p,
.contact-card p,
.site-footer p {
    color: var(--text-soft);
}

.content-card ul,
.feature__body ul,
.dark-panel ul {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
}

.feature-stack {
    display: grid;
    gap: 1.5rem;
}

.feature {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 0;
    background: var(--surface);
    overflow: hidden;
    border: 1px solid rgba(24, 34, 45, 0.08);
}

.feature--reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.feature__media {
    min-height: 100%;
    background: var(--surface-muted);
}

.feature__media img,
.feature__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature__body {
    padding: 2rem;
}

.feature__body h3 {
    font-size: 1.8rem;
    margin-bottom: 0.85rem;
}

.pill-row,
.materials-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.pill,
.material-tag {
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--primary-strong);
    font-weight: 700;
    font-size: 0.88rem;
}

.dark-panel {
    background:
        linear-gradient(135deg, #12202c 0%, #193548 60%, #0a4d78 100%);
    color: #fff;
    padding: 2rem;
}

.dark-panel p,
.dark-panel li {
    color: rgba(255, 255, 255, 0.82);
}

.dark-panel h3 {
    font-size: 1.55rem;
    margin-bottom: 0.9rem;
}

.tag-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tag-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.tag-card strong {
    display: block;
    color: #fff;
}

.tag-card span {
    display: block;
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.78);
}

.gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(24, 34, 45, 0.08);
}

.gallery-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.gallery-card__body {
    padding: 1.2rem;
}

.gallery-card__body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.55rem;
}

.cta-panel,
.footer-cta {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(228, 236, 243, 0.96));
    border: 1px solid rgba(24, 34, 45, 0.08);
}

.cta-panel {
    padding: 2rem;
}

.footer-cta {
    padding: 2rem;
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.25rem;
    align-items: stretch;
}

.contact-card {
    background: var(--surface);
    padding: 1.7rem;
    border: 1px solid rgba(24, 34, 45, 0.08);
}

.contact-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.45rem;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.4rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.7rem;
}

.site-footer {
    padding: 0 0 2rem;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: 0.94rem;
}

.site-footer__inner strong {
    color: var(--text);
}

.section-anchor {
    scroll-margin-top: 140px;
}

.diagram {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.diagram-card {
    border-radius: var(--radius-md);
    padding: 1.2rem;
    text-align: center;
}

.diagram-card--light {
    background: #f5f8fb;
    color: var(--text);
}

.diagram-card--dark {
    background: #09111a;
    color: #fff;
}

.signal-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 60px;
    margin-top: 0.85rem;
    border-radius: 12px;
    font-weight: 700;
}

.signal-demo--light {
    background: #0f8a34;
    color: #fff;
    border: 2px solid #0a6124;
}

.signal-demo--dark {
    background: #c8ff00;
    color: #234000;
    box-shadow: 0 0 24px rgba(200, 255, 0, 0.7);
}

@media (max-width: 1100px) {
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid,
    .gallery-grid,
    .tag-grid,
    .contact-grid,
    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        max-width: 14ch;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        margin-top: 1.5rem;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        min-height: 78px;
        flex-wrap: wrap;
        padding: 0.85rem 0;
    }

    .site-nav__links {
        width: 100%;
        display: none;
        padding-bottom: 0.75rem;
    }

    .site-header.is-open .site-nav__links {
        display: block;
    }

    .site-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .site-menu a {
        display: block;
        border-radius: 14px;
    }

    .feature,
    .feature--reverse {
        grid-template-columns: 1fr;
    }

    .feature__media {
        min-height: 260px;
    }
}

@media (max-width: 680px) {
    .site-topbar__inner {
        justify-content: center;
        text-align: center;
        padding: 0.55rem 0;
    }

    .site-brand__text {
        display: none;
    }

    .hero__inner {
        padding: 4rem 0 3.3rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .contact-actions,
    .hero__actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .diagram {
        grid-template-columns: 1fr;
    }
}
