/* ============================================================
   VALK INGENIERÍA — Sistema de diseño "Precisión Industrial"
   Paleta: azul marino blueprint + naranja de marca (#EB4600)
   Tipografía: Ubuntu (display) · Open Sans (texto) · IBM Plex Mono (técnica)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --orange:        #eb4600;
  --orange-bright: #ff5a1f;
  --orange-soft:   #ff7a44;
  --orange-glow:   rgba(235, 70, 0, .38);

  /* Azules blueprint (del infográfico de proceso) */
  --navy-950: #060b15;
  --navy-900: #0a1120;
  --navy-850: #0d1626;
  --navy-800: #101d33;
  --navy-700: #16294a;
  --navy-600: #1d3a68;
  --blue-500: #2f66c4;
  --blue-400: #3f7fd6;
  --blue-300: #6aa4e6;
  --blue-200: #a9cbf2;

  /* Neutros */
  --paper:    #f4f6fa;
  --paper-2:  #e9edf4;
  --paper-line: #d7deea;
  --ink:      #0b1220;
  --ink-2:    #26364d;
  --slate:    #5c6b83;
  --slate-2:  #7d8aa1;
  --white:    #ffffff;

  /* Superficies texto claro */
  --on-dark:      #eef3fb;
  --on-dark-mut:  #9fb0c9;
  --on-dark-line: rgba(160, 185, 225, .16);

  /* Tipos */
  --f-display: "Ubuntu", "Segoe UI", system-ui, sans-serif;
  --f-body:    "Open Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Métrica */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --radius-lg: 10px;

  --shadow-sm: 0 2px 8px rgba(9, 16, 30, .08);
  --shadow-md: 0 18px 40px -20px rgba(9, 16, 30, .35);
  --shadow-lg: 0 40px 80px -30px rgba(6, 12, 24, .55);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--orange); color: #fff; }

/* Cursor: flecha por defecto sobre todo el contenido (sin cursor de texto);
   mano solo en enlaces y botones con funcionalidad. La selección de texto sigue disponible. */
body { cursor: default; }
a[href], button, [role="button"], .btn, .nav__toggle, summary, label[for] { cursor: pointer; }
.field input, .field textarea { cursor: text; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4, h5 { font-family: var(--f-display); font-weight: 700; line-height: 1.06; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
p  { color: var(--slate); }
strong, b { color: inherit; font-weight: 700; }

/* ---------- Utilidades ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 130px); position: relative; }
.text-orange { color: var(--orange); }

/* Etiqueta técnica (eyebrow) */
.eyebrow {
  font-family: var(--f-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--orange);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }
.on-dark .eyebrow { color: var(--orange-soft); }

/* Cabecera de sección */
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 66px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin-top: 18px; }
.sec-head p { margin-top: 20px; font-size: 1.12rem; max-width: 60ch; }
.sec-head.center p { margin-inline: auto; }

/* Botones */
.btn {
  --bg: var(--orange);
  --fg: #fff;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: .98rem;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 15px 28px;
  background: var(--bg);
  color: var(--fg);
  border-radius: var(--radius);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--orange-bright);
  transform: translateX(-101%);
  transition: transform .4s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -12px var(--orange-glow); }
.btn:hover::after { transform: translateX(0); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost {
  --bg: transparent; --fg: var(--on-dark);
  border: 1px solid var(--on-dark-line);
  box-shadow: inset 0 0 0 0 rgba(255,255,255,0);
}
.btn--ghost::after { background: rgba(255,255,255,.06); }
.btn--ghost:hover { box-shadow: none; border-color: rgba(255,255,255,.4); }
.btn--dark { --bg: var(--ink); }
.btn--dark::after { background: var(--navy-700); }

/* Geometría de ondas de fondo (reemplaza la retícula) */
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url(../assets/waves.png) center bottom / cover no-repeat;
  opacity: .9;
}
.grid-bg--flip { transform: scaleX(-1); }

/* Marca de agua del isotipo (halcón) — sutil, en cada sección menos la portada */
.sec-wm {
  position: absolute; z-index: 0; pointer-events: none;
  width: clamp(300px, 42vw, 680px); aspect-ratio: 378 / 187;
  background: url(../assets/isotipo.png) center / contain no-repeat;
  opacity: .1;
  right: -4%; top: 50%; transform: translateY(-50%);
}
.on-dark .sec-wm { opacity: .14; }
.sec-wm--left { right: auto; left: -6%; }
.sec-wm--tr { top: 8%; transform: none; }

