/* ==========================================================================
   Inversiones Casthe SpA · Landing
   Paleta "Asfalto y Ámbar": asfalto para fondos oscuros, ámbar de maquinaria
   como acento principal y hueso cálido para fondos claros. Acentos de apoyo:
   cielo (día soleado), bosque (faenas forestales) y tierra (movimiento de tierra).
   Tipografías: Barlow Condensed (títulos, cifras) + Barlow (texto).
   Motivo gráfico propio: la línea segmentada de camino (demarcación vial).
   ========================================================================== */

:root {
  --asf-950: #0B0F12;
  --asf-900: #11171C;
  --asf-850: #172026;
  --asf-800: #1E2830;
  --asf-700: #2A3640;
  --asf-600: #3D4A55;
  --asf-400: #7D8A95;

  --amb-100: #FFF3D6;
  --amb-300: #FFD170;
  --amb-400: #FFBB2E;
  --amb-500: #F5A300;
  --amb-600: #D98A00;
  --amb-800: #8A5800;

  --cielo-100: #E3F2FC;
  --cielo-500: #2B8FD6;
  --cielo-700: #17639C;
  --bosque-100: #E4F1E7;
  --bosque-700: #2A6139;
  --tierra-100: #F7EADF;
  --tierra-700: #8C4A1F;

  --hueso-50: #FBF9F5;
  --hueso-100: #F4F0E8;
  --hueso-200: #E9E2D5;
  --linea: #DED6C8;

  --tinta: #12171B;
  --tinta-2: #46525C;
  --tinta-3: #5E6A74;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --sombra-1: 0 1px 2px rgba(11, 15, 18, .06), 0 14px 34px -18px rgba(11, 15, 18, .28);
  --sombra-2: 0 40px 80px -40px rgba(11, 15, 18, .6);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4.2vw, 40px);
  --nav-h: 76px;
  --sec-y: clamp(76px, 10vw, 128px);

  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) - 4px);
}
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--hueso-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1;
  text-wrap: balance;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--cielo-500); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amb-400); color: var(--asf-950); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  padding: 12px 18px; border-radius: 12px;
  background: var(--amb-500); color: var(--asf-950);
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.show-sm { display: none; }
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .show-sm { display: inline; }
}
.section { position: relative; padding-block: var(--sec-y); }

.ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico--fill { fill: currentColor; stroke: none; }

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  font-family: var(--f-display); font-weight: 600; font-size: .95rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--amb-800);
}
.eyebrow::before {
  content: ""; flex: none; width: 40px; height: 3px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--amb-500) 0 9px, transparent 9px 14px);
}
.dark .eyebrow { color: var(--amb-400); }

