:root {
    color-scheme: light;
    --primary: #10233F;
    --primary-hover: #1A355A;
    --white: #fff;
    --surface: #F4F6F9;
    --text: #172033;
    --muted: #64748B;
    --border: #DCE2EA;
    --card-bg: #fff;
    --section-muted-bg: #f7f8fa;
    --about-bg: #f0f5f8;
    --project-bg: #f7f7f5;
    --simulator-bg: #eef2f5;
    --header-bg: rgb(255 255 255 / 72%);
    --menu-bg: rgb(245 248 250 / 92%);
    --control-bg: #fff;
    --radius: 14px;
    --content: 1160px
}

* {
    box-sizing: border-box;
    font-family: inherit;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    transition: background-color .25s ease, color .25s ease
}

.cursor-glow {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(25 184 197 / 18%) 0, rgb(8 125 193 / 10%) 36%, transparent 72%);
    box-shadow: 0 0 22px rgb(8 125 193 / 9%);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
    transition: opacity .18s ease;
    will-change: transform;
}

body.cursor-glow-active .cursor-glow {
    opacity: 1;
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
    .cursor-glow {
        display: none;
    }
}

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

.site-header {
    position: fixed;
    z-index: 10;
    top: 18px;
    left: 50%;
    height: auto;
    width: min(1040px, calc(100% - 40px));
    min-height: 68px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 2vw, 28px);
    transform: translateX(-50%);
    border: 1px solid rgb(255 255 255 / 38%);
    border-radius: 999px;
    background: var(--header-bg);
    box-shadow: 0 8px 32px rgb(20 35 50 / 14%), inset 0 1px 0 rgb(255 255 255 / 35%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    transition: top .24s ease, width .24s ease, min-height .24s ease, padding .24s ease, box-shadow .24s ease;
}

.site-header.is-compact {
    top: 12px;
    width: min(960px, calc(100% - 40px));
    min-height: 58px;
    padding: 5px 14px;
    box-shadow: 0 5px 22px rgb(20 35 50 / 12%), inset 0 1px 0 rgb(255 255 255 / 30%);
}

.site-header .brand img {
    transition: width .24s ease, height .24s ease;
}

.site-header.is-compact .brand img {
    width: 40px;
    height: 40px;
}

.site-header .main-nav {
    transition: gap .24s ease;
}

.site-header.is-compact .main-nav {
    gap: clamp(10px, 1.3vw, 18px);
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    font-weight: 850;
    letter-spacing: .06em;
    color: var(--primary);
    font-size: 1.1rem
}

.brand img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.site-footer .brand img {
    width: 56px;
    height: 56px;
}

.brand span {
    color: #7FA4D7
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.6vw, 22px);
    font-size: .88rem
}

.header-tools {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 52px;
    padding: 3px;
    border: 1px solid rgb(16 35 63 / 12%);
    border-radius: 999px;
    background: rgb(255 255 255 / 72%);
}

.language-switch button {
    display: grid;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #334155;
    cursor: pointer;
    font: inherit;
    font-size: .72rem;
    font-weight: 700;
    transition: background-color .2s ease, color .2s ease;
}

.language-switch button.is-active {
    background: var(--primary);
    color: #fff;
}

.theme-toggle {
    display: grid;
    width: 46px;
    min-width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 5px 14px rgb(16 35 63 / 18%);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    background: #087dc1;
}

.theme-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.theme-icon-moon {
    display: none;
}

.main-nav a:not(.button):hover,
.site-footer > a[href="#contactos"]:hover {
    color: #587BAE
}

.menu-toggle {
    display: none;
    background: var(--control-bg);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--text);
    font: inherit;
    cursor: pointer
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    background: #087dc1;
    color: white;
    border: 1px solid #087dc1;
    border-radius: 8px;
    font-weight: 650;
    transition: background .2s
}

.button:hover {
    background: #0669a4;
    border-color: #0669a4
}

.button-small {
    padding: 10px 18px;
    border-radius: 999px
}

.button-outline {
    background: transparent;
    color: var(--primary)
}

.button-outline:hover {
    background: var(--surface);
    color: var(--primary)
}

.button-light {
    background: white;
    color: var(--primary);
    border-color: white
}

.button-light:hover {
    background: #e9eef5
}

.eyebrow {
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    color: #789BCB;
    margin: 0 0 15px
}

.section {
    max-width: var(--content);
    margin: auto;
    padding: 84px 24px
}

