/* ============================================================
   CBB GALPONES — BRUTALISMO INDUSTRIAL
   Sistema: negro carbón / blanco hueso / naranja seguridad /
   amarillo obra / acero. Bordes duros, grillas técnicas,
   tipografía display condensada + mono para datos.
   ============================================================ */

:root {
  --ink: #0b0b0c;
  --ink-2: #101012;
  --ink-3: #16161a;
  --line: #26262b;
  --line-hard: #3a3a41;
  --bone: #ece7db;
  --bone-2: #ddd7c8;
  --steel: #a9aeb6;
  --dim: #71757d;
  --orange: #ff5c00;
  --orange-soft: #ff7a2e;
  --yellow: #ffc400;
  --green-wsp: #22c55e;
  --paper-ink: #111110;

  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  --pad-x: clamp(1rem, 4vw, 4.5rem);
  --header-h: 108px;
  --shadow-hard: 8px 8px 0 rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }

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

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--orange); color: #0b0b0c; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

/* ---------- Utilidades tipográficas ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: .005em;
}

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Etiqueta técnica [ ... ] */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .7rem;
  border: 1px solid var(--line-hard);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}

.tag::before { content: "["; color: var(--orange); }
.tag::after { content: "]"; color: var(--orange); }

/* Rótulo de sección // SEC.01 / NOMBRE ————— */
.sec-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sec-label strong { color: var(--orange); font-weight: 700; }

.sec-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section--light .sec-label { color: #55524a; }
.section--light .sec-label::after { background: #b9b2a2; }

/* ---------- Skip link ---------- */

.skip-link {
  position: fixed;
  top: -6rem;
  left: 1rem;
  z-index: 200;
  padding: .8rem 1.2rem;
  background: var(--yellow);
  color: #111;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  transition: top .2s ease;
}

.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(11, 11, 12, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 30px;
  padding-inline: var(--pad-x);
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  overflow: hidden;
  transition: height .25s ease, opacity .25s ease;
}

.topbar .dot {
  color: var(--orange);
  animation: blink 2.4s steps(1) infinite;
}

@keyframes blink { 50% { opacity: .15; } }

.site-header.is-scrolled .topbar {
  height: 0;
  opacity: 0;
  border-bottom-width: 0;
}

.nav-shell {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
  padding-inline: var(--pad-x);
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: clamp(118px, 8.5vw, 140px);
  height: auto;
  max-height: 50px;
  object-fit: cover;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  align-items: stretch;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 1.15rem;
  border-left: 1px solid var(--line);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  position: relative;
  transition: color .2s ease, background .2s ease;
}

.site-nav a:hover { color: var(--bone); background: var(--ink-3); }

.site-nav a.is-active { color: var(--bone); }

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--orange);
}

.site-nav .nav-cta {
  margin-left: .9rem;
  align-self: center;
  padding: .78rem 1.2rem;
  border: 2px solid var(--orange);
  background: var(--orange);
  color: #0b0b0c;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}

.site-nav .nav-cta:hover {
  background: var(--orange-soft);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--yellow);
  color: #0b0b0c;
}

.site-nav .nav-cta.is-active::after { display: none; }

.nav-toggle {
  display: none;
  align-self: center;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 2px solid var(--line-hard);
  background: transparent;
  color: var(--bone);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4.5px 0;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Franjas hazard y ticker ---------- */

.hazard {
  height: 12px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 16px,
    #131313 16px 32px
  );
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  padding: .8rem 0;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--steel);
  white-space: nowrap;
}

.marquee-track b { color: var(--orange); font-weight: 700; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 56px;
  padding: 1rem 1.6rem;
  border: 2px solid var(--bone);
  background: transparent;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }

.btn:hover {
  transform: translate(-3px, -3px);
}

.btn:active { transform: translate(0, 0); box-shadow: none; }

.btn-primary {
  border-color: var(--orange);
  background: var(--orange);
  color: #0b0b0c;
}

.btn-primary:hover {
  box-shadow: 6px 6px 0 var(--yellow);
  background: var(--orange-soft);
}

