/* ==========================================================================
   Vuélvete Digital — Hoja de estilos principal
   Enfoque mobile-first. Sin frameworks ni dependencias externas.
   Índice:
   1. Tipografías locales
   2. Variables (tokens de diseño)
   3. Base y reset
   4. Utilidades y componentes comunes
   5. Encabezado y navegación
   6. Hero
   7. Problemas
   8. Servicios
   9. Cómo trabajamos
   10. Preguntas frecuentes
   11. Contacto
   12. Pie de página
   13. WhatsApp flotante
   14. Animaciones de aparición
   15. Breakpoints (tablet / escritorio)
   16. Movimiento reducido
   ========================================================================== */

/* 1. Tipografías locales (SIL Open Font License) ------------------------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Variables --------------------------------------------------------- */
:root {
  /* Colores extraídos del logo oficial */
  --brand-cyan: #00caff;
  --brand-yellow: #ffc000;
  --brand-amber: #ffa900;
  --brand-orange: #ff8300;
  --brand-orange-deep: #ff5a00;
  --brand-gray: #747476;

  /* Superficies oscuras */
  --navy-950: #050c15;
  --navy-900: #091522;
  --navy-850: #0b1a2a;
  --navy-800: #0e1f31;
  --navy-700: #15293f;
  --navy-600: #1d3550;

  /* Superficies claras */
  --paper: #f3f6f9;
  --paper-2: #e8eef4;
  --white: #ffffff;

  /* Texto */
  --text: #eaf2fa;
  --text-muted: #a3b4c7;
  --text-soft: #7f93a9;
  --ink: #0b1a2a;
  --ink-muted: #46586b;

  /* Interacción */
  --cyan-hover: #4ddbff;
  --cyan-ink: #003a4d;
  --cyan-dark: #006f90;
  --whatsapp: #25d366;

  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-dark: rgba(11, 26, 42, 0.1);

  --grad-warm: linear-gradient(120deg, var(--brand-yellow) 0%, var(--brand-orange) 55%, var(--brand-orange-deep) 100%);
  --grad-brand: linear-gradient(90deg, var(--brand-cyan) 0%, var(--brand-orange) 100%);

  /* Tipografía */
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Espaciado y forma */
  --gutter: 1.25rem;
  --container: 76rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --radius-sm: 0.625rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --header-h: 4.25rem;

  --shadow-lg: 0 24px 60px -24px rgba(0, 6, 16, 0.7);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { margin: 0; }
p + p { margin-top: 0.75em; }

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

a { color: inherit; }

:where(ul, ol)[role="list"] { list-style: none; margin: 0; padding: 0; }

::selection { background: var(--brand-cyan); color: var(--navy-900); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* 4. Utilidades y componentes comunes ----------------------------------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 200;
  padding: 0.75rem 1.1rem;
  background: var(--brand-cyan);
  color: var(--navy-900);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

.section { position: relative; padding-block: var(--section-y); }
.section-dark { background: var(--navy-900); color: var(--text); }
.section-deep { background: var(--navy-850); color: var(--text); }
.section-light { background: var(--paper); color: var(--ink); }

.section-head { max-width: 44rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-cyan);
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 2px;
  border-radius: 2px;
  background: var(--grad-warm);
}
.eyebrow-dark { color: var(--cyan-dark); }
.eyebrow-hero::before { display: none; }

.section-title {
  font-size: clamp(1.8rem, 1.25rem + 2.4vw, 2.9rem);
  font-weight: 800;
}
.section-intro {
  margin-top: 1.25rem;
  font-size: clamp(1.02rem, 0.97rem + 0.25vw, 1.15rem);
  color: var(--text-muted);
  max-width: 40rem;
}
.section-light .section-intro { color: var(--ink-muted); }

.text-gradient {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Botones */
.btn {
  --btn-pad-y: 0.85rem;
  --btn-pad-x: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-icon { width: 1.1rem; height: 1.1rem; flex: none; transition: transform 0.2s var(--ease); }

.btn-primary {
  background: var(--brand-cyan);
  color: var(--navy-900);
  box-shadow: 0 10px 30px -12px rgba(0, 202, 255, 0.65);
}
.btn-primary:hover {
  background: var(--cyan-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -12px rgba(0, 202, 255, 0.8);
}
.btn-primary:hover .btn-icon { transform: translateX(3px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: rgba(0, 202, 255, 0.6); background: rgba(0, 202, 255, 0.08); }
.btn-ghost:hover .btn-icon { transform: translateY(2px); }

.btn-sm { min-height: 2.6rem; --btn-pad-y: 0.6rem; --btn-pad-x: 1.1rem; font-size: 0.9rem; }
.btn-lg { min-height: 3.4rem; --btn-pad-x: 1.6rem; font-size: 1rem; }

/* 5. Encabezado y navegación -------------------------------------------- */
.site-header {
  position: relative; /* sin JS: flujo normal para que la navegación no tape el contenido */
  z-index: 100;
  background: var(--navy-900);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.js .site-header {
  position: fixed;
  inset: 0 0 auto 0;
  background: transparent;
}
.js .site-header.is-scrolled,
.js .site-header.is-open {
  background: rgba(9, 21, 34, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .js .site-header.is-scrolled,
  .js .site-header.is-open {
    background: rgba(9, 21, 34, 0.9);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: var(--header-h);
  gap: 0 1rem;
}

.brand { display: inline-flex; align-items: center; padding: 0.25rem 0; border-radius: 8px; }
.brand-logo { width: auto; height: 2.75rem; }

/* Botón hamburguesa (visible solo con JS en pantallas pequeñas) */
.nav-toggle {
  display: none;
  width: 2.9rem; height: 2.9rem;
  align-items: center; justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 0.8rem;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: rgba(0, 202, 255, 0.6); }
.nav-toggle-bars { position: relative; width: 1.25rem; height: 0.9rem; }
.nav-toggle-bars span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: calc(50% - 1px); }
.nav-toggle-bars span:nth-child(3) { top: calc(100% - 2px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: calc(50% - 1px); transform: rotate(-45deg); }

/* Navegación móvil: sin JS se muestra como fila; con JS se convierte en panel desplegable */
.primary-nav { width: 100%; padding-bottom: 0.75rem; }
.nav-list {
  display: flex; flex-wrap: wrap; gap: 0.25rem 1rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav-list a:hover,
.nav-list a.is-active { color: var(--brand-cyan); }
.nav-cta { margin-top: 0.5rem; }

.js .nav-toggle { display: inline-flex; }
.js .primary-nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  padding: 0.5rem var(--gutter) 1.5rem;
  background: var(--navy-900);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.9);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.js .site-header.is-open .primary-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
}
.js .nav-list { flex-direction: column; gap: 0; }
.js .nav-list li + li { border-top: 1px solid var(--line); }
.js .nav-list a { display: flex; min-height: 3.25rem; font-size: 1.05rem; }
.js .nav-cta { width: 100%; margin-top: 1rem; min-height: 3.25rem; }

/* 6. Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 2rem + 6vw, 7rem);
  background: var(--navy-900);
  isolation: isolate;
}
.js .hero { padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 4vw, 4.5rem)); }
.hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 36rem at 85% 30%, rgba(0, 202, 255, 0.12), transparent 60%),
    radial-gradient(40rem 28rem at 100% 100%, rgba(255, 131, 0, 0.08), transparent 60%),
    radial-gradient(50rem 30rem at -10% 0%, rgba(0, 202, 255, 0.06), transparent 60%);
}
.hero-bg::before {
  /* Retícula tecnológica sutil */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hero-bg::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 202, 255, 0.35), rgba(255, 131, 0, 0.35), transparent);
}

.hero-grid { display: grid; gap: 3rem; align-items: center; }

.eyebrow-hero {
  padding: 0.45rem 0.9rem 0.45rem 0.75rem;
  border: 1px solid rgba(0, 202, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 202, 255, 0.07);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
}
.eyebrow-dot {
  width: 0.5rem; height: 0.5rem; flex: none;
  border-radius: 2px;
  background: var(--grad-warm);
}

.hero-title {
  font-size: clamp(2.2rem, 1.45rem + 3.3vw, 3.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.hero-lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: clamp(1.04rem, 0.98rem + 0.3vw, 1.2rem);
  color: var(--text-muted);
}
.hero-actions {
  display: flex; flex-direction: column; gap: 0.8rem;
  margin-top: 2.25rem;
}
.hero-note {
  display: flex; align-items: center; gap: 0.55rem;
  margin-top: 1.75rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.hero-note-icon { width: 1.1rem; height: 1.1rem; color: var(--brand-cyan); flex: none; }

.hero-visual { position: relative; width: 100%; max-width: 34rem; margin-inline: auto; }
.hero-art { width: 100%; height: auto; overflow: visible; }

/* Entrada suave de la composición (solo una vez, sin movimiento continuo) */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }
  .hero-art .art-window { animation: rise 0.9s 0.15s var(--ease) both; }
  .hero-art .art-card { animation: rise 0.9s var(--ease) both; }
  .hero-art .art-card-1 { animation-delay: 0.35s; }
  .hero-art .art-card-2 { animation-delay: 0.45s; }
  .hero-art .art-card-3 { animation-delay: 0.55s; }
  .hero-art .art-pixels { animation: fade 1.2s 0.4s var(--ease) both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* 7. Problemas ----------------------------------------------------------- */
.problems-grid { display: grid; gap: 2.75rem; }

.problem-list { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.problem {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.problem-icon {
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 0.9rem;
  background: var(--white);
  color: var(--brand-orange-deep);
  box-shadow: 0 1px 0 var(--line-dark), 0 10px 24px -16px rgba(11, 26, 42, 0.45);
  position: relative;
}
.problem-icon::after {
  /* pequeño "píxel" de marca */
  content: "";
  position: absolute; top: -3px; right: -3px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--brand-yellow);
}
.problem-icon svg { width: 1.45rem; height: 1.45rem; }
.problem-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.problem p { color: var(--ink-muted); font-size: 0.98rem; }

.problems-closing {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem);
  font-weight: 600;
  line-height: 1.45;
  overflow: hidden;
}
.problems-closing::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--grad-warm);
}

/* 8. Servicios ----------------------------------------------------------- */
.services { overflow: hidden; isolation: isolate; }
.services-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(44rem 30rem at 0% 0%, rgba(0, 202, 255, 0.07), transparent 60%),
    radial-gradient(40rem 30rem at 100% 70%, rgba(255, 131, 0, 0.06), transparent 60%);
}

.stages { display: grid; gap: 3.5rem; margin-top: 3.5rem; }

.stage { display: grid; gap: 1.5rem; }
.stage-head { position: relative; }
.stage-label { margin-bottom: 0.6rem; }
.stage-num {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stage-title {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
  font-weight: 700;
  color: var(--text);
  max-width: 20rem;
}
.stage-meter { display: flex; gap: 0.35rem; margin-top: 1rem; }
.stage-meter i {
  display: block;
  width: 1.75rem; height: 4px;
  border-radius: 4px;
  background: var(--line-strong);
}
.stage-meter i.on { background: var(--grad-brand); }
.stage-1 .stage-meter i.on { background: var(--brand-cyan); }
.stage-2 .stage-meter i.on { background: var(--brand-orange); }
.stage-3 .stage-meter i.on { background: var(--brand-yellow); }

.stage-services { display: grid; gap: 1rem; }

.service {
  position: relative;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
}
.service-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1.4rem;
}
.service-icon {
  display: grid; place-items: center;
  width: 3.1rem; height: 3.1rem;
  border-radius: 0.95rem;
  background: rgba(0, 202, 255, 0.1);
  border: 1px solid rgba(0, 202, 255, 0.22);
  color: var(--brand-cyan);
}
.stage-2 .service-icon { background: rgba(255, 131, 0, 0.1); border-color: rgba(255, 131, 0, 0.28); color: #ff9a33; }
.stage-3 .service-icon { background: rgba(255, 192, 0, 0.1); border-color: rgba(255, 192, 0, 0.28); color: var(--brand-yellow); }
.service-icon svg { width: 1.5rem; height: 1.5rem; }
.service-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
}
.service-title {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.service p { color: var(--text-muted); font-size: 0.97rem; }

.service-wide { display: grid; gap: 2rem; }

/* Diagrama decorativo de automatización */
.flow {
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 22px 22px,
    rgba(5, 12, 21, 0.45);
  border: 1px solid var(--line);
}
.flow-node {
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem; flex: none;
  border-radius: 1rem;
  background: var(--navy-700);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.flow-node svg { width: 1.45rem; height: 1.45rem; }
.flow-node-accent {
  background: var(--brand-cyan);
  border-color: transparent;
  color: var(--navy-900);
  box-shadow: 0 10px 30px -10px rgba(0, 202, 255, 0.7);
}
.flow-link {
  flex: 1 1 auto;
  max-width: 5rem;
  min-width: 1.25rem;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(0, 202, 255, 0.6) 0 6px, transparent 6px 11px);
}

.services-cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem;
  margin-top: 3.5rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 202, 255, 0.22);
  background:
    radial-gradient(30rem 12rem at 100% 0%, rgba(0, 202, 255, 0.12), transparent 70%),
    rgba(255, 255, 255, 0.025);
}
.services-cta p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.4;
}

/* 9. Cómo trabajamos ----------------------------------------------------- */
.process { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps {
  position: relative;
  display: grid;
  gap: 2.25rem;
  margin-top: 3.25rem;
  padding-left: 0;
}
/* Línea vertical (móvil) */
.steps::before {
  content: "";
  position: absolute;
  left: 1.6rem; top: 1.6rem; bottom: 1.6rem;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-cyan), var(--brand-orange));
  opacity: 0.55;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  column-gap: 1.25rem;
}
.step-marker {
  grid-row: span 2;
  position: relative;
  z-index: 1;
  display: grid; place-items: center;
  width: 3.2rem; height: 3.2rem;
  border-radius: 50%;
  background: var(--navy-850);
  border: 2px solid var(--brand-cyan);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  box-shadow: 0 0 0 6px var(--navy-850);
}
.step:nth-child(2) .step-marker { border-color: #4fb4d6; }
.step:nth-child(3) .step-marker { border-color: #c69a5e; }
.step:nth-child(4) .step-marker { border-color: var(--brand-orange); }
.step-title {
  align-self: center;
  font-size: 1.15rem;
  font-weight: 700;
  padding-top: 0.75rem;
  margin-bottom: 0.5rem;
}
.step p { color: var(--text-muted); font-size: 0.97rem; }

.process-closing {
  margin: 3.5rem auto 0;
  max-width: 46rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.process-closing::before {
  content: "";
  display: block;
  width: 3rem; height: 3px;
  margin: 0 auto 1.5rem;
  border-radius: 3px;
  background: var(--grad-warm);
}

/* 10. Preguntas frecuentes ---------------------------------------------- */
.faq-grid { display: grid; gap: 2.5rem; }
.faq-more { margin-top: 1.25rem; color: var(--ink-muted); }
.faq-more a {
  color: var(--cyan-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.faq-more a:hover { color: var(--ink); }

.faq-list { border-top: 1px solid var(--line-dark); }
.faq-item { border-bottom: 1px solid var(--line-dark); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  min-height: 3.5rem;
  padding: 1.25rem 0.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ""; }
.faq-q:hover { color: var(--cyan-dark); }
.faq-q:focus-visible { outline-offset: 2px; }

.faq-sign {
  position: relative;
  width: 2.25rem; height: 2.25rem; flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: var(--white);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.3s var(--ease);
}
.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 0.8rem; height: 2px;
  margin: -1px 0 0 -0.4rem;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), background-color 0.25s var(--ease);
}
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign { background: var(--navy-900); border-color: var(--navy-900); transform: rotate(180deg); }
.faq-item[open] .faq-sign::before,
.faq-item[open] .faq-sign::after { background: var(--brand-cyan); }
.faq-item[open] .faq-sign::after { transform: rotate(0deg); }

.faq-a { overflow: hidden; }
.faq-a p {
  padding: 0 3.5rem 1.5rem 0.25rem;
  color: var(--ink-muted);
  max-width: 44rem;
}

/* 11. Contacto ----------------------------------------------------------- */
.contact { padding-bottom: calc(var(--section-y) * 0.8); }
.contact-panel {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding: 2rem 1.25rem;
  border-radius: 1.75rem;
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
}
.contact-glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(28rem 20rem at 100% 0%, rgba(0, 202, 255, 0.18), transparent 65%),
    radial-gradient(26rem 18rem at 0% 100%, rgba(255, 131, 0, 0.14), transparent 65%);
}
.contact-glow::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(135deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(135deg, transparent 30%, #000 100%);
}

.channels { display: grid; gap: 0.75rem; }
.channel {
  display: flex; align-items: center; gap: 1rem;
  min-height: 4.5rem;
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  background: rgba(5, 12, 21, 0.45);
  border: 1px solid var(--line-strong);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.channel:hover {
  border-color: rgba(0, 202, 255, 0.65);
  background: rgba(0, 202, 255, 0.07);
  transform: translateY(-2px);
}
.channel-icon {
  display: grid; place-items: center;
  width: 2.9rem; height: 2.9rem; flex: none;
  border-radius: 0.85rem;
  background: rgba(0, 202, 255, 0.12);
  color: var(--brand-cyan);
}
.channel-icon svg { width: 1.4rem; height: 1.4rem; }
.channel-value-email,
.channel-value-social { white-space: normal; overflow-wrap: anywhere; }
.channel-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.channel-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.channel-value {
  font-family: var(--font-display);
  white-space: nowrap;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.channel-arrow {
  width: 1.2rem; height: 1.2rem; flex: none;
  color: var(--text-soft);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.channel:hover .channel-arrow { transform: translateX(3px); color: var(--brand-cyan); }

.channel-whatsapp {
  min-height: 5.25rem;
  background: var(--brand-cyan);
  border-color: transparent;
  color: var(--navy-900);
  box-shadow: 0 18px 40px -18px rgba(0, 202, 255, 0.8);
}
.channel-whatsapp:hover { background: var(--cyan-hover); border-color: transparent; }
.channel-whatsapp .channel-icon { background: var(--navy-900); color: var(--whatsapp); width: 3.25rem; height: 3.25rem; }
.channel-whatsapp .channel-label { color: var(--cyan-ink); }
.channel-whatsapp .channel-value { font-size: 1.3rem; }
.channel-whatsapp .channel-arrow,
.channel-whatsapp:hover .channel-arrow { color: var(--navy-900); }

/* 12. Pie de página ------------------------------------------------------ */
.site-footer {
  background: var(--navy-950);
  color: var(--text-muted);
  padding-top: 4rem;
  padding-bottom: 6rem; /* deja espacio para el botón flotante en móvil */
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 2.5rem; }
.footer-logo-link { display: inline-block; border-radius: 8px; }
.footer-logo { width: 11.5rem; height: auto; }
.footer-desc { margin-top: 1.25rem; max-width: 24rem; }
.footer-market {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 1rem;
  color: var(--text);
  font-weight: 500;
}
.footer-market svg { width: 1.05rem; height: 1.05rem; color: var(--brand-cyan); }
.footer-title {
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-col li + li { margin-top: 0.2rem; }
.footer-col a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.5rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--brand-cyan); }
.footer-email { overflow-wrap: anywhere; }
.footer-social svg { width: 1.15rem; height: 1.15rem; }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* 13. WhatsApp flotante -------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 90;
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #06301a;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6), 0 0 0 4px rgba(37, 211, 102, 0.18);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), visibility 0s;
}
.wa-float svg { width: 1.75rem; height: 1.75rem; }
.wa-float:hover { transform: scale(1.06); }
.wa-float:focus-visible { outline-color: var(--white); }
/* Con JS: se muestra después del hero y se oculta en la sección de contacto */
.js .wa-float.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}

/* 14. Animaciones de aparición ------------------------------------------ */
/* El contenido solo se oculta cuando main.js confirma que puede revelarlo. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
  }
  .reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* 15. Breakpoints -------------------------------------------------------- */

/* ≥ 480px: botones del hero en fila */
@media (min-width: 30em) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .services-cta .btn { width: auto; }
}

/* ≥ 640px */
@media (min-width: 40em) {
  :root { --gutter: 2rem; }
  .problem-list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; border-top: 0; }
  .problem { grid-template-columns: 1fr; padding: 1.75rem 0; border-bottom: 1px solid var(--line-dark); }
  .problem:nth-child(-n+2) { border-top: 1px solid var(--line-dark); }
  .problem-icon { margin-bottom: 0.25rem; }
  .stage-services-2 { grid-template-columns: 1fr 1fr; }
  .channels { grid-template-columns: 1fr 1fr; }
  .channel-item-main { grid-column: 1 / -1; }
  .contact-panel { padding: 2.75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .service { padding: 1.85rem; }
}

/* ≥ 768px */
@media (min-width: 48em) {
  .services-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 2rem 2.25rem; }
  .services-cta p { max-width: 26rem; }

  /* Proceso: 2 x 2 */
  .steps { grid-template-columns: 1fr 1fr; gap: 2.75rem 2.5rem; }
  .steps::before { display: none; }
  .step { grid-template-columns: 1fr; }
  .step-marker { grid-row: auto; margin-bottom: 1.1rem; box-shadow: none; }
  .step-title { padding-top: 0; }

  .service-wide { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .flow { height: 100%; min-height: 12rem; }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ≥ 1024px: navegación de escritorio y composiciones en columnas */
@media (min-width: 64em) {
  :root { --header-h: 5rem; }

  .header-inner { flex-wrap: nowrap; }
  .brand-logo { height: 3.25rem; }

  .js .nav-toggle,
  .nav-toggle { display: none; }

  .primary-nav,
  .js .primary-nav {
    position: static;
    display: flex; align-items: center; gap: 2rem;
    width: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    max-height: none;
    overflow: visible;
    transition: none;
  }
  .nav-list,
  .js .nav-list { flex-direction: row; gap: 1.75rem; }
  .js .nav-list li + li { border-top: 0; }
  .nav-list a,
  .js .nav-list a {
    position: relative;
    display: inline-flex;
    min-height: 2.75rem;
    font-size: 0.93rem;
    color: var(--text);
  }
  .nav-list a::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0.45rem;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
  }
  .nav-list a:hover::after,
  .nav-list a.is-active::after { transform: scaleX(1); }
  .nav-cta,
  .js .nav-cta { width: auto; margin-top: 0; min-height: 2.75rem; }

  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr); gap: 3rem; }
  .hero-visual { max-width: none; margin-right: -1rem; }
  .hero-actions .btn { white-space: nowrap; --btn-pad-x: 1.45rem; }

  .problems-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    column-gap: 5rem;
    row-gap: 3rem;
    align-items: start;
  }
  .problems-head { position: sticky; top: calc(var(--header-h) + 2rem); }
  .problems-closing { grid-column: 2; }

  .stage {
    grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
    gap: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
  }
  .stage-head { padding-top: 0.25rem; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .steps::before {
    display: block;
    left: 1.6rem; right: calc(25% - 1.5rem - 1.6rem); /* de centro del paso 1 al centro del paso 4 */
    top: 1.6rem; bottom: auto;
    width: auto; height: 2px;
    background: linear-gradient(90deg, var(--brand-cyan), var(--brand-orange));
  }
  .step-marker { box-shadow: 0 0 0 8px var(--navy-850); }

  .faq-grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); column-gap: 5rem; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 2rem); }

  .contact-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 3.5rem; padding: 4rem; }
  .channels { grid-template-columns: 1fr; }

  .site-footer { padding-bottom: 2.5rem; }
}

/* ≥ 1280px */
@media (min-width: 80em) {
  .hero-grid { gap: 5rem; }
  .service { padding: 2.1rem; }
}

/* Celulares muy pequeños (≤ 360px) */
@media (max-width: 22.5em) {
  :root { --gutter: 1rem; }
  .brand-logo { height: 2.3rem; }
  .eyebrow-hero { font-size: 0.62rem; letter-spacing: 0.08em; }
  .service { padding: 1.35rem; }
  .contact-panel { padding: 1.75rem 0.75rem; border-radius: 1.25rem; }
  .channel { padding: 0.85rem 0.8rem; gap: 0.75rem; }
  .channel-icon { width: 2.5rem; height: 2.5rem; }
  .channel-arrow { display: none; }
  .channel-value { font-size: 0.98rem; }
  .channel-whatsapp .channel-value { font-size: 1.15rem; }
  .channel-whatsapp .channel-icon { width: 2.75rem; height: 2.75rem; }
  .faq-a p { padding-right: 0.25rem; }
}

/* 16. Movimiento reducido ----------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