.section-heading {
    max-width: 670px;
    margin-bottom: 34px
}

.section h2,
.cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.2;
    letter-spacing: -.03em;
    margin: 0 0 15px
}

.section-heading>p:last-child,
.cta p:not(.eyebrow) {
    color: var(--muted)
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    transition: background-color .25s ease, border-color .25s ease
}

.card-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: #E9EFF7;
    color: var(--primary);
    font-weight: 800;
    border-radius: 10px
}

.card h3 {
    margin: 22px 0 8px
}

.card p {
    color: var(--muted);
    margin-bottom: 0
}

.cta {
    background: var(--surface);
    padding: 55px max(7vw, 24px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px
}

.cta>div {
    max-width: 650px
}

.site-footer {
    padding: 28px max(5vw, 24px);
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) auto auto auto;
    align-items: center;
    gap: clamp(14px, 1.7vw, 24px);
    background: #0B192D;
    color: #D7E0ED;
    font-size: .88rem
}

.brand-light {
    color: white
}

.site-footer p {
    margin: 0;
    text-align: left;
}

.footer-legal {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    color: rgb(215 224 237 / 72%);
    font-size: .76rem;
    white-space: nowrap;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgb(215 224 237 / 24%);
    border-radius: 50%;
    color: inherit;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.footer-social a:hover {
    transform: translateY(-2px);
    border-color: rgb(215 224 237 / 55%);
    background: rgb(255 255 255 / 9%);
}

.footer-social svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.footer-social a:first-child svg {
    fill: currentColor;
    stroke: none;
}

@media (max-width: 1100px) {
    .site-footer {
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-rows: auto auto;
        row-gap: 14px;
    }

    .site-footer .brand { grid-column: 1; grid-row: 1; }
    .footer-legal { grid-column: 2; grid-row: 1; }
    .footer-social { grid-column: 3; grid-row: 1; }
    .site-footer p { grid-column: 1; grid-row: 2; }
    .site-footer > a[href="#contactos"] { grid-column: 2 / 4; grid-row: 2; justify-self: end; }
}

.page-main {
    max-width: var(--content);
    margin: auto;
    padding: 64px 24px;
    min-height: 55vh
}

.page-main h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    color: var(--primary);
    line-height: 1.15
}

.form-card {
    max-width: 760px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    background: var(--card-bg);
    transition: background-color .25s ease, border-color .25s ease
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.field label {
    font-weight: 650;
    font-size: .92rem
}

.field input,
.field select,
.field textarea {
    font: inherit;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text);
    width: 100%
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 3px solid #DCE8F7;
    border-color: #5276A5
}

.form-actions {
    margin-top: 22px
}

.notice {
    padding: 14px 16px;
    border-radius: 8px;
    background: #F4F6F9;
    color: #34445A;
    margin: 18px 0
}

.error {
    color: #9F2D2D
}

.success {
    color: #176B48
}

.muted {
    color: var(--muted)
}

section[id] {
    scroll-margin-top: 100px
}

#sobre {
    scroll-margin-top: 0;
}

.about-section {
    max-width: none;
    padding: clamp(72px, 8vw, 112px) max(5vw, 24px) 44px;
    background: var(--about-bg);
}

.about-overview,
.about-partners {
    width: min(100%, 1320px);
    margin-inline: auto;
}

.about-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    align-items: center;
    gap: clamp(48px, 9vw, 140px);
}

.about-intro {
    max-width: 610px;
}

.about-intro h2 {
    max-width: 560px;
    margin: 0 0 20px;
    color: var(--text);
    font-size: clamp(2.1rem, 4vw, 3.65rem);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.045em;
}

.about-intro h2::after {
    display: block;
    width: 44px;
    height: 3px;
    margin-top: 22px;
    border-radius: 2px;
    background: linear-gradient(90deg, #087dc1 0 68%, #19b8c5 68%);
    content: "";
}

.about-intro p {
    max-width: 550px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(.98rem, 1.2vw, 1.08rem);
    line-height: 1.75;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(28px, 5vw, 68px);
    row-gap: 32px;
    align-self: center;
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--border);
}

