/* ==========================================================================
   EMMANUELLE VEGA — Soluciones en aire comprimido industrial
   Sistema de diseño: industrial · técnico · editorial · B2B
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Navy */
  --navy-900: #04122c;
  --navy-800: #071a3d;
  --navy-700: #0b2450;
  --navy-600: #103063;
  --navy-line: rgba(255, 255, 255, 0.14);

  /* Azules de acento */
  --blue-500: #1687cf;
  --blue-400: #2b9ce0;
  --blue-600: #0f6fae;
  --blue-action: #1597e5;

  /* Neutros */
  --white: #ffffff;
  --gray-50: #f5f7fa;
  --gray-100: #eef1f6;
  --gray-200: #dfe4ec;
  --gray-300: #c6cedb;
  --gray-500: #52627a;
  --gray-600: #42506610;
  --ink: #0d1b33;

  /* WhatsApp */
  --wa: #25d366;
  --wa-dark: #1da851;

  /* Tipografía */
  --font-head: 'Roboto Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --wrap: 1240px;
  --gutter: 24px;
  --header-h: 76px;
  --header-h-scrolled: 62px;

  /* Radios: contenidos, nada exagerado */
  --r-sm: 3px;
  --r-md: 5px;
  --r-lg: 8px;

  /* Transiciones */
  --t-fast: 140ms cubic-bezier(0.4, 0, 0.2, 1);
  --t: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Compensa el header sticky al navegar por anclas */
  scroll-padding-top: calc(var(--header-h-scrolled) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-500);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.005em;
  font-weight: 700;
}

p {
  margin: 0;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Foco visible y consistente (accesibilidad) */
:focus-visible {
  outline: 3px solid var(--blue-action);
  outline-offset: 2px;
  border-radius: 2px;
}

.on-dark :focus-visible,
.section--navy :focus-visible {
  outline-color: #6cc6ff;
}

/* Salto al contenido para lectores de pantalla / teclado */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--blue-action);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-weight: 600;
  transition: top var(--t);
}
.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px
  ;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 7vw, 96px);
}

.section--tight {
  padding-block: clamp(44px, 5vw, 68px);
}

.section--gray {
  background: var(--gray-50);
}

.section--navy {
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.76);
}

.section--navy h2,
.section--navy h3 {
  color: #fff;
}

/* --------------------------------------------------------------------------
   4. TIPOGRAFÍA / ENCABEZADOS DE SECCIÓN
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin: 0;
}

.section-head {
  margin-bottom: clamp(32px, 4vw, 52px);
}

.section-head--center {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

/*
 * Encabezado editorial: título a la izquierda y bajada a la derecha,
 * con una regla fina que atraviesa el espacio intermedio.
 * Replica la alineación izquierda de la referencia visual.
 */
.section-head--split {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-200);
}

.section-head--split .section-title {
  flex-shrink: 0;
}

.section-head--split .section-sub {
  margin-top: 0;
  font-size: 15.5px;
  text-align: right;
  margin-left: auto;
  max-width: 430px;
}

.section--navy .section-head--split {
  border-bottom-color: var(--navy-line);
}

.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.01em;
}

.section-title .accent {
  color: var(--blue-500);
}

.section--navy .section-title .accent {
  color: var(--blue-400);
}

.section-sub {
  margin-top: 14px;
  font-size: 16.5px;
  color: var(--gray-500);
  line-height: 1.65;
}

.section--navy .section-sub {
  color: rgba(255, 255, 255, 0.7);
}

/* Regla decorativa fina sobre el eyebrow centrado */
.eyebrow--rule {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.eyebrow--rule::before,
.eyebrow--rule::after {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   5. BOTONES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  /* min 44px de área táctil */
  min-height: 48px;
  padding: 13px 26px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  transition: background var(--t), color var(--t), border-color var(--t),
    transform var(--t-fast);
  border: 1.5px solid transparent;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--blue-action);
  color: #fff;
}
.btn--primary:hover {
  background: #1183cc;
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}
.btn--ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.btn--outline {
  border-color: var(--gray-300);
  color: var(--ink);
  background: #fff;
}
.btn--outline:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
}

.btn--wa {
  background: var(--wa);
  color: #fff;
}
.btn--wa:hover {
  background: var(--wa-dark);
}

.btn--block {
  width: 100%;
}

.btn__icon {
  flex-shrink: 0;
}

/* Enlace con flecha */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-500);
}
.link-arrow svg {
  transition: transform var(--t);
}
.link-arrow:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   6. HEADER
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-800);
  border-bottom: 1px solid var(--navy-line);
  transition: background var(--t);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  transition: height var(--t);
}