/* Superficies oscuras */
.on-dark { background: var(--navy-900); color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark h5 { color: #fff; }
.on-dark p { color: var(--on-dark-mut); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 18px;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 17, 32, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--on-dark-line);
  padding-block: 12px;
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.7);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 38px; width: auto; display: block; filter: drop-shadow(0 4px 12px rgba(0,0,0,.35)); }
.site-header.scrolled .brand__logo { height: 34px; transition: height .4s var(--ease); }

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-family: var(--f-display); font-weight: 500; font-size: .95rem; color: var(--on-dark);
  position: relative; padding-block: 6px; transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--orange);
  transition: width .3s var(--ease-out);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 14px; }

.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--on-dark-line); border-radius: var(--radius); position: relative; }
.nav__toggle span, .nav__toggle::before, .nav__toggle::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle span { top: 50%; transform: translateY(-50%); }
.nav__toggle::before { top: 15px; }
.nav__toggle::after  { bottom: 15px; }
.nav-open .nav__toggle span { opacity: 0; }
.nav-open .nav__toggle::before { top: 21px; transform: rotate(45deg); }
.nav-open .nav__toggle::after  { bottom: 21px; transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  background: var(--navy-950);
  color: var(--on-dark);
  overflow: hidden;
  padding-top: 120px; padding-bottom: 80px;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% center;
  filter: grayscale(.45) contrast(1.06) brightness(.46);
}
/* Duotono navy sobre la foto CAD — el lado izquierdo queda muy oscuro para el texto */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, var(--navy-950) 0%, rgba(6,11,21,.94) 30%, rgba(8,14,26,.72) 55%, rgba(8,14,26,.6) 100%),
    radial-gradient(130% 120% at 82% 12%, rgba(235,70,0,.18), transparent 52%),
    linear-gradient(0deg, var(--navy-950) 2%, rgba(6,11,21,.2) 26%, transparent 45%);
  mix-blend-mode: normal;
}
/* La portada usa la foto de industria como fondo — sin retícula ni ondas */
.hero__grid { display: none; }
/* Barrido naranja animado */
.hero__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: .0;
  animation: scan 7s var(--ease-out) 1.2s infinite;
}
@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: .8; }
  50% { opacity: .5; }
  92% { opacity: .8; }
  100% { transform: translateY(100svh); opacity: 0; }
}

.hero__inner { position: relative; z-index: 3; width: 100%; }
.hero__content { max-width: 900px; }
.hero__content h1, .hero__title { color: #fff; }
.hero__title { margin: 24px 0 0; }
.hero__title .accent { color: var(--orange); display: inline-block; position: relative; }
.hero__lead {
  margin-top: 28px; font-size: clamp(1.05rem, 1.9vw, 1.4rem); color: var(--on-dark-mut);
  max-width: 62ch; line-height: 1.55;
}
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }

/* Marcas técnicas en esquinas */
.hero__readout {
  position: absolute; z-index: 3; font-family: var(--f-mono); font-size: .68rem;
  letter-spacing: .2em; color: var(--on-dark-mut); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.hero__readout::before { content: ""; width: 6px; height: 6px; background: var(--orange); }
.hero__readout--br { right: var(--gutter); bottom: 34px; }
.hero__readout--tr { right: var(--gutter); top: 120px; opacity: .7; }
@media (max-width: 900px){ .hero__readout--tr { display: none; } }

/* Franja de disciplinas bajo el hero */
.hero__ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  border-top: 1px solid var(--on-dark-line);
  background: rgba(6,11,21,.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  overflow: hidden;
}
.ticker__track { display: flex; gap: 60px; padding: 14px 0; width: max-content; animation: ticker 32s linear infinite; }
.ticker__track span {
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-dark-mut); display: inline-flex; align-items: center; gap: 60px; white-space: nowrap;
}
.ticker__track span::after { content: "◆"; color: var(--orange); font-size: .6rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============================================================
   BANNER — "Tu desafío es nuestro compromiso"
   ============================================================ */
/* Banner estático — comparte el mismo fondo que la sección Nosotros (sin línea) */
.pledge { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.pledge::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  /* halo naranja sutil arriba; se desvanece antes del borde inferior → sin costura */
  background: radial-gradient(75% 150% at 50% -25%, rgba(235,70,0,.12), transparent 55%);
}
.pledge__inner { position: relative; z-index: 1; text-align: center; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.pledge__kicker {
  font-family: var(--f-mono); color: var(--blue-300);
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.pledge__phrase {
  font-family: var(--f-display); font-weight: 700; color: #fff;
  font-size: clamp(1.9rem, 6vw, 4rem); letter-spacing: -.015em; line-height: 1.05;
}
.pledge__phrase .accent { color: var(--orange); }

/* ============================================================
   NOSOTROS
   ============================================================ */
.about { position: relative; overflow: hidden; }
.about .grid-bg { opacity: .9; }
.about .container { position: relative; z-index: 1; }

.about__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.about__bignum { font-family: var(--f-mono); font-weight: 600; font-size: clamp(3rem, 9vw, 6.5rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(160,185,225,.24); }

/* Fila superior: recuadro texto (izq) + carrusel (der) */
.about__top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 44px); margin-top: 26px; align-items: stretch; }
.about__intro {
  border: 1px solid var(--on-dark-line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0));
  padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column;
}
.about__title { font-family: var(--f-display); font-size: clamp(1.5rem, 2.3vw, 2.05rem); line-height: 1.12; color: #fff; letter-spacing: -.01em; }
.about__lead { margin-top: 18px; font-size: 1.02rem; line-height: 1.7; color: var(--on-dark-mut); }
.about__lead strong { color: #fff; font-weight: 700; }
.about__badge-inline { margin-top: auto; padding-top: 24px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-soft); display: inline-flex; align-items: center; gap: 10px; }
.about__badge-inline::before { content: ""; width: 22px; height: 2px; background: var(--orange); flex: none; }

/* Carrusel de proyectos */
.about__carousel { position: relative; min-height: 320px; }
.carousel { position: absolute; inset: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--on-dark-line); box-shadow: var(--shadow-lg); background: var(--navy-850); }
.carousel__viewport { overflow: hidden; height: 100%; }
.carousel__track { display: flex; height: 100%; transition: transform .6s var(--ease-out); }
.carousel__slide { flex: 0 0 100%; height: 100%; background: #f4f6fa; }
.carousel__slide img { width: 100%; height: 100%; object-fit: contain; }
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(6,11,21,.62); color: #fff; border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .25s, border-color .25s, transform .25s;
}
.carousel__arrow svg { width: 20px; height: 20px; }
.carousel__arrow:hover { background: var(--orange); border-color: var(--orange); }
.carousel__arrow--prev { left: 12px; }
.carousel__arrow--next { right: 12px; }
.carousel__tag { position: absolute; left: 12px; top: 12px; z-index: 3; font-family: var(--f-mono); font-size: .58rem; letter-spacing: .2em; color: #fff; background: rgba(6,11,21,.6); padding: 5px 9px; border-radius: 3px; }
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.carousel__dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.2); transition: background .25s, width .25s; }
.carousel__dots button.is-active { background: var(--orange); width: 22px; border-radius: 4px; }

/* Visión / Misión (estilo v3) */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(24px, 3.5vw, 46px); position: relative; z-index: 1; }
.vm-card { border-radius: var(--radius-lg); padding: 30px 28px; position: relative; transition: transform .3s var(--ease); }
.vm-card:hover { transform: translateY(-4px); }
.vm-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.vm-card__tag { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }
.vm-card__ico svg { width: 30px; height: 30px; }
.vm-card p { font-size: .98rem; line-height: 1.65; }
.vm-card--orange { background: var(--orange); color: #fff; box-shadow: 0 24px 50px -24px var(--orange-glow); }
.vm-card--orange .vm-card__tag { color: rgba(255,255,255,.92); }
.vm-card--orange p { color: rgba(255,255,255,.95); }
.vm-card--outline { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0)); border: 1px solid var(--on-dark-line); }
.vm-card--outline .vm-card__tag,
.vm-card--outline .vm-card__ico { color: var(--orange-soft); }
.vm-card--outline p { color: var(--on-dark-mut); }

/* ============================================================
   SERVICIOS
   ============================================================ */
.services { background: var(--paper); position: relative; overflow: hidden; }
.services::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: url(../assets/waves.png) center top / cover no-repeat;
}
.services .container { position: relative; z-index: 1; }
.services__intro { display: grid; grid-template-columns: 1fr; gap: 8px; }