.about-stat strong {
    color: var(--text);
    font-size: clamp(1.9rem, 3vw, 2.65rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.055em;
}

.about-stat strong > .kpi-count {
    color: inherit;
    font-size: inherit;
}

.about-stat strong small {
    font-size: .48em;
    font-weight: 500;
    letter-spacing: -.02em;
}

.about-stat span {
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.4;
}

.about-partners {
    display: block;
    margin-top: clamp(56px, 8vw, 96px);
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.about-partners h3 {
    margin: 0 0 22px;
    color: var(--text);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 400;
    letter-spacing: -.035em;
}

.client-logo-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.client-logo-tile {
    display: grid;
    min-width: 0;
    min-height: 104px;
    place-items: center;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card-bg);
    box-shadow: 0 8px 24px rgb(17 31 43 / 4%);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.client-logo-tile img {
    display: block;
    width: min(100%, 150px);
    height: 48px;
    object-fit: contain;
}

@media (hover: hover) {
    .client-logo-tile:hover {
        transform: translateY(-3px);
        border-color: color-mix(in srgb, var(--primary) 24%, var(--border));
        box-shadow: 0 14px 30px rgb(17 31 43 / 9%);
    }
}

.client-logo-travelport {
    align-content: center;
    justify-items: center;
    gap: 0;
    color: #123d72;
    font-size: clamp(.92rem, 1.4vw, 1.12rem);
    font-weight: 700;
    letter-spacing: -.06em;
}

.client-logo-travelport span {
    white-space: nowrap;
}

.client-logo-travelport i {
    margin-left: 2px;
    color: #5caa45;
    font-size: .8em;
    font-style: normal;
}

.client-logo-travelport small {
    color: #526173;
    font-size: .5rem;
    font-weight: 600;
    letter-spacing: .2em;
}

.services-section {
    max-width: none;
    padding: clamp(72px, 8vw, 112px) max(5vw, 24px);
    background: var(--section-muted-bg);
}

.services-section > * {
    width: min(100%, 1320px);
    margin-right: auto;
    margin-left: auto;
}

.services-intro {
    max-width: 680px;
    margin-bottom: clamp(44px, 6vw, 76px);
    margin-left: max(0px, calc((100% - 1320px) / 2));
    text-align: left;
}

.services-intro h2 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: clamp(2.1rem, 3.5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.services-intro p {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
}

.service-path {
    display: grid;
    gap: clamp(64px, 9vw, 124px);
}

.service-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(34px, 6vw, 84px);
}

.service-row-reverse .service-image {
    grid-column: 2;
    grid-row: 1;
}

.service-row-reverse .service-content {
    grid-column: 1;
    grid-row: 1;
}

.service-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: .94;
    border-radius: 18px;
    background: var(--surface);
}

.service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content h3 {
    margin: 0;
    color: var(--text);
    font-size: clamp(2.1rem, 3.2vw, 3rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.service-summary {
    max-width: 540px;
    margin: 10px 0 22px;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.35vw, 1.16rem);
    line-height: 1.65;
}

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

.service-items li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.service-items li:last-child {
    border-bottom: 1px solid var(--border);
}

.service-items svg {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    fill: none;
    stroke: var(--primary);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.service-items li > span {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.service-items strong {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

.service-items small {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.5;
}

.projects-section {
    padding: clamp(72px, 8vw, 112px) max(5vw, 24px);
    background: var(--project-bg);
}

.projects-intro {
    max-width: 640px;
    margin: 0 auto clamp(28px, 4vw, 44px);
    text-align: center;
}

.projects-intro h2,
.simulator-copy h2 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: clamp(2.1rem, 3.4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.projects-intro > p:last-child {
    color: var(--muted);
    font-size: .94rem;
    margin-bottom: 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 1480px);
    margin: 0 auto;
    gap: clamp(16px, 2vw, 28px);
}

.project-card {
    position: relative;
    display: block;
    min-width: 0;
    width: 100%;
    aspect-ratio: 1.08;
    overflow: hidden;
    isolation: isolate;
    border-radius: 22px;
    border: 0;
    padding: 0;
    background: #1a2630;
    box-shadow: 0 14px 36px rgb(17 31 43 / 13%);
    color: inherit;
    font: inherit;
    text-align: left;
    transition: transform .42s cubic-bezier(.2, .7, .2, 1), box-shadow .42s ease;
}

.project-card-trigger {
    cursor: pointer;
}

.project-card-trigger:focus-visible {
    outline: 3px solid #087dc1;
    outline-offset: -5px;
}

@media (hover: hover) {
    .project-card:hover {
        transform: translateY(-6px) scale(1.01);
        box-shadow: 0 22px 44px rgb(17 31 43 / 20%);
    }
}

.project-card img {
    display: block;
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #e3e5e5;
    object-fit: cover;
    object-position: center;
}

.project-card::after {
    position: absolute;
    z-index: -1;
    inset: 20% 0 0;
    background: linear-gradient(180deg, transparent 0%, rgb(9 18 26 / 18%) 42%, rgb(9 18 26 / 82%) 100%);
    content: "";
}

.project-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: clamp(20px, 3vw, 34px);
    color: #fff;
}

.project-caption h3,
.project-title {
    display: block;
    margin: 0;
    color: #fff;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 650;
    line-height: 1.3;
}

.project-caption p,
.project-description {
    display: block;
    margin: 4px 0 0;
    color: rgb(255 255 255 / 86%);
    font-size: clamp(.8rem, 1vw, .9rem);
    line-height: 1.45;
}

.project-dialog {
    width: min(1320px, calc(100% - 32px));
    max-width: none;
    max-height: min(90dvh, 920px);
    margin: auto;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 0;
    background: var(--card-bg);
    box-shadow: 0 30px 100px rgb(0 0 0 / 35%);
    color: var(--text);
    opacity: 0;
    transform: translateY(18px) scale(.975);
    transition: opacity .28s ease, transform .38s cubic-bezier(.2, .75, .25, 1), overlay .38s allow-discrete, display .38s allow-discrete;
}

.project-dialog[open] {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.project-dialog.is-closing {
    opacity: 0;
    transform: translateY(12px) scale(.985);
    transition-duration: .2s, .22s, .22s, .22s;
}

@starting-style {
    .project-dialog[open] {
        opacity: 0;
        transform: translateY(18px) scale(.975);
    }
}

.project-dialog::backdrop {
    background: rgb(5 14 23 / 0%);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transition: background-color .3s ease, overlay .38s allow-discrete, display .38s allow-discrete;
}

.project-dialog[open]::backdrop {
    background: rgb(5 14 23 / 68%);
}

.project-dialog.is-closing::backdrop {
    background: rgb(5 14 23 / 0%);
    transition-duration: .2s, .22s, .22s;
}

@starting-style {
    .project-dialog[open]::backdrop {
        background: rgb(5 14 23 / 0%);
    }
}

.project-dialog-panel {
    max-height: min(90dvh, 920px);
    overflow: auto;
    padding: clamp(22px, 4vw, 44px);
}

.project-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.project-dialog-header .eyebrow {
    margin-bottom: 9px;
}

.project-dialog-header h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.08;
}

.project-dialog-header p:last-child {
    margin: 9px 0 0;
    color: var(--muted);
}

.project-dialog-close {
    display: grid;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--control-bg);
    color: var(--text);
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.project-dialog-close:hover {
    transform: rotate(6deg);
    background: var(--surface);
}

.project-dialog-close svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.6;
}

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

.gallery-item {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.gallery-item-overlay {
    position: relative;
    aspect-ratio: 1.3;
    border: 0;
    background: #0b151b;
    color: #fff;
    animation: gallery-card-enter .48s cubic-bezier(.2, .75, .25, 1) both;
}

.gallery-item-overlay:nth-child(2) { animation-delay: 35ms; }
.gallery-item-overlay:nth-child(3) { animation-delay: 70ms; }
.gallery-item-overlay:nth-child(4) { animation-delay: 105ms; }
.gallery-item-overlay:nth-child(5) { animation-delay: 140ms; }
.gallery-item-overlay:nth-child(6) { animation-delay: 175ms; }
.gallery-item-overlay:nth-child(7) { animation-delay: 210ms; }

@keyframes gallery-card-enter {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1.3;
    object-fit: cover;
    background: #dfe5e9;
}

.gallery-item-overlay img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.gallery-item-overlay::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, transparent 66%, rgb(3 12 17 / 68%) 100%);
    content: "";
    pointer-events: none;
    opacity: 0;
    transition: opacity .24s ease;
}

.gallery-item-overlay figcaption {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding: 0;
    color: #fff !important;
    text-align: left;
    text-shadow: 0 2px 12px rgb(0 0 0 / 55%);
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .24s ease, transform .24s ease;
}

.gallery-item-overlay figcaption strong {
    display: block;
    max-width: 100%;
    color: #fff !important;
    font-size: clamp(1.08rem, 1.8vw, 1.4rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.025em;
    text-align: left;
    text-wrap: pretty;
}

@media (hover: hover) {
    .gallery-item-overlay:hover img {
        transform: scale(1.045);
    }

    .gallery-item-overlay:hover::after,
    .gallery-item-overlay:focus-visible::after {
        opacity: 1;
    }

    .gallery-item-overlay:hover figcaption,
    .gallery-item-overlay:focus-visible figcaption {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (hover: none), (pointer: coarse) {
    .gallery-item-overlay::after {
        background: linear-gradient(180deg, transparent 70%, rgb(3 12 17 / 62%) 100%);
        opacity: 1;
    }

    .gallery-item-overlay figcaption {
        right: 10px;
        bottom: 9px;
        left: 10px;
        opacity: 1;
        transform: none;
    }

    .gallery-item-overlay figcaption strong {
        font-size: clamp(.84rem, 3.4vw, 1rem);
        line-height: 1.15;
    }
}

.gallery-item-portrait img {
    aspect-ratio: 1.3;
    object-fit: contain;
}

.gallery-item figcaption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 86px;
    padding: 13px 15px 15px;
}

.gallery-item figcaption strong {
    color: var(--text);
    font-size: .92rem;
}

.gallery-item figcaption span {
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.45;
}

.project-dialog-close:focus-visible {
    outline: 3px solid #087dc1;
    outline-offset: 3px;
}

.contact-section {
    max-width: 1240px;
    padding-top: clamp(76px, 9vw, 118px);
    padding-bottom: clamp(76px, 9vw, 118px);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: start;
    gap: clamp(38px, 6vw, 84px);
}

.contact-map-column,
.contact-form-column {
    min-width: 0;
}

.contact-map {
    overflow: hidden;
    height: clamp(300px, 34vw, 430px);
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 18px 46px rgb(18 35 55 / 9%);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-details {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    font-size: .92rem;
    font-style: normal;
    color: var(--muted);
}

.contact-details > p {
    margin: 0 0 2px;
}

.contact-details > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.contact-details a {
    color: var(--primary);
    overflow-wrap: anywhere;
    font-weight: 600;
    transition: color .2s ease;
}

.contact-details a:hover {
    color: #087dc1;
}

.contact-heading {
    margin: 0 0 26px;
}

.contact-heading .eyebrow {
    margin-bottom: 8px;
}

.contact-heading h2 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 3.5vw, 3rem);
    letter-spacing: -.045em;
}

.contact-heading > p:last-child {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

.contact-section .form-card,
.simulator-section .form-card {
    width: 100%;
    max-width: none;
}

.contact-section .form-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.contact-section .form-grid {
    gap: 18px 16px;
}

.contact-section .field-message {
    grid-column: 1 / -1;
}

.contact-section .field input,
.contact-section .field textarea {
    padding: 13px 14px;
    border-radius: 8px;
    background: var(--surface);
}

.contact-section .field textarea {
    min-height: 126px;
    resize: vertical;
}

.contact-section .form-actions {
    margin-top: 18px;
}

.contact-section .form-actions .button {
    width: 100%;
    min-height: 48px;
}

.simulator-section {
    display: block;
    padding: clamp(64px, 8vw, 100px) max(5vw, 24px);
    background: var(--simulator-bg);
}

.simulator-intro {
    margin: 0 auto 30px;
    text-align: center;
}

.simulator-intro h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: 1.15;
}

.simulator-intro p {
    display: inline-block;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .82rem;
}

.simulator-showcase {
    position: relative;
    width: min(100%, 1280px);
    min-height: 670px;
    margin-inline: auto;
}

.showcase-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgb(22 37 52 / 13%);
}

.showcase-image-card {
    position: absolute;
    z-index: 1;
    top: 124px;
    width: 42%;
    height: 410px;
    background: var(--surface);
}

.showcase-work-card {
    left: 0;
    transform: rotate(-2deg);
}

.showcase-plan-card {
    right: 0;
    transform: rotate(2deg);
    background: #fff;
}

.showcase-work-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.showcase-floorplan {
    display: block;
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain;
}

.simulator-preview {
    position: absolute;
    z-index: 3;
    top: 24px;
    left: 50%;
    width: min(760px, 64%);
    margin: 0;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 28px 70px rgb(18 31 45 / 20%);
    transform: translateX(-50%);
}

.estimate-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.estimate-heading h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -.025em;
}

.estimate-heading > span {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: .76rem;
}

.estimate-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.estimate-list > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.estimate-list dt,
.estimate-list dd {
    margin: 0;
    font-size: .92rem;
}

.estimate-list dt { color: var(--muted); }
.estimate-list dd { color: var(--text); font-variant-numeric: tabular-nums; }

.estimate-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.estimate-total span {
    color: var(--text);
    font-size: .94rem;
    font-weight: 500;
}

.estimate-total strong {
    color: var(--text);
    font-size: clamp(1.25rem, 2.3vw, 1.65rem);
    font-weight: 600;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
}

.estimate-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: .76rem;
}

