/* =========================================================
   VDT · Cimentando el futuro — hoja de estilos del sitio
   Paleta tomada del logotipo: marino, pizarra, turquesa y lima.
   ========================================================= */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --navy: #142A52;
  --navy-2: #1D3767;
  --slate: #44587A;
  --teal: #3AA7A8;
  --teal-ink: #1E7A7C;
  --lime: #B5CE58;
  --lime-2: #A3BC46;
  --concrete: #EDF0F2;
  --line: #D6DCE3;
  --muted: #56667F;
  --white: #fff;
  --clients: #F7F7F7;

  --r: 18px;                         /* esquinas opuestas redondeadas, como el logo */
  --rad: 0 var(--r) 0 var(--r);
  --wrap: 1240px;
  --gut: 20px;
  --top: 68px;
  --appbar: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 18px 40px -22px rgba(20, 42, 82, .45);
}
:root { --top: 76px; }
@media (min-width: 960px) { :root { --gut: 32px; --top: 84px; --appbar: 0px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 64px); }
body {
  margin: 0; color: var(--navy); background: var(--white);
  font: 400 17px/1.6 "Archivo", system-ui, sans-serif; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--appbar) + env(safe-area-inset-bottom));
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--lime); color: var(--navy); padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.ico { width: 22px; height: 22px; flex: none; }

