/* Paleta del diseño: navy #0C3C4C, teal #0F4E60, olivo #73943A / #4E6824, crema #F4F2EB */

:root {
  --navy: #0c3c4c;
  --navy-deep: #082833;
  --teal: #0f4e60;
  --ink: #14313c;
  --olive: #73943a;
  --olive-deep: #4e6824;
  --olive-card: #5e7c2c;
  --olive-bright: #8aad48;
  --cream: #f4f2eb;
  --gutter: #e6e1d4;
  --line: #ddd8cc;
  --muted: #5c6c74;
  --paper: #ffffff;
  --wa: #1faa59;
  --wa-size: 60px;
  --wa-right: 24px;
  --wa-bottom: 24px;
  --up-size: 48px;
  --up-gap: 50px;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: Manrope, "Segoe UI", sans-serif;
  --header-offset: 141px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--gutter);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }

a { color: var(--olive-deep); }
a:hover { color: var(--navy); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--olive-deep);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  z-index: 80;
  background: var(--navy);
  color: #fff;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }

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

.wrap-90 { width: 90%; margin-inline: auto; }
.wrap-80 { width: 80%; margin-inline: auto; }

.page-body {
  width: 80%;
  margin-inline: auto;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(12, 60, 76, 0.06);
}

.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  border-bottom: 3px solid var(--olive);
}

.with-toolbar > .topbar {
  position: sticky;
  top: var(--header-offset);
  z-index: 25;
}

.page-body > .with-toolbar > .topbar .topbar-inner,
.page-body > .topbar .topbar-inner {
  width: auto;
  padding-inline: clamp(1.2rem, 2.2vw, 2.4rem);
}

.topbar-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  padding-block: 0.35rem;
}

.topbar-location,
.topbar-contact a,
.topbar-contact span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-location {
  white-space: normal;
  align-items: flex-start;
  max-width: 36rem;
  line-height: 1.35;
}

.topbar a:hover { color: #fff; }
.topbar svg { color: var(--olive-bright); flex: 0 0 auto; }

.topbar-contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin-left: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid rgba(12, 60, 76, 0.06);
}

.site-header.is-stuck { box-shadow: 0 10px 28px rgba(12, 60, 76, 0.08); }