@media (max-width: 1050px) {
    .simulator-showcase {
        display: grid;
        min-height: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .simulator-preview {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        grid-column: 1 / -1;
        grid-row: 1;
        transform: none;
    }

    .showcase-image-card {
        position: relative;
        top: auto;
        width: auto;
        height: 300px;
        transform: none;
    }

    .showcase-work-card,
    .showcase-plan-card {
        grid-row: 2;
    }
}

@media (max-width: 600px) {
    .showcase-image-card { height: 220px; border-radius: 18px; }
}

.form-card {
    box-shadow: 0 16px 48px rgb(22 37 52 / 6%);
}

.button:focus-visible,
.main-nav a:focus-visible,
.brand:focus-visible,
.menu-toggle:focus-visible {
    outline: 3px solid #39a7e5;
    outline-offset: 3px;
}

@media(max-width:850px) {
    .menu-toggle {
        display: block;
        order: 3
    }

    .header-tools {
        order: 2;
    }

    .brand {
        order: 1;
    }

    .main-nav {
        display: none;
        position: absolute;
        z-index: 10;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        padding: 20px 24px;
        border: 1px solid rgb(255 255 255 / 45%);
        border-radius: 24px;
        background: var(--menu-bg);
        box-shadow: 0 8px 32px rgb(20 35 50 / 14%);
        -webkit-backdrop-filter: blur(16px) saturate(150%);
        backdrop-filter: blur(16px) saturate(150%);
        flex-direction: column;
        align-items: stretch;
        gap: 16px
    }

    .main-nav.open {
        display: flex
    }

    .cards {
        grid-template-columns: 1fr
    }

    .about-section,
    .contact-section,
    .simulator-section {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-overview {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-intro {
        max-width: 680px;
    }

    .about-stats {
        max-width: 680px;
    }

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

    .about-copy,
    .simulator-copy {
        max-width: 650px;
        width: 100%;
        justify-self: auto;
        padding-top: 0;
    }

    .contact-layout { grid-template-columns: 1fr; gap: 40px; }

    .contact-map { height: min(58vw, 390px); }

    .cta {
        align-items: flex-start;
        flex-direction: column
    }

    .site-footer {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto auto;
        column-gap: 18px;
        row-gap: 14px;
    }

    .site-footer .brand { grid-column: 1; grid-row: 1; }
    .site-footer p { grid-column: 1; grid-row: 2; text-align: left; }
    .site-footer > a[href="#contactos"] { grid-column: 2; grid-row: 2; justify-self: end; }
    .footer-social { grid-column: 2; grid-row: 1; }
    .footer-legal { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; flex-wrap: wrap; white-space: normal; }


}

@media (max-width: 560px) {
    .site-header {
        top: 12px;
        width: calc(100% - 24px);
        min-height: 60px;
        padding: 10px 16px;
        justify-content: space-between;
        gap: 12px;
        border-radius: 999px
    }

    .site-header.is-compact {
        top: 8px;
        width: calc(100% - 24px);
        min-height: 56px;
        padding: 4px 12px;
    }
}

@media(max-width:560px) {
    .form-grid {
        grid-template-columns: 1fr
    }

    .section {
        padding-top: 60px;
        padding-bottom: 60px
    }

    .site-footer {
        padding: 22px 20px;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .simulator-preview { padding: 22px; }
    .estimate-list > div { padding: 12px 0; }
}

@media (max-width: 600px) {
    section[id] {
        scroll-margin-top: 82px;
    }

    .site-header {
        left: 50%;
    }

    .projects-section {
        padding: 64px 20px;
    }

    .services-section {
        padding: 64px 20px;
    }

    .service-path {
        gap: 54px;
    }

    .service-image {
        aspect-ratio: 1.2;
        border-radius: 14px;
    }

    .service-items li {
        gap: 11px;
        padding: 12px 0;
    }

    .about-section {
        padding: 64px 20px 32px;
    }

    .about-overview {
        gap: 34px;
    }

    .about-stats {
        column-gap: 18px;
        row-gap: 24px;
    }

    .about-stat strong {
        font-size: 1.9rem;
    }

    .about-partners {
        margin-top: 48px;
    }

    .about-partners h3 {
        margin-bottom: 18px;
    }

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

    .client-logo-tile {
        min-height: 88px;
        padding: 16px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        aspect-ratio: 1.18;
        border-radius: 18px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .simulator-section {
        padding: 60px 20px;
    }

    .contact-section .form-card,
    .simulator-section .form-card {
        padding: 20px;
    }

    .contact-section .form-card {
        padding: 0;
    }
}

@media (max-width: 700px) {
    .service-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-row-reverse .service-image,
    .service-row-reverse .service-content {
        grid-column: 1;
        grid-row: auto;
    }

    .service-image {
        aspect-ratio: 1.35;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --primary: #102e4a;
    --primary-hover: #17466b;
    --white: #0f171f;
    --surface: #17222d;
    --text: #edf3f7;
    --muted: #b2c0cb;
    --border: #344451;
    --card-bg: #17232e;
    --section-muted-bg: #131d26;
    --about-bg: #111e29;
    --project-bg: #111a22;
    --simulator-bg: #17232e;
    --header-bg: rgb(13 23 32 / 82%);
    --menu-bg: rgb(18 29 39 / 96%);
    --control-bg: #17232e;
}

:root[data-theme="dark"] .site-header {
    border-color: rgb(255 255 255 / 16%);
    box-shadow: 0 8px 32px rgb(0 0 0 / 28%), inset 0 1px 0 rgb(255 255 255 / 10%);
}

:root[data-theme="dark"] .client-logo-tile {
    border-color: rgb(255 255 255 / 14%);
    background: linear-gradient(145deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 3%));
    box-shadow: 0 12px 30px rgb(0 0 0 / 16%), inset 0 1px 0 rgb(255 255 255 / 9%);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    backdrop-filter: blur(14px) saturate(135%);
}

:root[data-theme="dark"] .client-logo-travelport {
    color: #e5edf5;
}

:root[data-theme="dark"] .client-logo-travelport small {
    color: #bdc9d4;
}

:root[data-theme="dark"] .service-items svg {
    stroke: #55c5d2;
}

:root[data-theme="dark"] .language-switch {
    border-color: #3a4b58;
    background: rgb(18 29 39 / 90%);
}

:root[data-theme="dark"] .language-switch button {
    color: #dbe5ec;
}

:root[data-theme="dark"] .language-switch button.is-active {
    background: #087dc1;
    color: #fff;
}

:root[data-theme="dark"] .theme-toggle {
    background: #087dc1;
}

:root[data-theme="dark"] .theme-icon-sun {
    display: none;
}

:root[data-theme="dark"] .theme-icon-moon {
    display: block;
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .form-card {
    border-color: var(--border);
}

:root[data-theme="dark"] .card-icon {
    background: #213d52;
    color: #8bd5ff;
}

:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea {
    color-scheme: dark;
}

:root[data-theme="dark"] .notice {
    background: #202f3b;
    color: #e3ebf1;
}

:root[data-theme="dark"] .contact-details a {
    color: #79c9f3;
}

:root[data-theme="dark"] .hero::before {
    background: linear-gradient(118deg, rgb(7 23 40 / 62%) 0%, rgb(12 34 56 / 48%) 52%, rgb(4 13 24 / 58%) 100%), linear-gradient(90deg, rgb(4 14 25 / 18%), transparent 72%);
}

@media (max-width: 600px) {
    :root[data-theme="dark"] .hero::before {
        background: linear-gradient(0deg, rgb(6 18 30 / 64%) 0%, rgb(9 29 49 / 42%) 58%, rgb(6 19 32 / 30%) 100%);
    }
}

/* HERO */
.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: flex-start;
  justify-content: center;
  padding: 0 24px;
  isolation: isolate;
  overflow: hidden;
  background: #dce3e7 url("/assets/images/wallpaper.png") center top / cover no-repeat;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgb(247 249 250 / 20%) 0%, transparent 48%);
  content: "";
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .hero {
    padding: 0;
  }
}
