/* =========================================================
   ECOCLIMA — sitio web
   Línea gráfica del portal operativo (v0.22.1): fondo gris muy claro, contenido en
   tarjetas blancas con sombra suave, Barlow / Barlow Semi Condensed.
   Colores medidos del logo: azul #0c4dd1 (lo que se toca) · naranja #ff8d2d y verde #77b72c (acentos).
   Naranja y verde nunca como letra chica sobre blanco: se usan sus versiones «para texto».
   ========================================================= */

:root {
  --blue: #0c4dd1;
  --blue-dark: #093a9e;
  --blue-soft: #eaf0fc;
  --orange: #ff8d2d;
  --orange-text: #b3560a;
  --orange-soft: #fff3e8;
  --green: #77b72c;
  --green-text: #3d7a12;
  --green-soft: #eef7e4;

  --bg: #f5f7f9;
  --bg-2: #FFFFFF;
  --bg-3: #eef1f4;
  --line: #e2e5e9;
  --line-strong: #cdd2d8;

  --fg: #2b2f33;
  --fg-2: #5d6469;
  --fg-3: #7d848a;

  --shadow: 0 1px 2px rgba(20,30,45,0.06), 0 4px 14px rgba(20,30,45,0.06);

  --sans: 'Barlow', system-ui, sans-serif;
  --cond: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- layout helpers ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

.cond { font-family: var(--cond); letter-spacing: 0.04em; }
/* «kicker»: condensed, uppercase, wide spacing — sits right above a title */
.eyebrow {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.92);
  transition: background 0.2s ease;
}
/* signature: three-colour bar from the logo (blue ½ · orange ¼ · green ¼) */
.nav::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(to right, var(--blue) 0 50%, var(--orange) 50% 75%, var(--green) 75%);
}
/* dark bar once the page scrolls: wordmark in the same grey as "S.A. de C.V.", links lightened */
.nav.scrolled { background: rgba(11,18,32,0.92); }
.nav.scrolled .brand-name { color: var(--fg-3); }
.nav.scrolled .nav-links a { color: rgba(247,248,250,0.72); }
.nav.scrolled .nav-links a:hover { color: #FFFFFF; }
.nav.scrolled .lang-toggle { border-color: rgba(255,255,255,0.18); }
.nav.scrolled .lang-toggle button:hover:not(.active) { color: #FFFFFF; }
.nav.scrolled .menu-btn { color: rgba(247,248,250,0.85); border-color: rgba(255,255,255,0.18); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 44px; height: 24px;
  object-fit: contain;
}
.brand-name {
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 17px;
}
.brand-name span {
  color: var(--fg-3);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-left: 6px;
  font-size: 12px;
}
@media (max-width: 440px) { .nav .brand-name span { display: none; } }

.nav-links {
  display: flex; gap: 32px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: 15px;
  color: var(--fg-2);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }
/* current page: blue, like the active item of the portal's menu */
.nav-links a.active { color: var(--blue); font-weight: 600; }
.nav-links a.active::after { width: 100%; }
.nav.scrolled .nav-links a.active { color: #FFFFFF; }
.mobile-panel a.active { color: var(--blue); font-weight: 600; }

.nav-right {
  display: flex; align-items: center; gap: 18px;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px;
  font-family: var(--cond);
  font-size: 12px;
  font-weight: 600;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  color: var(--fg-3);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}
.lang-toggle button.active {
  background: var(--blue);
  color: #FFFFFF;
}
.lang-toggle button:hover:not(.active) { color: var(--fg); }

/* buttons: blue is what you can click; one primary per section, the rest are plain */
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px;
  background: var(--blue);
  color: #FFFFFF;
  border: 1px solid var(--blue);
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cta-btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.cta-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cta-btn.ghost {
  background: var(--bg-2);
  color: var(--fg);
  border-color: var(--line-strong);
}
.cta-btn.ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--bg-2); }

/* mobile menu button */
.menu-btn {
  display: none;
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--fg);
  width: 38px; height: 38px;
  border-radius: 8px;
  align-items: center; justify-content: center;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .cta-btn.nav-cta { display: none; }
}
.mobile-panel {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 16px 32px 24px;
}
.mobile-panel ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.mobile-panel a {
  font-size: 16px; color: var(--fg);
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 128px 0 88px;
  overflow: hidden;
  overflow: clip; /* hidden still lets scrollIntoView/focus scroll the hero internally and leave the title cut off */
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 64px;
  align-items: end;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

.hero h1 {
  font-family: var(--cond);
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 0.98;
  font-weight: 700;
  margin: 18px 0 24px;
}
.hero h1 .accent { color: var(--orange); } /* large enough to read; small orange text uses --orange-text */
.hero h1 .accent-blue { color: var(--blue); }
.hero p.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- hero band: full-width render loop ---------- */
.hero-band {
  position: relative; z-index: 1;
  margin-top: 56px;
}
.hero-band video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2560 / 864;
  max-height: 58vh; /* on wide screens the band would fill the whole window; crop it instead */
  object-fit: cover;
  background: var(--bg);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
}
.band-overlay {
  position: absolute; left: 0; right: 0; bottom: 6%;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  pointer-events: none;
}
.band-label {
  position: relative;
  min-width: 340px; height: 58px;
}
.band-level {
  position: absolute; left: 0; bottom: 0;
  display: grid; row-gap: 2px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  white-space: nowrap;
}
.band-level.on { opacity: 1; transform: none; }
.band-name { font-family: var(--cond); font-size: 17px; font-weight: 700; color: var(--fg); }
.band-sys { font-family: var(--cond); font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--fg-2); }
.band-steps { display: flex; gap: 6px; padding-bottom: 6px; }
.band-steps span { width: 22px; height: 3px; border-radius: 2px; background: var(--line-strong); transition: background 0.3s; }
.band-steps span.on { background: var(--blue); }
@media (max-width: 720px) {
  .hero-band { margin-top: 40px; }
  .hero-band video { aspect-ratio: 16 / 10; }
  .band-overlay { position: relative; bottom: auto; margin-top: 10px; }
  .band-overlay { align-items: flex-start; }
  .band-label { min-width: 0; flex: 1; height: 76px; }
  .band-level { white-space: normal; top: 0; bottom: auto; right: 0; }
  .band-sys { font-size: 11.5px; }
  .band-steps { padding: 8px 0 0; }
}

