/* ==========================================================================
   NORTEA Estudio Digital — Hoja de estilos
   Enfoque mobile-first: estilos base para celulares y mejoras progresivas
   con min-width para pantallas más grandes.

   Índice
   1.  Tipografías
   2.  Variables de diseño (identidad tomada del logotipo original)
   3.  Base
   4.  Componentes: botones, títulos de sección, listas
   5.  Encabezado y navegación (incluye menú móvil)
   6.  Hero
   7.  Propuesta de valor
   8.  Servicios
   9.  Beneficios
   10. Proceso
   11. Sobre NORTEA
   12. Preguntas frecuentes
   13. Contacto y formulario
   14. Pie de página y botón flotante de WhatsApp
   15. Animaciones
   16. Accesibilidad: movimiento reducido y alto contraste
   ========================================================================== */

/* 1. Tipografías (alojadas en el propio sitio, licencia SIL OFL)
   Sora: títulos. Roboto: textos (es la tipografía del logotipo).
   Las fuentes "Fallback" ajustan Arial a las métricas reales para evitar
   saltos de diseño mientras cargan las fuentes. */
@font-face {
  font-family: "Sora";
  src: url("../assets/fonts/sora-latin-var.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/roboto-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial");
  font-weight: 600 800;
  size-adjust: 106.8%;
  ascent-override: 90.8%;
  descent-override: 27.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Roboto Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 99.6%;
  ascent-override: 95.4%;
  descent-override: 25.1%;
  line-gap-override: 0%;
}

/* 2. Variables de diseño
   ========================================================================== */
:root {
  /* Colores exactos del logotipo original */
  --navy: #19334e;
  --teal: #19b6a5;

  /* Fondos oscuros (negro de la identidad con un matiz azul) */
  --ink-950: #04070b;
  --ink-900: #070d14;
  --ink-850: #0b141e;
  --ink-800: #111d2a;

  /* Escala de verde azulado */
  --teal-50: #e9f8f6;
  --teal-100: #cdf0eb;
  --teal-300: #6fe0d0;
  --teal-400: #34cbb8;
  --teal-500: #19b6a5;
  --teal-600: #129587;
  --teal-700: #0c7a6f;
  --teal-800: #0b5f57;

  /* Superficies claras y texto */
  --paper: #ffffff;
  --paper-2: #f3f6f8;
  --line: #e1e7ec;
  --line-strong: #c9d3db;
  --text: #0b1520;
  --text-2: #243241;
  --muted: #4b5866;

  /* Sobre fondos oscuros */
  --on-dark: #e8eef2;
  --on-dark-muted: #a1b1be;
  --on-dark-line: rgba(255, 255, 255, .09);
  --on-dark-line-2: rgba(255, 255, 255, .18);

  --success: #12805c;
  --danger: #c2362b;

  /* Tipografía */
  --font-display: "Sora", "Sora Fallback", system-ui, sans-serif;
  --font-body: "Roboto", "Roboto Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-sm: .9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.0625rem, 1rem + .3vw, 1.21875rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 2.1vw, 2.75rem);
  --fs-h1: clamp(2.25rem, 1.45rem + 3vw, 3.6rem);

  /* Espaciado y forma */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 3rem + 5.5vw, 7.5rem);
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(11, 21, 32, .06), 0 3px 10px rgba(11, 21, 32, .04);
  --shadow: 0 16px 36px -16px rgba(11, 21, 32, .22);
  --shadow-lg: 0 34px 70px -28px rgba(0, 0, 0, .6);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --header-h: 72px;
}
@media (min-width: 1180px) {
  :root { --header-h: 84px; }
}

/* 3. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text);
  background: var(--ink-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }

main { display: block; background: var(--paper); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: var(--teal-400); color: var(--ink-950); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 200;
  padding: .75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--teal-500);
  color: var(--ink-950);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* 4. Componentes
   ========================================================================== */
.btn {
  --btn-bg: transparent;
  --btn-fg: inherit;
  --btn-bd: transparent;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: .8em 1.45em;
  border: 1.5px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background-color .3s, border-color .3s, color .3s;
}
.btn--sm { min-height: 42px; padding: .6em 1.15em; font-size: .875rem; }
.btn--lg { min-height: 54px; padding: .95em 1.75em; font-size: 1rem; }
.btn--block { width: 100%; }

.btn__icon { width: 1.15em; height: 1.15em; transition: transform .35s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.985); }