.btn-ghost:hover {
  box-shadow: 6px 6px 0 var(--orange);
  border-color: var(--bone);
}

.btn-dark {
  border-color: #111;
  color: #111;
}

.btn-dark:hover { box-shadow: 6px 6px 0 #111; }

.btn-dark-solid {
  border-color: #111;
  background: #111;
  color: var(--bone);
}

.btn-dark-solid:hover { box-shadow: 6px 6px 0 var(--orange); }

.btn-wsp {
  border-color: var(--green-wsp);
  background: var(--green-wsp);
  color: #04170a;
}

.btn-wsp:hover { box-shadow: 6px 6px 0 var(--bone); }

/* ---------- Secciones base ---------- */

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) var(--pad-x);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.section--flush { padding: 0; }

.section--light {
  background:
    linear-gradient(90deg, rgba(17, 17, 16, .06) 1px, transparent 1px) 0 0 / 120px 100%,
    var(--bone);
  color: var(--paper-ink);
  border-bottom: 1px solid #000;
}

.section--grid {
  background:
    linear-gradient(90deg, rgba(236, 231, 219, .045) 1px, transparent 1px) 0 0 / 120px 100%,
    linear-gradient(180deg, rgba(236, 231, 219, .035) 1px, transparent 1px) 0 0 / 100% 120px,
    var(--ink);
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head h2 {
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  max-width: 18ch;
}

.section-head .lead { max-width: 62ch; }

.lead {
  color: var(--steel);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
}

.section--light .lead { color: #4c4a43; }

.accent-dot { color: var(--orange); }

/* ---------- HERO HOME ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(236, 231, 219, .04) 1px, transparent 1px) 0 0 / 120px 100%,
    linear-gradient(180deg, rgba(236, 231, 219, .03) 1px, transparent 1px) 0 0 / 100% 120px,
    var(--ink);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 3.5vw, 4rem) clamp(3rem, 6vw, 6rem) var(--pad-x);
  border-right: 1px solid var(--line);
  min-width: 0;
}

.hero-copy > .crosshair-tl,
.hero-copy > .crosshair-bl {
  position: absolute;
  left: 1.1rem;
  color: var(--line-hard);
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

.hero-copy > .crosshair-tl { top: .9rem; }
.hero-copy > .crosshair-bl { bottom: .9rem; }

.hero-kicker {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.hero-kicker b { color: var(--orange); font-weight: 700; }

.hero h1 {
  font-size: clamp(2.55rem, 5vw, 5.4rem);
  max-width: 15ch;
}

.hero h1 .accent-dot { color: var(--orange); }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.hero .lead {
  max-width: 52ch;
  border-left: 3px solid var(--orange);
  padding-left: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: .4rem;
}

.hero-media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink-2);
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.2) contrast(1.06) brightness(.82);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 12, .28), transparent 34%, transparent 62%, rgba(11, 11, 12, .82));
  pointer-events: none;
}

.hero-plate-top,
.plate {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .75rem;
  background: rgba(11, 11, 12, .88);
  border: 1px solid var(--line-hard);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.hero-plate-top { top: 1.1rem; left: 1.1rem; }
.hero-plate-top b { color: var(--yellow); font-weight: 700; }

.hero-plate-bottom {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding: .9rem 1.1rem;
  border-top: 1px solid var(--line-hard);
  background: rgba(11, 11, 12, .82);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hero-plate-bottom .loc { color: var(--dim); }

/* ---------- Métricas / contadores ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}

.stat {
  display: grid;
  align-content: space-between;
  gap: 1.6rem;
  min-height: 170px;
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }

.stat .k {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.stat .v {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: .01em;
}

.stat .v small {
  font-size: .45em;
  color: var(--orange);
  vertical-align: super;
}

.stat .u { color: var(--steel); font-family: var(--font-mono); font-size: .8rem; }

/* ---------- Cards de obras (home) ---------- */

.works-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
}

.work-card {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  isolation: isolate;
}

.work-card--xl { grid-column: span 4; min-height: 520px; }

.work-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.25) contrast(1.05) brightness(.78);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 11, 12, .12), transparent 40%, rgba(11, 11, 12, .9) 82%);
  transition: background .3s ease;
}