.svc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 8px; border-top: 1px solid var(--paper-line); border-left: 1px solid var(--paper-line); }
.svc {
  position: relative; padding: 30px 22px 34px; background: var(--white);
  border-right: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line);
  overflow: hidden; transition: background .35s var(--ease), transform .35s var(--ease);
}
.svc::before { /* barra superior naranja */
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--orange); transition: width .4s var(--ease-out);
}
.svc::after { /* número marca de agua */
  content: attr(data-num);
  position: absolute; right: 14px; bottom: 4px; font-family: var(--f-mono); font-weight: 600;
  font-size: 2.9rem; color: var(--ink); opacity: .05; line-height: 1; transition: opacity .35s, color .35s;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); z-index: 2; }
.svc:hover::before { width: 100%; }
.svc:hover::after { opacity: .1; color: var(--orange); }
/* Escritorio: cabecera apilada, cuerpo siempre visible */
.svc__head { display: block; width: 100%; }
.svc__titles { display: block; }
.svc__chev { display: none; }
.svc__body { display: block; }
.svc__ico {
  width: 50px; height: 50px; border: 1px solid var(--paper-line); border-radius: var(--radius);
  display: grid; place-items: center; margin-bottom: 20px; color: var(--ink);
  transition: background .35s, color .35s, border-color .35s, transform .35s;
}
.svc__ico svg { width: 25px; height: 25px; }
.svc:hover .svc__ico { background: var(--orange); border-color: var(--orange); color: #fff; transform: rotate(-4deg); }
.svc__tag { display: block; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .18em; color: var(--orange); text-transform: uppercase; }
.svc h3 { font-size: 1.02rem; margin: 8px 0 11px; letter-spacing: -.01em; text-transform: uppercase; line-height: 1.18; }
.svc p { font-size: .88rem; color: var(--slate); line-height: 1.55; }

/* ============================================================
   PROCESO — línea de tiempo de 7 pasos (reconstrucción nativa)
   ============================================================ */
.process { background: linear-gradient(180deg, var(--navy-900), var(--navy-850)); color: var(--on-dark); position: relative; overflow: hidden; }
.process .grid-bg { opacity: .5; }
.process .container { position: relative; z-index: 1; }

.timeline { margin-top: 56px; position: relative; }

/* ---- Base / móvil: línea de tiempo vertical ---- */
.wave-line { display: none; }
.wnode { position: relative; padding: 22px 0 22px 44px; border-left: 2px solid var(--navy-600); }
.wnode:last-of-type { border-left-color: transparent; padding-bottom: 0; }
.wnode__dot {
  position: absolute; left: -11px; top: 28px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy-850); border: 2px solid var(--blue-400); display: grid; place-items: center;
  transition: transform .4s var(--ease), border-color .4s;
}
.wnode__dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-300); transition: background .4s; }
.wnode:hover .wnode__dot { transform: scale(1.2); border-color: var(--orange); }
.wnode:hover .wnode__dot::after { background: var(--orange); }
.wnode__card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.wnode__num { font-family: var(--f-mono); font-weight: 600; font-size: 1.5rem; color: var(--blue-300); line-height: 1; }
.wnode__ico { color: var(--blue-200); height: 30px; }
.wnode__ico svg { width: 28px; height: 28px; }
.wnode h4 { font-family: var(--f-display); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.wnode p { font-size: .86rem; color: var(--on-dark-mut); line-height: 1.55; }

/* ---- Escritorio: onda sinusoidal (pasos 1 y 7 centrados, 2–6 ondulando) ---- */
@media (min-width: 980px) {
  .timeline--wave { height: 540px; margin-top: 44px; }
  .wave-line { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; }
  .wave-progress {
    transition: stroke-dashoffset 10s;
    filter: drop-shadow(0 0 5px var(--orange-glow));
  }

  .wnode {
    position: absolute; left: var(--x); top: var(--y); width: 188px;
    transform: translateX(-50%); padding: 0; border: 0; z-index: 2;
  }
  .wnode__dot { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); }
  .wnode:hover .wnode__dot { transform: translate(-50%, -50%) scale(1.25); }
  .wnode__card {
    position: absolute; left: 50%; transform: translateX(-50%); width: 188px;
    align-items: center; text-align: center; gap: 9px;
  }
  .wnode--down .wnode__card, .wnode--mid .wnode__card { top: 26px; }
  .wnode--up .wnode__card { bottom: 26px; }
  .wnode__ico { height: auto; }
}

