/* ============================================================
   LERAU Ingeniería y Construcción — Landing
   ============================================================ */

/* --- Tokens ------------------------------------------------ */
:root {
  --ink:          #0B0C0E;
  --ink-2:        #141619;
  --ink-3:        #0F1114;
  --paper:        #F5F5F3;

  --blue:         #3F7CC0;
  --blue-hover:   #5B95D6;
  --blue-light:   #6AA0DE;
  --blue-soft:    #9FB6D4;

  --on-dark:      #F5F5F3;
  --on-dark-soft: #E7E9EB;
  --on-dark-p:    #C3C8CE;
  --nav-link:     #D5D8DC;
  --muted:        #9BA1A9;
  --muted-2:      #8A9099;
  --muted-3:      #6B7280;
  --on-paper-p:   #4B4F55;
  --paper-dim:    #B7BBC0;

  --error:        #C0392B;

  --line-on-dark: rgba(255, 255, 255, .12);
  --line-on-paper: rgba(11, 12, 14, .14);

  --max:    1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --pad-y:  clamp(72px, 10vw, 140px);

  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Archivo, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.16, .84, .3, 1);
}

/* --- Reset ------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; }
input, textarea, select, button { font-family: inherit; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); }

:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }

/* --- Layout helpers ---------------------------------------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section      { padding-block: var(--pad-y); }
.section--top { padding-block: var(--pad-y) 0; }
.section--bot { padding-block: 0 var(--pad-y); }

.bg-paper { background: var(--paper); color: var(--ink); }
.bg-ink   { background: var(--ink);   color: var(--on-dark); }
.bg-ink-2 { background: var(--ink-2); color: var(--on-dark); }

.rule-top-dark  { border-top: 1px solid var(--line-on-dark); }
.rule-top-paper { border-top: 1px solid var(--line-on-paper); }

/* --- Eyebrow ----------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--blue);
  flex-shrink: 0;
}
.eyebrow span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--blue);
}

/* --- Headings ---------------------------------------------- */
.h2 {
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.h2--sm {
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.04;
}
.lead {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.7;
  text-wrap: pretty;
}
.lead--muted { color: var(--muted); }
.lead--paper { color: var(--on-paper-p); }

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 19px 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.btn--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #FFF;
}
.btn--primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #FFF;
}
.btn--ghost {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .26);
  color: var(--on-dark);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .5);
  color: #FFF;
}
.btn--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFF;
}
.btn--dark:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #FFF;
}
.btn__dash {
  width: 20px;
  height: 1px;
  background: currentColor;
  display: block;
}

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  transition: color .25s ease, border-color .25s ease;
}
.link-underline:hover { color: var(--blue); border-color: var(--blue); }
.link-underline::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  display: block;
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
}
.header__bg {
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 14, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  opacity: 0;
  transition: opacity .35s ease;
}
.header.is-scrolled .header__bg { opacity: 1; }

.header__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--on-dark);
  flex-shrink: 0;
}
.brand:hover { color: var(--on-dark); }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .14em;
}
.brand__tag {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .22em;
  color: var(--muted-2);
  margin-top: 5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--nav-link);
  transition: color .2s ease;
}
.nav a:hover { color: #FFF; }
.nav .btn { padding: 13px 22px; font-size: 12px; }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--on-dark);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}
.burger span i {
  height: 1.5px;
  background: var(--on-dark);
  display: block;
}

.menu {
  position: relative;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  padding: 8px var(--gutter) 28px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.menu.is-open { display: flex; }
.menu a {
  font-size: 22px;
  font-weight: 700;
  color: var(--on-dark);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.menu a:last-of-type { border-bottom: 0; }
.menu .btn {
  margin-top: 14px;
  justify-content: center;
  border-bottom: 0;
  padding: 16px 22px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__img {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  animation: lerauKen 26s ease-in-out infinite alternate;
  will-change: transform;
}
.hero__scrim-v {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 12, 14, .86) 0%,
    rgba(11, 12, 14, .42) 34%,
    rgba(11, 12, 14, .72) 72%,
    rgba(11, 12, 14, .97) 100%);
}
.hero__scrim-h {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 12, 14, .72) 0%, rgba(11, 12, 14, 0) 58%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 120px 120px;
  will-change: transform;
}
.hero__ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}
.tick-h {
  position: absolute;
  left: 0; right: 0; top: 22%;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(63, 124, 192, 0) 0%,
    rgba(63, 124, 192, .55) 30%,
    rgba(63, 124, 192, 0) 74%);
}
.tick-v {
  position: absolute;
  top: 0; bottom: 0; left: 68%;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .18) 46%,
    rgba(255, 255, 255, 0) 88%);
}
.tick-coord {
  position: absolute;
  top: calc(22% + 14px);
  left: var(--gutter);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .42);
}
.tick-est {
  position: absolute;
  top: 30%;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .34);
}
.tick-est::before {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(255, 255, 255, .34);
  display: block;
}