/* Primario: verde azulado de la marca con texto oscuro (contraste 7,9:1) */
.btn--primary {
  --btn-bg: var(--teal-500);
  --btn-fg: var(--ink-950);
  box-shadow: 0 10px 24px -12px rgba(25, 182, 165, .8), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .5) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
}
.btn--primary:hover {
  --btn-bg: var(--teal-400);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(25, 182, 165, .95), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn--primary:hover::before { transform: translateX(120%); }

.btn--ghost {
  --btn-fg: #fff;
  --btn-bd: var(--on-dark-line-2);
  --btn-bg: rgba(255, 255, 255, .03);
}
.btn--ghost:hover { --btn-bd: var(--teal-400); --btn-bg: rgba(25, 182, 165, .1); transform: translateY(-2px); }

.btn--dark { --btn-bg: var(--ink-900); --btn-fg: #fff; }
.btn--dark .btn__icon { color: var(--teal-400); }
.btn--dark:hover { --btn-bg: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn:disabled::before { display: none; }

.btn__spinner {
  display: none;
  width: 1.05em;
  height: 1.05em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn.is-loading { cursor: progress; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading .btn__icon { display: none; }

/* Etiqueta superior de sección: evoca "ESTUDIO DIGITAL" del logotipo */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.kicker--on-dark { color: var(--teal-300); }
.kicker__mark {
  width: .8rem;
  height: .75rem;
  color: var(--teal-500);
  fill: currentColor;
  transition: transform .6s var(--ease-out);
}
.is-visible .kicker__mark { animation: dart-in .9s var(--ease-out) .2s backwards; }

.section { position: relative; padding-block: var(--section-y); }
.section--light { background: var(--paper); }
.section--soft { background: var(--paper-2); }
.section--dark {
  isolation: isolate;
  overflow: hidden;
  background: var(--ink-900);
  color: var(--on-dark);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(2.25rem, 1.75rem + 2.5vw, 3.75rem);
}
.section-title { font-size: var(--fs-h2); letter-spacing: -.028em; line-height: 1.12; }
.section--dark .section-title { color: #fff; }
.section-lead { margin-top: 1rem; font-size: var(--fs-lg); color: var(--muted); }
.section--dark .section-lead { color: var(--on-dark-muted); }
.section-foot { margin-top: 2.25rem; color: var(--muted); }

@media (min-width: 768px) {
  .section-head { margin-inline: auto; text-align: center; }
  .section-foot { text-align: center; }
}

.text-link {
  color: var(--teal-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .25s, text-decoration-thickness .25s;
}
.text-link:hover { color: var(--teal-800); text-decoration-thickness: 2px; }

/* Viñeta con la forma del "dardo" del isotipo */
.ticks { display: grid; gap: .5rem; margin-top: 1.1rem; }
.ticks li { position: relative; padding-left: 1.45rem; font-size: var(--fs-sm); color: var(--text-2); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: .7rem;
  height: .65rem;
  background: var(--teal-500);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 48.2% 50%);
}

/* 5. Encabezado y navegación
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: #fff;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.header.is-scrolled {
  background: rgba(4, 7, 11, .94);
  box-shadow: 0 1px 0 var(--on-dark-line), 0 12px 30px -20px rgba(0, 0, 0, .7);
}
.header.menu-open { background: var(--ink-950); box-shadow: 0 1px 0 var(--on-dark-line); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height .4s var(--ease-out);
}
.header.is-scrolled .header__inner { height: calc(var(--header-h) - 10px); }

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 8px;
  animation: fade-down .8s var(--ease-out) backwards;
}
.brand__logo {
  width: auto;
  height: 44px;
  transition: height .4s var(--ease-out), opacity .3s;
}
.header.is-scrolled .brand__logo { height: 40px; }
.brand:hover .brand__logo { opacity: .88; }

.nav-toggle {
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--on-dark-line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  transition: border-color .3s, background-color .3s;
  animation: fade-down .8s var(--ease-out) .1s backwards;
}
.nav-toggle:hover { border-color: var(--teal-400); background: rgba(25, 182, 165, .08); }
.nav-toggle__bar {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: top .4s var(--ease-out), transform .45s var(--ease-out), opacity .25s;
}
.nav-toggle__bar:nth-child(1) { top: 14px; }
.nav-toggle__bar:nth-child(2) { top: 21px; }
.nav-toggle__bar:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Menú móvil: panel a pantalla completa con apertura y cierre animados */
@media (max-width: 1179.98px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2.5rem;
    overflow-y: auto;
    background:
      radial-gradient(80% 45% at 100% 0%, rgba(25, 182, 165, .14), transparent 70%),
      var(--ink-950);
    visibility: hidden;
    opacity: 0;
    transform: translate3d(0, -14px, 0);
    transition: opacity .35s var(--ease-out), transform .5s var(--ease-out), visibility 0s linear .5s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .35s var(--ease-out), transform .5s var(--ease-out), visibility 0s;
  }
  .nav__list { display: flex; flex-direction: column; }
  .nav__list li {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity .35s var(--ease-out), transform .5s var(--ease-out);
  }
  .nav.is-open .nav__list li { opacity: 1; transform: none; }
  .nav.is-open .nav__list li:nth-child(1) { transition-delay: .06s; }
  .nav.is-open .nav__list li:nth-child(2) { transition-delay: .11s; }
  .nav.is-open .nav__list li:nth-child(3) { transition-delay: .16s; }
  .nav.is-open .nav__list li:nth-child(4) { transition-delay: .21s; }
  .nav.is-open .nav__list li:nth-child(5) { transition-delay: .26s; }
  .nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 0;
    border-bottom: 1px solid var(--on-dark-line);
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 1.15rem + 1.4vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
    transition: color .25s, padding-left .35s var(--ease-out);
  }
  .nav__link::after {
    content: "";
    width: .9rem;
    height: .85rem;
    background: var(--teal-400);
    clip-path: polygon(0 0, 100% 50%, 0 100%, 48.2% 50%);
    opacity: .35;
    transition: opacity .3s, transform .35s var(--ease-out);
  }
  .nav__link:hover, .nav__link.is-active { color: var(--teal-300); padding-left: .35rem; }
  .nav__link:hover::after, .nav__link.is-active::after { opacity: 1; transform: translateX(-4px); }
  .nav__cta {
    align-self: flex-start;
    opacity: 0;
    translate: 0 16px;
    transition: opacity .35s var(--ease-out), translate .5s var(--ease-out), transform .35s var(--ease-out),
                box-shadow .35s var(--ease-out), background-color .3s;
  }
  .nav.is-open .nav__cta { opacity: 1; translate: 0 0; transition-delay: .32s, .32s, 0s, 0s, 0s; }
  .nav__note { max-width: 22rem; font-size: .9375rem; color: var(--on-dark-muted); opacity: 0; transition: opacity .4s; }
  .nav.is-open .nav__note { opacity: 1; transition-delay: .4s; }

  /* Sin JavaScript: se muestra al menos el botón de presupuesto */
  .no-js .nav-toggle { display: none; }
  .no-js .nav { position: static; visibility: visible; opacity: 1; transform: none; padding: 0; background: none; overflow: visible; }
  .no-js .nav__list, .no-js .nav__note { display: none; }
  .no-js .nav__cta { opacity: 1; translate: none; }
}

/* Escritorio: navegación horizontal */
@media (min-width: 1180px) {
  .brand__logo { height: 54px; }
  .header.is-scrolled .brand__logo { height: 46px; }
  .nav-toggle { display: none; }
  .nav { display: flex; align-items: center; gap: 1.5rem; }
  .nav__list { display: flex; gap: .1rem; }
  .nav__list li { animation: fade-down .7s var(--ease-out) backwards; }
  .nav__list li:nth-child(1) { animation-delay: .18s; }
  .nav__list li:nth-child(2) { animation-delay: .24s; }
  .nav__list li:nth-child(3) { animation-delay: .30s; }
  .nav__list li:nth-child(4) { animation-delay: .36s; }
  .nav__list li:nth-child(5) { animation-delay: .42s; }
  .nav__link {
    position: relative;
    display: block;
    padding: .55rem .8rem;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, .78);
    border-radius: 8px;
    transition: color .25s;
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: .8rem;
    right: .8rem;
    bottom: .2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--teal-400);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .45s var(--ease-out);
  }
  .nav__link:hover, .nav__link.is-active { color: #fff; }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
  .nav__cta { animation: fade-down .7s var(--ease-out) .5s backwards; }
  .nav__note { display: none; }
}

/* 6. Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2.5rem) 0 4.5rem;
  background: var(--ink-950);
  color: #fff;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero__glow { position: absolute; border-radius: 50%; }
.hero__glow--teal {
  top: -38vmax;
  right: -30vmax;
  width: 82vmax;
  height: 82vmax;
  background: radial-gradient(closest-side, rgba(25, 182, 165, .2), rgba(25, 182, 165, 0));
  animation: drift-a 24s var(--ease-in-out) 2 alternate both;
}
.hero__glow--navy {
  bottom: -50vmax;
  left: -38vmax;
  width: 92vmax;
  height: 92vmax;
  background: radial-gradient(closest-side, rgba(25, 51, 78, .85), rgba(25, 51, 78, 0));
  animation: drift-b 28s var(--ease-in-out) 2 alternate both;
}
.hero.is-offscreen .hero__glow { animation-play-state: paused; }

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 65% 40%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 65% 40%, #000 15%, transparent 75%);
  animation: fade-in 1.6s ease backwards;
}

/* "Plano de construcción" del isotipo: se dibuja una sola vez al cargar */
.hero__blueprint {
  position: absolute;
  top: 54%;
  right: -55%;
  width: 165%;
  max-width: none;
  color: var(--teal-500);
  opacity: .14;
  transform: translateY(-50%);
}
.bp-guides path {
  fill: none;
  stroke: currentColor;
  stroke-width: .4;
  stroke-dasharray: 3 4;
  opacity: .6;
  animation: fade-in 1.6s ease .2s backwards;
}
.bp-shapes path {
  fill: none;
  stroke: currentColor;
  stroke-width: .7;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: bp-draw 2.4s var(--ease-in-out) backwards;
}
.bp-shapes .bp-1 { animation-delay: .35s; }
.bp-shapes .bp-2 { animation-delay: .5s; }
.bp-shapes .bp-3 { animation-delay: .7s; }
.bp-shapes .bp-4 { animation-delay: .8s; }
.bp-shapes .bp-5 { animation-delay: .95s; }

.hero__inner { display: grid; gap: 3.25rem; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .95rem .45rem .8rem;
  border: 1px solid var(--on-dark-line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--on-dark-muted);
}
.eyebrow__mark { width: .8rem; height: .75rem; fill: var(--teal-400); }

.hero__title {
  margin-top: 1.4rem;
  font-size: var(--fs-h1);
  line-height: 1.07;
  letter-spacing: -.035em;
}
.hero__title .hl {
  background: linear-gradient(100deg, var(--teal-300) 0%, var(--teal-500) 40%, #8ff0e2 55%, var(--teal-400) 75%);
  background-size: 220% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-sweep 2.4s var(--ease-out) .5s backwards;
}
.hero__lead {
  max-width: 35rem;
  margin-top: 1.4rem;
  font-size: var(--fs-lg);
  color: var(--on-dark-muted);
}
.hero__actions { display: flex; flex-direction: column; gap: .8rem; margin-top: 2.2rem; }
.hero__points { display: flex; flex-wrap: wrap; gap: .65rem 1.4rem; margin-top: 2rem; }
.hero__points li { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--on-dark); }
.hero__points .icon { width: 1.1rem; height: 1.1rem; color: var(--teal-400); stroke-width: 2.4; }

/* Entrada escalonada del contenido principal (solo CSS: funciona aun sin JavaScript) */
.load { animation: rise .8s var(--ease-out) backwards; }
.load--1 { animation-delay: .05s; }
.load--2 { animation-delay: .1s; }
.load--3 { animation-delay: .2s; }
.load--4 { animation-delay: .32s; }
.load--5 { animation-delay: .44s; }

@media (min-width: 560px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 1024px) {
  .hero { padding-bottom: 5rem; }
  .hero__inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2.5rem, 4.5vw, 4.5rem); }
  .hero__blueprint { right: -16%; width: min(1240px, 96vw); opacity: .18; }
}

/* Ilustración: navegador y celular construidos con HTML y CSS */
.hero__visual { position: relative; width: 100%; max-width: 620px; margin-inline: auto; }
@media (min-width: 1024px) { .hero__visual { max-width: none; } }

.mock { position: relative; container-type: inline-size; padding: 0 8% 13% 0; }

.mock-browser {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 2.4cqw;
  background: #09111b;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  animation: mk-scale .9s var(--ease-out) .35s backwards;
}
.mock-browser__bar {
  display: flex;
  align-items: center;
  gap: 1.1cqw;
  height: 6.4cqw;
  padding: 0 2.4cqw;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .035);
}
.mock-browser__bar > span { width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.mock-browser__url {
  display: flex;
  align-items: center;
  gap: .8cqw;
  width: 44cqw;
  height: 3.8cqw;
  margin-left: 2cqw;
  padding: 0 1.6cqw;
  border-radius: 2cqw;
  background: rgba(255, 255, 255, .06);
  font-size: 1.85cqw;
  color: var(--on-dark-muted);
}
.mock-browser__url .icon { width: 1.9cqw; height: 1.9cqw; stroke-width: 2.4; color: var(--teal-400); }
.mock-browser__body { position: relative; padding: 3.2cqw 3.6cqw 4cqw; }
.mock i { display: block; font-style: normal; }

.mk-nav { display: flex; align-items: center; gap: 2cqw; margin-bottom: 4.6cqw; animation: mk-in .7s var(--ease-out) .7s backwards; }
.mk-nav i { width: 6cqw; height: 1.1cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .14); }
.mk-nav .mk-logo { width: 11cqw; height: 2.6cqw; margin-right: auto; border-radius: .6cqw; background: linear-gradient(90deg, var(--teal-500), #2a557d); }
.mk-nav .mk-btn { width: 10cqw; height: 3.2cqw; border-radius: 2cqw; background: var(--teal-500); }

.mk-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.4cqw; align-items: center; margin-bottom: 4cqw; }
.mk-tags { position: relative; height: 4.3cqw; margin-bottom: 2.6cqw; animation: mk-in .7s var(--ease-out) .85s backwards; }
.mk-tag {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: .9cqw;
  height: 4.3cqw;
  padding: 0 1.9cqw;
  border-radius: 2.2cqw;
  background: rgba(25, 182, 165, .14);
  color: var(--teal-300);
  font-size: 1.9cqw;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(70%);
  transition: opacity .3s var(--ease-out), transform .5s var(--ease-out);
}
.mk-tag.is-active { opacity: 1; transform: none; transition-delay: .22s; }
.mk-tag.is-leaving { opacity: 0; transform: translateY(-70%); transition-delay: 0s; }
.mk-tag .icon { width: 2.3cqw; height: 2.3cqw; stroke-width: 2.2; }
.mk-line { height: 1.5cqw; margin-bottom: 1.5cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .12); transform-origin: left; animation: mk-grow .8s var(--ease-out) backwards; }
.mk-line--xl { width: 96%; height: 3.4cqw; background: rgba(255, 255, 255, .9); animation-delay: .95s; }
.mk-line--lg { width: 70%; height: 3.4cqw; margin-bottom: 2.6cqw; background: rgba(255, 255, 255, .9); animation-delay: 1.05s; }
.mk-line--md { width: 92%; animation-delay: 1.15s; }
.mk-line--sm { width: 64%; animation-delay: 1.22s; }
.mk-ctas { display: flex; gap: 1.6cqw; margin-top: 3cqw; animation: mk-in .7s var(--ease-out) 1.3s backwards; }
.mk-cta { width: 15cqw; height: 4.4cqw; border-radius: 2.2cqw; background: var(--teal-500); }
.mk-cta--ghost { width: 12cqw; border: 1px solid rgba(255, 255, 255, .25); background: transparent; }