.title {
  font-size: clamp(2.3rem, 1.35rem + 3.7vw, 4.4rem);
  font-weight: 800; text-transform: uppercase;
  line-height: .94; letter-spacing: -.005em;
}
/* Palabra destacada: en fondos claros, trazo ámbar tipo demarcación bajo el texto */
.title em {
  font-style: normal; color: inherit; padding: 0 .04em;
  background: linear-gradient(transparent 60%, rgba(245, 163, 0, .62) 60%, rgba(245, 163, 0, .62) 88%, transparent 88%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.dark .title em { color: var(--amb-400); background: none; padding: 0; }

.lead {
  max-width: 62ch;
  font-size: clamp(1.06rem, .98rem + .35vw, 1.22rem);
  line-height: 1.6; color: var(--tinta-2);
}
.dark { color: #fff; background: var(--asf-900); }
.dark .lead { color: rgba(255, 255, 255, .74); }

.sec-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head--split { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 48px; }
.sec-head--split .lead { justify-self: end; }
@media (max-width: 900px) {
  .sec-head--split { grid-template-columns: 1fr; gap: 18px; }
  .sec-head--split .lead { justify-self: start; }
}

/* ---------- Botones ---------- */
.btn {
  --h: 56px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--f-display); font-weight: 700; font-size: 1.1rem;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .3s var(--ease), background-color .25s, border-color .25s, color .25s, box-shadow .3s;
}
.btn .ico { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.btn .ico--fill { width: 22px; height: 22px; }
.btn:hover .i-go { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--amb { background: var(--amb-500); color: var(--asf-950); box-shadow: 0 14px 34px -14px rgba(245, 163, 0, .75); }
.btn--amb:hover { background: var(--amb-400); transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(245, 163, 0, .85); }
.btn--glass {
  color: #fff; border-color: rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn--glass:hover { border-color: #fff; background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.btn--dark { background: var(--asf-900); color: #fff; }
.btn--dark:hover { background: var(--asf-700); transform: translateY(-2px); }
.btn--line { border-color: var(--asf-900); color: var(--asf-900); background: transparent; }
.btn--line:hover { background: var(--asf-900); color: #fff; }
.btn--sm { --h: 46px; padding: 0 20px; font-size: 1rem; }

/* ---------- Motivo: camino con demarcación ---------- */
.road { position: relative; height: 12px; overflow: hidden; background: var(--asf-800); }
.road::after {
  content: ""; position: absolute; top: 50%; left: -40px; right: -40px; height: 2px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, var(--amb-500) 0 22px, transparent 22px 40px);
  animation: roadRun 1.8s linear infinite;
}
@keyframes roadRun { to { transform: translateX(-40px); } }

/* ---------- Barra de progreso de lectura ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 3px;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--amb-500), var(--amb-300));
  pointer-events: none;
}

/* ==========================================================================
   Header y navegación
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color .4s, box-shadow .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -36px; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 15, 18, .62), rgba(11, 15, 18, 0));
  transition: opacity .4s;
}
.site-header.is-solid {
  background: rgba(13, 18, 22, .88);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07), 0 10px 30px -18px rgba(0, 0, 0, .6);
}
.site-header.is-solid::before { opacity: 0; }
.nav {
  position: relative; display: flex; align-items: center; gap: 28px;
  height: var(--nav-h); transition: height .35s var(--ease);
}
.site-header.is-solid .nav { height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: #fff; text-decoration: none; }
.brand__mark { width: 46px; height: 46px; flex: none; transition: transform .7s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: 1.72rem; letter-spacing: .07em; }
.brand__sub {
  margin-top: 5px; margin-right: -.52em;
  font-family: var(--f-display); font-weight: 600; font-size: .7rem;
  letter-spacing: .52em; text-transform: uppercase; color: var(--amb-400);
}

.nav__links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 8px 0;
  color: rgba(255, 255, 255, .8); text-decoration: none;
  font-weight: 500; font-size: 1rem; transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--amb-400) 0 6px, transparent 6px 10px);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="true"] { color: #fff; }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); }

.nav__tel {
  display: none; align-items: center; gap: 8px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: .98rem; white-space: nowrap;
}
.nav__tel .ico { width: 18px; height: 18px; color: var(--amb-400); }
.nav__tel:hover { color: var(--amb-300); }
@media (min-width: 1240px) { .nav__tel { display: inline-flex; } }

.nav__toggle {
  display: none; position: relative; width: 48px; height: 48px; margin-left: auto;
  align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .26); border-radius: 14px;
  background: rgba(255, 255, 255, .07); color: #fff;
}
.nav__toggle span {
  position: absolute; left: 13px; right: 13px; top: 50%; height: 2px; margin-top: -1px;
  border-radius: 2px; background: currentColor;
  transition: transform .35s var(--ease), opacity .2s;
}
.nav__toggle span:nth-child(1) { transform: translateY(-6px); }
.nav__toggle span:nth-child(3) { transform: translateY(6px); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* Menú móvil */
.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 18px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  overflow-y: auto; color: #fff;
  background: var(--asf-950) url("../assets/img/topo-oscuro.svg") center / cover no-repeat;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s .6s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease), visibility 0s; }
.menu__list { border-top: 1px solid rgba(255, 255, 255, .1); }
.menu__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 2px; border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff; text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.9rem, 8vw, 2.6rem);
  letter-spacing: .02em; text-transform: uppercase;
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s;
}
.menu__list a small { font-family: var(--f-body); font-weight: 600; font-size: .85rem; letter-spacing: .08em; color: var(--amb-400); }
.menu__list a:hover { color: var(--amb-300); }
.menu.is-open .menu__list a { opacity: 1; transform: none; transition-delay: calc(.06s * var(--i) + .12s); }
.menu__foot { display: grid; gap: 12px; margin-top: auto; padding-top: 30px; }
.menu__foot p { margin-top: 6px; color: rgba(255, 255, 255, .62); font-size: .95rem; text-align: center; }
.menu__foot a:not(.btn) { color: #fff; text-decoration: none; font-weight: 600; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  color: #fff; background: var(--asf-900);
}
.hero__media { position: absolute; inset: 0; z-index: -3; will-change: transform; }
.hero__media img, .hero__media picture { width: 100%; height: 100%; }
.hero__media img {
  object-fit: cover; object-position: 60% 50%;
  animation: heroIn 2.4s var(--ease) both;
}
@keyframes heroIn {
  from { transform: scale(1.12); filter: brightness(.7) saturate(.85); }
  to { transform: scale(1); filter: none; }
}
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(11, 15, 18, .86) 0%, rgba(11, 15, 18, .62) 30%, rgba(11, 15, 18, .16) 60%, rgba(11, 15, 18, 0) 80%),
    linear-gradient(0deg, rgba(11, 15, 18, .9) 0%, rgba(11, 15, 18, .3) 24%, rgba(11, 15, 18, 0) 46%),
    linear-gradient(180deg, rgba(11, 15, 18, .5) 0%, rgba(11, 15, 18, 0) 22%);
}
/* Resplandor de sol: refuerza la sensación de día despejado */
.hero__sun {
  position: absolute; z-index: -1; top: -38vmax; right: -30vmax;
  width: 90vmax; height: 90vmax; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 228, 150, .6), rgba(255, 196, 70, .22) 42%, rgba(255, 196, 70, 0) 72%);
  mix-blend-mode: screen;
  animation: sunGlow 9s ease-in-out infinite alternate;
}
@keyframes sunGlow {
  from { opacity: .72; transform: scale(.96); }
  to { opacity: 1; transform: scale(1.04); }
}