.work-card:hover img,
.work-card:focus-visible img {
  transform: scale(1.045);
  filter: grayscale(0) contrast(1.06) brightness(.85);
}

.work-card:hover { outline: 2px solid var(--orange); outline-offset: -2px; }

.work-plate {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  gap: .55rem;
  padding: .45rem .65rem;
  background: rgba(11, 11, 12, .85);
  border: 1px solid var(--line-hard);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.work-plate b { color: var(--yellow); font-weight: 700; }

.work-body {
  position: relative;
  display: grid;
  gap: .45rem;
  padding: 1.3rem 4.4rem 1.3rem 1.3rem;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  color: var(--orange-soft);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.work-meta .m2 { color: var(--bone); }

.work-card h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
}

.work-card .work-type {
  color: var(--steel);
  font-size: .92rem;
  max-width: 46ch;
}

.work-arrow {
  position: absolute;
  right: 1.1rem;
  bottom: 1.15rem;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--line-hard);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  background: rgba(11, 11, 12, .7);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.work-card:hover .work-arrow {
  background: var(--orange);
  border-color: var(--orange);
  color: #0b0b0c;
  transform: translate(2px, -2px);
}

.works-cta { margin-top: 2rem; display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- Tipos de obra (sección clara) ---------- */

.types-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid #111;
  border-right: 0;
  border-bottom: 0;
}

.type-tile {
  position: relative;
  display: grid;
  align-content: start;
  gap: .8rem;
  min-height: 250px;
  padding: 1.4rem;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  background: transparent;
  transition: background .2s ease, transform .15s ease, box-shadow .15s ease;
}

.type-tile:hover {
  background: #111;
  color: var(--bone);
  z-index: 2;
}

.type-tile:hover .type-num { color: var(--yellow); }
.type-tile:hover p { color: var(--steel); }
.type-tile:hover .type-link { color: var(--orange-soft); }

.type-num {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  color: #b04000;
  letter-spacing: .06em;
}

.type-tile h3 {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.type-tile p { color: #4c4a43; font-size: .95rem; }

.type-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #b04000;
}

/* ---------- Proceso (home strip + método) ---------- */

.process-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-right: 0;
}

.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: .7rem;
  min-height: 200px;
  padding: 1.3rem;
  border-right: 1px solid var(--line);
  background: var(--ink-2);
}

.step .t {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.step .n {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  color: var(--line-hard);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
}

.step h3 { font-size: clamp(1.4rem, 1.8vw, 1.8rem); }

.step p { color: var(--steel); font-size: .9rem; }

.step::after {
  content: "→";
  position: absolute;
  right: -.55rem;
  bottom: 1.1rem;
  z-index: 2;
  color: var(--orange);
  font-family: var(--font-mono);
  font-weight: 700;
  background: var(--ink);
  padding: .15rem .2rem;
}

.step:last-child::after { display: none; }

/* ---------- Confianza ---------- */

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.trust-media {
  position: relative;
  border: 1px solid var(--line-hard);
}

.trust-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(.2) contrast(1.05) brightness(.8);
}

.stamp {
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  padding: .6rem;
  border: 2px dashed var(--orange);
  border-radius: 50%;
  background: rgba(11, 11, 12, .92);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .1em;
  line-height: 1.5;
  transform: rotate(-8deg);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
}

.trust-item {
  display: grid;
  gap: .6rem;
  padding: 1.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}

.trust-item .ico {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.trust-item h3 { font-size: 1.35rem; }

.trust-item p { color: var(--steel); font-size: .92rem; }

/* ---------- CTA final ---------- */

.cta-final {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) var(--pad-x);
  background:
    linear-gradient(90deg, rgba(236, 231, 219, .04) 1px, transparent 1px) 0 0 / 120px 100%,
    var(--ink-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.cta-final .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .16;
  filter: grayscale(.4) contrast(1.1);
}

.cta-inner {
  position: relative;
  display: grid;
  gap: 1.6rem;
  max-width: 1100px;
}

.cta-final h2 {
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  max-width: 14ch;
}

.cta-final .lead { max-width: 56ch; }

.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: #070708;
  border-top: 2px solid var(--orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x);
}