.mk-media {
  position: relative;
  aspect-ratio: 1 / .94;
  overflow: hidden;
  border-radius: 1.8cqw;
  background:
    radial-gradient(110% 90% at 88% 10%, rgba(25, 182, 165, .55), transparent 62%),
    linear-gradient(160deg, #1e3d5c, #0b1520);
  animation: mk-scale .9s var(--ease-out) 1s backwards;
}
.mk-media::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -12%;
  width: 60%;
  aspect-ratio: 1;
  background: rgba(25, 182, 165, .2);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 48.2% 50%);
}
.mk-media__icon {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .92);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .3s var(--ease-out), transform .6s var(--ease-out);
}
.mk-media__icon.is-active { opacity: 1; transform: none; transition-delay: .22s; }
.mk-media__icon.is-leaving { opacity: 0; transform: scale(1.12); transition-delay: 0s; }
.mk-media__icon .icon { width: 13cqw; height: 13cqw; stroke-width: 1.3; }

.mk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.mk-cards i { height: 11cqw; border: 1px solid rgba(255, 255, 255, .06); border-radius: 1.4cqw; background: rgba(255, 255, 255, .045); animation: mk-in .7s var(--ease-out) backwards; }
.mk-cards i:nth-child(1) { animation-delay: 1.35s; }
.mk-cards i:nth-child(2) { animation-delay: 1.43s; }
.mk-cards i:nth-child(3) { animation-delay: 1.51s; }
.mk-wa {
  position: absolute;
  right: 3cqw;
  bottom: 3cqw;
  display: grid;
  place-items: center;
  width: 6.4cqw;
  height: 6.4cqw;
  border-radius: 50%;
  background: #1da851;
  color: #fff;
  box-shadow: 0 1cqw 3cqw -1cqw rgba(29, 168, 81, .8);
  animation: pop .6s var(--ease-out) 1.75s backwards;
}
.mk-wa .icon { width: 3.6cqw; height: 3.6cqw; }

