/* ============================================================
   NEXAH Ingeniería y Proyectos SpA — Hoja de estilos principal
   Paleta: Contemporary Industrial (Benjamin Moore) — se excluyen
   los tonos café/marrón marcados con X por el cliente.
   Fondo: gris hormigón oscuro con textura (referencia WhatsApp).
   ============================================================ */

:root {
  /* Paleta aprobada */
  --bg:        #232422;  /* hormigón oscuro (fondo general)      */
  --bg-2:      #2c2d2a;  /* hormigón un paso más claro           */
  --ink:       #3c4540;  /* "Accents" — carbón verdoso           */
  --ink-2:     #465049;
  --sage:      #a8a99b;  /* "Walls" — salvia grisácea            */
  --cream:     #eae5d8;  /* "Secondary walls" — crema            */
  --clay:      #a3908a;  /* "Decor" — malva apagado (uso puntual)*/
  --white:     #f7f5f0;
  --line:      rgba(168, 169, 155, 0.22);
  --whatsapp:  #25d366;

  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --header-h: 76px;
  --radius: 6px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Textura de ruido tipo hormigón (SVG embebido) — grano fino puntual */
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='0.055'/></svg>");

  /* Textura de fondo real (foto de piedra/hormigón, referencia del cliente) */
  --texture: url("../assets/img/textura-fondo.jpg");
  --texture-tint: linear-gradient(rgba(20, 21, 19, 0.82), rgba(20, 21, 19, 0.82));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image: var(--texture-tint), var(--texture);
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  color: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

/* En móviles, "fixed" sobre el fondo del body es poco fiable (iOS Safari)
   y afecta el rendimiento del scroll; se usa scroll normal en su lugar. */
@media (max-width: 768px) {
  body { background-attachment: scroll, scroll; }
}

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

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--white);
}

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ---------- Utilidades ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--sage);
}

.section { padding: 110px 0; position: relative; }
.section--tight { padding: 70px 0; }
/* Semitransparente a propósito: deja ver la textura fija del body */
.section--alt { background-color: rgba(44, 45, 42, 0.66); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.section-head p { color: var(--sage); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--center .kicker::before { display: none; }

.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 1px solid var(--sage);
  color: var(--cream);
  background: transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s;
}
.btn:hover { background: var(--cream); border-color: var(--cream); color: var(--bg); }

.btn--solid { background: var(--cream); border-color: var(--cream); color: var(--bg); }
.btn--solid:hover { background: transparent; color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s, box-shadow 0.4s;
  background: linear-gradient(rgba(20, 21, 19, 0.55), transparent);
}
.site-header.is-scrolled {
  background: rgba(28, 29, 27, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand img { height: 30px; width: auto; }

.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--sage);
  transition: width 0.35s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--sage); }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 950;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.35s var(--ease), opacity 0.3s, top 0.35s;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -8px; left: 0; }
.nav-toggle span::after { top: 8px; left: 0; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero (portada) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero--page { min-height: 62vh; padding-top: var(--header-h); }

.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide .hero-bg {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  will-change: transform;
}
.hero-slide.is-active .hero-bg { animation: heroZoom 9s linear forwards; }
@keyframes heroZoom { to { transform: scale(1.08); } }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    var(--noise),
    linear-gradient(100deg, rgba(8, 9, 8, 0.98) 25%, rgba(8, 9, 8, 0.9) 60%, rgba(8, 9, 8, 0.78));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 120px;
  max-width: 780px;
}
.hero-content h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-content h1 .accent { color: var(--sage); }
.hero-content p { font-size: 1.08rem; color: var(--cream); max-width: 560px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  bottom: 34px;
  display: flex;
  gap: 12px;
}
.hero-dots button {
  width: 34px;
  height: 3px;
  border: none;
  background: rgba(234, 229, 216, 0.3);
  cursor: pointer;
  transition: background 0.3s;
}
.hero-dots button.is-active { background: var(--sage); }

.scroll-hint {
  position: absolute;
  right: 4%;
  bottom: 30px;
  z-index: 3;
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 48px;
  background: var(--sage);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse { 50% { transform: scaleY(0.4); opacity: 0.4; } }

/* ---------- Tarjetas de servicio ---------- */
.card {
  background: linear-gradient(160deg, rgba(60, 69, 64, 0.55), rgba(44, 45, 42, 0.9));
  border: 1px solid var(--line);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--sage);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
}
.card:hover { transform: translateY(-8px); border-color: var(--sage); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleY(1); }

.card .icon {
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  color: var(--sage);
}
.card .icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.card p { font-size: 0.94rem; color: var(--sage); }
.card .card-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 1px solid var(--sage);
  padding-bottom: 4px;
}