.hero__inner {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + clamp(28px, 6vh, 72px));
  padding-bottom: clamp(32px, 6vh, 56px);
}
.hero__content { max-width: 800px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 26px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(11, 15, 18, .45); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .92rem; font-weight: 500; color: rgba(255, 255, 255, .92);
}
.dot {
  width: 9px; height: 9px; flex: none; border-radius: 50%;
  background: var(--amb-400); animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 187, 46, .6); }
  80%, 100% { box-shadow: 0 0 0 12px rgba(255, 187, 46, 0); }
}

.hero__title {
  margin-bottom: 26px;
  font-size: clamp(2.7rem, min(1.25rem + 6.4vw, 11.2vh), 6.6rem);
  font-weight: 800; text-transform: uppercase;
  line-height: .9; letter-spacing: -.005em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .25);
}
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .18em; margin-bottom: -.18em; }
.hero__title .ln > span {
  display: block; transform: translateY(110%);
  animation: lineUp 1.1s var(--ease) forwards;
  animation-delay: calc(.3s + var(--i) * .13s);
}
@keyframes lineUp { to { transform: none; } }
.hl { position: relative; display: inline-block; font-style: normal; color: var(--amb-400); }
.hl::after {
  content: ""; position: absolute; left: .02em; right: .02em; bottom: -.1em; height: .075em; border-radius: .04em;
  background: repeating-linear-gradient(90deg, var(--amb-400) 0 .34em, transparent .34em .54em);
  transform: scaleX(0); transform-origin: left;
  animation: dashIn 1.2s var(--ease) 1.25s forwards;
}
@keyframes dashIn { to { transform: scaleX(1); } }

.hero__lead {
  max-width: 56ch; margin-bottom: 34px;
  font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem); line-height: 1.55;
  color: rgba(255, 255, 255, .88);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__trust { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: rgba(255, 255, 255, .74); }