.process__foot {
  margin-top: 54px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--on-dark-line); border-left: 3px solid var(--orange);
  border-radius: var(--radius); padding: 22px 26px; background: rgba(255,255,255,.02);
}
.process__foot .ico { color: var(--orange-soft); flex: none; }
.process__foot .ico svg { width: 30px; height: 30px; }
.process__foot h4 { font-family: var(--f-display); letter-spacing: .1em; text-transform: uppercase; font-size: .92rem; color: #fff; }
.process__foot p { font-size: .95rem; color: var(--on-dark-mut); margin-top: 2px; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { background: var(--navy-950); color: var(--on-dark); position: relative; overflow: hidden; }
.contact .grid-bg { opacity: .9; }
/* Águila de fondo, media escondida (como en la versión 3) */
.contact__falcon {
  position: absolute; left: -8%; bottom: -14%; z-index: 0; pointer-events: none;
  width: min(60vw, 620px); aspect-ratio: 378 / 187;
  background: url(../assets/isotipo.png) center / contain no-repeat;
  opacity: .13; transform: rotate(-6deg);
}
.contact__layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 80px); position: relative; z-index: 1; }
.contact__lead { margin-top: 22px; font-size: 1.08rem; color: var(--on-dark-mut); max-width: 44ch; }

/* Contacto telefónico (WhatsApp) */
.contact__phones { margin-top: 32px; display: grid; gap: 14px; position: relative; z-index: 1; }
.contact__phones-label {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange-soft); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 4px;
}
.contact__phones-label::before { content: ""; width: 22px; height: 2px; background: var(--orange); flex: none; }
.contact__phone {
  display: inline-flex; align-items: center; gap: 14px; width: fit-content;
  color: #fff; font-family: var(--f-display); font-weight: 500; font-size: 1.18rem; letter-spacing: .01em;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.contact__phone-ic {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--navy-800); border: 1.5px solid var(--orange); color: var(--orange);
  transition: background .25s, color .25s, transform .25s;
}
.contact__phone-ic svg { width: 21px; height: 21px; display: block; }
.contact__phone:hover { color: var(--orange-soft); transform: translateX(3px); }
.contact__phone:hover .contact__phone-ic { background: var(--orange); color: #fff; transform: scale(1.05); }

.contact__panel { margin-top: 34px; display: grid; gap: 14px; }
.contact__row { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: .84rem; letter-spacing: .06em; color: var(--on-dark); }
.contact__row .ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--on-dark-line); border-radius: var(--radius); color: var(--orange-soft); }
.contact__row .ic svg { width: 18px; height: 18px; }
.contact__row small { display: block; color: var(--on-dark-mut); letter-spacing: .18em; text-transform: uppercase; font-size: .64rem; margin-bottom: 2px; }

/* Formulario */
.form {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--on-dark-line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 42px); position: relative; box-shadow: var(--shadow-lg);
}
.form::before { /* esquinas de plano */
  content: ""; position: absolute; top: 14px; left: 14px; width: 20px; height: 20px;
  border-top: 2px solid var(--orange); border-left: 2px solid var(--orange); opacity: .8;
}
.form::after {
  content: ""; position: absolute; bottom: 14px; right: 14px; width: 20px; height: 20px;
  border-bottom: 2px solid var(--orange); border-right: 2px solid var(--orange); opacity: .8;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-mut); margin-bottom: 9px; }
.field input, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: 1rem; color: #fff;
  background: rgba(6,11,21,.6); border: 1px solid var(--on-dark-line); border-radius: var(--radius);
  padding: 14px 16px; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--slate-2); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); background: rgba(6,11,21,.85);
  box-shadow: 0 0 0 3px rgba(235,70,0,.16);
}
.form__submit { width: 100%; justify-content: center; margin-top: 6px; }
.form__note { font-family: var(--f-mono); font-size: .72rem; color: var(--slate-2); margin-top: 16px; text-align: center; letter-spacing: .04em; }
.form__status { display: none; margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); font-size: .9rem; }
.form__status.show { display: block; }
.form__status.ok { background: rgba(63,127,214,.14); border: 1px solid rgba(106,164,230,.4); color: var(--blue-200); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-950); color: var(--on-dark-mut); border-top: 1px solid var(--on-dark-line); padding-block: 60px 30px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer__brand { max-width: 340px; }
.footer__brand .brand { margin-bottom: 18px; }
.footer__brand p { font-size: .92rem; color: var(--on-dark-mut); }
.footer__nav { display: flex; gap: clamp(40px, 6vw, 90px); flex-wrap: wrap; }
.footer__col h5 { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--orange-soft); margin-bottom: 16px; }
.footer__col a, .footer__col span { display: block; font-size: .92rem; color: var(--on-dark-mut); margin-bottom: 11px; transition: color .25s; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--on-dark-line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; color: var(--slate-2);
}