.footer-col h4 {
  margin-bottom: 1rem;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.footer-col p { color: var(--steel); font-size: .92rem; max-width: 34ch; margin-top: .9rem; }

.footer-col ul { display: grid; gap: .55rem; }

.footer-col a {
  color: var(--steel);
  font-size: .92rem;
  transition: color .2s ease;
}

.footer-col a:hover { color: var(--orange-soft); }

.footer-col .mono-data {
  font-family: var(--font-mono);
  font-size: .84rem;
  letter-spacing: .02em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  padding: 1.1rem var(--pad-x);
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.footer-bottom a:hover { color: var(--orange-soft); }

.dev-credit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 42px;
  padding: .55rem .75rem .55rem .6rem;
  border: 2px solid var(--orange);
  background:
    linear-gradient(135deg, rgba(255, 196, 0, .18) 0 22%, transparent 22% 48%, rgba(255, 92, 0, .22) 48% 70%, transparent 70%),
    #0b0b0c;
  color: var(--bone);
  box-shadow: 4px 4px 0 rgba(255, 92, 0, .85);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .2s ease, color .2s ease;
}

.dev-credit::before {
  content: "NB";
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 28px;
  background: var(--yellow);
  color: #0b0b0c;
  font-weight: 900;
  letter-spacing: 0;
}

.dev-credit::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
  transform: translateX(-120%);
  transition: transform .45s ease;
}

.dev-credit b {
  color: var(--yellow);
  font-weight: 900;
  transition: color .2s ease;
}

.dev-credit:hover {
  color: var(--bone);
  border-color: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(255, 196, 0, .9);
}

.dev-credit:hover::after { transform: translateX(120%); }

.dev-credit:hover b { color: var(--orange-soft); }

/* ---------- WhatsApp flotante ---------- */

.wsp-float {
  position: fixed;
  right: 1.1rem;
  bottom: calc(5.35rem + env(safe-area-inset-bottom));
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1.1rem;
  border: 2px solid #0c0c0c;
  background: var(--green-wsp);
  color: #04170a;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .6);
  transition: transform .15s ease, box-shadow .15s ease;
}

.wsp-float:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .6);
}

.wsp-float svg { width: 22px; height: 22px; flex: 0 0 auto; }

/* ---------- PAGE HERO (interiores) ---------- */

.page-hero {
  position: relative;
  display: grid;
  gap: 1.3rem;
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad-x);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(236, 231, 219, .04) 1px, transparent 1px) 0 0 / 120px 100%,
    var(--ink);
}

.page-hero h1 {
  font-size: clamp(2.7rem, 7vw, 6.6rem);
  max-width: 16ch;
}

.page-hero .lead {
  max-width: 60ch;
  border-left: 3px solid var(--orange);
  padding-left: 1.1rem;
}

.page-hero .hero-chips { margin-top: .3rem; }

.page-hero--split {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.page-hero--split > div { display: grid; gap: 1.3rem; min-width: 0; }

.page-hero--split figure {
  position: relative;
  border: 1px solid var(--line-hard);
  min-width: 0;
}

.page-hero--split figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(.2) contrast(1.05) brightness(.8);
}

.page-hero--split figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .9rem;
  border-top: 1px solid var(--line-hard);
  background: var(--ink-2);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---------- OBRAS: filtros ---------- */

.filters {
  position: sticky;
  top: 77px; /* header compacto (76px) + borde */
  z-index: 40;
  display: flex;
  gap: .6rem;
  padding: .8rem var(--pad-x);
  overflow-x: auto;
  background: rgba(11, 11, 12, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.filter-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: .6rem 1rem;
  border: 1px solid var(--line-hard);
  background: var(--ink-2);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.filter-btn:hover { border-color: var(--orange); color: var(--bone); }

.filter-btn[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #0b0b0c;
}

.filter-count {
  align-self: center;
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- OBRAS: fichas técnicas ---------- */

.sheet {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border-bottom: 1px solid var(--line);
}

.sheet[hidden] { display: none; }

.sheet:nth-child(even) .sheet-gallery { order: 2; }
.sheet:nth-child(even) .sheet-copy { order: 1; border-right: 1px solid var(--line); }

.sheet-gallery {
  position: relative;
  min-width: 0;
  border-right: 1px solid var(--line);
  background: var(--ink-2);
}

.sheet:nth-child(even) .sheet-gallery { border-right: 0; }

.gallery-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink-3);
}

.gallery-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.15) contrast(1.05) brightness(.85);
  transition: opacity .35s ease;
}