.mock-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 27%;
  aspect-ratio: 9 / 19;
  padding: 1.2cqw;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 4.6cqw;
  background: #03060a;
  box-shadow: var(--shadow-lg);
  animation: mk-up 1s var(--ease-out) 1.15s backwards;
}
.mock-phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5cqw;
  height: 100%;
  padding: 4.4cqw 2cqw 2cqw;
  overflow: hidden;
  border-radius: 3.6cqw;
  background: #09111b;
}
.mock-phone__notch { position: absolute; top: 1.3cqw; left: 50%; width: 8cqw; height: 1.7cqw; border-radius: 1cqw; background: #03060a; transform: translateX(-50%); }
.mp-bar { height: 2cqw; width: 45%; border-radius: .6cqw; background: linear-gradient(90deg, var(--teal-500), #2a557d); }
.mp-media { aspect-ratio: 4 / 3; border-radius: 1.6cqw; background: radial-gradient(100% 90% at 85% 10%, rgba(25, 182, 165, .55), transparent 62%), linear-gradient(160deg, #1e3d5c, #0b1520); }
.mp-line { height: 1.3cqw; width: 80%; border-radius: 1cqw; background: rgba(255, 255, 255, .14); }
.mp-line--lg { height: 2.2cqw; width: 95%; background: rgba(255, 255, 255, .85); }
.mp-cta { height: 3.6cqw; width: 60%; border-radius: 2cqw; background: var(--teal-500); }
.mp-card { height: 6cqw; border-radius: 1.4cqw; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }

.chip {
  position: absolute;
  z-index: 2;
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .55rem .95rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(9, 17, 27, .92);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .8);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--on-dark);
  white-space: nowrap;
}
.chip .icon { width: 1rem; height: 1rem; color: var(--teal-400); }
.chip--1 { bottom: 2.5%; left: 16%; animation: pop .6s var(--ease-out) 1.65s backwards; }
.chip--2 { bottom: 25%; left: -8%; animation: pop .6s var(--ease-out) 1.85s backwards; }
.chip--3 { top: -3.5%; right: 4%; animation: pop .6s var(--ease-out) 2.05s backwards; }
@media (min-width: 640px) { .chip { display: inline-flex; } }

/* 7. Propuesta de valor
   ========================================================================== */
.compare { display: grid; gap: 1.25rem; }
.compare__card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}
.compare__card--after {
  border-color: transparent;
  background: var(--ink-900);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}
.compare__card--after::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 110px;
  background: linear-gradient(225deg, rgba(25, 182, 165, .4), transparent 62%);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.compare__title { margin-bottom: 1.25rem; font-size: 1.25rem; }
.compare__card--after .compare__title { color: #fff; }
.compare__list { display: grid; gap: 1rem; }
.compare__list li { position: relative; padding-left: 2.1rem; color: var(--text-2); }
.compare__card--after .compare__list li { color: var(--on-dark); }
.compare__list li::before {
  content: "";
  position: absolute;
  top: .15em;
  left: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #e3e8ed url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6875' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center / 52% no-repeat;
}
.compare__card--after .compare__list li::before {
  background: rgba(25, 182, 165, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334cbb8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.compare__arrow { display: grid; place-items: center; color: var(--teal-500); }
.compare__arrow svg { width: 40px; height: 38px; fill: currentColor; transform: rotate(90deg); }

@media (min-width: 900px) {
  .compare { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 1.75rem; }
  .compare__arrow svg { width: 52px; height: 49px; transform: none; }
}

/* 8. Servicios
   ========================================================================== */
.services { display: grid; gap: 1.25rem; }
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
}
.service:hover { transform: translateY(-6px); border-color: rgba(25, 182, 165, .5); box-shadow: var(--shadow); }

/* Ícono con el corte a 45° del isotipo */
.service__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  background: var(--teal-50);
  color: var(--teal-700);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%, 0 30%);
  transition: background-color .4s, color .4s, transform .5s var(--ease-out);
}
.service__icon .icon { width: 26px; height: 26px; }
.service:hover .service__icon { background: var(--teal-500); color: var(--ink-950); transform: translateY(-2px); }

.service__title { font-size: 1.1875rem; line-height: 1.25; }
.service__text { margin-top: .6rem; font-size: var(--fs-sm); color: var(--muted); }
.service__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .45rem;
  margin-top: auto;
  padding-top: 1.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--teal-700);
  border-radius: 6px;
}
.service__link .icon { width: 1.1rem; height: 1.1rem; transition: transform .35s var(--ease-out); }
.service:hover .service__link .icon,
.service__link:hover .icon { transform: translateX(4px); }