/* ---------- page band: render that opens each inner page (same fade as the hero band) ---------- */
.page-band { position: relative; padding-top: 72px; } /* clears the fixed nav */
.page-band img {
  width: 100%;
  height: auto;
  aspect-ratio: 2560 / 960;
  max-height: 60vh; /* same as the hero band: leave room for the page title on wide screens */
  object-fit: cover;
  object-position: 50% 40%;
  background: var(--bg);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 92%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 6%, #000 92%, transparent);
}
.page-band .band-level { position: static; opacity: 1; transform: none; }
.page > .page-band + section { padding-top: 56px; border-top: 0; }
@media (max-width: 720px) {
  .page-band { padding-top: 68px; }
  .page-band img { aspect-ratio: 4 / 3; object-position: 60% 50%; } /* keeps both halves around the split */
  .page-band .band-level { white-space: normal; }
  .page > .page-band + section { padding-top: 40px; }
}

.hero-strip {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  position: relative; z-index: 2;
}
@media (max-width: 720px) { .hero-strip { gap: 14px; } .hero-strip .stat-num { font-size: 34px; } }
.stat-num {
  font-family: var(--cond);
  font-size: 46px;
  font-weight: 700;
  display: flex; align-items: baseline; gap: 4px;
}
.stat-num small { font-size: 16px; color: var(--orange-text); font-weight: 600; }
.stat-label {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 12px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 6px;
}