.header-inner {
  position: relative;
  min-height: 0;
  padding-block: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.logo img {
  display: block;
  height: 118px;
  width: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
}

.site-nav a:not(.btn) {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:not(.btn):hover {
  background: var(--cream);
  color: var(--navy);
}

.site-nav a:not(.btn).is-active {
  color: var(--olive-deep);
  background: rgba(115, 148, 58, 0.14);
}

.site-nav a:not(.btn).is-active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.32rem;
  height: 2px;
  border-radius: 99px;
  background: var(--olive);
}

.site-nav li:last-child {
  margin-left: 0.45rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
}

.site-nav .btn::after {
  content: "→";
  font-size: 1.05rem;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span,
.nav-toggle span::before { display: block; }

.nav-toggle .bar {
  width: 18px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--olive-deep);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  border-radius: 6px;
  padding: 0.78rem 1.05rem;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { background: #3f561c; color: #fff; transform: translateY(-1px); }
.btn-sm { padding: 0.78rem 1.05rem; font-size: 0.92rem; border-radius: 999px; }
.site-nav .btn,
.site-nav .btn:hover { color: #fff; }
.site-nav .btn { box-shadow: 0 8px 18px rgba(78, 104, 36, 0.22); }

.btn-light {
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
}
.btn-light:hover { background: var(--cream); color: var(--navy); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.hero {
  position: relative;
  height: min(78vh, 720px);
  min-height: 540px;
  overflow: hidden;
  background: var(--navy);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-color: var(--navy);
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.08);
  transition: opacity 1s ease;
}

.hero-slide--1 {
  background-image: url("../img/excavadora.jpg");
  background-position: center 38%;
}
.hero-slide--2 {
  background-image: url("../img/grua.jpg");
  background-position: center 28%;
}
.hero-slide--3 {
  background-image: url("../img/hero-comercial.jpg");
  background-position: center 45%;
}

.hero-slide.is-active {
  opacity: 1;
  animation: kenburns 7.6s ease-out forwards;
}

@keyframes kenburns {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 24, 32, 0.28) 0%, rgba(6, 24, 32, 0.12) 38%, rgba(6, 24, 32, 0.78) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem clamp(1.2rem, 2.2vw, 2.4rem) 1.6rem;
}

.hero-kicker {
  position: absolute;
  top: 1.1rem;
  right: clamp(1.2rem, 2.2vw, 2.4rem);
  margin: 0;
  max-width: min(28rem, 70%);
  background: var(--olive-deep);
  color: #fff;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: right;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.hero-copy { transition: opacity 0.35s ease, transform 0.35s ease; }
.hero-copy.is-swap { opacity: 0; transform: translateY(8px); }

.hero h1 {
  margin: 0;
  max-width: 16ch;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 6.4rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.hero-lead {
  margin: 0.75rem 0 0;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.hero-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: 0.2rem;
}

.hero-dots { display: flex; gap: 0.15rem; }

.hero-dots button,
.hero-pause {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.hero-dots button {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
}

.hero-dots button::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.45);
}

.hero-dots button.is-active::before { background: #fff; }

.hero-pause {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem;
}

.block { padding: 4.4rem clamp(1.2rem, 2.2vw, 2.4rem); }
#especialidades {
  padding-top: 2rem;
  scroll-margin-top: calc(var(--header-offset) + 3.4rem);
}
.block-alt { background: var(--cream); }

.lede h2,
.section-head h2,
.empresa-copy h2,
.contact-copy h2,
.legal h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 0.92;
}

.lede h2 { font-size: clamp(2.3rem, 4vw, 3.5rem); margin-bottom: 0.75rem; }

.lede p,
.contact-copy > p,
.empresa-copy > p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.lede p { margin-bottom: 1.7rem; }

.bento {
  display: grid;
  grid-template-columns: 1.2fr 0.82fr 1.05fr;
  grid-template-rows: 300px 230px;
  gap: 14px;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  color: #fff;
}

.service-card--plan {
  grid-column: 1 / 3;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  background: var(--teal);
  padding: 1.35rem 1.4rem;
}

.service-card--civil { grid-column: 3; grid-row: 1 / span 2; }
.service-card--comercial { grid-column: 1; grid-row: 2; }
.service-card--quote { grid-column: 2; grid-row: 2; background: var(--olive-card); }

.service-card--photo {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.service-card--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card--civil img { object-position: center 34%; }
.service-card--comercial img { object-position: center 42%; }

.service-card--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 30, 38, 0.05) 15%, rgba(8, 30, 38, 0.82) 100%);
}

.service-copy { position: relative; z-index: 1; max-width: 26rem; }
.service-card--plan .service-copy { max-width: 16rem; }

.service-card--plan::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 78, 96, 0.2) 0%, rgba(15, 78, 96, 0.55) 42%, rgba(15, 78, 96, 0.05) 100%);
  pointer-events: none;
}

.plan-art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(58%, 380px);
  height: 92%;
  pointer-events: none;
}

.idx {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e7f2c4;
  font-size: 1.05rem;
}

.service-card h3 {
  margin: 0.15rem 0 0.35rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 2.5vw, 2.55rem);
  line-height: 0.95;
}

.service-card p { margin: 0; color: rgba(255, 255, 255, 0.92); }

.service-card--quote {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.quote-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: 0.85rem;
}

.service-card--quote p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.3vw, 2.45rem);
  line-height: 0.95;
  max-width: 11ch;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
  max-width: 16ch;
  padding-right: 1.4rem;
  border-right: 1px solid var(--line);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
}

.section-head p { margin: 0; max-width: 32ch; color: var(--muted); }

.feature { margin: 0; }
.feature img {
  width: 100%;
  height: clamp(220px, 28vw, 420px);
  object-fit: cover;
  object-position: center 62%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 210px; object-fit: cover; }
.gallery img.crop-team { object-position: center 70%; }
.gallery img.crop-steel { object-position: center 40%; }

.caption {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--navy);
  font-weight: 800;
}

.caption::after {
  content: "";
  display: block;
  width: 2.2rem;
  height: 3px;
  margin-top: 0.35rem;
  background: var(--olive);
}

.caption + p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.92rem; }

.steps { border-top: 1px solid var(--line); }

.step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem 1rem;
  align-items: center;
  width: 100%;
  padding: 1.05rem 0.2rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.step:hover { background: #fbfaf6; }

.step .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--olive-deep);
}