/* ============================================================
   Animaciones de aparición (reveal)
   ============================================================ */
/* Progressive enhancement: sin JS el contenido siempre es visible */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }
.js .reveal[data-delay="5"] { transition-delay: .40s; }

/* Carga escalonada del hero */
.hero__content > * { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease-out) forwards; }
.hero__content > *:nth-child(1) { animation-delay: .15s; }
.hero__content > *:nth-child(2) { animation-delay: .30s; }
.hero__content > *:nth-child(3) { animation-delay: .45s; }
.hero__content > *:nth-child(4) { animation-delay: .60s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about__top { grid-template-columns: 1fr; }
  .about__carousel { min-height: 0; aspect-ratio: 4 / 3; }
  .contact__layout { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav__cta { gap: 0; }
  /* Menú móvil desplegable */
  .nav__mobile {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px); z-index: 99;
    background: var(--navy-900); border-left: 1px solid var(--on-dark-line);
    transform: translateX(100%); transition: transform .4s var(--ease); padding: 100px 32px 40px;
    display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-lg);
  }
  .nav-open .nav__mobile { transform: none; }
  .nav__mobile a { font-family: var(--f-display); font-size: 1.15rem; color: var(--on-dark); padding: 14px 0; border-bottom: 1px solid var(--on-dark-line); }
  .nav__mobile .btn { margin-top: 22px; justify-content: center; }
  .nav__scrim { position: fixed; inset: 0; background: rgba(3,7,14,.6); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 98; }
  .nav-open .nav__scrim { opacity: 1; visibility: visible; }

  .vm-grid { grid-template-columns: 1fr; }
  .about__badge { left: 12px; }
  .hero { min-height: auto; padding-top: 140px; }
  .hero__readout--br { display: none; }

  /* Servicios: acordeón desplegable en mobile */
  .svc-grid { grid-template-columns: 1fr; }
  .svc { padding: 0; }
  .svc::after { display: none; }                 /* oculta el número de marca de agua */
  .svc:hover { transform: none; box-shadow: none; }
  .svc__head {
    display: flex; align-items: center; gap: 14px; padding: 18px;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .svc__head:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
  .svc__ico { width: 44px; height: 44px; margin-bottom: 0; flex: none; }
  .svc__ico svg { width: 22px; height: 22px; }
  .svc__titles { flex: 1 1 auto; min-width: 0; }
  .svc__tag { font-size: .62rem; }
  .svc h3 { margin: 3px 0 0; font-size: 1.02rem; }
  .svc__chev {
    display: grid; place-items: center; flex: none; width: 26px; height: 26px;
    color: var(--slate-2); transition: transform .35s var(--ease), color .35s;
  }
  .svc__chev svg { width: 20px; height: 20px; }
  .svc.is-open .svc__chev { transform: rotate(180deg); color: var(--orange); }
  .svc.is-open .svc__ico { background: var(--orange); border-color: var(--orange); color: #fff; }
  .svc.is-open::before { width: 100%; }
  /* animación de despliegue del cuerpo */
  .svc__body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
  .svc.is-open .svc__body { max-height: 420px; }
  .svc__body p { margin: 0; padding: 4px 18px 20px; font-size: .92rem; }
}
@media (min-width: 761px) { .nav__mobile, .nav__scrim { display: none; } }

/* ============================================================
   Botón flotante de WhatsApp (fijo abajo a la derecha)
   Relleno azul de marca · borde e ícono naranja
   ============================================================ */
.wpp {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 300;
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800);
  border: 2.5px solid var(--orange);
  color: var(--orange);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .5);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  -webkit-tap-highlight-color: transparent;
}
.wpp svg { width: 34px; height: 34px; display: block; }
.wpp:hover {
  transform: translateY(-3px) scale(1.06);
  background: var(--navy-700);
  box-shadow: 0 16px 38px -8px rgba(0, 0, 0, .55), 0 10px 30px -6px var(--orange-glow);
}
.wpp:active { transform: scale(.98); }
.wpp:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
/* anillo de pulso para llamar la atención */
.wpp__pulse {
  position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid var(--orange); opacity: .55; pointer-events: none;
  animation: wppPulse 2.6s ease-out infinite;
}
@keyframes wppPulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .wpp__pulse { animation: none; opacity: 0; } }
@media (max-width: 480px) { .wpp { width: 56px; height: 56px; } .wpp svg { width: 31px; height: 31px; } }