.hero__trust .ico { width: 20px; height: 20px; color: var(--amb-400); }
.hero__trust strong { color: #fff; font-weight: 600; }

.fx { opacity: 0; animation: fadeUp .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero__stats {
  position: relative;
  background: linear-gradient(180deg, rgba(11, 15, 18, .25), rgba(11, 15, 18, .6));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero__stats .road { position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: transparent; }
.hero__stats .road::after { height: 3px; margin-top: -1.5px; opacity: .85; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.stats dd { margin: 0; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 24px; border-left: 1px dashed rgba(255, 255, 255, .18); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
  font-family: var(--f-display); font-weight: 800; line-height: .9; letter-spacing: .01em;
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.3rem); color: #fff;
}
.stat__num--txt { text-transform: uppercase; }
.stat__label { font-size: .92rem; line-height: 1.35; color: rgba(255, 255, 255, .74); }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: calc(100% + 26px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255, 255, 255, .7); text-decoration: none;
  font-family: var(--f-display); font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
.hero__scroll i {
  position: relative; width: 4px; height: 58px; overflow: hidden; border-radius: 2px;
  background: rgba(255, 255, 255, .16);
}
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; right: 0; top: -40px; bottom: -40px;
  background: repeating-linear-gradient(180deg, var(--amb-400) 0 12px, transparent 12px 20px);
  animation: laneDown 1.2s linear infinite;
}
@keyframes laneDown { to { transform: translateY(20px); } }
.hero__scroll:hover { color: #fff; }

/* Notebooks con pantalla baja: la portada completa cabe en la primera vista */
@media (min-width: 761px) and (max-height: 820px) {
  .hero__inner { padding-top: calc(var(--nav-h) + 22px); padding-bottom: 28px; }
  .hero__badge { margin-bottom: 16px; }
  .hero__title { margin-bottom: 18px; font-size: clamp(2.7rem, min(1.25rem + 6.4vw, 10vh), 6.6rem); }
  .hero__lead { margin-bottom: 22px; font-size: 1.1rem; }
  .hero__cta { margin-bottom: 0; }
  .hero__trust { display: none; }
  .stat { padding-block: 14px 16px; }
  .stat__num { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem); }
}

@media (max-width: 760px) {
  /* En el celular la foto ocupa la parte alta de la pantalla y el texto va sobre el camino */
  .hero__media { inset: 0 0 auto 0; height: 82vh; height: 82svh; }
  .hero__media img { object-position: 50% 28%; }
  .hero__shade {
    inset: 0 0 auto 0; height: 100vh; height: 100svh;
    background: linear-gradient(180deg,
      rgba(11, 15, 18, .55) 0%, rgba(11, 15, 18, 0) 15%, rgba(11, 15, 18, 0) 38%,
      rgba(11, 15, 18, .8) 57%, rgba(17, 23, 28, .97) 74%, #11171C 82%);
  }
  .hero__sun { top: -30vmax; right: -45vmax; }
  .hero__inner { min-height: 100vh; min-height: 100svh; justify-content: flex-end; padding-bottom: 30px; }
  .hero__badge { margin-bottom: 18px; font-size: .86rem; }
  .hero__title { margin-bottom: 18px; }
  .hero__lead { margin-bottom: 24px; }
  .hero__cta { flex-wrap: nowrap; margin-bottom: 0; }
  .hero__cta .btn { flex: 1 1 0; min-width: 0; padding: 0 16px; }
  .hero__trust { display: none; }
  .hero__stats { background: var(--asf-900); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 18px 14px 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px dashed rgba(255, 255, 255, .18); }
  .hero__scroll { display: none; }
}

/* ==========================================================================
   Servicios (bento)
   ========================================================================== */
.services { background: var(--hueso-50); }
.bento {
  display: grid; gap: 18px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(310px, auto) minmax(310px, auto) minmax(400px, auto);
}
.card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px; padding: clamp(22px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  color: inherit; text-decoration: none;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra-2); }
.card--img { color: #fff; background: var(--asf-800); }
.card__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card--img:hover .card__img { transform: scale(1.06); }
.card--img::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(11, 15, 18, .96) 0%, rgba(11, 15, 18, .8) 38%, rgba(11, 15, 18, .35) 62%, rgba(11, 15, 18, 0) 84%);
}
.card--img .card__title, .card--img .card__kicker, .card--img .card__text { text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.card__kicker {
  margin-bottom: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: .86rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--amb-400);
}
.card__title {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 1.2rem + 1.45vw, 2.5rem);
  font-weight: 800; text-transform: uppercase; line-height: .95;
}
.card__text { max-width: 48ch; margin-bottom: 18px; font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, .84); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  font-size: .86rem; font-weight: 500; line-height: 1.3;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.card__go {
  position: absolute; top: 22px; right: 22px;
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--amb-500); color: var(--asf-950);
  opacity: 0; transform: scale(.7) rotate(-45deg);
  transition: transform .5s var(--ease), opacity .3s;
}
.card__go .ico { width: 22px; height: 22px; }
.card:hover .card__go, .card:focus-visible .card__go { opacity: 1; transform: none; }
@media (hover: none) { .card__go { opacity: 1; transform: none; } }

.card__icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: auto;
  border-radius: 18px;
}
.card__icon .ico { width: 34px; height: 34px; stroke-width: 1.6; }
.card__mark {
  position: absolute; right: -28px; bottom: -34px; z-index: -1;
  width: 220px; height: 220px; opacity: .1; stroke-width: 1.1;
  transition: transform 1.2s var(--ease);
}
.card:hover .card__mark { transform: rotate(-8deg) scale(1.06); }

.card--amb { background: var(--amb-500); color: var(--asf-950); }
.card--amb .card__icon { background: var(--asf-900); color: var(--amb-400); }
.card--amb .card__kicker { color: var(--asf-800); }
.card--amb .card__text { color: rgba(11, 15, 18, .8); }
.card--amb .chip { background: rgba(11, 15, 18, .07); border-color: rgba(11, 15, 18, .2); }
.card--amb .card__go { background: var(--asf-900); color: var(--amb-400); }