.step .name { font-weight: 800; font-size: 1.12rem; }
.step .extra,
.step .art { display: none; }

.step .extra {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.step .chev {
  color: var(--navy);
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

.step.is-open {
  grid-template-columns: auto minmax(12rem, 17rem) minmax(0, 1fr) auto auto;
}

.step.is-open .extra,
.step.is-open .art { display: block; }

.step.is-open .name {
  padding-right: 0.4rem;
  border-right: 1px solid var(--line);
}

.step.is-open .chev { transform: none; }

.step .art svg { display: block; }

.empresa-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--olive-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.empresa-copy h2,
.contact-copy h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 0.8rem; }

.empresa-copy > p { margin-bottom: 0.4rem; }

.principles { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.principles li {
  margin: 0.75rem 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--olive);
}
.principles strong { color: var(--navy); }

.empresa-grid figure { margin: 0; }
.empresa-grid img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center 30%;
}

.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 2rem;
  background: var(--olive-deep);
  color: #fff;
  padding: 2.2rem clamp(1.2rem, 2.2vw, 2.4rem);
}

.cta h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 4.4vw, 4.3rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.cta-wa:hover { color: #fff; text-decoration: underline; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 2.2rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.7rem 0;
}

.contact-list svg { color: var(--olive-deep); margin-top: 0.15rem; flex: 0 0 auto; }
.contact-list a { color: var(--navy); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--olive-deep); }

.form {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-full { grid-column: 1 / -1; }

.field span { color: var(--navy); font-size: 0.82rem; font-weight: 800; }

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d5d0c4;
  background: #fff;
  color: var(--ink);
  border-radius: 2px;
  padding: 0.75rem 0.8rem;
  min-height: 48px;
}

.field textarea { min-height: 130px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--navy); }

select.field-input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.form.was-validated :invalid { border-color: #8e2f2f; }

.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink);
}

.consent input { width: 1.05rem; height: 1.05rem; margin-top: 0.2rem; accent-color: var(--olive-deep); }