.service--featured {
  overflow: hidden;
  border-color: transparent;
  background: var(--ink-900);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}
.service--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(70% 80% at 100% 0%, rgba(25, 182, 165, .16), transparent 70%);
  pointer-events: none;
}
.service--featured > * { position: relative; z-index: 1; }
.service--featured:hover { border-color: transparent; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7); }
.service--featured .service__icon { background: rgba(25, 182, 165, .16); color: var(--teal-300); }
.service--featured:hover .service__icon { background: var(--teal-500); color: var(--ink-950); }
.service--featured .service__title { color: #fff; }
.service--featured .service__text { color: var(--on-dark-muted); }
.service--featured .ticks li { color: var(--on-dark); }
.service--featured .service__link { color: var(--teal-300); }
.service__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.service__tag {
  padding: .3rem .75rem;
  border-radius: 999px;
  background: rgba(25, 182, 165, .16);
  font-size: .75rem;
  font-weight: 600;
  color: var(--teal-300);
}

.service__art { display: none; }

/* Servicios complementarios (mantenimiento opcional y soluciones previa evaluación):
   tarjeta sin relleno ni sombra para diferenciarlos de los cuatro principales */
.service--extra {
  border-color: var(--line-strong);
  background: transparent;
  box-shadow: none;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s, background-color .4s;
}
.service--extra:hover { background: var(--paper); }
.service__badge {
  align-self: flex-start;
  justify-self: start;
  margin-top: .55rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  background: var(--teal-50);
  font-size: .75rem;
  font-weight: 600;
  color: var(--teal-800);
}

/* Tarjeta final de la grilla: orientación para quien no sabe qué servicio elegir */
.services__cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--ink-900);
  color: var(--on-dark);
  box-shadow: var(--shadow-sm);
}
.services__cta::before {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 130px;
  background: rgba(25, 182, 165, .14);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 48.2% 50%);
  transition: transform .8s var(--ease-out);
}
.services__cta:hover::before { transform: translateX(-12px); }
.services__cta-title { position: relative; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.25; color: #fff; }
.services__cta-text { position: relative; font-size: var(--fs-sm); color: var(--on-dark-muted); }
.services__cta .btn { position: relative; margin-top: auto; }

/* Celulares: ícono junto al título para reducir el alto de cada tarjeta */
@media (max-width: 699.98px) {
  .service:not(.service--featured) {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: .9rem;
    align-items: center;
    padding: 1.35rem 1.35rem 1.25rem;
  }
  .service:not(.service--featured) > * { grid-column: 1 / -1; }
  .service:not(.service--featured) > .service__icon { grid-column: 1; grid-row: 1; width: 44px; height: 44px; margin: 0; }
  .service:not(.service--featured) > .service__title { grid-column: 2; grid-row: 1; }
  .service:not(.service--featured) .service__icon .icon { width: 22px; height: 22px; }
  .service--featured { padding: 1.5rem 1.35rem 1.35rem; }
  .service__text { margin-top: .7rem; }
  .ticks { gap: .35rem; margin-top: .8rem; }
  .ticks li { font-size: .9rem; }
  .service__link { padding-top: .95rem; }
  .services__cta { padding: 1.5rem 1.35rem; }
}

@media (min-width: 700px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    grid-template-rows: auto auto auto auto 1fr;
    column-gap: 2rem;
  }
  .service--featured > :not(.service__art) { grid-column: 1; }
  .service__art {
    position: relative;
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    padding: 1.3rem;
    aspect-ratio: 4 / 3.3;
    border: 1px solid var(--on-dark-line);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(25, 51, 78, .75), rgba(9, 17, 27, .9));
  }
  .service__art i { display: block; border-radius: 6px; background: rgba(255, 255, 255, .13); }
  .service__art .sa-bar { width: 38%; height: 8px; }
  .service__art .sa-title { width: 86%; height: 18px; margin-top: .7rem; background: rgba(255, 255, 255, .88); }
  .service__art .sa-text { width: 94%; height: 8px; }
  .service__art .sa-text--short { width: 68%; }
  .service__art .sa-cta {
    width: 44%;
    height: 28px;
    margin-top: auto;
    border-radius: 999px;
    background: var(--teal-500);
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  }
  .service--featured:hover .sa-cta { transform: scale(1.06); box-shadow: 0 0 0 7px rgba(25, 182, 165, .18); }
}
@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service--featured { grid-column: span 2; }
}