.hero__body {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 140px var(--gutter) 0;
}
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero__kicker::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--blue);
  display: block;
}
.hero__kicker span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--blue-soft);
}
.hero h1 {
  margin-top: 30px;
  max-width: 16ch;
  font-size: clamp(42px, 7.4vw, 104px);
  line-height: .94;
  font-weight: 900;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero__sub {
  margin-top: 32px;
  max-width: 56ch;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.62;
  color: var(--on-dark-p);
  text-wrap: pretty;
}
.hero__actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__strip {
  position: relative;
  margin-top: clamp(56px, 9vh, 110px);
  border-top: 1px solid var(--line-on-dark);
}
.hero__strip .wrap {
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 3vw, 42px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.dot {
  width: 4px;
  height: 4px;
  background: var(--blue);
  display: block;
  flex-shrink: 0;
}

/* Hero entrance */
.rise { opacity: 0; animation: lerauRise 1s var(--ease) forwards; }
.rise--1 { animation-delay: .15s; animation-duration: .9s; }
.rise--2 { animation-delay: .32s; }
.rise--3 { animation-delay: .52s; }
.rise--4 { animation-delay: .70s; }

/* ============================================================
   Impacto — stats
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.split--center { align-items: center; }
.split--end    { align-items: end; }
.split__title  { max-width: 14ch; }
.split__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 60ch;
}

.grid-cells {
  display: grid;
  gap: 1px;
  background: var(--line-on-paper);
  border: 1px solid var(--line-on-paper);
}
.grid-cells--dark {
  background: var(--line-on-dark);
  border-color: var(--line-on-dark);
}

/* 2 columnas mientras solo se muestran 2009 y 100 %.
   Al restaurar las tarjetas ocultas en index.html, volver a
   `repeat(auto-fit, minmax(190px, 1fr))`. */
.stats {
  margin-top: clamp(48px, 7vw, 96px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 520px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
}
.stat {
  background: var(--paper);
  padding: clamp(24px, 3vw, 38px);
  /* Centrado en los dos ejes: las tarjetas comparten alto de fila,
     así que el contenido más corto queda a la misma altura óptica. */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.stat__num {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--ink);
}
.stat__num--empty { color: var(--paper-dim); }
.stat__num em { color: var(--blue); font-style: normal; }
.stat__label {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-paper-p);
  letter-spacing: .02em;
}
.stat__meta {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--muted-2);
}
.tbd {
  margin-top: 6px;
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--blue);
  border: 1px dashed rgba(63, 124, 192, .5);
  padding: 3px 7px;
}

/* ============================================================
   Nosotros
   ============================================================ */
.figure-tall {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink);
}
.figure-tall img { width: 100%; height: 100%; object-fit: cover; }
.figure-tall figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  background: rgba(11, 12, 14, .86);
  color: var(--nav-link);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  padding: 10px 16px;
}

.prose {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 56ch;
}
.prose p {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.72;
  color: var(--on-paper-p);
  text-wrap: pretty;
}