/* ---------- Banda parallax ---------- */
.parallax {
  position: relative;
  padding: 130px 0;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--noise), rgba(24, 25, 23, 0.82);
}
.parallax > .container { position: relative; z-index: 2; }
.parallax h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  max-width: 800px;
  margin: 0 auto 20px;
}
.parallax p { color: var(--sage); max-width: 640px; margin: 0 auto 34px; }

@media (max-width: 1024px) {
  .parallax { background-attachment: scroll; } /* fixed no es fiable en móviles */
}

/* Patrón de plano técnico (grilla) para fondos parallax y hero */
.bg-blueprint {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(168, 169, 155, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 169, 155, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(168, 169, 155, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 169, 155, 0.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}

/* ---------- Estadísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { padding: 34px 12px; border: 1px solid var(--line); }
.stat .num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--white);
}
.stat .num .suffix { color: var(--sage); }
.stat .label {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 8px;
}

/* ---------- Placeholders de fotografía ---------- */
/* Sustituir por fotografías reales de proyectos cuando estén disponibles */
.ph {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--line);
  background:
    var(--noise),
    linear-gradient(150deg, var(--ink) 0%, var(--bg-2) 70%);
  color: var(--sage);
  text-align: center;
  padding: 20px;
  overflow: hidden;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(168, 169, 155, 0.25);
  pointer-events: none;
}
.ph .icon { width: 46px; height: 46px; }
.ph .icon svg { width: 100%; height: 100%; }
.ph .ph-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
}
.ph .ph-note { font-size: 0.68rem; letter-spacing: 0.08em; opacity: 0.65; }
.ph--wide { aspect-ratio: 16 / 9; }

/* ---------- Imágenes de contenido administrable ---------- */
/* Fotografías subidas desde el panel /admin (proyectos y galería) */
.content-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}
/* Reencuadre puntual de fotografías verticales que no centran bien
   su elemento principal dentro del recorte 4:3 */
.content-img[src*="galeria-personal-terreno"] { object-position: top; }
.content-img[src*="galeria-planos"] { object-position: center 25%; }
.content-img[src*="galeria-fancoil"] { object-position: center 30%; }
.content-img[src*="galeria-rci"] { object-position: center 60%; }
.content-img[src*="galeria-sala-bombas"] { object-position: center 65%; }
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-logo img {
  max-height: 44px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.85;
  transition: filter 0.3s, opacity 0.3s;
}
.client-logo:hover img { filter: none; opacity: 1; }

/* ---------- Galería ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 42px; }
.filter-bar button {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 11px 22px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--sage);
  cursor: pointer;
  transition: all 0.3s;
}
.filter-bar button:hover, .filter-bar button.is-active {
  border-color: var(--sage);
  background: var(--ink);
  color: var(--cream);
}

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item { cursor: pointer; transition: transform 0.35s var(--ease), opacity 0.35s; }
.gallery-item:hover { transform: translateY(-6px); }
.gallery-item.is-hidden { display: none; }
.gallery-item figcaption {
  padding: 14px 4px 0;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(15, 16, 14, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
}
.lightbox.is-open { display: flex; }
.lightbox .lightbox-content { width: min(860px, 100%); }
.lightbox .lightbox-close {
  position: absolute;
  top: 26px;
  right: 30px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox figcaption { text-align: center; margin-top: 18px; color: var(--sage); letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.85rem; }

/* ---------- Carrusel genérico (clientes / proyectos) ---------- */
.carousel { position: relative; overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 26px;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.carousel-item { flex: 0 0 calc((100% - 52px) / 3); }
.carousel-nav {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 30px;
}
.carousel-nav button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
}
.carousel-nav button:hover { border-color: var(--sage); background: var(--ink); }

/* Cinta de logos de clientes */
.logo-marquee { overflow: hidden; position: relative; padding: 10px 0; }
.logo-marquee .marquee-track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.logo-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.client-logo {
  flex: 0 0 auto;
  min-width: 210px;
  padding: 26px 34px;
  border: 1px solid var(--line);
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--sage);
  background: rgba(60, 69, 64, 0.25);
}

/* ---------- Listas técnicas (sectores / normativas) ---------- */
.tech-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tech-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: rgba(44, 45, 42, 0.6);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.tech-item:hover { border-color: var(--sage); transform: translateX(6px); }
.tech-item .icon { width: 34px; height: 34px; color: var(--sage); flex-shrink: 0; }
.tech-item .icon svg { width: 100%; height: 100%; }
.tech-item span { font-size: 0.9rem; letter-spacing: 0.05em; }