/* 9. Beneficios
   ========================================================================== */
.benefits {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.benefit {
  padding: 1.75rem 1.5rem;
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
  transition: background-color .4s;
}
.benefit:hover { background: var(--paper-2); }
.benefit__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: var(--teal-50);
  color: var(--teal-700);
  transition: transform .5s var(--ease-out), background-color .4s, color .4s;
}
.benefit__icon .icon { width: 25px; height: 25px; }
.benefit:hover .benefit__icon { transform: rotate(-6deg) scale(1.06); background: var(--teal-500); color: var(--ink-950); }
.benefit__title { margin-bottom: .45rem; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.benefit__text { font-size: var(--fs-sm); color: var(--muted); }

.benefit--cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  background: var(--ink-900);
  color: var(--on-dark);
}
.benefit--cta:hover { background: var(--ink-900); }
.benefit--cta::before {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 130px;
  background: rgba(25, 182, 165, .14);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 48.2% 50%);
  transition: transform .8s var(--ease-out);
}
.benefit--cta:hover::before { transform: translateX(-12px); }
.benefit__cta-title { position: relative; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.25; color: #fff; }
.benefit__cta-text { position: relative; font-size: var(--fs-sm); color: var(--on-dark-muted); }
.benefit--cta .btn { position: relative; margin-top: auto; }

@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Dibujo de los íconos al aparecer */
.js .icon--draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .is-visible .icon--draw { animation: icon-draw 1.2s var(--ease-in-out) forwards; animation-delay: calc(var(--reveal-delay, 0ms) + 250ms); }

/* 10. Proceso
   ========================================================================== */
.steps { position: relative; display: grid; gap: .5rem; max-width: 680px; margin-inline: auto; }
/* Celulares y tablets: conectores verticales entre pasos, que se dibujan al aparecer */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 52px;
  bottom: -.35rem;
  left: 23px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--teal-500), var(--navy));
  transform-origin: top;
}
.js .step:not(.is-visible)::after { transform: scaleY(0); }
.js .step.is-visible::after { animation: grow-y .9s var(--ease-in-out) backwards; animation-delay: calc(var(--reveal-delay, 0ms) + 300ms); }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas: "num title" "num text";
  align-content: start;
  column-gap: 1.1rem;
  padding-bottom: 1.25rem;
}
.step__num {
  position: relative;
  z-index: 1;
  grid-area: num;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--teal-500);
  border-radius: 50%;
  background: var(--paper-2);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink-900);
  transition: background-color .4s, color .4s, transform .5s var(--ease-out), box-shadow .5s;
}
.step:hover .step__num { background: var(--teal-500); transform: scale(1.08); box-shadow: 0 0 0 6px rgba(25, 182, 165, .16); }
.step__title { grid-area: title; margin: .6rem 0 .3rem; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.step__text { grid-area: text; font-size: var(--fs-sm); color: var(--muted); }

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; max-width: none; }
  /* Escritorio: una línea horizontal continua que se dibuja de izquierda a derecha */
  .steps::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, var(--teal-500), var(--navy));
    transform-origin: left;
  }
  .js .steps:not(.is-visible)::before { transform: scaleX(0); }
  .js .steps.is-visible::before { animation: grow-x 1.8s var(--ease-in-out) .15s backwards; }
  .step:not(:last-child)::after { display: none; }
  .step { grid-template-columns: 1fr; grid-template-areas: "num" "title" "text"; justify-items: center; padding: 0; text-align: center; }
  .step__title { margin-top: 1.15rem; }
}

/* 11. Sobre NORTEA
   ========================================================================== */
.about { background: var(--ink-950); }
.about__decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 100% 40%, rgba(25, 182, 165, .12), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(25, 51, 78, .6), transparent 70%);
}
.about__inner { display: grid; gap: 2.5rem; align-items: center; }
.about__text { max-width: 640px; }
.about__note { margin-top: 1rem; color: var(--on-dark-muted); }
.about__card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--ink-850), var(--ink-950));
  box-shadow: var(--shadow-lg);
}
/* Esquina con el corte a 45° del isotipo, como en la propuesta de valor */
.about__card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 110px;
  background: linear-gradient(225deg, rgba(25, 182, 165, .3), transparent 62%);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.about__iso { position: relative; display: block; width: 96px; height: 63px; margin-bottom: 1.25rem; }
.about__facts { position: relative; }
.about__fact { display: grid; gap: .2rem; padding: .9rem 0; border-top: 1px solid var(--on-dark-line); }
.about__fact:last-child { padding-bottom: 0; }
.about__fact dt { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-300); }
.about__fact dd { margin: 0; font-weight: 500; color: #fff; }

@media (min-width: 900px) {
  .about__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(3rem, 6vw, 5.5rem); }
}

/* 12. Preguntas frecuentes
   ========================================================================== */