.header.is-scrolled {
  background: rgba(5, 18, 44, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.header.is-scrolled .header__inner {
  height: var(--header-h-scrolled);
}

/* Marca personal */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  min-width: 0;
}

.brand__photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
  transition: width var(--t), height var(--t);
}

.header.is-scrolled .brand__photo {
  width: 34px;
  height: 34px;
}

.brand__text {
  min-width: 0;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.055em;
  color: #fff;
  line-height: 1.15;
  white-space: nowrap;
}

.brand__role {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
  white-space: nowrap;
}

/* Navegación desktop */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  padding: 6px 0;
  transition: color var(--t);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--blue-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}

.nav__link:hover,
.nav__link.is-active {
  color: #fff;
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.header__cta {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 14px;
}

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.09);
}

/* Panel móvil */
/*
 * El panel se despliega animando la altura real del contenido con
 * grid-template-rows: 0fr -> 1fr. Se usa grid en lugar de max-height para no
 * fijar una altura arbitraria y que el cierre tenga la misma duración.
 * El atributo [hidden] lo saca del árbol de accesibilidad cuando está cerrado.
 */
.mobile-nav {
  display: grid;
  grid-template-rows: 0fr;
  border-top: 1px solid var(--navy-line);
  background: var(--navy-900);
  transition: grid-template-rows 340ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Necesario: el display:grid de arriba anularía el [hidden] del navegador */
.mobile-nav[hidden] {
  display: none;
}

.mobile-nav > .wrap {
  overflow: hidden;
  min-height: 0;
}

.mobile-nav.is-open {
  grid-template-rows: 1fr;
}

.mobile-nav__list {
  padding: 8px 0 16px;
}

/* Entrada escalonada de cada opción, muy discreta */
.mobile-nav__list > li,
.mobile-nav__cta {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.mobile-nav.is-open .mobile-nav__list > li,
.mobile-nav.is-open .mobile-nav__cta {
  opacity: 1;
  transform: none;
}

.mobile-nav.is-open .mobile-nav__list > li:nth-child(1) {
  transition-delay: 70ms;
}
.mobile-nav.is-open .mobile-nav__list > li:nth-child(2) {
  transition-delay: 110ms;
}
.mobile-nav.is-open .mobile-nav__list > li:nth-child(3) {
  transition-delay: 150ms;
}
.mobile-nav.is-open .mobile-nav__list > li:nth-child(4) {
  transition-delay: 190ms;
}
.mobile-nav.is-open .mobile-nav__list > li:nth-child(5) {
  transition-delay: 230ms;
}
.mobile-nav.is-open .mobile-nav__cta {
  transition-delay: 270ms;
}

.mobile-nav__link {
  display: block;
  padding: 15px 4px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-nav__link:hover {
  color: #fff;
}

.mobile-nav__cta {
  margin-top: 18px;
}

/* El icono del botón gira levemente al abrir, para dar respuesta al toque */
.nav-toggle__open {
  transition: transform 340ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__open {
  transform: rotate(90deg);
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy-800);
  overflow: hidden;
  isolation: isolate;
}

/* Trama técnica muy sutil tipo blueprint */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  z-index: -2;
}

/* Halo azul detrás de la fotografía */
.hero::after {
  content: '';
  position: absolute;
  top: -12%;
  right: -6%;
  width: 62%;
  height: 122%;
  background: radial-gradient(
    ellipse at 62% 45%,
    rgba(22, 135, 207, 0.3) 0%,
    rgba(22, 135, 207, 0.08) 42%,
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  /*
   * La columna de texto es más ancha para que el titular respete los dos
   * renglones de la referencia visual sin quedar en cuatro líneas.
   */
  grid-template-columns: 1.18fr 0.82fr;
  gap: 20px;
  align-items: center;
  min-height: min(660px, calc(100vh - var(--header-h)));
  padding-block: clamp(44px, 4.6vw, 64px);
}

.hero__content {
  max-width: 700px;
}

.hero__eyebrow {
  color: var(--blue-400);
  margin-bottom: 20px;
}

.hero__title {
  /* Se ajusta para respetar el salto de línea en 2 renglones como la referencia */
  font-size: clamp(36px, 3.72vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: #fff;
}

.hero__title .accent {
  color: var(--blue-400);
}

.hero__text {
  margin-top: 22px;
  font-size: clamp(16px, 1.15vw, 17.5px);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.76);
  max-width: 540px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.66);
}

.hero__note svg {
  color: var(--blue-400);
  flex-shrink: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

/* Columna de la fotografía */
.hero__figure {
  position: relative;
  align-self: end;
  justify-self: end;
  width: 100%;
  max-width: 540px;
  /* Desborda ligeramente su columna para ganar presencia sin comprimir el texto */
  margin-right: -26px;
}

.hero__photo {
  width: 100%;
  height: auto;
  display: block;
  /* Difumina la base para integrar la foto con el fondo navy */
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 82%,
    transparent 99%
  );
  mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 99%);
  filter: drop-shadow(0 22px 46px rgba(0, 0, 0, 0.42));
}

/* Ficha discreta del consultor */
.hero__card {
  position: absolute;
  right: -22px;
  bottom: 96px;
  background: rgba(5, 18, 44, 0.9);
  backdrop-filter: blur(9px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 3px solid var(--blue-500);
  border-radius: var(--r-md);
  padding: 13px 17px;
  max-width: 232px;
}

.hero__card-name {
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.hero__card-line {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.66);
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   8. FRANJA DE CREDIBILIDAD
   -------------------------------------------------------------------------- */
.trust {
  background: var(--navy-900);
  border-top: 1px solid var(--navy-line);
}

.trust__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 28px;
  position: relative;
}

/* Separadores verticales finos (no cards) */
.trust__item + .trust__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.trust__item:first-child {
  padding-left: 0;
}
.trust__item:last-child {
  padding-right: 0;
}

.trust__icon {
  color: var(--blue-400);
  flex-shrink: 0;
}

.trust__value {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.trust__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.4;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   9. ¿QUÉ NECESITAS RESOLVER?
   -------------------------------------------------------------------------- */
.needs__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

/*
 * Cada enlace va dentro de un <li> por semántica de lista. El <li> debe ser
 * contenedor flexible para que el enlace ocupe toda la altura de la fila y las
 * flechas queden alineadas entre columnas de texto de distinto largo.
 */
.needs__list > li {
  display: flex;
  position: relative;
}

.needs__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 26px 8px;
  width: 100%;
  text-align: left;
  transition: transform var(--t);
}

/*
 * Separadores en lugar de cajas. La regla vive en el <li> (no en el enlace)
 * porque los enlaces no son hermanos directos entre sí.
 */
.needs__list > li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--gray-200);
}