.pills {
  margin-top: 32px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 560px) {
  .pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pills li {
  background: var(--paper);
  padding: 16px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  /* Centrado vertical: las etiquetas que ocupan dos líneas no deben
     desalinear a las de una sola. */
  display: flex;
  align-items: center;
}

/* ============================================================
   Servicios
   ============================================================ */
.head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.head-row .h2 { max-width: 17ch; margin-top: 26px; }
.head-row p { max-width: 40ch; font-size: 15px; line-height: 1.7; }

.svc {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
.svc__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-on-dark);
}
.svc__item {
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-on-dark);
  padding: clamp(20px, 2.4vw, 30px) 4px;
  cursor: pointer;
  color: var(--on-dark);
  display: flex;
  gap: 20px;
  align-items: baseline;
  transition: padding-left .4s ease, background .4s ease;
}
.svc__item.is-active {
  padding-left: 18px;
  background: rgba(63, 124, 192, .08);
}
.svc__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-3);
  letter-spacing: .16em;
  flex-shrink: 0;
}
.svc__title {
  display: block;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -.02em;
  transition: color .3s ease;
}
.svc__item.is-active .svc__title { color: var(--blue-light); }
.svc__meta {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.svc__media {
  position: relative;
  min-height: clamp(340px, 44vw, 600px);
  background: var(--ink-2);
  overflow: hidden;
}
.svc__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease, transform 1.2s ease;
}
.svc__media img.is-active { opacity: 1; transform: scale(1.03); }
.svc__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 14, .15) 0%, rgba(11, 12, 14, .88) 100%);
}
.svc__captions {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(22px, 3vw, 38px);
}
.svc__caption {
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
.svc__caption:not(:first-child) {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(22px, 3vw, 38px);
}
.svc__caption.is-active { opacity: 1; pointer-events: auto; }
.svc__caption-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--blue-light);
}
.svc__caption p {
  margin-top: 12px;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--on-dark-soft);
  max-width: 44ch;
  text-wrap: pretty;
}

/* ============================================================
   Galerías (proyectos / sectores)
   ============================================================ */
.gallery {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  /* `dense` cierra los huecos que dejan las piezas de doble ancho */
  grid-auto-flow: dense;
}
.gallery--sectors {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

/* La proporción se declara con un espaciador (::before) en vez de
   `aspect-ratio`: así fija el alto mínimo de la fila, la pieza se estira
   hasta el alto real de la fila y la foto llena todo el hueco. */
.tile {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  min-width: 0;
}
.tile::before {
  content: "";
  display: block;
  padding-top: var(--ratio, 62.5%);
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.tile:hover img { transform: scale(1.06); }
.tile--wide   { grid-column: span 2; --ratio: 62.5%; }   /* 16:10 */
.tile--hero   { grid-column: span 2; --ratio: 56.25%; }  /* 16:9  */
.tile--tall   { --ratio: 125%; }                          /* 4:5   */
.tile--port   { --ratio: 133.333%; }                      /* 3:4   */
.tile--land   { --ratio: 62.5%; }                         /* 16:10 */
.tile--wide43 { --ratio: 75%; }                           /* 4:3   */
.tile--square { --ratio: 100%; }                          /* 1:1   */

.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(11, 12, 14, 0), rgba(11, 12, 14, .9));
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--nav-link);
}
.tile--sector { background: var(--ink); }
.tile--sector figcaption {
  inset: auto auto 20px 22px;
  padding: 0;
  background: none;
  font-family: var(--sans);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #FFF;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .55);
}

/* ============================================================
   Capacidades — plano
   ============================================================ */
.plan {
  margin-top: clamp(48px, 7vw, 90px);
  position: relative;
  height: clamp(180px, 22vw, 260px);
  border: 1px solid var(--line-on-dark);
  background: var(--ink-3);
  overflow: hidden;
}
.plan__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.plan__base {
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(255, 255, 255, .2);
}
.plan__bars {
  position: absolute;
  left: clamp(16px, 3vw, 44px);
  right: clamp(16px, 3vw, 44px);
  bottom: 0;
  top: clamp(16px, 3vw, 44px);
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 1.2vw, 16px);
}
/* Ojo: las barras son textura, no datos. Sin borde y a baja opacidad para que
   se lean como fondo y nadie las confunda con una gráfica con cifras reales.
   Las alturas están en index.html y se eligieron por ritmo visual. */
.plan__bar {
  flex: 1;
  background: linear-gradient(180deg, rgba(63, 124, 192, .26), rgba(63, 124, 192, .06));
  transform: scaleY(.06);
  transform-origin: bottom;
  transition: transform 1.1s var(--ease);
}
.plan.is-in .plan__bar { transform: scaleY(1); }
.plan__label {
  position: absolute;
  top: clamp(12px, 2vw, 20px);
  left: clamp(16px, 3vw, 44px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .32);
}

.cards {
  margin-top: clamp(32px, 4vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card {
  background: var(--ink-2);
  padding: clamp(24px, 3vw, 36px);
}
.card__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--blue);
}
.card h3 {
  margin-top: 16px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.card p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* ============================================================
   Valores (lista definición)
   ============================================================ */
.deflist__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-on-paper);
}
.deflist__row:last-child { border-bottom: 0; }
.deflist__row h3 { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.deflist__row p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--on-paper-p);
  text-wrap: pretty;
}

/* ============================================================
   Proceso
   ============================================================ */