/* ---------- Bloques Misión / Visión ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mv-block {
  padding: 48px 42px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(60, 69, 64, 0.5), rgba(35, 36, 34, 0.9));
  position: relative;
}
.mv-block::before {
  content: attr(data-num);
  position: absolute;
  top: 22px;
  right: 28px;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(168, 169, 155, 0.12);
}
.mv-block h3 { text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 18px; font-size: 1.15rem; }
.mv-block p { color: var(--sage); }

/* ---------- Valores / chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 10px 22px;
  border: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------- Timeline / proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { padding: 34px 26px; border: 1px solid var(--line); position: relative; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--sage);
  display: block;
  margin-bottom: 16px;
}
.step h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.step p { font-size: 0.88rem; color: var(--sage); }

/* ---------- Formulario de contacto ---------- */
.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 15px 16px;
  background: rgba(44, 45, 42, 0.8);
  border: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sage);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select option { background: var(--bg-2); }

.form-status { margin-top: 18px; font-size: 0.9rem; letter-spacing: 0.05em; display: none; }
.form-status.ok { display: block; color: var(--sage); }
.form-status.error { display: block; color: var(--clay); }

/* Info de contacto */
.contact-info { display: grid; gap: 18px; }
.info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(44, 45, 42, 0.6);
}
.info-item .icon { width: 30px; height: 30px; color: var(--sage); flex-shrink: 0; }
.info-item .icon svg { width: 100%; height: 100%; }
.info-item h4 { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 6px; }
.info-item p, .info-item a { font-size: 0.92rem; color: var(--sage); }
.info-item a:hover { color: var(--cream); }

.map-frame {
  margin-top: 60px;
  border: 1px solid var(--line);
  filter: grayscale(1) contrast(1.05) brightness(0.85);
}
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Redes sociales */
.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  transition: all 0.3s;
}
.social-row a:hover { border-color: var(--sage); background: var(--ink); color: var(--cream); }
.social-row svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  /* Semitransparente a propósito: deja ver la textura fija del body */
  background-color: rgba(17, 18, 16, 0.72);
  border-top: 1px solid var(--line);
  padding: 80px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 46px;
  padding-bottom: 60px;
}
.footer-grid h4 {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: var(--white);
}
.footer-grid p, .footer-grid a, .footer-grid li { font-size: 0.9rem; color: var(--sage); }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--cream); }
.footer-brand img { height: 34px; margin-bottom: 20px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(168, 169, 155, 0.7);
}

/* ---------- WhatsApp flotante + bot ---------- */
.wa-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 1000;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--whatsapp);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s var(--ease);
  animation: waPulse 2.6s infinite;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 32px; height: 32px; fill: #fff; }
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70%  { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-chat {
  position: fixed;
  right: 26px;
  bottom: 104px;
  z-index: 1000;
  width: min(360px, calc(100vw - 40px));
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.wa-chat.is-open { display: flex; animation: chatIn 0.35s var(--ease); }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px); } }

.wa-chat-header {
  background: var(--ink);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa-chat-header .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wa-chat-header .avatar img { height: 12px; width: auto; }
.wa-chat-header strong { display: block; font-size: 0.9rem; color: var(--white); letter-spacing: 0.05em; }
.wa-chat-header small { font-size: 0.72rem; color: var(--sage); }
.wa-chat-header .wa-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

.wa-chat-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
}
.wa-msg {
  max-width: 85%;
  padding: 11px 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  border-radius: 10px;
  animation: msgIn 0.3s var(--ease);
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.wa-msg--bot { background: var(--ink); color: var(--cream); border-top-left-radius: 2px; align-self: flex-start; }
.wa-msg--user { background: #145c3a; color: #eafff3; border-top-right-radius: 2px; align-self: flex-end; }

.wa-options { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-options button {
  border: 1px solid var(--sage);
  background: transparent;
  color: var(--cream);
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s;
}
.wa-options button:hover { background: var(--sage); color: var(--bg); }

.wa-chat-input {
  display: flex;
  border-top: 1px solid var(--line);
}
.wa-chat-input input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 16px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.wa-chat-input input:focus { outline: none; }
.wa-chat-input button {
  border: none;
  background: var(--whatsapp);
  color: #fff;
  padding: 0 20px;
  cursor: pointer;
  font-size: 1rem;
}

/* ---------- Animaciones de aparición ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- CTA final ---------- */
.cta-band {
  padding: 90px 0;
  text-align: center;
  background: linear-gradient(160deg, var(--ink), #20241f);
  background-blend-mode: overlay;
  border-block: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.cta-band p { color: var(--sage); margin-bottom: 32px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tech-list { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-item { flex: 0 0 calc((100% - 26px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(24, 25, 23, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
    z-index: 940;
  }
  body.nav-open .main-nav { opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; text-align: center; gap: 26px; }
  .main-nav a { font-size: 1rem; }

  .grid--2, .grid--3, .grid--4, .mv-grid, .contact-layout, .form-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .tech-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .carousel-item { flex: 0 0 100%; }
  .hero-content { padding: 130px 0 100px; }
  .scroll-hint { display: none; }
  .wa-fab { right: 18px; bottom: 18px; }
  .wa-chat { right: 18px; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .btn { padding: 13px 24px; font-size: 0.72rem; }
}