/* ---------- SECTION header ---------- */
section { padding: 100px 0; scroll-margin-top: 92px; } /* anchor jumps land below the fixed nav */
/* inner pages: the first section clears the fixed nav */
.page > section:first-child { padding-top: 148px; border-top: 0; }
.page > section + section { padding-top: 0; } /* same background: one gap between sections, not two */
@media (max-width: 720px) { section { padding: 72px 0; } .page > section:first-child { padding-top: 112px; } }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  margin-bottom: 56px;
  align-items: end;
}
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; gap: 24px; } }
.section-head h1, .section-head h2 {
  font-family: var(--cond);
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.02;
  font-weight: 700;
  margin: 14px 0 0;
  max-width: 560px;
}
.section-head p {
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

/* ---------- SERVICES ---------- */
.services {
  background: var(--bg);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: border-color 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.svc:hover { border-color: var(--blue); transform: translateY(-2px); }
.svc-img img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-3);
}
.svc-body {
  padding: 24px 24px 22px;
  display: flex; flex-direction: column;
  flex: 1;
}
.svc h3 {
  font-family: var(--cond);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 10px;
}
.svc p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 20px;
  flex: 1;
}
.svc-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
}
.svc-tag {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-3);
  color: var(--fg-2);
  padding: 4px 7px;
  border-radius: 4px;
}

/* ---------- BRANDS RIBBON ---------- */
.brands {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 22px 0 26px;
  overflow: hidden;
}
.brands-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.brands-label {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-3);
}
.brands-note {
  font-family: var(--cond);
  font-size: 12px;
  color: var(--fg-3);
  opacity: 0.8;
}
.brands-track-clip {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.brands-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
}
.brands-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  animation: brandscroll 28s linear infinite;
  will-change: transform;
}
.brands-track:hover .brands-set { animation-play-state: paused; }
.brand-item {
  font-family: var(--cond);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fg-2);
  opacity: 0.65;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.brand-item:hover { opacity: 1; }
.brand-sep {
  color: var(--orange);
  margin: 0 28px;
  font-weight: 400;
}
@keyframes brandscroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .brands-set { animation: none; }
}

/* ---------- HOME CARDS (end of the home page) ---------- */
.home-cards { padding: 56px 0 100px; }
.home-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .home-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .home-cards { padding: 40px 0 72px; } .home-cards-grid { grid-template-columns: 1fr; } }
.home-card {
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 26px 24px 22px;
  transition: border-color 0.15s, transform 0.15s;
}
.home-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.home-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.home-card h2 {
  font-family: var(--cond);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 8px;
}
.home-card p { font-size: 15px; line-height: 1.55; color: var(--fg-2); margin: 0 0 20px; flex: 1; }
.home-card-go {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 15px;
  color: var(--blue);
}
.home-card-go svg { transition: transform 0.15s; }
.home-card:hover .home-card-go svg { transform: translateX(3px); }

/* ---------- PROCESS ---------- */
.process {
  background: var(--bg);
}
.proc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .proc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .proc-grid { grid-template-columns: 1fr; } }
.proc-step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 28px 26px;
  position: relative;
  transition: border-color 0.15s, transform 0.15s;
}
.proc-step:hover { border-color: var(--blue); transform: translateY(-2px); }
.proc-step h3 {
  font-family: var(--cond);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 8px;
}
.proc-step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}

/* ---------- PROJECTS ---------- */
.projects {
  background: var(--bg);
}
.proj-list {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0 12px;
}
.proj-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr 200px;
  gap: 24px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.proj-row:last-child { border-bottom: 0; }