.faq { display: grid; gap: 2.5rem; }
.faq__head .section-lead { margin-bottom: 1.75rem; }
.faq__help {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--text-2);
}
.faq__list { display: grid; gap: .75rem; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color .35s, box-shadow .35s;
}
.faq__item:hover { border-color: var(--line-strong); }
.faq__item[open]:not(.is-closing) { border-color: rgba(25, 182, 165, .6); box-shadow: 0 16px 34px -22px rgba(11, 21, 32, .3); }
.faq__q {
  position: relative;
  display: block;
  padding: 1.15rem 3.9rem 1.15rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
  transition: color .25s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.1rem;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1520' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .45s var(--ease-out), background-color .35s;
}
.faq__q:hover { color: var(--teal-700); }
.faq__q:focus-visible { outline-offset: -3px; }
.faq__item[open]:not(.is-closing) > .faq__q::after { transform: rotate(135deg); background-color: var(--teal-500); }
.faq__a { padding: 0 1.35rem 1.3rem; font-size: .96875rem; color: var(--muted); }

@media (min-width: 1024px) {
  .faq { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(3rem, 6vw, 6rem); }
  .faq__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* 13. Contacto y formulario
   ========================================================================== */
.contact { background: var(--ink-950); }
.contact__decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(45% 55% at 100% 0%, rgba(25, 182, 165, .15), transparent 70%),
    radial-gradient(55% 60% at 0% 100%, rgba(25, 51, 78, .75), transparent 70%);
}
.contact__decor::after {
  content: "";
  position: absolute;
  bottom: -6%;
  left: -4%;
  width: min(420px, 60vw);
  aspect-ratio: 1.07;
  background: rgba(25, 182, 165, .05);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 48.2% 50%);
}
.contact__inner { display: grid; gap: 3rem; align-items: start; }

.next-steps { display: grid; gap: .8rem; margin: 2rem 0; }
.next-steps li { display: flex; align-items: center; gap: .85rem; color: var(--on-dark); }
.next-steps__num {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(25, 182, 165, .55);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  color: var(--teal-300);
}

.channels { display: grid; gap: .65rem; }
.channel {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1rem;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
  transition: background-color .35s, border-color .35s, transform .45s var(--ease-out);
}
.channel__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(25, 182, 165, .12);
  color: var(--teal-300);
  transition: background-color .35s, color .35s;
}
.channel__icon .icon { width: 21px; height: 21px; }
.channel__body { display: flex; flex-direction: column; min-width: 0; }
.channel__name { font-size: var(--fs-sm); font-weight: 600; color: #fff; }
.channel__value { font-size: .875rem; color: var(--on-dark-muted); overflow-wrap: anywhere; }
.channel__arrow { margin-left: auto; color: var(--teal-300); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .35s var(--ease-out); }
a.channel[href]:hover,
a.channel[href]:focus-visible { border-color: rgba(25, 182, 165, .5); background: rgba(25, 182, 165, .08); transform: translateX(4px); }
a.channel[href]:hover .channel__icon,
a.channel[href]:focus-visible .channel__icon { background: var(--teal-500); color: var(--ink-950); }
a.channel[href]:hover .channel__arrow,
a.channel[href]:focus-visible .channel__arrow { opacity: 1; transform: none; }
/* Indicador de interacción del canal de WhatsApp */
.channel-item[data-channel="whatsapp"] .channel__icon { position: relative; }
.channel-item[data-channel="whatsapp"] .channel__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--teal-400);
  border-radius: inherit;
  opacity: 0;
}
.is-visible .channel-item[data-channel="whatsapp"] .channel__icon::after { animation: ring 2s var(--ease-out) .8s 2; }

.form {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
  border-radius: var(--radius-xl);
  background: var(--paper);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--teal-500), var(--navy));
}
.form__title { font-size: 1.5rem; }
.form__title:focus { outline: none; }
.form__subtitle { margin-top: .4rem; font-size: .875rem; color: var(--muted); }
.req { color: var(--teal-700); font-weight: 700; }

.form__notice {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-top: 1.25rem;
  padding: .9rem 1rem;
  border: 1px solid #efd59a;
  border-radius: var(--radius-sm);
  background: #fff8e8;
  font-size: .875rem;
  color: #5f4300;
}
.form__notice.is-info { border-color: var(--teal-100); background: var(--teal-50); color: var(--teal-800); }
.form__notice .icon { width: 20px; height: 20px; margin-top: 1px; }

.form__fields { min-width: 0; margin: 1.5rem 0 0; padding: 0; border: 0; }
.form__grid { display: grid; gap: 1.05rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field__label { font-size: .8125rem; font-weight: 600; color: var(--text-2); }
.field__input {
  width: 100%;
  min-height: 48px;
  padding: .75rem .95rem;
  border: 1.5px solid #8a98a5;
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field__input:hover { border-color: var(--text-2); }
.field__input:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(25, 182, 165, .24); }
.field__textarea { min-height: 130px; resize: vertical; }
.field__select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23243241' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right .9rem center;
  background-repeat: no-repeat;
  background-size: 16px;
}
.form__fields:disabled .field__input { border-color: var(--line-strong); background-color: var(--paper-2); cursor: not-allowed; }
.form__fields:disabled .field__label { color: var(--muted); }
.field.has-error .field__input { border-color: var(--danger); }
.field.has-error .field__input:focus { box-shadow: 0 0 0 4px rgba(194, 54, 43, .18); }
.field__error { font-size: .8125rem; font-weight: 500; color: var(--danger); }
.field__error:empty { display: none; }
.field__hint { margin-top: -.3rem; font-size: .8125rem; color: var(--muted); }
.field.is-highlight .field__input { animation: field-flash 1.8s var(--ease-out); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__submit { margin-top: 1.5rem; }
.form__status { margin-top: 1rem; font-size: var(--fs-sm); font-weight: 500; }
.form__status:empty { display: none; }
.form__status.is-success { color: var(--success); }
.form__status.is-error { color: var(--danger); }
.form__status.is-info { color: var(--teal-800); }
.form__status a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form__legal { margin-top: .85rem; font-size: .8125rem; text-align: center; color: var(--muted); }

@media (min-width: 560px) {
  .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.05rem 1.1rem; }
  .field--full { grid-column: 1 / -1; }
  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-item--static { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .contact__inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 6vw, 5.5rem); }
  .channels { grid-template-columns: 1fr; }
}