.card--asf { background: var(--asf-900); color: #fff; }
.card--asf .card__icon { background: var(--amb-500); color: var(--asf-950); }
.card--asf .card__mark { opacity: .08; }

.card--a { grid-column: 1 / 8; grid-row: 1 / 3; }
.card--b { grid-column: 8 / 13; grid-row: 1; }
.card--c { grid-column: 8 / 13; grid-row: 2; }
.card--d { grid-column: 1 / 6; grid-row: 3; }
.card--e { grid-column: 6 / 13; grid-row: 3; }

@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .card--a { grid-column: 1 / -1; grid-row: auto; min-height: 460px; }
  .card--b, .card--c, .card--d, .card--e { grid-column: auto; grid-row: auto; }
  .card--d, .card--e { min-height: 400px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .card--a { min-height: 440px; }
  .card--b, .card--c { min-height: 0; }
  .card--b .card__icon, .card--c .card__icon { margin-bottom: 26px; }
}

.services__note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
  margin-top: 22px; padding: 22px 26px; border-radius: var(--r-lg);
  background: var(--hueso-100); border: 1px dashed var(--linea);
}
.services__note p { font-size: 1.05rem; color: var(--tinta-2); max-width: 60ch; }
.services__note strong { color: var(--tinta); }

/* ==========================================================================
   Maquinaria
   ========================================================================== */
.machines { overflow: hidden; }
.topo { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url("../assets/img/topo-oscuro.svg") center / cover no-repeat; opacity: .9; }
.machines .wrap { position: relative; z-index: 1; }
.machines__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.equip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 34px 0 36px; }
.equip li {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  border-radius: var(--r-md); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  transition: background-color .3s, border-color .3s, transform .4s var(--ease);
}
.equip li:hover { background: rgba(245, 163, 0, .08); border-color: rgba(245, 163, 0, .38); transform: translateY(-2px); }
.equip__ico {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px;
  border-radius: 13px; background: var(--amb-500); color: var(--asf-950);
}
.equip__ico .ico { width: 27px; height: 27px; stroke-width: 1.7; }
.equip b {
  display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.22rem;
  letter-spacing: .02em; text-transform: uppercase; line-height: 1.1;
}
.equip span { display: block; margin-top: 2px; font-size: .92rem; line-height: 1.4; color: rgba(255, 255, 255, .66); }
.machines__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.machines__media { position: relative; margin: 0; }
.machines__frame {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3.3;
  border-radius: var(--r-xl); box-shadow: var(--sombra-2); background: var(--asf-800);
}
.machines__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.machines__media:hover .machines__frame img { transform: scale(1.04); }
.hazard {
  position: absolute; left: -16px; bottom: -16px; z-index: -1;
  width: 48%; height: 46%; border-radius: var(--r-lg);
  background: repeating-linear-gradient(-45deg, var(--amb-500) 0 16px, var(--asf-900) 16px 32px);
}
.machines__tag {
  position: absolute; left: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 14px;
  background: rgba(11, 15, 18, .74); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .92rem; font-weight: 500;
}
@media (max-width: 960px) {
  .machines__grid { grid-template-columns: 1fr; }
  .machines__media { order: -1; margin: 0 12px 0 0; }
}
@media (max-width: 520px) {
  .equip { grid-template-columns: 1fr; }
  .machines__cta .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Banda "abrir camino"
   ========================================================================== */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center;
  min-height: clamp(440px, 76vh, 760px); padding: 96px var(--gutter);
  text-align: center; color: #fff; background: var(--asf-900);
}
.band__media { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.band__media img, .band__media picture { width: 100%; height: 100%; }
.band__media img { object-fit: cover; object-position: 50% 55%; }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(11, 15, 18, .28) 0%, rgba(11, 15, 18, .66) 100%),
    linear-gradient(0deg, rgba(11, 15, 18, .55), rgba(11, 15, 18, 0) 45%);
}
.band__quote {
  max-width: 15ch; margin: 0 auto 20px;
  font-size: clamp(2.5rem, 1rem + 6.2vw, 6.2rem); font-weight: 800;
  text-transform: uppercase; line-height: .92;
  text-shadow: 0 8px 50px rgba(0, 0, 0, .35);
}
.band__quote em { font-style: normal; color: var(--amb-400); }
.band__quote .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.band__quote .w > span { display: inline-block; }
.js .band__quote .w > span { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * .07s); }
.js .band.is-in .band__quote .w > span { transform: none; }
.band__sub { max-width: 52ch; margin: 0 auto; font-size: clamp(1.02rem, .92rem + .4vw, 1.22rem); color: rgba(255, 255, 255, .88); }
.band .road { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; }

/* ==========================================================================
   Trayectoria (línea de tiempo horizontal tipo camino)
   ========================================================================== */
