/* =========================================================
   Ingeniería y Construcción CL — estilos
   Paleta: azules de la marca + concreto
   ========================================================= */

:root {
  --navy: #0B2545;        /* azul obra: fondos oscuros */
  --navy-2: #133A66;      /* azul obra claro */
  --blue: #1B5FD1;        /* azul CL: acción principal */
  --blue-dark: #134BA8;
  --line: #8CCBF5;        /* azul de plano: líneas y cotas */
  --concrete: #EDF1F5;    /* fondo claro alterno */
  --steel: #52657B;       /* texto secundario */
  --ink: #0E1B2B;         /* texto principal */
  --white: #FFFFFF;
  --border: #D5DEE8;
  --wa: #1FA855;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --radius-sm: 4px;
  --radius: 8px;
  --header-h: 76px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.05; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--blue); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.6rem;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--whatsapp { background: var(--wa); color: var(--white); }
.btn--whatsapp:hover { background: #178a45; }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--concrete); }
.btn:active { transform: scale(.97); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy); color: #C9D6E6; font-size: .875rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar__links { display: flex; gap: 1.5rem; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--white); }

/* ---------- Encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 6px 20px rgba(11, 37, 69, .08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand__mark {
  display: grid; place-items: center; width: 46px; height: 46px;
  background: var(--blue); color: var(--white);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 -6px 0 var(--navy);
}
.brand__name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; line-height: 1.05; }
.brand--light { color: var(--white); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink); }
.nav a:not(.nav__cta):hover { color: var(--blue); }
.nav__cta {
  padding: .7rem 1.2rem; background: var(--blue); color: var(--white) !important;
  border-radius: var(--radius-sm); font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
}
.nav__cta:hover { background: var(--blue-dark); }

.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 6px 0; transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
  color: var(--white);
  background:
    linear-gradient(115deg, var(--navy) 0%, var(--navy-2) 60%, #1A4A80 100%);
}
.hero__media { position: absolute; inset: 0; background: url(../img/hero.jpg) center/cover; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
/* Velo azul sobre el video para legibilidad */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,37,69,.94) 0%, rgba(11,37,69,.78) 45%, rgba(11,37,69,.35) 100%);
}
/* Retícula de plano */
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(140,203,245,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,203,245,.10) 1px, transparent 1px),
    linear-gradient(rgba(140,203,245,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,203,245,.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.6) 55%, transparent 100%);
}

.hero__content { position: relative; padding-block: 6rem 7rem; max-width: var(--container); }
.hero__kicker {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--line);
  margin-bottom: 1.2rem;
}
.hero__title {
  font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  font-weight: 700; letter-spacing: -.01em; line-height: .98;
  max-width: 14ch;
}
.hero__subtitle {
  margin-top: 1.6rem; max-width: 36ch;
  font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 500; line-height: 1.2;
  color: #DCE8F5;
}
.hero__text { margin-top: 1rem; max-width: 52ch; color: #B9CADD; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

/* Cota de plano: la línea se dibuja al cargar */
.cota {
  position: absolute; left: 0; bottom: 2.5rem;
  display: flex; align-items: center; gap: 1rem;
  width: min(520px, 100%);
}
.cota__line {
  position: relative; flex: 1; height: 1px; background: var(--line);
  transform-origin: left; transform: scaleX(0);
  animation: draw 1.4s cubic-bezier(.65,0,.35,1) .4s forwards;
}
.cota__line::before, .cota__line::after {
  content: ""; position: absolute; top: -8px; width: 1px; height: 17px; background: var(--line);
}
.cota__line::before { left: 0; }
.cota__line::after { right: 0; }
.cota__label {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--line); white-space: nowrap;
  opacity: 0; animation: fade .6s ease 1.6s forwards;
}
@keyframes draw { to { transform: scaleX(1); } }
@keyframes fade { to { opacity: 1; } }

/* Sello de plano en el hero */
.stamp { position: absolute; right: clamp(1.5rem, 5vw, 5rem); top: clamp(5rem, 14vw, 8.5rem); width: 138px; height: 138px; opacity: 0; animation: fade .6s ease 1.8s forwards; }
.stamp__ring {
  display: grid; place-items: center; width: 100%; height: 100%;
  border: 2px dashed rgba(140,203,245,.7); border-radius: 50%;
  transform: rotate(-9deg); text-align: center; padding: 1.1rem;
}
.stamp__ring span {
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  letter-spacing: .02em; line-height: 1.25; color: var(--line); text-transform: uppercase;
}