.gallery-frame img.is-fading { opacity: 0; }

/* Ficha de imagen única: llena la columna en desktop, 4:3 apilada */
.gallery-frame--solo {
  aspect-ratio: auto;
  height: 100%;
  min-height: 420px;
}

.gallery-plate {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  gap: .5rem;
  padding: .45rem .65rem;
  background: rgba(11, 11, 12, .85);
  border: 1px solid var(--line-hard);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.gallery-nav {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.gallery-nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-hard);
  background: rgba(11, 11, 12, .85);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.gallery-nav button:hover { background: var(--orange); border-color: var(--orange); color: #0b0b0c; }

.gallery-count {
  padding: .45rem .6rem;
  background: rgba(11, 11, 12, .85);
  border: 1px solid var(--line-hard);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.thumb-row {
  display: flex;
  gap: .5rem;
  padding: .8rem;
  border-top: 1px solid var(--line);
  overflow-x: auto;
  background: var(--ink-2);
}

.thumb {
  flex: 0 0 86px;
  height: 60px;
  padding: 0;
  border: 2px solid var(--line-hard);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s ease, opacity .2s ease;
  opacity: .65;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; }

.thumb:hover { opacity: 1; }

.thumb.is-active { border-color: var(--orange); opacity: 1; }

.sheet-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  min-width: 0;
  padding: clamp(1.8rem, 4vw, 3.5rem);
}

.sheet-num {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sheet-num b { color: var(--orange); font-size: 1rem; }

.sheet-copy h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); }

.sheet-copy > p { color: var(--steel); max-width: 52ch; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  margin-top: .4rem;
}

.facts > div {
  display: grid;
  gap: .3rem;
  padding: .9rem 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}

.facts dt {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.facts dd {
  font-family: var(--font-mono);
  font-size: .92rem;
  font-weight: 700;
  color: var(--bone);
  letter-spacing: .02em;
}

.facts dd.hl { color: var(--yellow); }

.sheet-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .5rem; }

.sheet-ctas .btn { min-height: 50px; padding: .8rem 1.2rem; font-size: .76rem; }

/* ---------- SERVICIOS ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
}

.service-block {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
}

.service-block .big-num {
  position: absolute;
  right: .6rem;
  top: .2rem;
  color: rgba(236, 231, 219, .05);
  font-family: var(--font-display);
  font-size: clamp(5rem, 9vw, 8.5rem);
  line-height: 1;
  pointer-events: none;
}

.service-block .s-tag {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.service-block h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); max-width: 16ch; }

.service-block > p { color: var(--steel); max-width: 52ch; }

.service-block ul { display: grid; gap: .55rem; margin-top: .3rem; }

.service-block li {
  display: flex;
  gap: .7rem;
  align-items: baseline;
  color: var(--bone);
  font-size: .95rem;
}

.service-block li::before {
  content: "→";
  color: var(--orange);
  font-family: var(--font-mono);
  font-weight: 700;
  flex: 0 0 auto;
}

/* ---------- MÉTODO ---------- */

.method-list { display: grid; border: 1px solid var(--line); border-bottom: 0; }

.m-step {
  display: grid;
  grid-template-columns: 150px minmax(0, 4fr) minmax(0, 5fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  position: relative;
}

.m-step .t {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.m-step .t small {
  display: block;
  margin-top: .4rem;
  color: var(--dim);
  font-size: .68rem;
  letter-spacing: .08em;
}

.m-step h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }

.m-step .m-desc { color: var(--steel); margin-top: .6rem; max-width: 44ch; }

.m-step ul { display: grid; gap: .55rem; align-content: center; }

.m-step li {
  display: flex;
  gap: .7rem;
  align-items: baseline;
  color: var(--bone);
  font-size: .95rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: .55rem;
}

.m-step li::before {
  content: "+";
  color: var(--yellow);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Checklist "para partir" */

.check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid #111;
  border-right: 0;
}

.check-tile {
  display: grid;
  gap: .7rem;
  align-content: start;
  min-height: 190px;
  padding: 1.3rem;
  border-right: 2px solid #111;
}

.check-tile .c-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid #111;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .85rem;
}

.check-tile h3 { font-size: 1.35rem; }

.check-tile p { color: #4c4a43; font-size: .92rem; }

/* ---------- CTA band con imagen ---------- */

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.cta-band figure {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.cta-band figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.2) contrast(1.06) brightness(.8);
}

.cta-band figure .plate { left: 1rem; bottom: 1rem; }

.cta-band > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  padding: clamp(2.5rem, 5vw, 4.5rem);
}