.needs__list > li:first-child .needs__item {
  padding-left: 0;
}
.needs__list > li:last-child .needs__item {
  padding-right: 0;
}

.needs__icon {
  color: var(--blue-500);
  transition: transform var(--t);
}

.needs__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.needs__title {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  color: var(--ink);
}

.needs__text {
  display: block;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--gray-500);
}

/* La flecha se ancla al pie del enlace para alinearse entre las 5 columnas */
.needs__arrow {
  color: var(--blue-500);
  opacity: 0.55;
  transition: transform var(--t), opacity var(--t);
  margin-top: auto;
  padding-top: 4px;
}

.needs__item:hover .needs__arrow {
  opacity: 1;
  transform: translateX(5px);
}

.needs__item:hover .needs__icon {
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   10. CÓMO TRABAJO (diagrama de proceso)
   -------------------------------------------------------------------------- */
.process {
  position: relative;
}

.process__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

/* Línea horizontal continua que atraviesa los nodos */
.process__track::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}

/* Progreso azul que se dibuja al entrar en viewport */
.process__track::after {
  content: '';
  position: absolute;
  top: 21px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--blue-500),
    var(--blue-400)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.15s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s;
  z-index: 0;
}

.process__track.is-drawn::after {
  transform: scaleX(1);
}

.process__step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-inline: 8px;
}

.process__node {
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gray-300);
  color: var(--gray-500);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  transition: background var(--t), border-color var(--t), color var(--t),
    box-shadow var(--t);
}

.process__track.is-drawn .process__node {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(22, 135, 207, 0.13);
}

/* Escalona la activación de los nodos */
.process__track.is-drawn .process__step:nth-child(1) .process__node {
  transition-delay: 0.1s;
}
.process__track.is-drawn .process__step:nth-child(2) .process__node {
  transition-delay: 0.32s;
}
.process__track.is-drawn .process__step:nth-child(3) .process__node {
  transition-delay: 0.54s;
}
.process__track.is-drawn .process__step:nth-child(4) .process__node {
  transition-delay: 0.76s;
}
.process__track.is-drawn .process__step:nth-child(5) .process__node {
  transition-delay: 0.98s;
}