/* ---------- Tipografía ---------- */
.display {
  font-stretch: 125%; font-weight: 800; letter-spacing: -.025em; line-height: .9;
  font-size: clamp(2.2rem, 11.6vw, 7.4rem); text-wrap: balance;
}
.display--page { font-size: clamp(2.9rem, 12vw, 6rem); }
.h1 { font-stretch: 118%; font-weight: 800; letter-spacing: -.02em; line-height: 1.02; font-size: clamp(2rem, 6vw, 3.4rem); text-wrap: balance; }
.h2 { font-stretch: 118%; font-weight: 800; letter-spacing: -.018em; line-height: 1.05; font-size: clamp(1.85rem, 5.2vw, 3rem); text-wrap: balance; }
.h3 { font-stretch: 112%; font-weight: 700; line-height: 1.2; font-size: 1.2rem; margin-bottom: .5em; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 54ch; }
.link { font-weight: 700; color: var(--teal-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--lime); }
.link:hover { text-decoration-color: var(--teal); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; cursor: pointer;
  font-weight: 700; font-stretch: 110%; font-size: 1rem; text-decoration: none;
  border-radius: 0 14px 0 14px; transition: transform .15s var(--ease), background-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn--lime { background: var(--lime); color: var(--navy); }
.btn--lime:hover { background: #C3DA68; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--white { background: #fff; color: var(--navy); }
.btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn--block { width: 100%; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100; height: var(--top);
  background: #fff;
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__in { height: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 24px; }
.brand { position: relative; z-index: 2; display: flex; align-items: center; min-height: 48px; padding: 4px 8px 4px 0; -webkit-tap-highlight-color: transparent; }
.brand picture { display: block; }
.brand img { height: 56px; width: auto; }
.mainnav, .topbar__cta { display: none; }
.menubtn {
  margin-left: auto; width: 48px; height: 48px; border: 0; cursor: pointer; position: relative;
  background: var(--navy); border-radius: 0 14px 0 14px;
}
.menubtn span { position: absolute; left: 13px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s, width .3s var(--ease); }
.menubtn span:nth-child(1) { top: 16px; width: 22px; }
.menubtn span:nth-child(2) { top: 23px; width: 14px; background: var(--lime); }
.menubtn span:nth-child(3) { top: 30px; width: 22px; }
.menu-open .menubtn { background: var(--lime); }
.menu-open .menubtn span { background: var(--navy); }
.menu-open .menubtn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menubtn span:nth-child(2) { opacity: 0; width: 0; }
.menu-open .menubtn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 960px) {
  .brand img { height: 50px; }
  .brand { padding: 0; }
  .menubtn { display: none; }
  .mainnav { display: flex; gap: 6px; margin-left: auto; }
  .mainnav a { text-decoration: none; font-weight: 600; font-stretch: 108%; padding: 10px 16px; position: relative; }
  .mainnav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 3px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .mainnav a:hover::after, .mainnav a[aria-current]::after { transform: scaleX(1); }
  .topbar__cta { display: inline-flex; min-height: 46px; }
}

/* ---------- Menú móvil ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--navy); color: #fff; overflow: hidden auto;
  padding: calc(var(--top) + 28px) 0 calc(var(--appbar) + 52px + env(safe-area-inset-bottom));
  clip-path: polygon(130% 0, 130% 0, 100% 100%, 100% 100%);
  transition: clip-path .6s var(--ease), visibility 0s linear .6s; visibility: hidden;
}
.menu-open .menu { clip-path: polygon(-40% 0, 130% 0, 100% 100%, -70% 100%); visibility: visible; transition: clip-path .6s var(--ease); }
.menu-open { overflow: hidden; }
.menu__blade { position: absolute; pointer-events: none; transform: translateX(60%); transition: transform .8s var(--ease) .1s; }
.menu__blade--lime { right: -8%; bottom: -6%; width: 48%; height: 40%; background: var(--lime); clip-path: polygon(62% 0, 100% 0, 38% 100%, 0 100%); opacity: .95; }
.menu__blade--teal { right: 22%; bottom: -6%; width: 22%; height: 26%; background: var(--teal); clip-path: polygon(70% 0, 100% 0, 30% 100%, 0 100%); transition-delay: .18s; }
.menu-open .menu__blade { transform: none; }
.menu__in { position: relative; z-index: 1; padding: 0 var(--gut); max-width: 560px; }
.menu__nav { display: grid; gap: 4px; margin-bottom: 32px; }
.menu__nav a {
  display: flex; align-items: center; gap: 16px; text-decoration: none; padding: 10px 0;
  font-stretch: 125%; font-weight: 800; font-size: clamp(2rem, 9vw, 2.8rem); letter-spacing: -.02em; line-height: 1;
  opacity: 0; transform: translateX(40px); transition: opacity .4s, transform .6s var(--ease);
}
.menu-open .menu__nav a { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i) * .06s); }
.menu__nav a[aria-current] { color: var(--lime); }
.menu__hex { width: 48px; height: 52px; display: grid; place-items: center; background: var(--navy-2); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.menu__nav a[aria-current] .menu__hex { background: var(--lime); color: var(--navy); }
.menu__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; opacity: 0; transition: opacity .4s .35s; }
.menu-open .menu__tiles { opacity: 1; }
.tile {
  display: grid; justify-items: center; gap: 8px; padding: 16px 6px; text-decoration: none; font-size: .9rem; font-weight: 600;
  background: var(--navy-2); color: #fff; border-radius: 0 16px 0 16px; border: 1px solid #2E4A7C;
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.6);
}
.tile .ico { width: 26px; height: 26px; color: var(--lime); }
.tile:active { background: #27457A; }
.menu__foot { display: inline-block; color: #D3DBE8; font-size: .92rem; max-width: 30ch; background: var(--navy); padding: 4px 10px 4px 0; }
@media (min-width: 960px) { .menu { display: none; } }
@media (max-height: 760px) {
  .menu { padding-top: calc(var(--top) + 14px); }
  .menu__nav { gap: 0; margin-bottom: 20px; }
  .menu__nav a { font-size: clamp(1.6rem, 7.6vw, 2.2rem); padding: 7px 0; gap: 14px; }
  .menu__hex { width: 40px; height: 44px; }
  .menu__hex .ico { width: 20px; height: 20px; }
  .tile { padding: 12px 6px; }
  .menu__tiles { margin-bottom: 16px; }
}

/* ---------- Barra inferior tipo app ---------- */
.appbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  height: calc(var(--appbar) + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.appbar a { display: grid; justify-items: center; gap: 3px; padding: 10px 0 9px; text-decoration: none; font-size: .72rem; font-weight: 600; color: var(--muted); position: relative; }
.appbar a .ico { width: 24px; height: 24px; }
.appbar a[aria-current] { color: var(--navy); }
.appbar a[aria-current]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; background: var(--lime); border-radius: 0 0 3px 3px; }
.appbar__main { padding-top: 0 !important; color: var(--navy) !important; }
.appbar__hex {
  width: 58px; height: 64px; margin-top: -26px; display: grid; place-items: center; color: var(--navy);
  background: var(--lime); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  filter: drop-shadow(0 6px 10px rgba(20,42,82,.3));
}
.appbar__hex .ico { width: 28px !important; height: 28px !important; }
.menu-open .appbar { background: var(--navy); border-top-color: rgba(255,255,255,.1); }
.menu-open .appbar a { color: rgba(255,255,255,.7); }
.menu-open .appbar a[aria-current] { color: #fff; }
@media (min-width: 960px) { .appbar { display: none; } }

/* ---------- Hero de inicio ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.hero__blades { position: relative; height: 54svh; min-height: 340px; max-height: 560px; }
.blade, .stripe { position: absolute; top: 0; bottom: 0; margin: 0; }
.blade { width: 46%; clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); overflow: hidden; background: var(--slate); }
.blade img { width: 100%; height: 100%; object-fit: cover; }
.blade--1 { left: -6%; }
.blade--2 { left: 32.9%; }
.blade--2 img { object-position: 60% 50%; }
.blade--3 { left: 71.8%; }
.stripe { width: 13.1%; clip-path: polygon(77% 0, 100% 0, 23% 100%, 0 100%); }
.stripe--lime { left: 29.9%; background: var(--lime); }
.stripe--teal { left: 68.8%; background: var(--teal); }
.hero__blades::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to top, var(--navy), transparent); pointer-events: none; }
.hero__copy { position: relative; padding: 0 var(--gut) 56px; margin-top: -72px; z-index: 2; }
.hero__copy .display { max-width: 9ch; margin-bottom: 22px; }
.hero__lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: rgba(255,255,255,.86); max-width: 46ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { flex: 1 1 180px; }

@media (min-width: 960px) {
  .hero { min-height: min(calc(100svh - var(--top)), 800px); display: flex; align-items: center; }
  .hero__blades { position: absolute; inset: 0 -6% 0 52%; height: auto; max-height: none; }
  .hero__blades::after { inset: 0 auto 0 0; width: 16%; height: auto; background: linear-gradient(to right, var(--navy), transparent); }
  .hero__copy { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 80px var(--gut); }
  .hero__copy .display { font-size: clamp(4.2rem, 5.6vw, 6.2rem); }
  .hero__copy > * { max-width: min(560px, 44vw); }
  .hero__actions .btn { flex: 0 0 auto; }
}

/* Momento de entrada (único) */
@media (prefers-reduced-motion: no-preference) {
  .blade { animation: rise 1s var(--ease) both; }
  .blade--2 { animation-delay: .12s; } .blade--3 { animation-delay: .24s; }
  .stripe { animation: grow .9s var(--ease) both .45s; transform-origin: bottom; }
  .stripe--teal { animation-delay: .58s; }
  .hero__copy > * { animation: fadeup .8s var(--ease) both .5s; }
  .hero__copy > :nth-child(2) { animation-delay: .62s; } .hero__copy > :nth-child(3) { animation-delay: .74s; }
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Secciones ---------- */
.sec { padding: 72px 0; }
.sec--tight { padding: 40px 0 72px; }
.sec--concrete { background: var(--concrete); }
.sec--navy { background: var(--navy); color: #fff; }
.sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 32px; }
.sec__head .lead { margin: 0; }
@media (min-width: 960px) { .sec { padding: 112px 0; } .sec--tight { padding: 48px 0 112px; } }

/* Intro + sectores */
.intro__text { font-size: clamp(1.4rem, 3.6vw, 2.25rem); font-weight: 500; font-stretch: 104%; line-height: 1.28; letter-spacing: -.01em; max-width: 34ch; margin-bottom: 44px; }
.sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sector { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--rad); text-decoration: none; color: #fff; background: var(--navy); }
.sector img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sector::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,42,82,.95) 8%, rgba(20,42,82,.2) 60%, transparent); }
.sector:hover img { transform: scale(1.05); }
.sector__body { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 4px; }
.sector__t { font-stretch: 120%; font-weight: 800; font-size: 1.15rem; line-height: 1.1; }
.sector__d { display: none; font-size: .92rem; color: rgba(255,255,255,.85); line-height: 1.4; }
.sector__n { font-size: .82rem; font-weight: 600; color: var(--lime); }
@media (min-width: 760px) {
  .sectors { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .sector__d { display: block; }
  .sector__body { left: 20px; right: 20px; bottom: 20px; }
  .sector__t { font-size: 1.35rem; }
}

/* Hexágonos */
.hex {
  --hc: var(--navy);
  width: 72px; height: 80px; flex: none; display: grid; place-items: center; position: relative; color: #fff;
  background: var(--lime); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hex::before { content: ""; position: absolute; inset: 5px; background: var(--hc); clip-path: inherit; }
.hex .ico { position: relative; width: 32px; height: 32px; }
.hex--sm { width: 48px; height: 54px; } .hex--sm::before { inset: 3.5px; } .hex--sm .ico { width: 22px; height: 22px; }
.split { display: grid; gap: 40px; }
.split__head .lead { margin: 18px 0 22px; }
.hexgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hexgrid a { display: flex; flex-direction: column; gap: 14px; padding: 20px 16px; height: 100%; background: #fff; text-decoration: none; border-radius: var(--rad); transition: background-color .2s, color .2s; }
.hexgrid li:nth-child(even) .hex { --hc: var(--teal); }
.hexgrid__t { font-weight: 700; font-stretch: 108%; line-height: 1.25; }
.hexgrid a:hover { background: var(--navy); color: #fff; }
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .split__head { position: sticky; top: calc(var(--top) + 32px); }
  .hexgrid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hexgrid a { flex-direction: row; align-items: center; padding: 18px 22px; }
}
@media (min-width: 1180px) { .hexgrid { grid-template-columns: repeat(2, 1fr); } }

/* Tarjetas de proyecto */
.card { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.card[hidden] { display: none; }
.card__img { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--rad); background: var(--concrete); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { display: grid; gap: 6px; padding: 14px 2px 0; justify-items: start; }
.card__t { font-stretch: 110%; font-weight: 700; font-size: 1.12rem; line-height: 1.25; }
.card__loc { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); }
.card__loc .ico { width: 16px; height: 16px; color: var(--teal-ink); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; font-stretch: 110%; padding: 3px 10px; border-radius: 0 8px 0 8px; background: var(--concrete); color: var(--navy); }
.tag--agua { background: #D8EFEF; color: #145F61; }
.tag--industrial { background: #DCE2EC; color: var(--navy); }
.tag--habitacional { background: #EBF3D2; color: #4B5E12; }
.tag--comercial { background: #E2E6EE; color: var(--slate); }
.tag--acabados { background: #F0ECE4; color: #5C4A2B; }

.feat { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gut) 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.feat::-webkit-scrollbar { display: none; }
.feat .card { scroll-snap-align: center; }
@media (min-width: 760px) { .feat { grid-auto-columns: 44%; } }
@media (min-width: 1024px) {
  .feat { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; max-width: var(--wrap); margin: 0 auto; gap: 40px 24px; }
  .card--lead { grid-column: span 2; grid-row: span 2; }
  .card--lead .card__img { aspect-ratio: auto; flex: 1; min-height: 360px; }
  .card--lead .card__t { font-size: 1.6rem; }
}
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; }
@media (max-width: 639px) {
  .pgrid .card__t { font-size: .98rem; }
  .pgrid .card__loc { font-size: .8rem; align-items: flex-start; }
  .pgrid .card__body { padding-top: 10px; gap: 4px; }
  .pgrid .tag { font-size: .7rem; padding: 2px 8px; }
}
@media (min-width: 640px) { .pgrid { gap: 32px 20px; } }
@media (min-width: 1024px) { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 48px 28px; } }
.empty { color: var(--muted); }

/* Nosotros */
.about { display: grid; gap: 48px; }
.about__ceo { display: grid; gap: 28px; align-items: center; }
.about__ceo p { color: rgba(255,255,255,.84); max-width: 62ch; }
.about__name { color: var(--lime) !important; font-weight: 700; font-stretch: 110%; margin: 14px 0 12px; }
.hexphoto { width: 180px; aspect-ratio: .9; display: block; background: var(--lime); padding: 6px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hexphoto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; clip-path: inherit; }
.hexphoto--sm { width: 84px; padding: 3px; }
.about__mv { display: grid; gap: 28px; }
.about__mv > div { border-top: 3px solid var(--lime); padding-top: 18px; }
.about__mv p { color: rgba(255,255,255,.84); margin: 0; }
.values ul { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.values li { display: flex; align-items: center; gap: 10px; font-stretch: 122%; font-weight: 700; font-size: clamp(1.2rem, 3vw, 1.7rem); letter-spacing: -.01em; }
.values li::before { content: ""; width: 12px; height: 13px; background: var(--teal); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.values li:nth-child(3n+2)::before { background: var(--lime); }
@media (min-width: 960px) {
  .about__ceo { grid-template-columns: 260px 1fr; gap: 56px; }
  .hexphoto { width: 260px; }
  .about__mv { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* Clientes */
.clients { display: flex; gap: 0; overflow-x: auto; background: var(--clients); scroll-snap-type: x proximity; scrollbar-width: thin; }
.clients img { height: 240px; width: auto; max-width: none; scroll-snap-align: start; }
@media (min-width: 1024px) {
  .clients { flex-direction: column; overflow: visible; max-width: calc(var(--wrap) - 2 * var(--gut)); margin: 0 auto; padding: 24px; border-radius: var(--rad); }
  .clients img { width: 100%; height: auto; max-width: 100%; }
}

/* Llamado a la acción */
.cta { position: relative; overflow: hidden; background: var(--lime); padding: 72px 0; isolation: isolate; }
.cta__blade { position: absolute; z-index: -1; top: 0; bottom: 0; right: -12%; width: 55%; background: var(--lime-2); clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%); }
.cta__blade::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 34%; background: var(--teal); clip-path: polygon(70% 0, 100% 0, 30% 100%, 0 100%); opacity: .9; }
.cta__in .h2 { max-width: 15ch; margin-bottom: 14px; }
.cta__in p { max-width: 46ch; font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta__actions .btn { flex: 1 1 240px; }
@media (min-width: 960px) { .cta { padding: 104px 0; } .cta__actions .btn { flex: 0 0 auto; } }

/* Pie */
.foot { position: relative; background: var(--navy); color: rgba(255,255,255,.82); padding: 72px 0 28px; font-size: .95rem; }
.foot__cut { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--lime) 0 45%, var(--teal) 45% 70%, var(--slate) 70%); }
.foot__grid { display: grid; gap: 36px; }
.foot__brand p { max-width: 40ch; margin-top: 20px; }
.plate { display: inline-block; background: #fff; padding: 12px 16px; border-radius: 0 14px 0 14px; }
.plate img { height: 52px; width: auto; }
.foot__h { font-size: 1rem; font-stretch: 112%; font-weight: 700; color: #fff; margin-bottom: 12px; }
.foot__list { display: grid; gap: 8px; }
.foot__list a { text-decoration: none; overflow-wrap: anywhere; }
.foot__list a:hover { color: var(--lime); }
.foot__addr { margin-bottom: 14px; }
.foot__addr strong { color: #fff; }
.foot__legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; color: rgba(255,255,255,.6); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.foot__legal a { color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: 2px; }
.foot__legal a:hover { color: #fff; }
.foot__webmail { color: rgba(255,255,255,.4) !important; font-size: .8rem; }
.foot__webmail:hover { color: rgba(255,255,255,.8) !important; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr; } }

/* ---------- Encabezado de páginas internas ---------- */
.phero { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.phero__img { position: absolute; inset: 0; z-index: -1; }
.phero__img img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.phero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(20,42,82,.4), var(--navy) 85%); }
.phero__in { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 64px; }
.phero__in .display { margin-bottom: 18px; }
.phero__in .hero__lead { margin-bottom: 0; }
.phero--plain { padding-bottom: 20px; }
.phero--plain .btn { margin-top: 24px; }
@media (min-width: 960px) {
  .phero__img { left: 46%; }
  .phero__img img { opacity: 1; }
  .phero__img::after { display: none; }
  .phero__img { clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%); }
  .phero::after { content: ""; position: absolute; top: 0; bottom: 0; left: 43.5%; width: 15.46%; background: var(--lime); clip-path: polygon(84.1% 0, 100% 0, 16.2% 100%, 0 100%); }
  .phero__in { padding-top: 128px; padding-bottom: 120px; }
  .phero__in > * { max-width: 46%; }
}

/* Chips (filtros y navegación de servicios) */
.chips { background: #fff; border-bottom: 1px solid var(--line); }
.chips--sticky { position: sticky; top: var(--top); z-index: 50; }
.chips__in { display: flex; gap: 8px; overflow-x: auto; padding: 12px var(--gut); max-width: var(--wrap); margin: 0 auto; scrollbar-width: none; }
.chips__in::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: 0 12px 0 12px; background: var(--concrete); text-decoration: none; font-weight: 600; font-size: .94rem; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.chip .ico { width: 18px; height: 18px; color: var(--teal-ink); }
.chip small { font-size: .78rem; color: var(--muted); font-weight: 700; }
.chip[aria-current] { background: var(--navy); color: #fff; }
.chip[aria-current] .ico, .chip[aria-current] small { color: var(--lime); }

/* Servicios */
.service { padding: 64px 0; }
.service--alt { background: var(--concrete); }
.service__grid { display: grid; gap: 32px; }
.service__media { position: relative; }
.service__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--rad); }
.hex--float { position: absolute; left: 18px; bottom: -28px; }
.service__body .h2 { margin: 18px 0 14px; }
.checks { display: grid; gap: 10px; margin-top: 22px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.checks .ico { width: 20px; height: 20px; color: var(--teal-ink); margin-top: 1px; padding: 2px; background: #D8EFEF; border-radius: 0 6px 0 6px; }
@media (min-width: 960px) {
  .service { padding: 104px 0; }
  .service__grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .service--alt .service__media { order: 2; }
  .service__media img { aspect-ratio: 4/5; max-height: 620px; }
  .service__body .h2 { margin-top: 0; }
  .checks { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
}

/* Detalle de proyecto */
.pd { padding-top: 16px; }
.crumbs a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; color: var(--muted); padding: 8px 0; }
.crumbs .ico { width: 18px; height: 18px; }
.gallery { position: relative; margin: 8px 0 32px; }
.gallery__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gut); scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; cursor: zoom-in; background: var(--concrete); border-radius: var(--rad); overflow: hidden; aspect-ratio: 4/3; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.gallery__dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .3s var(--ease), background-color .3s; }
.gallery__dots span.on { width: 24px; background: var(--navy); }
@media (min-width: 960px) {
  .gallery__track { padding: 0 max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); gap: 16px; }
  .gallery__slide { flex-basis: 62%; aspect-ratio: 16/10; }
}
.pd__grid { display: grid; gap: 28px; }
.pd__head .h1 { margin: 12px 0 22px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.facts div { border-top: 2px solid var(--line); padding-top: 10px; }
.facts dt { font-size: .82rem; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 700; line-height: 1.35; }
.pd__body p { font-size: 1.08rem; max-width: 64ch; }
.pd__body .btn { margin-top: 10px; }
@media (min-width: 960px) { .pd__grid { grid-template-columns: 5fr 6fr; gap: 72px; } .facts { grid-template-columns: 1fr; } }
.pgrid--3 { margin-top: 0; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8, 18, 36, .96); display: flex; }
.lightbox[hidden] { display: none; }
.lightbox__track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.lightbox__close { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 0 14px 0 14px; background: var(--lime); color: var(--navy); display: grid; place-items: center; cursor: pointer; }

/* Contacto */
.quick { display: grid; gap: 10px; }
.qbtn { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; border: 1.5px solid var(--line); border-radius: var(--rad); transition: border-color .2s, background-color .2s; }
.qbtn:hover { border-color: var(--navy); }
.qbtn:active { background: var(--concrete); }
.qbtn strong { display: block; font-stretch: 110%; }
.qbtn small { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
@media (min-width: 760px) { .quick { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.contact { display: grid; gap: 40px; }
.contact__form .h2 { margin-bottom: 22px; }
.form { display: grid; gap: 16px; background: #fff; padding: 22px; border-radius: var(--rad); }
.form__row { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 "Archivo", system-ui, sans-serif; color: var(--navy);
  min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 0 12px 0 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(58,167,168,.18); }
.hp { position: absolute; left: -9999px; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--rad); margin-bottom: 16px; }
.notice--ok { background: #EBF3D2; color: #3A4A0B; }
.notice--ok .ico { color: #5E7516; margin-top: 2px; }
.notice--err { background: #FBE4E1; color: #7A1F12; }
.notice--err ul { list-style: disc; padding-left: 18px; }
.contact__offices { display: grid; gap: 16px; align-content: start; }
.office { background: #fff; border-radius: var(--rad); overflow: hidden; }
.office iframe { display: block; width: 100%; height: 200px; border: 0; filter: saturate(.85); }
.office__body { padding: 18px 20px 20px; }
.office__body p { color: var(--muted); }
.office--person { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.office--person p { margin: 0; color: var(--muted); }
.office--person a { color: var(--teal-ink); font-weight: 600; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } .form { padding: 32px; } }
@media (min-width: 960px) { .contact { grid-template-columns: 7fr 5fr; gap: 56px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
}
.menu-open .appbar .appbar__main { color: #fff !important; }