.projects { background: var(--hueso-100); overflow: hidden; }
.tl { position: relative; }
.tl__stage { position: relative; }
.tl__viewport {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain; scrollbar-width: none;
  cursor: grab; border-radius: 4px;
}
.tl__viewport::-webkit-scrollbar { display: none; }
.tl__viewport:focus-visible { outline-offset: -3px; }
.tl__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.tl__viewport.is-dragging .tl-card { pointer-events: none; user-select: none; }
.tl__track {
  position: relative; display: flex; align-items: stretch; gap: 18px; width: max-content;
  padding: 10px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 76px;
}
/* El camino que recorre toda la trayectoria */
.tl__track::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 20px; height: 16px;
  background: var(--asf-800);
  box-shadow: 0 -3px 0 var(--hueso-200), 0 3px 0 var(--hueso-200);
}
.tl__track::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 27px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--amb-500) 0 22px, transparent 22px 40px);
}
.tl__item { position: relative; display: flex; scroll-snap-align: start; }
.tl__item::after {
  content: ""; position: absolute; left: 30px; top: 100%; width: 2px; height: 30px;
  background: repeating-linear-gradient(180deg, var(--asf-600) 0 5px, transparent 5px 9px);
}
.tl__item::before {
  content: ""; position: absolute; left: 24px; top: calc(100% + 28px); z-index: 1;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--amb-500); box-shadow: 0 0 0 4px var(--asf-800);
}
.tl-card {
  display: flex; flex-direction: column; gap: 12px;
  width: clamp(272px, 80vw, 336px); padding: 24px 24px 20px;
  border-radius: var(--r-lg); background: #fff; border: 1px solid var(--linea);
  box-shadow: var(--sombra-1);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.tl-card:hover { transform: translateY(-5px); border-color: var(--amb-500); box-shadow: 0 26px 50px -30px rgba(11, 15, 18, .5); }
.tl-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; }
.tl-card__date {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-display); font-weight: 700; font-size: 1rem;
  letter-spacing: .05em; text-transform: uppercase; color: var(--tinta-2);
}
.tl-card__date .ico { width: 17px; height: 17px; color: var(--amb-600); }
.tl-card__title { font-size: 1.55rem; font-weight: 700; text-transform: uppercase; line-height: 1; letter-spacing: .005em; }
.tl-card__desc { font-size: .98rem; line-height: 1.45; color: var(--tinta-2); }
.tl-card__client {
  display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px;
  border-top: 1px dashed var(--linea); font-weight: 600; font-size: .98rem;
}
.tl-card__client .ico { width: 18px; height: 18px; color: var(--tinta-3); }

.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.tag--obra { background: var(--asf-900); color: #fff; }
.tag--remo { background: var(--amb-100); color: var(--amb-800); }
.tag--rep { background: var(--cielo-100); color: var(--cielo-700); }
.tag--tierra { background: var(--bosque-100); color: var(--bosque-700); }
.tag--maq { background: var(--tierra-100); color: var(--tierra-700); }
.tag--live { background: var(--amb-500); color: var(--asf-950); }
.tag--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }

.tl__year { position: relative; display: flex; align-items: flex-end; width: 124px; flex: none; scroll-snap-align: start; }
.tl__year b {
  display: block; padding-bottom: 4px;
  font-family: var(--f-display); font-weight: 800; font-size: 4.6rem; line-height: .8;
  color: transparent; -webkit-text-stroke: 1.6px var(--asf-600);
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.tl__year::after {
  content: ""; position: absolute; left: 52px; top: calc(100% + 2px); z-index: 1;
  width: 10px; height: 44px; border-radius: 3px;
  background: linear-gradient(180deg, #fff 0 40%, var(--amb-500) 40% 70%, #fff 70%);
  box-shadow: 0 0 0 2px var(--asf-900);
}

.tl-next {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  width: clamp(272px, 80vw, 336px); padding: 26px 24px 24px;
  border-radius: var(--r-lg); background: var(--asf-900); color: #fff;
}
.tl-next h3 { font-size: 2.3rem; font-weight: 800; text-transform: uppercase; line-height: .92; }
.tl-next h3 em { font-style: normal; color: var(--amb-400); }
.tl-next p { color: rgba(255, 255, 255, .72); font-size: 1rem; }

/* Camión que avanza con el recorrido */
.tl__truck {
  position: absolute; left: 0; bottom: 21px; z-index: 2;
  width: 70px; height: 40px; pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(11, 15, 18, .35));
  transform: translateX(var(--x, 0px));
}
.tl__truck svg { width: 100%; height: 100%; transition: transform .35s var(--ease); }
.tl__truck.is-back svg { transform: scaleX(-1); }

@media (max-width: 640px) {
  .tl__track { gap: 14px; }
  .tl-card, .tl-next { width: 74vw; padding: 20px 18px 18px; }
  .tl-card__title { font-size: 1.4rem; }
  .tl__year { width: 62px; }
  .tl__year b { font-size: 3.4rem; }
  .tl__year::after { left: 24px; }
}
.tl__bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; }
.tl__hint { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--tinta-3); }
.tl__hint .ico { width: 20px; height: 20px; color: var(--amb-600); }
.tl__btns { display: flex; gap: 10px; }
.tl__btn {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid var(--asf-900); background: transparent; color: var(--asf-900);
  transition: background-color .25s, color .25s, opacity .25s, transform .3s var(--ease);
}
.tl__btn:hover { background: var(--asf-900); color: #fff; }
.tl__btn:active { transform: scale(.95); }
.tl__btn[disabled] { opacity: .3; pointer-events: none; }

/* ==========================================================================
   Nosotros
   ========================================================================== */
.about { background: var(--hueso-50); overflow: hidden; }
.about .topo { background-image: url("../assets/img/topo-claro.svg"); opacity: 1; }
.about .wrap { position: relative; z-index: 1; }
.about__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__intro { position: sticky; top: calc(var(--nav-h) + 28px); }
.about__intro .lead { margin-top: 22px; }
.facts {
  display: grid; gap: 0; margin-top: 30px; border-radius: var(--r-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--linea);
}
.facts div { display: grid; grid-template-columns: 124px 1fr; gap: 14px; padding: 14px 20px; border-top: 1px dashed var(--linea); }
.facts div:first-child { border-top: 0; }
.facts dt { font-family: var(--f-display); font-weight: 600; font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-3); padding-top: 2px; }
.facts dd { margin: 0; font-weight: 600; }

.pillars { display: grid; gap: 16px; }
.pillar {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--linea);
  transition: border-color .3s, transform .45s var(--ease), box-shadow .45s var(--ease);
}
.pillar:hover { border-color: var(--amb-500); transform: translateX(6px); box-shadow: var(--sombra-1); }
.pillar__ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--asf-900); color: var(--amb-400); }
.pillar__ico .ico { width: 29px; height: 29px; }
.pillar h3 { margin-bottom: 8px; font-size: 1.8rem; font-weight: 800; text-transform: uppercase; }
.pillar p { font-size: 1.08rem; color: var(--tinta-2); }

.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 76px); }
.value {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: 220px; padding: 26px 24px 28px; border-radius: var(--r-lg);
  background: var(--asf-900); color: #fff;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.value:hover { transform: translateY(-4px); box-shadow: var(--sombra-2); }
.value__n {
  margin-bottom: 26px; font-family: var(--f-display); font-weight: 800; font-size: 3.8rem; line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 187, 46, .75);
}
.value h3 { margin: 0 0 8px; font-size: 1.7rem; font-weight: 800; text-transform: uppercase; }
.value p { font-size: .98rem; line-height: 1.5; color: rgba(255, 255, 255, .74); }
.value::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--amb-500) 0 14px, transparent 14px 24px);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.value:hover::after { transform: scaleX(1); }
@media (max-width: 1020px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } .about__intro { position: static; } }
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .value { min-height: 0; }
  .pillar { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact { overflow: hidden; }
.contact .wrap { position: relative; z-index: 1; }
.contact__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__lead { margin-top: 22px; }
.cinfo { display: grid; gap: 12px; margin: 32px 0 26px; }
.cinfo__item {
  display: flex; align-items: center; gap: 16px; padding: 15px 18px;
  border-radius: var(--r-md); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  color: #fff; text-decoration: none;
  transition: background-color .3s, border-color .3s, transform .4s var(--ease);
}
a.cinfo__item:hover { background: rgba(245, 163, 0, .08); border-color: rgba(245, 163, 0, .42); transform: translateX(4px); }
.cinfo__ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(245, 163, 0, .14); color: var(--amb-400); }
.cinfo__ico .ico { width: 23px; height: 23px; }
.cinfo small { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .56); }
.cinfo b { display: block; font-weight: 600; font-size: 1.06rem; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .cinfo__item { gap: 12px; padding: 14px; }
  .cinfo b { font-size: .95rem; }
}
.map { overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r-lg); border: 1px solid rgba(255, 255, 255, .1); background: var(--asf-800); }
.map iframe { width: 100%; height: 100%; border: 0; }