.cta-band h2 { font-size: clamp(2rem, 4vw, 3.8rem); max-width: 16ch; }

.cta-band .lead { max-width: 48ch; }

.cta-band .cta-actions { margin-top: .4rem; }

/* ---------- CONTACTO ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.c-form {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line-hard);
  background: var(--ink-2);
}

.c-form .form-head {
  display: grid;
  gap: .4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.c-form .form-head h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }

.c-form .form-head p { color: var(--steel); font-size: .92rem; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.c-form label {
  display: block;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  min-width: 0;
}

.c-form label .req { color: var(--orange); }

.c-form label > input,
.c-form label > select,
.c-form label > textarea { margin-top: .55rem; }

input, select, textarea {
  width: 100%;
  min-height: 52px;
  padding: .85rem .95rem;
  border: 1px solid var(--line-hard);
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .2s ease, background .2s ease;
}

textarea { min-height: 140px; resize: vertical; }

input:hover, select:hover, textarea:hover { border-color: var(--dim); }

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 0;
  border-color: var(--orange);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 49%, var(--orange) 50%),
    linear-gradient(-45deg, transparent 49%, var(--orange) 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 7px 7px;
  background-repeat: no-repeat;
  padding-right: 2.6rem;
}

.form-note {
  min-height: 1.4rem;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.form-note.is-error { color: var(--yellow); }

.form-note.is-error::before { content: "⚠ "; }

.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.c-aside { display: grid; gap: 1rem; align-content: start; }

.channel {
  display: grid;
  gap: .5rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line-hard);
  background: var(--ink-2);
  transition: border-color .2s ease, transform .15s ease, box-shadow .15s ease;
}

a.channel:hover {
  border-color: var(--orange);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 rgba(255, 92, 0, .8);
}

a.channel--wsp:hover {
  border-color: var(--green-wsp);
  box-shadow: 6px 6px 0 rgba(34, 197, 94, .7);
}

.channel .k {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.channel .v {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 800;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}

.channel .d { color: var(--steel); font-size: .88rem; }

.channel--wsp .v { color: var(--green-wsp); }

.response-plate {
  display: grid;
  gap: .6rem;
  padding: 1.3rem 1.4rem;
  border: 1px dashed var(--line-hard);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.response-plate b { color: var(--yellow); }

/* ---------- Animaciones de entrada ---------- */

.reveal { opacity: 1; transform: none; }

.reveal-line { position: relative; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 70ms);
  }

  .reveal.is-in { opacity: 1; transform: translateY(0); }

  .reveal-line::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .8s cubic-bezier(.2, .7, .2, 1) .15s;
  }

  .reveal-line.is-in::after { transform: scaleX(1); }
}

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

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

  .marquee-track { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1180px) {
  .hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.6rem); }

  .work-card, .work-card--xl { min-height: 380px; }

  .m-step { grid-template-columns: 110px minmax(0, 1fr); }

  .m-step ul { grid-column: 2; margin-top: 1rem; }
}