@media (max-width: 880px) {
  .proj-row { grid-template-columns: 60px 1fr; row-gap: 6px; align-items: start; }
  .proj-row .proj-desc { grid-column: 2; font-size: 14px; }
  .proj-row .proj-tag-cell { display: none; }
}
.proj-year {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 14px;
  color: var(--fg-3);
}
.proj-client {
  font-family: var(--cond);
  font-size: 21px;
  font-weight: 700;
}
.proj-desc {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.5;
}
.proj-tag-cell { display: flex; justify-content: flex-end; }
.proj-tag {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 4px;
}
.tag-vrf { background: var(--blue-soft); color: var(--blue-dark); }
.tag-duct { background: var(--orange-soft); color: var(--orange-text); }
.tag-ventil { background: var(--green-soft); color: var(--green-text); }
.tag-instit, .tag-comer, .tag-mant { background: var(--bg-3); color: var(--fg-2); }

/* ---------- CLIENTS ---------- */
.clients {
  background: var(--bg);
}
/* flex so an incomplete last row stays centered */
.client-grid {
  --cols: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.client-grid > .client { flex: 0 0 calc((100% - (var(--cols) - 1) * 12px) / var(--cols)); min-width: 0; }
@media (max-width: 1080px) { .client-grid { --cols: 4; } }
@media (max-width: 720px) { .client-grid { --cols: 3; } }
@media (max-width: 540px) { .client-grid { --cols: 2; } }
.client {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 32px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 0.15s;
  text-align: center;
  min-height: 130px;
}
.client:hover { border-color: var(--blue); }
.client-logo {
  display: block;
  height: 52px;
  width: 100%;
  max-width: 160px;
  object-fit: contain;
}
.client-logo.is-white { filter: invert(1); }
.client-name {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 19px;
  color: var(--fg);
}
.client-sector {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-3);
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }
.about h1, .about h2 {
  font-family: var(--cond);
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.02;
  font-weight: 700;
  margin: 14px 0 24px;
}
.about p {
  color: var(--fg-2);
  line-height: 1.6;
  font-size: 17px;
  margin: 0 0 18px;
}
.about-stats {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.about-stat {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.about-stat .n {
  font-family: var(--cond);
  font-size: 40px; font-weight: 700;
  color: var(--fg);
}
.about-stat .n small { font-size: 16px; color: var(--orange-text); margin-left: 4px; }
.about-stat .l {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 12px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 4px;
}

.about-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.about-portrait, .about-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-visual .about-visual-tag { position: absolute; top: 24px; left: 24px; }
.about-caption {
  position: absolute; left: 24px; bottom: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  padding: 10px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.about-caption strong { font-family: var(--cond); font-size: 18px; font-weight: 700; color: var(--fg); }
.about-caption span {
  font-family: var(--cond); font-weight: 600; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3);
}
.about-visual-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.about-visual-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}
.about-mark {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: auto;
  filter: drop-shadow(0 20px 40px rgba(20,30,45,0.12));
}
.about-mark img { width: 100%; height: auto; }
.about-quote {
  position: relative;
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.6;
  border-left: 3px solid var(--orange);
  padding: 6px 0 6px 14px;
  margin: 0;
}
.about-quote span { display: block; color: var(--fg-3); margin-top: 6px; font-size: 13px; }

/* ---------- CONTACT ---------- */
.contact {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-grid > * { min-width: 0; } /* the select sizes itself to its longest option and pushed the form off narrow screens */

.contact-people {
  display: flex; flex-direction: column; gap: 16px;
}
.person {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.person-role {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange-text);
}
.person-name {
  font-family: var(--cond);
  font-size: 22px;
  font-weight: 700;
  margin: 8px 0 12px;
}
.person-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px;
  color: var(--fg-2);
  padding: 6px 0;
}
.person-row svg { color: var(--fg-3); flex-shrink: 0; }
.person-text { font-size: 15px; line-height: 1.55; color: var(--fg-2); margin: 0 0 10px; }
.person-row a:hover { color: var(--blue); }

.office-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px 24px;
  font-size: 15px;
  color: var(--fg-2);
}
.office-card .label {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 12px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

/* form */
.form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.form-head .eyebrow { margin: 0; }
.form-req { font-size: 12.5px; color: var(--fg-3); }
.req { color: var(--orange-text); font-weight: 700; }
.form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 12px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.field input, .field select, .field textarea {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  color: var(--fg);
  padding: 12px 14px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
}
.field select { width: 100%; min-width: 0; }
.field textarea { min-height: 130px; resize: vertical; }

.form-submit { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.form-status {
  font-size: 14px;
  color: var(--green-text);
  opacity: 0;
  transition: opacity 0.2s;
}
.form-status.show { opacity: 1; }
.form-note { margin: 18px 0 0; font-size: 14px; line-height: 1.5; color: var(--fg-3); }
.form-note a { color: var(--blue); }
.form-note a:hover { text-decoration: underline; }

/* ---------- CTA BAND (end of inner pages) ---------- */
.cta-band { padding: 0 0 100px; }
.cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 40px 44px;
}
.cta-card h2 {
  font-family: var(--cond);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.05;
  font-weight: 700;
  margin: 10px 0 10px;
}
.cta-card p { color: var(--fg-2); font-size: 17px; line-height: 1.55; margin: 0; max-width: 640px; }
@media (max-width: 720px) {
  .cta-band { padding-bottom: 72px; }
  .cta-card { flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 24px; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }

.foot h4 {
  font-family: var(--cond);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-3);
  margin: 0 0 16px;
  font-weight: 600;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot a, .foot li {
  font-size: 14px;
  color: var(--fg-2);
}
.foot a:hover { color: var(--blue); }
.foot p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
  max-width: 340px;
}

.foot-bot {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-family: var(--cond);
  font-weight: 500;
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
}
@media (max-width: 540px) { .foot-bot { flex-direction: column; gap: 12px; } }

/* ---------- subtle entrance ---------- */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---------- MAINTENANCE (home page block) ---------- */
.maint { background: var(--bg); padding-top: 72px; padding-bottom: 40px; }
.maint-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .maint-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .maint-grid { grid-template-columns: 1fr; } }
.maint-point {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px 24px 22px;
}
.maint-point h3 { font-family: var(--cond); font-size: 21px; font-weight: 700; line-height: 1.15; margin: 0 0 8px; }
.maint-point p { font-size: 15px; line-height: 1.55; color: var(--fg-2); margin: 0; }
.maint-cta { margin-top: 40px; display: flex; justify-content: center; }