.form {
  display: grid; gap: 18px; padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--r-xl); background: #fff; color: var(--tinta); box-shadow: var(--sombra-2);
}
.form__title { font-size: 2.1rem; font-weight: 800; text-transform: uppercase; }
.form__intro { margin-top: 6px; color: var(--tinta-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .96rem; }
.field label span { color: var(--amb-800); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 15px; border-radius: 12px;
  border: 1.5px solid var(--linea); background: var(--hueso-50);
  font-size: 1rem; line-height: 1.4; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 124px; resize: vertical; }
.field select {
  padding-right: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312171B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder { color: #8A949C; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amb-500); background: #fff; box-shadow: 0 0 0 4px rgba(245, 163, 0, .2);
}
.field.is-invalid input { border-color: #C23B27; box-shadow: 0 0 0 4px rgba(194, 59, 39, .12); }
.field__err { font-size: .88rem; font-weight: 500; color: #B3321F; }
.field__err:empty { display: none; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form__actions .btn { flex: 1 1 220px; }
.btn--wa { background: #1FAF55; color: #fff; box-shadow: 0 14px 30px -14px rgba(31, 175, 85, .8); }
.btn--wa:hover { background: #18974A; transform: translateY(-2px); }
.form__note { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--tinta-3); }
.form__note .ico { width: 18px; height: 18px; color: var(--bosque-700); }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ==========================================================================
   Clientes (carrusel infinito)
   ========================================================================== */
.clients { padding-block: clamp(68px, 8vw, 108px); background: var(--hueso-50); }
.clients .sec-head { justify-items: center; text-align: center; margin-bottom: clamp(32px, 4vw, 48px); }
.clients .lead { text-align: center; text-wrap: balance; }
.marquee {
  position: relative; overflow: hidden; padding-block: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee var(--speed, 46s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-tile {
  flex: none; display: grid; place-items: center;
  width: clamp(178px, 19vw, 236px); height: 118px; margin-right: clamp(14px, 1.8vw, 24px); padding: 18px 26px;
  border-radius: var(--r-md); background: #fff; border: 1px solid var(--linea);
  transition: border-color .3s, box-shadow .3s, transform .45s var(--ease);
}
.logo-tile:hover { border-color: var(--amb-500); box-shadow: var(--sombra-1); transform: translateY(-3px); }
.logo-tile img {
  width: auto; height: auto; max-width: 100%; max-height: 64px; object-fit: contain;
  filter: grayscale(1) contrast(1.05); opacity: .74; transition: filter .45s, opacity .45s;
}
.logo-tile:hover img { filter: none; opacity: 1; }
.wordmark {
  font-family: var(--f-display); font-weight: 800; font-size: 1.42rem; line-height: .95;
  letter-spacing: .03em; text-align: center; text-transform: uppercase; color: var(--tinta-2);
  transition: color .3s;
}
.wordmark small { display: block; margin-top: 5px; font-weight: 600; font-size: .6em; letter-spacing: .22em; color: var(--tinta-3); }
.wordmark small:first-child { margin: 0 0 4px; }
.wordmark--left { text-align: left; }
.logo-tile:hover .wordmark { color: var(--tinta); }
.lockup { display: flex; align-items: center; gap: 12px; }
.lockup img { max-height: 50px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; padding: clamp(60px, 7vw, 92px) 0 28px; background: var(--asf-950); color: rgba(255, 255, 255, .7); }
.footer .road { position: absolute; top: 0; left: 0; right: 0; height: 10px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 40px; }
.footer__brand p { max-width: 36ch; margin-top: 18px; font-size: .98rem; }
.footer h4 { margin-bottom: 16px; font-size: 1.05rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.footer__list { display: grid; gap: 10px; font-size: .98rem; }
.footer a { color: rgba(255, 255, 255, .76); text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--amb-400); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px;
  margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .9rem; color: rgba(255, 255, 255, .52);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-fab {
  position: fixed; z-index: 40;
  right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .75);
  opacity: 0; transform: translateY(120px) scale(.8); pointer-events: none;
  transition: transform .5s var(--ease), opacity .4s;
}
.wa-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-fab .ico { width: 30px; height: 30px; }
.wa-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: waRing 2.6s ease-out infinite;
}
@keyframes waRing { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.wa-fab__tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  padding: 9px 14px; border-radius: 10px; white-space: nowrap;
  background: var(--asf-900); color: #fff; font-size: .92rem; font-weight: 600;
  opacity: 0; transform: translate(8px, -50%); pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease);
}
.wa-fab:hover .wa-fab__tip { opacity: 1; transform: translate(0, -50%); }

/* ==========================================================================
   Aparición al hacer scroll (solo con JS activo)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="zoom"] { transform: scale(.95); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; }
  .road::after, .hero__sun { animation: none; }
}
