:root {
  color-scheme: light;
  --surface: #f7f9fc;
  --panel: #fff;
  --tint: #edf2f8;
  --ink: #0b2640;
  --muted: #486075;
  --accent: #255d8c;
  --line: #d7e2ec;
  --shadow: 0 14px 38px #102c4410;
  --navy: #0a233b;
  --ice: #bad9f2;
  --wrap: 1200px;
  --space: clamp(3.5rem, 8vw, 7rem);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #0b1b2b;
  --panel: #11263a;
  --tint: #102337;
  --ink: #eef5fc;
  --muted: #b0c3d5;
  --accent: #a0cdef;
  --line: #2a455d;
  --shadow: 0 14px 38px #02091342;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 8.5rem; }
body { margin: 0; background: var(--surface); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
p, h1, h2, h3 { margin: 0; }
.wrap { width: min(var(--wrap), calc(100% - 3.75rem)); margin-inline: auto; }
.section { padding-block: var(--space); }

.skip-link { position: fixed; z-index: 9; left: 1rem; top: 1rem; padding: .6rem 1rem; color: var(--ink); background: var(--panel); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.site-header { position: sticky; inset-block-start: 0; z-index: 5; background: var(--panel); box-shadow: 0 1px var(--line); }
.top-bar { background: var(--navy); color: #d6e5f2; font-size: .76rem; }
.top-inner { display: flex; align-items: center; gap: 1.45rem; min-height: 2.2rem; }
.top-inner > * { display: flex; align-items: center; gap: .4rem; }
.top-inner .icon { width: .9rem; height: .9rem; color: var(--ice); }
.top-note { margin-inline-start: auto; }
.navigation { display: flex; align-items: center; gap: 1rem; min-height: 5.15rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; line-height: 1.1; flex: none; }
.brand img { display: block; width: 3.3rem; height: 3.3rem; border-radius: .4rem; background: #f5f5f5; }
.brand strong { display: block; font-size: 1.1rem; letter-spacing: -.035em; }
.brand small { display: block; margin-top: .26rem; font-size: .69rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.main-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(.8rem, 2.1vw, 1.9rem); margin-inline: auto; }
.main-nav a { position: relative; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; inset: auto 0 -.4rem; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }

.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 2.85rem; border: 1px solid transparent; border-radius: .28rem; font-size: .83rem; font-weight: 750; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.button { padding: .65rem 1.05rem; background: var(--ink); color: var(--panel); }
.button .icon { width: 1.05rem; height: 1.05rem; }
.button:hover { transform: translateY(-2px); }
.icon-button { width: 2.85rem; padding: 0; background: var(--tint); color: var(--ink); border-color: var(--line); cursor: pointer; }
.icon-button:hover { border-color: var(--accent); }
.theme-toggle .sun { display: none; }
.theme-toggle[aria-pressed="true"] .moon { display: none; }
.theme-toggle[aria-pressed="true"] .sun { display: block; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #0a233b; color: #fff; }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: center 54%; animation: photo-enter 1.15s ease-out both; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(90deg, #071c32f2 0%, #091f36c9 42%, #091f3638 100%), linear-gradient(0deg, #071827ba, transparent 35%); }
.hero-inner { display: grid; grid-template-rows: 1fr auto; min-height: clamp(34rem, 75svh, 48rem); }
.hero-copy { align-self: center; max-width: 49rem; padding: 1rem 0 1rem clamp(1rem, 3vw, 2.25rem); border-left: 3px solid #88bdea; margin-block: 4rem 2rem; animation: slide-in .65s ease-out both; }
.kicker { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); margin-bottom: .8rem; }
.hero .kicker, .contact .kicker { color: var(--ice); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.25rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); font-weight: 780; }
h3 { font-size: 1.25rem; }
.hero-lead { max-width: 35rem; margin-top: 1.3rem; font-size: clamp(1rem, 1.7vw, 1.21rem); color: #e2edf7; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.actions .button { min-height: 3.2rem; }
.button-light { background: #f2f7fc; color: #102c45; }
.button-light:hover { background: #cbe4f7; }
.button-outline { background: #0a233b29; border-color: #caddec9c; color: #fff; }
.button-outline:hover { background: #a8cbe828; border-color: #fff; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid #e5f1fc42; color: #d8e7f4; font-size: .73rem; }
.scroll-link { display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.scroll-link .icon { width: 1rem; transition: transform .22s; }
.scroll-link:hover .icon { transform: translateY(3px); }

.process-strip { background: var(--panel); border-bottom: 1px solid var(--line); }
.process-strip ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.process-strip li { display: flex; align-items: center; gap: 1rem; min-height: 6.75rem; padding: 1.25rem; border-inline-end: 1px solid var(--line); }
.process-strip li:first-child { padding-inline-start: 0; }
.process-strip li:last-child { border: 0; }
.process-strip .icon { color: var(--accent); width: 1.65rem; height: 1.65rem; }
.process-strip strong, .process-strip span { display: block; }
.process-strip strong { font-size: .96rem; }
.process-strip span { font-size: .82rem; color: var(--muted); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.7rem; margin-bottom: 2.2rem; }
.section-head > p { max-width: 21rem; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service { padding: clamp(1.2rem, 3vw, 2rem); background: var(--panel); border: 1px solid var(--line); border-radius: .42rem; box-shadow: var(--shadow); transition: transform .22s ease, border-color .22s ease; }
.service:hover { transform: translateY(-4px); border-color: var(--accent); }
.service-top { display: flex; align-items: center; justify-content: space-between; color: var(--accent); margin-bottom: 1.45rem; }
.service-top .icon { width: 3rem; height: 3rem; padding: .67rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--tint); }
.service-top span { font-size: .78rem; font-weight: 750; letter-spacing: .12em; }
.service p, .company p:not(.kicker) { color: var(--muted); margin-top: .8rem; }

.company { background: var(--tint); border-block: 1px solid var(--line); }
.company-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 8vw, 7rem); }
.company h2 { max-width: 16ch; }
.company-values { border-top: 1px solid var(--line); }
.company-values article { padding-block: 1.35rem; border-bottom: 1px solid var(--line); }
.text-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--accent); margin-top: 1rem; font-size: .88rem; font-weight: 750; }
.text-link .icon { width: 1rem; }
.text-link:hover, .footer-bottom a:hover { text-decoration: underline; }

.contact { background: var(--navy); color: white; }
.contact-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; }
.contact p:not(.kicker) { margin-top: .7rem; color: #cbdcec; }
.contact address { display: flex; gap: 1rem; padding: clamp(1rem, 3vw, 2rem); border: 1px solid #597b9696; background: #ffffff08; border-radius: .45rem; font-style: normal; }
.contact address > .icon, .contact address .text-link { color: var(--ice); }
.site-footer { background: var(--panel); }
.footer-main, .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-main { padding-block: 1.5rem; }
.footer-main nav { display: flex; flex-wrap: wrap; gap: .85rem 1.5rem; font-size: .84rem; font-weight: 700; }
.footer-main nav a:hover { color: var(--accent); }
.footer-bottom { padding-block: 1.1rem; padding-inline-end: 3.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.footer-bottom a { color: var(--accent); font-weight: 700; overflow-wrap: anywhere; }
.whatsapp-float { position: fixed; z-index: 4; bottom: max(1rem, env(safe-area-inset-bottom)); right: max(1rem, env(safe-area-inset-right)); display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border: 1px solid #ffffff80; border-radius: 50%; background: #187850; color: #fff; box-shadow: 0 5px 20px #071c3448; transition: transform .2s; }
.whatsapp-float .icon { width: 1.62rem; height: 1.62rem; }
.whatsapp-float:hover { transform: translateY(-3px); }

@keyframes slide-in {
  from { opacity: 0; translate: 0 .8rem; }
  to { opacity: 1; translate: 0; }
}
@keyframes photo-enter {
  from { opacity: .35; scale: 1.035; }
  to { opacity: 1; scale: 1; }
}
.reveal.is-visible { animation: slide-in .6s ease-out both; }
.service:nth-child(3n + 2).is-visible { animation-delay: .045s; }
.service:nth-child(3n).is-visible { animation-delay: .09s; }

@media (max-width: 900px) {
  .wrap { width: min(var(--wrap), calc(100% - 2.5rem)); }
  .navigation { position: relative; flex-wrap: wrap; gap: .55rem; min-height: 4.6rem; padding-block: .65rem; }
  .menu-toggle { order: 3; }
  .theme-toggle { order: 2; margin-left: auto; }
  .header-cta { order: 1; }
  .brand { margin-right: auto; }
  .main-nav { order: 4; flex-basis: 100%; justify-content: flex-start; padding-block: .6rem; }
  .navigation.menu-ready .main-nav { display: none; }
  .navigation.menu-ready .main-nav.is-open { position: absolute; top: 100%; left: -1.25rem; right: -1.25rem; display: grid; padding: 1rem 1.25rem; background: var(--panel); border-block: 1px solid var(--line); box-shadow: var(--shadow); gap: 0; }
  .main-nav a { display: block; padding: .65rem; }
  .main-nav a::after { content: none; }
  .hero::after { background: linear-gradient(90deg, #071c32f0, #091f367d), linear-gradient(0deg, #071827a0, transparent 35%); }
  .hero-image { object-position: 63% center; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 7.15rem; }
  .wrap { width: calc(100% - 2rem); }
  .navigation.menu-ready .main-nav.is-open { left: -1rem; right: -1rem; }
  .top-inner { justify-content: space-between; gap: .45rem; font-size: .72rem; }
  .top-note { display: none; }
  .brand img { width: 2.8rem; height: 2.8rem; }
  .brand strong { font-size: 1rem; }
  .icon-button { min-height: 2.65rem; width: 2.65rem; }
  .header-cta { display: none; }
  .hero-inner { min-height: 34rem; }
  .hero-copy { margin-block: 2.5rem 2rem; }
  .hero h1 { font-size: clamp(2.2rem, 8.2vw, 3.25rem); }
  .hero h1 br { display: none; }
  .actions { gap: .55rem; }
  .actions .button { padding-inline: .75rem; }
  .process-strip ol, .service-grid, .company-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .process-strip li { padding: .85rem 0; min-height: auto; border: 0; border-bottom: 1px solid var(--line); }
  .section-head { display: grid; align-items: start; gap: .9rem; }
  .service-top { margin-bottom: .9rem; }
  .footer-main, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-bottom { gap: .45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