/* ---------- HOME CLIENTS (logo strip) ---------- */
.home-clients { padding: 40px 0 16px; text-align: center; }
.home-clients-label { display: block; margin-bottom: 24px; }
.home-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 20px 40px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
}
.home-logo { height: 34px; width: auto; max-width: 140px; object-fit: contain; }
.home-logo.is-white { filter: invert(1); }
.home-clients-go { margin-top: 20px; }
@media (max-width: 640px) { .home-logos { gap: 16px 28px; padding: 24px 16px; } .home-logo { height: 26px; max-width: 110px; } }

/* ---------- PRIVACY (/privacidad) ---------- */
.privacy-wrap { max-width: 760px; }
.privacy h1 { font-family: var(--cond); font-size: clamp(34px, 4.4vw, 54px); line-height: 1.02; font-weight: 700; margin: 14px 0 12px; }
.privacy-lead { color: var(--fg-3); font-size: 15px; margin: 0 0 40px; }
.privacy-block {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 24px 28px; margin-bottom: 14px;
}
.privacy-block h2 { font-family: var(--cond); font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.privacy-block p, .privacy-block li { color: var(--fg-2); font-size: 16px; line-height: 1.6; }
.privacy-block p { margin: 0 0 10px; }
.privacy-block p:last-child { margin-bottom: 0; }
.privacy-block ul { margin: 6px 0 0; padding-left: 20px; }
.privacy-block li + li { margin-top: 6px; }