/* ---------- Carrusel de servicios ---------- */
.marquee { background: var(--blue); color: var(--white); overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; }
.marquee__list li {
  display: flex; align-items: center;
  padding: 1.1rem 0; margin-right: 2.6rem;
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; white-space: nowrap;
}
.marquee__list li::after {
  content: ""; width: 9px; height: 9px; margin-left: 2.6rem;
  border: 2px solid var(--line); transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Números ---------- */
.stats { border-bottom: 1px solid var(--border); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2.6rem 1.8rem; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__mark { display: block; width: 15px; height: 15px; background: var(--blue); margin-bottom: 1.1rem; position: relative; }
.stat__mark::after { content: ""; position: absolute; left: 6px; top: 6px; width: 15px; height: 15px; border: 2px solid var(--navy); }
.stat__value {
  font-family: var(--font-display); font-size: clamp(2.8rem, 4.5vw, 3.8rem); font-weight: 700;
  line-height: 1; color: var(--navy);
}
.stat__label { margin-top: .6rem; color: var(--steel); font-size: .98rem; max-width: 24ch; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section--concrete { background: var(--concrete); }
.section--navy { background: var(--navy); color: var(--white); }
.section__title { font-size: clamp(2.3rem, 4.4vw, 3.4rem); letter-spacing: -.005em; color: var(--navy); }
.section--navy .section__title { color: var(--white); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 3rem; }
.section__head p { color: var(--steel); max-width: 52ch; }
.section__head--split { grid-template-columns: auto 1fr; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }

/* ---------- Imágenes con respaldo ---------- */
.photo, .service__img, .card__img { position: relative; margin: 0; overflow: hidden; background: var(--navy-2); }
.photo img, .service__img img, .card__img img { width: 100%; height: 100%; object-fit: cover; }
.is-missing {
  display: grid; place-items: center;
  background-color: var(--navy-2);
  background-image:
    linear-gradient(rgba(140,203,245,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,203,245,.14) 1px, transparent 1px);
  background-size: 22px 22px;
}
.is-missing img { display: none; }
.is-missing::after {
  content: attr(data-label);
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--line);
  padding: .4rem .8rem; border: 1px dashed rgba(140,203,245,.6); border-radius: var(--radius-sm);
}

/* ---------- Nosotros ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about__media { position: relative; padding-bottom: 3rem; }
.photo--tall { aspect-ratio: 4 / 5; width: 82%; border-radius: var(--radius); }
.photo--small {
  position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1;
  border-radius: var(--radius); border: 8px solid var(--white);
}
.about__badge {
  position: absolute; left: -1.2rem; bottom: 2.2rem; z-index: 2;
  display: flex; align-items: center; gap: .9rem;
  background: var(--white); padding: 1.1rem 1.4rem; border-radius: var(--radius);
  box-shadow: 0 18px 34px rgba(11,37,69,.18);
}
.about__badge strong { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--blue); line-height: 1; }
.about__badge strong span { color: var(--navy); }
.about__badge > span { font-size: .85rem; font-weight: 600; color: var(--steel); line-height: 1.25; }
.about__body { display: grid; gap: 1.3rem; }
.about__body > p:not(.lead) { color: var(--steel); }

.check-list { display: grid; gap: .7rem; margin-top: .3rem; }
.check-list li { position: relative; padding-left: 1.9rem; font-weight: 600; color: var(--navy); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.2em; height: 1.2em;
  border: 2px solid var(--blue); border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}
.check-list li::after {
  content: ""; position: absolute; left: .38em; top: .48em; width: .5em; height: .28em;
  border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg);
}

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; margin-top: 1rem; padding-top: 1.8rem; border-top: 1px solid var(--border); }
.facts li { padding-left: 1rem; border-left: 3px solid var(--blue); }
.facts strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); }
.facts span { display: block; margin-top: .25rem; font-size: .95rem; color: var(--steel); line-height: 1.45; }

/* ---------- Servicios ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service {
  display: flex; flex-direction: column;
  background: var(--white); text-decoration: none; color: var(--ink);
  border-radius: var(--radius); overflow: hidden; padding: 1.7rem 1.7rem 0;
  border-bottom: 4px solid transparent; box-shadow: 0 1px 0 var(--border) inset;
  transition: border-color .25s, transform .25s;
}
.service:hover { border-bottom-color: var(--blue); transform: translateY(-4px); }
.service__head { display: flex; align-items: baseline; gap: 1rem; }
.service__num { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--line); background: var(--navy); padding: .2rem .55rem; border-radius: var(--radius-sm); flex-shrink: 0; }
.service h3 { font-size: 1.4rem; color: var(--navy); line-height: 1.15; }
.service > p { margin-top: .6rem; color: var(--steel); font-size: .96rem; }
.service__img { aspect-ratio: 16 / 10; margin-top: 1.3rem; border-radius: var(--radius-sm); }
.service__img img { transition: transform .6s ease; }
.service:hover .service__img img { transform: scale(1.05); }
.service__link { display: block; padding: 1rem 0 1.5rem; font-weight: 600; color: var(--blue); }

/* ---------- Por qué + proceso ---------- */
.why__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); }
.why__intro .lead { margin-top: 1.2rem; max-width: 34ch; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem 2.5rem; }
.reasons li { padding-top: 1.2rem; border-top: 2px solid var(--navy); }
.reasons h3 { font-size: 1.5rem; color: var(--navy); }
.reasons p { margin-top: .5rem; color: var(--steel); font-size: .98rem; }