.process__title {
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
}

.process__text {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-500);
}

/* --------------------------------------------------------------------------
   11. SOLUCIONES
   -------------------------------------------------------------------------- */
.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.solution {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--navy-800);
  aspect-ratio: 4 / 3.25;
  isolation: isolate;
}

.solution__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: -2;
}

.solution:hover .solution__img {
  transform: scale(1.02);
}

/* Degradado inferior para legibilidad del texto */
.solution::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4, 14, 34, 0.95) 0%,
    rgba(4, 14, 34, 0.72) 28%,
    rgba(4, 14, 34, 0.18) 58%,
    rgba(4, 14, 34, 0.06) 100%
  );
  z-index: -1;
}

.solution__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 24px 24px 22px;
}

.solution__title {
  font-size: 21px;
  color: #fff;
  line-height: 1.2;
}

.solution__text {
  margin-top: 9px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.solution__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-400);
}

.solution__more svg {
  transition: transform var(--t);
}

.solution:hover .solution__more svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   12. RESPALDO KAISHAN
   -------------------------------------------------------------------------- */
.kaishan__inner {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}

.kaishan__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-500);
  margin-top: 18px;
}

.kaishan__attrs {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.kaishan__attr {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.kaishan__attr-icon {
  color: var(--blue-500);
  flex-shrink: 0;
  margin-top: 1px;
}

.kaishan__attr-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.kaishan__attr-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-500);
  margin-top: 2px;
}

.kaishan__figure {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--navy-800);
}

.kaishan__img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   13. INDUSTRIAS
   -------------------------------------------------------------------------- */
.industries__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.industry {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  /* Franja horizontal baja, como en la referencia (no bloques cuadrados) */
  aspect-ratio: 16 / 9;
  background: var(--navy-800);
  isolation: isolate;
}

.industry__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: -2;
}

.industry:hover .industry__img {
  transform: scale(1.02);
}

.industry::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4, 14, 34, 0.93) 0%,
    rgba(4, 14, 34, 0.5) 42%,
    rgba(4, 14, 34, 0.12) 100%
  );
  z-index: -1;
}

.industry__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 18px 17px;
}

.industry__icon {
  color: var(--blue-400);
  flex-shrink: 0;
}

.industry__title {
  font-size: 17px;
  color: #fff;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   14. ORIENTADOR DE NECESIDAD
   -------------------------------------------------------------------------- */
.advisor {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.advisor__inner {
  display: grid;
  grid-template-columns: 0.72fr 2fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
  padding-block: clamp(40px, 4.5vw, 58px);
}

.advisor__title {
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.2;
  color: var(--ink);
}

.advisor__text {
  margin-top: 11px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-500);
}

.advisor__fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.field__hint {
  font-size: 12.5px;
  color: var(--gray-500);
}

/* Inputs / selects */
.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t);
}

.input::placeholder,
.textarea::placeholder {
  color: #93a0b3;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #a9b4c5;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--blue-action);
  box-shadow: 0 0 0 3px rgba(21, 151, 229, 0.16);
  outline: none;
}

.textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.55;
}

/* Flecha propia para los selects */
.select-wrap {
  position: relative;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
}

.select-wrap__chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  pointer-events: none;
}

/* Estado de error de validación */
.input[aria-invalid='true'],
.select[aria-invalid='true'],
.textarea[aria-invalid='true'] {
  border-color: #d64545;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.13);
}

.field__error {
  font-size: 12.5px;
  font-weight: 500;
  color: #d64545;
  min-height: 0;
}

.on-dark .field__error {
  color: #ff9b9b;
}

/* --------------------------------------------------------------------------
   15. CONTACTO
   -------------------------------------------------------------------------- */
.contact {
  background: var(--navy-800);
  position: relative;
  overflow: hidden;
}

/* Trama blueprint sutil */
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(34px, 4.5vw, 66px);
  align-items: start;
}

.contact__title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.08;
  color: #fff;
}

.contact__title .accent {
  display: block;
  color: var(--blue-400);
  text-transform: uppercase;
}

.contact__text {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.74);
  max-width: 420px;
}