.form-note { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.88rem; }
.form-status { min-height: 1.3em; margin: 0.7rem 0 0; font-weight: 700; color: var(--navy); }
.form-status.is-error { color: #8e2f2f; }

.site-footer {
  position: relative;
  background:
    radial-gradient(ellipse 42% 80% at 100% 0%, rgba(115, 148, 58, 0.16), transparent 70%),
    linear-gradient(180deg, #0f4a5c 0%, var(--navy) 28%);
  color: #e7eeea;
  border-top: 4px solid var(--olive);
}

.footer-inner { padding: 3.4rem 0 1.6rem; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 1.2fr) 0.82fr 1.05fr minmax(16rem, 1.2fr);
  gap: 2.6rem 2.2rem;
  align-items: start;
}

.footer-brand .logo {
  display: inline-flex;
  background: #fff;
  border-radius: 14px;
  padding: 0.35rem 0.7rem 0.25rem;
  box-shadow: 0 14px 28px rgba(4, 22, 30, 0.28);
}

.footer-brand .logo img { height: 92px; }

.footer-brand p {
  margin: 1.05rem 0 0;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.footer-title {
  margin: 0.15rem 0 1rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-title::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 99px;
  background: var(--olive-bright);
}

.footer-links {
  list-style: disc;
  list-style-position: outside;
  margin: 0;
  padding-left: 1.15rem;
}

.footer-links li { margin: 0.15rem 0; }
.footer-links li::marker { color: var(--olive-bright); }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a[aria-current="page"] { color: #fff; }

.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-contact li:first-child { padding-top: 0; }
.footer-contact li:last-child { border-bottom: 0; }
.footer-contact svg {
  width: 18px;
  height: 18px;
  padding: 7px;
  box-sizing: content-box;
  margin-top: 0.05rem;
  color: var(--olive-bright);
  background: rgba(138, 173, 72, 0.16);
  border-radius: 8px;
  flex: 0 0 auto;
}
.footer-contact a,
.footer-contact span {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  line-height: 1.45;
}
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
  padding: 1.15rem 7.5rem 0.15rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom p { margin: 0; }
.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.8rem;
}
.footer-bottom a { color: #fff; font-weight: 800; text-decoration: none; }
.footer-bottom a:hover { color: var(--olive-bright); }
.footer-legal span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 0.8rem;
  border-radius: 50%;
  background: var(--olive-bright);
  vertical-align: middle;
}

.scroll-top,
.wa-gadget {
  position: fixed;
  z-index: 70;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(8, 30, 38, 0.28);
  text-decoration: none;
}

.wa-gadget {
  width: var(--wa-size);
  height: var(--wa-size);
  right: calc(var(--wa-right) + env(safe-area-inset-right));
  bottom: calc(var(--wa-bottom) + env(safe-area-inset-bottom));
  background: var(--wa);
  color: #fff;
}

.wa-gadget::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(31, 170, 89, 0.5);
  animation: pulse 2.4s ease-out infinite;
}

.scroll-top {
  width: var(--up-size);
  height: var(--up-size);
  right: calc(var(--wa-right) + (var(--wa-size) - var(--up-size)) / 2 + env(safe-area-inset-right));
  bottom: calc(var(--wa-bottom) + var(--wa-size) + var(--up-gap) + env(safe-area-inset-bottom));
  border: 0;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.scroll-top:hover,
.wa-gadget:hover { transform: translateY(-2px); color: #fff; }
.scroll-top.is-visible:hover { transform: translateY(-2px); }

@keyframes pulse {
  70% { box-shadow: 0 0 0 14px rgba(31, 170, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 170, 89, 0); }
}

.legal { padding: 3.4rem clamp(1.2rem, 2.2vw, 2.6rem) 4.4rem; }
.legal h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin-bottom: 0.45rem; }
.legal .updated { color: var(--muted); margin-bottom: 1.6rem; }
.legal h2 { margin: 1.7rem 0 0.45rem; color: var(--navy); font-size: 1.15rem; }
.legal p, .legal li { max-width: 75ch; line-height: 1.65; }
.legal ul { padding-left: 1.2rem; }
.crumb { margin-bottom: 1rem; color: var(--muted); font-size: 0.92rem; }
.crumb a { font-weight: 700; text-decoration: none; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: calc((100% - (100% / 0.9)) / 2);
    width: calc(100% / 0.9);
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(12, 60, 76, 0.08);
    padding: 0.4rem 5vw 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .site-nav a:not(.btn) { width: 100%; border-radius: 10px; }
  .site-nav a:not(.btn).is-active::after {
    left: 0;
    right: auto;
    top: 0.55rem;
    bottom: 0.55rem;
    width: 3px;
    height: auto;
  }
  .site-nav li:last-child {
    margin: 0.45rem 0 0;
    padding: 0.7rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .site-nav .btn { width: 100%; }
}

@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .service-card--plan,
  .service-card--civil,
  .service-card--comercial,
  .service-card--quote {
    grid-column: auto;
    grid-row: auto;
    min-height: 240px;
  }
  .empresa-grid,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .cta-actions { align-items: flex-start; }
}

@media (max-width: 800px) {
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head h2 { border-right: 0; padding-right: 0; max-width: none; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img, .feature img { height: 220px; }
  .step.is-open {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "num name chev"
      "extra extra extra";
  }
  .step.is-open .num { grid-area: num; }
  .step.is-open .name { grid-area: name; border: 0; padding-right: 0; }
  .step.is-open .extra { grid-area: extra; }
  .step.is-open .chev { grid-area: chev; }
  .step.is-open .art { display: none; }
  .form-grid,
  .empresa-grid,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }
  :root { --header-offset: 111px; }
  .logo img { height: 88px; }
  .hero { min-height: 520px; height: 88vh; }
  .hero-kicker { position: static; align-self: flex-start; margin-bottom: auto; text-align: left; }
  .hero-content { justify-content: space-between; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions { max-width: calc(100% - 76px); }
  .topbar-inner { align-items: flex-start; }
  .topbar-location { margin-right: auto; }
  .topbar-contact { width: 100%; justify-content: flex-end; }
  .footer-brand .logo img { height: 78px; }
  .footer-bottom { padding-right: 0; }
  .footer-inner {
    padding-bottom: calc(var(--wa-bottom) + var(--wa-size) + var(--up-gap) + var(--up-size) + 1.25rem);
  }
}

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

@media print {
  .topbar, .nav-toggle, .wa-gadget, .scroll-top, .hero-tools, .btn { display: none !important; }
  .page-body, .wrap-90, .wrap-80 { width: 100%; }
  .site-header { position: static; }
}