.proceso {
  margin-top: clamp(48px, 7vw, 90px);
  position: relative;
}
.proceso__track {
  position: absolute;
  left: 0; right: 0; top: 9px;
  height: 1px;
  background: rgba(255, 255, 255, .14);
}
.proceso__progress {
  position: absolute;
  left: 0; top: 9px;
  height: 1px;
  width: 0;
  background: var(--blue);
  transition: width .25s linear;
}
.proceso__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
}
.step {
  padding-top: 34px;
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--blue);
  display: block;
}
.step__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--muted-3);
}
.step h3 {
  margin-top: 12px;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.step p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* ============================================================
   Territorio
   ============================================================ */
.territory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  align-items: stretch;
}
.territory__fig {
  position: relative;
  min-height: clamp(320px, 46vw, 620px);
  overflow: hidden;
  margin: 0;
}
.territory__fig img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.territory__fig:hover img { transform: scale(1.06); }
.territory__fig::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 12, 14, .25), rgba(11, 12, 14, .65));
}
.territory__body {
  display: flex;
  align-items: center;
  padding: clamp(48px, 7vw, 110px) clamp(20px, 4vw, 72px);
  background: var(--ink-2);
}
.territory__body > div { max-width: 52ch; }
.territory__body p {
  margin-top: 26px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.72;
  color: var(--muted);
  text-wrap: pretty;
}
.territory__body p + p { margin-top: 20px; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.cta__img {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  will-change: transform;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 14, .82), rgba(11, 12, 14, .9));
}
.cta__body {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 170px) var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta__body h2 {
  font-size: clamp(34px, 5.6vw, 76px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.035em;
  max-width: 16ch;
  text-wrap: balance;
  color: #FFF;
}
.cta__body p {
  margin-top: 26px;
  max-width: 52ch;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--on-dark-p);
}
.cta__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ============================================================
   Contacto
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 5vw, 88px);
}
.contact .h2 { margin-top: 26px; max-width: 16ch; }

.info {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line-on-paper);
  border: 1px solid var(--line-on-paper);
}
.info__row { background: var(--paper); padding: 22px 24px; }
.info__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--muted-2);
}
.info__value {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 700;
  color: var(--ink);
  transition: color .2s ease;
}
a.info__value:hover { color: var(--blue); }
.info__addr {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--ink);
}

.form { display: flex; flex-direction: column; gap: 18px; }
.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 9px; }
.field > span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--muted-2);
}
.field input,
.field select,
.field textarea {
  border: 0;
  border-bottom: 1px solid rgba(11, 12, 14, .28);
  background: transparent;
  padding: 12px 2px;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--blue); }
.field.is-error input,
.field.is-error select,
.field.is-error textarea { border-bottom-color: var(--error); }
.field.is-error > span { color: var(--error); }
/* Trampa antispam: fuera de pantalla, nunca visible ni tabulable. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form .btn { margin-top: 10px; align-self: flex-start; padding: 19px 34px; }
.form .btn[disabled] { opacity: .55; cursor: progress; }
.form__note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--blue);
}
.form__note--error { color: var(--error); }
.form__note[hidden] { display: none; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--on-dark);
  border-top: 1px solid rgba(255, 255, 255, .10);
}
.footer .wrap { padding-block: clamp(48px, 6vw, 80px); }
.footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  align-items: start;
}
.footer__brand img { width: 46px; height: 46px; object-fit: contain; }
.footer__brand .brand__name { font-size: 21px; }
.footer__brand .brand__tag { margin-top: 6px; }
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__nav a,
.footer__contact a {
  font-size: 14px;
  color: var(--muted);
  transition: color .2s ease;
}
.footer__nav a:hover,
.footer__contact a:hover { color: #FFF; }
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.footer__bottom {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--muted-3);
}
.footer__bottom a { color: var(--muted-3); }
.footer__bottom a:hover { color: #FFF; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
/* Sin JS: nada queda oculto */
.no-js .reveal { opacity: 1; transform: none; }

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes lerauRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lerauKen {
  from { transform: scale(1.06); }
  to   { transform: scale(1.16); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1079px) {
  .nav    { display: none; }
  .burger { display: flex; }
}

@media (max-width: 899px) {
  .svc { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .tile--wide,
  .tile--hero { grid-column: span 1; }
  .deflist__row { grid-template-columns: 1fr; gap: 10px; }
  .hero__body { padding-top: 120px; }
  .tick-est { display: none; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  .rise   { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  .plan__bar { transform: scaleY(1); }
}