/* 14. Pie de página y WhatsApp flotante
   ========================================================================== */
.footer {
  position: relative;
  padding: clamp(3.5rem, 3rem + 3vw, 5rem) 0 1.75rem;
  background: #020406;
  font-size: var(--fs-sm);
  color: var(--on-dark-muted);
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(25, 182, 165, .55), transparent);
}
.footer__inner { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--on-dark-line); }
.brand--footer { animation: none; }
.brand--footer .brand__logo { height: 64px; }
.footer__desc { max-width: 26rem; margin: 1.25rem 0 1.5rem; }
.footer__title {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
}
.footer__links { display: grid; gap: .55rem; }
.footer__links a { display: inline-block; border-radius: 4px; transition: color .25s, transform .35s var(--ease-out); }
.footer__links a:hover { color: var(--teal-300); transform: translateX(3px); }
.footer__contact { display: grid; gap: .65rem; }
.footer__contact a, .footer__contact span { display: inline-flex; align-items: center; gap: .55rem; overflow-wrap: anywhere; }
.footer__contact a { border-radius: 4px; transition: color .25s; }
.footer__contact a:hover { color: var(--teal-300); }
.footer__contact .icon { width: 1.1rem; height: 1.1rem; color: var(--teal-400); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: .8125rem;
}
.footer__top { display: inline-flex; align-items: center; gap: .4rem; border-radius: 4px; transition: color .25s; }
.footer__top .icon { width: 1rem; height: 1rem; transform: rotate(-90deg); transition: transform .35s var(--ease-out); }
.footer__top:hover { color: var(--teal-300); }
.footer__top:hover .icon { transform: rotate(-90deg) translateX(3px); }

@media (min-width: 640px) {
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .footer__inner { grid-template-columns: 1.5fr 1fr 1.15fr 1fr; gap: 3rem; }
  .footer__brand { grid-column: auto; }
}

.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: .6rem;
  border-radius: 999px;
  animation: pop .6s var(--ease-out) 1.4s backwards;
}
.wa-float__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1da851;
  color: #fff;
  box-shadow: 0 14px 28px -12px rgba(29, 168, 81, .85);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.wa-float__btn .icon { width: 28px; height: 28px; }
.wa-float__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #1da851;
  border-radius: 50%;
  opacity: 0;
  animation: ring 2.2s var(--ease-out) 2.4s 3;
}
.wa-float__label {
  padding: .5rem .85rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-900);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity .3s, transform .35s var(--ease-out);
}
.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label { opacity: 1; transform: none; }
.wa-float:hover .wa-float__btn { transform: scale(1.07); box-shadow: 0 18px 32px -12px rgba(29, 168, 81, .95); }
.wa-float:active .wa-float__btn { transform: scale(.96); }
.menu-open .wa-float { visibility: hidden; }

/* Página 404 */
.error-page__content { max-width: 46rem; }

/* 15. Animaciones
   ========================================================================== */
/* Aparición progresiva al hacer scroll (la activa js/main.js con IntersectionObserver).
   Se usan animaciones (no transiciones) para no interferir con los efectos hover. */
.js [data-reveal]:not(.is-visible) { opacity: 0; }
.js [data-reveal].is-visible { animation: reveal-up .85s var(--ease-out) backwards; animation-delay: var(--reveal-delay, 0ms); }
.js [data-reveal="left"].is-visible { animation-name: reveal-left; }
.js [data-reveal="right"].is-visible { animation-name: reveal-right; }
.js [data-reveal="scale"].is-visible { animation-name: reveal-scale; }
.js [data-reveal="fade"].is-visible { animation-name: fade-in; }

@keyframes reveal-up { from { opacity: 0; transform: translate3d(0, 26px, 0); } }
@keyframes reveal-left { from { opacity: 0; transform: translate3d(-34px, 0, 0); } }
@keyframes reveal-right { from { opacity: 0; transform: translate3d(34px, 0, 0); } }
@keyframes reveal-scale { from { opacity: 0; transform: scale(.85); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-down { from { opacity: 0; transform: translate3d(0, -12px, 0); } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
@keyframes mk-in { from { opacity: 0; transform: translate3d(0, 8px, 0); } }
@keyframes mk-grow { from { opacity: .2; transform: scaleX(0); } }
@keyframes mk-scale { from { opacity: 0; transform: scale(.94) translate3d(0, 14px, 0); } }
@keyframes mk-up { from { opacity: 0; transform: translate3d(0, 30px, 0); } }
@keyframes bp-draw { from { stroke-dashoffset: 1; } }
@keyframes icon-draw { to { stroke-dashoffset: 0; } }
@keyframes text-sweep { from { background-position: 100% 0; } }
@keyframes dart-in { from { opacity: 0; transform: translateX(-8px); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring {
  0% { opacity: .75; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.55); }
}
@keyframes field-flash {
  0%, 35% { border-color: var(--teal-500); box-shadow: 0 0 0 5px rgba(25, 182, 165, .35); }
  100% { box-shadow: 0 0 0 5px rgba(25, 182, 165, 0); }
}
@keyframes drift-a { to { transform: translate3d(-7vmax, 5vmax, 0) scale(1.06); } }
@keyframes drift-b { to { transform: translate3d(6vmax, -4vmax, 0) scale(1.05); } }

/* 16. Accesibilidad
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal]:not(.is-visible) { opacity: 1; }
  .js .icon--draw { stroke-dashoffset: 0; }
  .js .steps:not(.is-visible)::before,
  .js .step:not(.is-visible)::after { transform: none; }
}

@media (forced-colors: active) {
  .btn { border-color: ButtonText; }
  .service, .faq__item, .channel, .about__card { border-color: CanvasText; }
  .services__cta { border: 1px solid CanvasText; }
  .ticks li::before, .nav__link::after { background: CanvasText; }
}