.process { margin-top: clamp(4rem, 8vw, 6rem); }
.process__title { font-size: 1.9rem; color: var(--navy); margin-bottom: 2.2rem; }
.process__layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: stretch; }
.process__steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.process__steps li { background: var(--concrete); border-radius: var(--radius); padding: 1.7rem 1.6rem; }
.process__num {
  display: grid; place-items: center; width: 46px; height: 46px;
  background: var(--white); border: 2px solid var(--blue); border-radius: 50%;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--blue);
}
.process__steps h4 { margin-top: 1.2rem; font-size: 1.3rem; color: var(--navy); }
.process__steps p { margin-top: .4rem; font-size: .93rem; color: var(--steel); }
.process__photo { margin: 0; min-height: 260px; border-radius: var(--radius); overflow: hidden; }
.process__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 78%; }

.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: clamp(2rem, 5vw, 3rem); }
.highlight {
  border-radius: var(--radius); padding: 1.8rem; min-height: 210px;
  display: flex; flex-direction: column; text-decoration: none;
}
.highlight--dark { background: var(--navy); color: var(--white); justify-content: space-between; }
.highlight__num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; color: var(--line); line-height: 1; }
.highlight--dark h4 { margin-top: .6rem; font-size: 1.3rem; color: var(--white); }
.highlight--dark p { margin-top: .5rem; font-size: .92rem; color: #B9CADD; }
.highlight--photo {
  background-size: cover; background-position: center; justify-content: flex-end;
  color: var(--white); transition: transform .3s;
}
.highlight--photo:hover { transform: translateY(-4px); }
.highlight--photo p { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.highlight__link { margin-top: .6rem; font-weight: 600; color: var(--line); }
.highlight--accent { background: var(--blue); color: var(--white); justify-content: center; text-align: left; }
.highlight--accent strong { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; line-height: 1; }
.highlight--accent span { display: block; margin-top: .6rem; font-size: .95rem; color: #DCE8FB; max-width: 22ch; }

/* ---------- Portafolio ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.filter {
  padding: .55rem 1.05rem; background: transparent; color: #C9D6E6;
  border: 1px solid rgba(140,203,245,.35); border-radius: 999px;
  font: 500 .95rem var(--font-body); cursor: pointer; transition: all .2s;
}
.filter:hover { color: var(--white); border-color: var(--line); }
.filter.is-active { background: var(--white); color: var(--navy); border-color: var(--white); }

.portfolio__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  grid-auto-flow: dense;
}
.card {
  position: relative; display: block; width: 100%; padding: 0; text-align: left;
  background: none; border: 0; color: var(--white); cursor: pointer;
  border-radius: var(--radius); overflow: hidden;
  animation: fade .35s ease both;
}
.card--wide { grid-column: span 2; }
.card__img { aspect-ratio: 4 / 3; }
.card--wide .card__img { aspect-ratio: auto; height: 100%; min-height: 100%; }
.card__img img { transition: transform .6s ease; }
.card:hover .card__img img { transform: scale(1.05); }
.card__badge {
  position: absolute; top: 1rem; right: 1rem; z-index: 1;
  display: grid; place-items: center; width: 38px; height: 38px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%; color: var(--white); font-size: 1.1rem;
  backdrop-filter: blur(3px); transition: background-color .2s, transform .2s;
}
.card:hover .card__badge { background: var(--blue); transform: rotate(45deg); }
.card__info {
  position: absolute; inset: auto 0 0 0; padding: 3rem 1.3rem 1.2rem;
  background: linear-gradient(transparent, rgba(11,37,69,.92));
}
.card__cat { font-size: .88rem; color: var(--line); font-weight: 500; }
.card__title { margin-top: .2rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.card__place { margin-top: .25rem; font-size: .9rem; color: #C9D6E6; }
.portfolio__empty { grid-column: 1 / -1; color: #C9D6E6; }

/* ---------- Modal ---------- */
.modal {
  width: min(960px, 100% - 2rem); max-height: 90vh; padding: 0; border: 0;
  border-radius: var(--radius); overflow: auto; color: var(--ink);
}
.modal::backdrop { background: rgba(11,37,69,.8); }
.modal__close {
  position: sticky; top: .8rem; float: right; margin: .8rem .8rem 0 0; z-index: 2;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: var(--white); color: var(--navy); font-size: 1.8rem; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.modal__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.modal__gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.modal__gallery figure { margin: 0; aspect-ratio: 4 / 3; }
.modal__body { padding: 2rem; display: grid; gap: .8rem; }
.modal__meta { color: var(--blue); font-weight: 600; }
.modal__body h3 { font-size: 2.2rem; color: var(--navy); }
.modal__body > p:not(.modal__meta) { color: var(--steel); max-width: 65ch; }
.modal__specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.modal__specs dt { font-size: .85rem; color: var(--steel); }
.modal__specs dd { margin: .15rem 0 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--navy); }

/* ---------- Banner de contacto ---------- */
.cta { padding-block: clamp(4rem, 8vw, 6rem); }
.cta__box {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center;
  padding: clamp(2.2rem, 5vw, 4rem);
  background:
    linear-gradient(100deg, rgba(11,37,69,.94) 0%, rgba(11,37,69,.86) 45%, rgba(27,95,209,.78) 100%),
    url(../img/cta-bg.jpg) center/cover;
  color: var(--white); border-radius: var(--radius);
}
.cta__box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(270deg, #000, transparent 70%);
}
.cta__text, .cta__actions { position: relative; }
.cta__kicker {
  display: inline-flex; margin-bottom: 1rem; padding: .4rem .9rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--line);
}
.cta__text h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.cta__text p { margin-top: 1rem; max-width: 46ch; color: #DCE8FB; }
.cta__actions { display: grid; gap: .9rem; justify-items: stretch; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #B9CADD; padding-top: 4.5rem; font-size: .96rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.footer__brand p { margin-top: 1.2rem; max-width: 34ch; }
.footer__title { font-size: 1.3rem; color: var(--white); margin-bottom: 1rem; }
.footer__list { display: grid; gap: .55rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: 1.4rem; border-top: 1px solid rgba(140,203,245,.18); font-size: .88rem;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  display: grid; place-items: center; width: 60px; height: 60px;
  background: var(--wa); color: var(--white); border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }

/* ---------- Aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .services__grid, .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: 1fr; }
  .process__layout { grid-template-columns: 1fr; }
  .process__photo { min-height: 220px; }
  .highlights { grid-template-columns: 1fr 1fr; }
  .stamp { display: none; }
}

@media (max-width: 860px) {
  .topbar__inner p, .topbar__links a[href^="mailto"] { display: none; }
  .topbar__inner { justify-content: center; }

  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 1.25rem 2rem; background: var(--white);
    transform: translateX(100%); transition: transform .3s ease;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--border); font-size: 1.1rem; }
  .nav__cta { margin-top: 1.2rem; text-align: center; border-bottom: 0 !important; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 2rem 1.2rem; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }

  .about__grid, .section__head, .section__head--split, .cta__box { grid-template-columns: 1fr; }
  .about__badge { left: 0; bottom: -1.5rem; }
  .filters { justify-content: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero__content { padding-block: 4rem 6rem; }
  .services__grid, .portfolio__grid, .reasons, .facts { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .card--wide .card__img { aspect-ratio: 4 / 3; height: auto; }
  .about__media { padding-bottom: 4.5rem; }
  .about__badge { bottom: 0; }
  .process__steps { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr; }
  .modal__gallery { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cota__line { transform: scaleX(1); }
  .cota__label { opacity: 1; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}
.card__img.is-missing::after { display: none; }