@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .stat { border-bottom: 1px solid var(--line); }

  .stat:nth-child(even) { border-right: 0; }

  .stat:nth-child(n+3) { border-bottom: 0; }

  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .work-card, .work-card--xl { grid-column: span 1; min-height: 360px; }

  .work-card--xl { grid-column: span 2; }

  .types-grid, .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .type-tile { min-height: 210px; }

  .check-tile { min-height: 0; border-bottom: 2px solid #111; }

  .check-grid { border-bottom: 0; }

  .process-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; }

  .step { border-bottom: 1px solid var(--line); min-height: 0; }

  .step::after { display: none; }

  .trust-layout { grid-template-columns: 1fr; }

  .trust-media { max-width: 640px; }

  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }

  .hero-copy { border-right: 0; border-bottom: 1px solid var(--line); }

  .hero h1 { font-size: clamp(2.4rem, 8.6vw, 4.8rem); max-width: none; }

  .hero-media { min-height: 0; aspect-ratio: 4 / 3; }

  .page-hero--split { grid-template-columns: 1fr; }

  .sheet { grid-template-columns: 1fr; }

  .sheet-gallery { border-right: 0; border-bottom: 1px solid var(--line); }

  .gallery-frame--solo {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
  }

  .sheet:nth-child(even) .sheet-gallery { order: 1; border-bottom: 1px solid var(--line); }

  .sheet:nth-child(even) .sheet-copy { order: 2; border-right: 0; }

  .contact-grid { grid-template-columns: 1fr; }

  .cta-band { grid-template-columns: 1fr; }

  .cta-band figure { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 860px) {
  :root { --header-h: 88px; }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--ink);
    border-bottom: 2px solid var(--orange);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .5);
    padding: .5rem var(--pad-x) 1.2rem;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    min-height: 54px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 .2rem;
  }

  .site-nav a.is-active::after { display: none; }

  .site-nav a.is-active { color: var(--orange-soft); }

  .site-nav .nav-cta {
    margin: 1rem 0 0;
    align-self: stretch;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .topbar span:last-child { display: none; }

  .section { padding-inline: 1rem; }

  .section-head h2 { font-size: clamp(2rem, 9vw, 3.2rem); }

  .page-hero h1 { font-size: clamp(2.3rem, 10.5vw, 4rem); }

  .hero h1 { font-size: clamp(2.05rem, 9.2vw, 3.6rem); }

  .cta-final h2 { font-size: clamp(2.2rem, 10.5vw, 4rem); }

  .stats { grid-template-columns: 1fr; }

  .stat { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; gap: .9rem; }

  .stat:last-child { border-bottom: 0; }

  .stat:nth-child(n+3) { border-bottom: 1px solid var(--line); }

  .stat:nth-child(4) { border-bottom: 0; }

  .works-grid { grid-template-columns: 1fr; }

  .work-card--xl { grid-column: span 1; }

  .work-card, .work-card--xl { min-height: 320px; }

  .types-grid, .check-grid, .process-strip { grid-template-columns: 1fr; }

  .facts { grid-template-columns: 1fr 1fr; }

  .field-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-bottom {
    align-items: flex-start;
  }

  .dev-credit {
    width: 100%;
    justify-content: space-between;
    padding: .7rem .8rem .7rem .65rem;
  }

  .m-step { grid-template-columns: 1fr; gap: .8rem; padding: 1.4rem 1.2rem; }

  .m-step ul { grid-column: auto; }

  .trust-list { grid-template-columns: 1fr; }

  .stamp { width: 100px; height: 100px; right: .6rem; bottom: -1rem; }

  .btn { width: 100%; }

  .hero-actions .btn, .cta-actions .btn, .sheet-ctas .btn, .form-actions .btn, .works-cta .btn { width: 100%; }

  .wsp-float {
    right: .8rem;
    bottom: calc(2.1rem + env(safe-area-inset-bottom));
    padding: .8rem;
  }

  .wsp-float .wsp-label { display: none; }

  .wsp-float svg { width: 26px; height: 26px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: clamp(1.9rem, 9.4vw, 2.4rem); }

  .page-hero h1 { font-size: clamp(2rem, 10vw, 2.6rem); }

  .brand-logo { width: 112px; max-height: 40px; }

  .facts { grid-template-columns: 1fr; }
}