.contact__details {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.contact__detail {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
}

.contact__detail svg {
  color: var(--blue-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__detail a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact__detail-sub {
  display: block;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1px;
}

/* Tarjeta del formulario */
.form-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 34px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid__full {
  grid-column: 1 / -1;
}

.form__submit {
  margin-top: 22px;
}

/* Aviso de éxito / error del formulario */
.form__status {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  display: none;
}

.form__status.is-visible {
  display: block;
}

.form__status--ok {
  background: #e8f6ed;
  color: #1c6b3a;
  border: 1px solid #b9e2c8;
}

.form__status--err {
  background: #fdeaea;
  color: #a02c2c;
  border: 1px solid #f3c4c4;
}

.form__required-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--gray-500);
}

.req {
  color: #d64545;
}

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.66);
  padding-top: clamp(44px, 5vw, 64px);
  font-size: 14.5px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 38px;
}

.footer__brand {
  display: flex;
  gap: 13px;
  align-items: center;
}

.footer__photo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.footer__name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.055em;
  color: #fff;
  line-height: 1.15;
}

.footer__role {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.58);
  margin-top: 2px;
}

.footer__about {
  margin-top: 18px;
  line-height: 1.65;
  max-width: 330px;
  font-size: 14px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.footer__links {
  display: grid;
  gap: 11px;
}

.footer__links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__contact {
  display: grid;
  gap: 12px;
  line-height: 1.5;
}

.footer__contact a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  padding-block: 20px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer__legal a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   17. WHATSAPP FLOTANTE (esquina inferior DERECHA)
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  z-index: 90;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 0;
}

.wa-float__btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.26);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  flex-shrink: 0;
}

.wa-float__btn:hover {
  background: var(--wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

/* Etiqueta que aparece al hacer hover (solo desktop) */
/* Al estar el botón a la derecha, la etiqueta se despliega hacia la izquierda */
.wa-float__label {
  position: absolute;
  right: 66px;
  white-space: nowrap;
  background: var(--navy-900);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: var(--r-md);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity var(--t), transform var(--t);
}

.wa-float:hover .wa-float__label,
.wa-float__btn:focus-visible + .wa-float__label {
  opacity: 1;
  transform: translateX(0);
}

/* El botón queda a la derecha: la etiqueta debe ir antes en el flujo visual */
.wa-float__btn {
  order: 2;
}
.wa-float__label {
  order: 1;
}

/* --------------------------------------------------------------------------
   18. ANIMACIÓN DE ENTRADA (discreta)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal--d1 {
  transition-delay: 80ms;
}
.reveal--d2 {
  transition-delay: 160ms;
}
.reveal--d3 {
  transition-delay: 240ms;
}
.reveal--d4 {
  transition-delay: 320ms;
}

/* --------------------------------------------------------------------------
   19. RESPONSIVE
   -------------------------------------------------------------------------- */

/* ---- Laptop (1024–1439) ---- */
@media (max-width: 1180px) {
  .nav {
    gap: 22px;
  }

  .hero__card {
    right: -6px;
    bottom: 62px;
  }

  .needs__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 0;
  }

  /* Con 3 columnas, reinicia separadores por fila */
  .needs__item:nth-child(3n + 1) {
    padding-left: 0;
  }
  .needs__item:nth-child(3n + 1)::before {
    display: none;
  }
  .needs__item:nth-child(3n) {
    padding-right: 26px;
  }
  .needs__item:last-child {
    padding-right: 26px;
  }
}

/* ---- Tablet (768–1023) ---- */
@media (max-width: 1023px) {
  :root {
    --gutter: 22px;
  }

  /* Encabezado editorial: pasa a apilado */
  .section-head--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-head--split .section-sub {
    text-align: left;
    margin-left: 0;
    max-width: 620px;
  }

  /* Cambia a navegación móvil */
  .nav,
  .header__cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero: la foto pasa debajo del texto */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding-block: 44px 0;
  }

  .hero__content {
    max-width: 660px;
  }

  .hero__figure {
    max-width: 400px;
    margin: 30px auto 0;
    justify-self: center;
    /* Se anula el desborde y el anclaje inferior del layout de escritorio */
    align-self: start;
  }

  .hero::after {
    top: auto;
    bottom: -10%;
    right: -20%;
    width: 100%;
    height: 60%;
  }

  /*
   * En móvil la ficha sale del apilado sobre la foto (tapaba el rostro)
   * y pasa a ser un bloque estático debajo, centrado.
   */
  .hero__card {
    position: static;
    right: auto;
    bottom: auto;
    margin: 18px auto 0;
    max-width: 320px;
    text-align: center;
    border-left: 0;
    border-top: 3px solid var(--blue-500);
  }

  /* Credibilidad: 2x2 */
  .trust__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust__item {
    padding: 22px 20px;
  }

  .trust__item:nth-child(odd) {
    padding-left: 0;
  }
  .trust__item:nth-child(even) {
    padding-right: 0;
  }

  .trust__item:nth-child(odd)::before {
    display: none;
  }

  .trust__item:nth-child(3)::after,
  .trust__item:nth-child(4)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.13);
  }

  /* Proceso: timeline vertical */
  .process__track {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 520px;
  }

  .process__track::before,
  .process__track::after {
    top: 20px;
    bottom: 34px;
    left: 20px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .process__track::after {
    transform: scaleY(0);
    transform-origin: top;
  }

  .process__track.is-drawn::after {
    transform: scaleY(1);
  }

  .process__step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 18px;
    text-align: left;
    padding: 0 0 30px;
  }

  .process__node {
    margin: 0;
  }

  .process__step:last-child {
    padding-bottom: 0;
  }

  /* Soluciones: 1 columna cómoda */
  .solutions__grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 560px;
  }

  .solution {
    aspect-ratio: 16 / 10;
  }

  /* Kaishan: apilado */
  .kaishan__inner {
    grid-template-columns: 1fr;
  }

  .kaishan__attrs {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .kaishan__attr {
    flex-direction: column;
    gap: 10px;
  }

  .kaishan__img {
    min-height: 260px;
    max-height: 340px;
  }

  /* Industrias: 2x2 */
  .industries__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Orientador: apilado */
  .advisor__inner {
    grid-template-columns: 1fr;
  }

  .advisor__fields {
    grid-template-columns: repeat(2, 1fr);
  }

  .advisor__fields .btn {
    grid-column: 1 / -1;
  }

  /* Contacto: una columna */
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .contact__text {
    max-width: 560px;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .footer__brand-col {
    grid-column: 1 / -1;
  }

  .footer__about {
    max-width: 460px;
  }
}

/* ---- Mobile (320–767) ---- */
@media (max-width: 767px) {
  :root {
    --gutter: 18px;
  }

  body {
    font-size: 15.5px;
  }

  .brand__role {
    display: none;
  }

  .hero__title {
    font-size: clamp(31px, 8.6vw, 44px);
  }

  .hero__actions {
    gap: 11px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__figure {
    max-width: 320px;
    margin-top: 26px;
  }

  .hero__card {
    max-width: 300px;
    padding: 12px 16px;
  }

  /* Credibilidad: lista vertical con separadores horizontales */
  .trust__list {
    grid-template-columns: 1fr;
  }

  .trust__item {
    padding: 17px 0;
  }

  .trust__item::before {
    display: none !important;
  }

  .trust__item + .trust__item {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .trust__item:nth-child(3)::after,
  .trust__item:nth-child(4)::after {
    display: none;
  }

  /* Necesidades: stack vertical cómodo */
  .needs__list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .needs__item {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 0 !important;
  }

  /* En móvil el separador vertical se sustituye por una regla horizontal */
  .needs__list > li + li::before {
    display: none;
  }

  .needs__list > li + li {
    border-top: 1px solid var(--gray-200);
  }

  .needs__icon {
    flex-shrink: 0;
    margin-top: 2px;
  }

  .needs__body {
    flex: 1;
    min-width: 0;
  }

  .needs__arrow {
    display: none;
  }

  /* Kaishan atributos: vertical */
  .kaishan__attrs {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .kaishan__attr {
    flex-direction: row;
  }

  /* Industrias: una columna */
  .industries__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .industry {
    aspect-ratio: 16 / 9;
  }

  /* Orientador y formulario: una sola columna */
  .advisor__fields,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 20px 18px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__bottom {
    justify-content: flex-start;
  }

  /* WhatsApp flotante: más compacto, sin etiqueta */
  .wa-float__btn {
    width: 52px;
    height: 52px;
  }

  .wa-float__label {
    display: none;
  }
}

@media (max-width: 380px) {
  .hero__title {
    font-size: 29px;
  }

  .solution__body {
    padding: 18px 16px 16px;
  }
}

/* --------------------------------------------------------------------------
   20. PREFERENCIAS DE MOVIMIENTO / IMPRESIÓN
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .process__track::after {
    transform: scaleX(1);
  }

  /*
   * Sin animación de despliegue: el panel aparece completo de inmediato.
   * Las opciones deben quedar visibles porque su estado inicial es opacity: 0.
   */
  .mobile-nav.is-open {
    grid-template-rows: 1fr;
  }

  .mobile-nav__list > li,
  .mobile-nav__cta {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .header,
  .wa-float,
  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }

  body {
    color: #000;
  }
}
