/* ============================================================
   SOLUTO CONSULTING GROUP — Sistema de diseño
   Tema: oscuro premium + plateado metálico (bloqueado, una sola variante)
   Tipografía: Kanit (titulares) + Poppins (texto) — archivos locales
   Acento único: plateado/platino. Escala de bordes documentada abajo.
   ============================================================ */

/* ---------- Tipografías de marca (locales) ---------- */
/* Kanit → titulares principales (pesos disponibles: SemiBold 600 · Bold 700) */
@font-face {
  font-family: "Kanit";
  src: url("../fuentes/Kanit-SemiBold.ttf") format("truetype");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  /* Bold cubre 700–900 para que los títulos no usen "negrita falsa" sintetizada */
  font-family: "Kanit";
  src: url("../fuentes/Kanit-Bold.ttf") format("truetype");
  font-weight: 700 900; font-style: normal; font-display: swap;
}
/* Poppins → párrafos y textos */
@font-face {
  font-family: "Poppins";
  src: url("../fuentes/Poppins-Thin.ttf") format("truetype");
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fuentes/Poppins-Light.ttf") format("truetype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fuentes/Poppins-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  /* Medium cubre 500–700 para evitar "negrita falsa" sintetizada por el navegador */
  font-family: "Poppins";
  src: url("../fuentes/Poppins-Medium.ttf") format("truetype");
  font-weight: 500 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Color base (off-black, sin negro puro) */
  --bg:          #0E0F12;
  --bg-soft:     #121419;
  --bg-elev:     #16181F;
  --bg-elev-2:   #1C1F27;

  /* Texto */
  --text:        #F4F6F8;
  --text-muted:  #A6ADB7;
  --text-dim:    #7C828D;

  /* Plateado / metálico (acento único) */
  --silver:        #C7CCD1;
  --silver-bright: #E9ECEF;
  --silver-deep:   #8A929C;

  /* Líneas y superficies translúcidas */
  --line:        rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --glass:       rgba(255,255,255,0.04);

  /* Gradiente metálico (logo, palabras de acento, detalles) */
  --metal: linear-gradient(155deg,#FFFFFF 0%,#D2D7DD 26%,#8B929B 52%,#E6E9EC 74%,#AAB0B8 100%);
  /* Brillo ambiental sutil del fondo */
  --halo: radial-gradient(1200px 600px at 75% -10%, rgba(199,204,209,0.10), transparent 60%);

  /* Tipografía */
  --font-display: "Kanit", system-ui, sans-serif;
  --font-body:    "Poppins", system-ui, sans-serif;

  /* Bordes: botones CTA 8px · inputs 8px · tarjetas 0 (sin redondeo) · chips/pills full · imágenes 0 */
  --r-btn:   8px;
  --r-input: 8px;
  --r-img:   0px;
  --r-card:  0px;
  --r-pill:  999px;

  /* Sombras desactivadas — diseño plano (sin drop shadows) */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;

  /* Movimiento */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.18s var(--ease);
  --t:      0.32s var(--ease);

  /* Layout */
  --container: 1240px;
  --nav-h: 72px;

  /* Z-index (escala documentada) */
  --z-grain: 60;
  --z-nav: 50;
  --z-overlay: 40;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Halo ambiental fijo (no repinta en scroll) */
body::before {
  content: "";
  position: fixed; inset: 0;
  background: var(--halo);
  pointer-events: none;
  z-index: 0;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
p  { color: var(--text-muted); }
strong { color: var(--text); font-weight: 700; }

.metal-text {
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--text-muted); max-width: 60ch; }

/* Eyebrow (uso restringido: máximo 1 cada 3 secciones) */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--silver-deep);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--silver-deep), transparent);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { position: relative; z-index: 1; padding-block: clamp(64px, 9vw, 120px); scroll-margin-top: calc(var(--nav-h) + 8px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 60ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin-top: 1rem; }
.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  letter-spacing: -0.01em; white-space: nowrap;
  padding: .85rem 1.5rem; border-radius: var(--r-btn);
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), border-color var(--t);
  will-change: transform;
}
.btn i { font-size: 1.15em; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: var(--metal);
  color: #0C0D10;                      /* texto oscuro sobre plata: contraste AA alto */
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--silver); background: rgba(255,255,255,.07); transform: translateY(-2px); }

/* Botón oscuro (para secciones de fondo claro) */
.btn-dark {
  background: #14161B; color: #fff; border: 1px solid #14161B;
}
.btn-dark:hover { background: #000; transform: translateY(-2px); }

.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .42rem .85rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--glass);
  font-size: .85rem; color: var(--text-muted);
}
.chip i { color: var(--silver); font-size: 1.05em; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
}
.nav.is-scrolled {
  background: rgba(14,15,18,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

/* Logo (wordmark provisional — reemplazar por el logo real exportado) */
.logo { display: inline-flex; align-items: center; }
.logo__img { height: 40px; width: auto; display: block; transition: opacity var(--t-fast); }
.logo:hover .logo__img { opacity: .82; }
@media (max-width: 600px) { .logo__img { height: 34px; } }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-size: .94rem; color: var(--text-muted); transition: color var(--t-fast); position: relative; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--metal); border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: .75rem; }

.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--text); }

/* ============================================================
   HERO  (split asimétrico)
   ============================================================ */
.hero {
  position: relative; z-index: 1; overflow: hidden;
  /* el fondo sube detrás del nav transparente */
  margin-top: calc(-1 * var(--nav-h));
  padding-top: calc(var(--nav-h) + clamp(24px, 4vw, 56px));
  padding-bottom: 0; /* el hero termina justo en la base de la figura */
}
/* Capa 1: foto de fondo full-bleed (cover) */
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Capa 2: velo oscuro — más denso a la izquierda (texto) y se funde con el fondo abajo */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14,15,18,.94) 0%, rgba(14,15,18,.82) 34%, rgba(14,15,18,.55) 62%, rgba(14,15,18,.30) 100%),
    linear-gradient(180deg, rgba(14,15,18,.55) 0%, transparent 26%);
}
/* Contenido por encima de las capas */
.hero > .container { position: relative; z-index: 2; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__stages { display: inline-flex; gap: .5rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.hero__stages .chip { font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; }
.hero h1 { font-size: clamp(2rem, 3.6vw, 2.85rem); margin-bottom: 1.4rem; color: #fff; }
/* "crecer" en blanco dentro del hero (anula el degradado plateado solo aquí) */
.hero h1 .metal-text { background: none; color: #fff; -webkit-text-fill-color: #fff; }
.hero__sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 46ch; margin-bottom: 2.2rem; color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Capa 3: figura recortada (tarjeta de pasos + ejecutiva) — anclada al fondo del hero */
.hero__visual { position: relative; align-self: end; }
.hero__figure { display: block; }
.hero__figure img {
  display: block; width: 100%; height: auto; max-width: 560px; margin-inline: auto;
}

/* ============================================================
   LO QUE RESOLVEMOS  (sección CLARA — alterna con el tema oscuro)
   ============================================================ */
.section--light {
  /* tokens locales de la sección clara (colores tomados del diseño) */
  --s-bg:      #F2F3F5;
  --s-surface: #FFFFFF;
  --s-line:    #E6E8EC;
  --s-ink:     #14161B;
  --s-muted:   #5E6672;
  --s-dim:     #9097A1;
  background: var(--s-bg);
  color: var(--s-ink);
}
.section--light :where(h1, h2, h3, h4) { color: var(--s-ink); }
.section--light p { color: var(--s-muted); }

/* Variante crema (#F6F4F5) — secciones "Por qué confían" y "Empresas que confían" */
.section--cream { --s-bg: #F6F4F5; }
.section--cream .stat { background: var(--s-surface); border-color: var(--s-line); }
.section--cream .stat__label { color: var(--s-muted); }
.section--cream .why__item i { color: var(--s-ink); }
.section--cream .why__item b { color: var(--s-ink); }
/* anula el degradado plateado de los números (invisible sobre claro) */
.section--cream .metal-text { background: none; color: var(--s-ink); -webkit-text-fill-color: var(--s-ink); }

/* Variante blanca (#FFFFFF) */
.section--white { --s-bg: #FFFFFF; }

/* ---------- EQUIPO ---------- */
.team__head { max-width: 780px; margin-bottom: clamp(34px, 5vw, 56px); }
.team__head .eyebrow {
  display: flex; align-items: center; gap: .9rem; width: 100%; max-width: 520px;
  text-transform: none; letter-spacing: .02em; font-size: .9rem; font-weight: 600; color: var(--s-muted);
}
.team__head .eyebrow::before { display: none; }
.team__head .eyebrow::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #d4d7dd, transparent); }
.team__head h2 { margin: .9rem 0 1.1rem; }
.team__head p { color: var(--s-muted); max-width: 64ch; }

.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 34px); }
.team__card { margin: 0; }
.team__photo {
  aspect-ratio: 519 / 618; border-radius: 0px; overflow: hidden;
  /* degradado radial: centro claro → bordes gris */
  background: radial-gradient(circle at 50% 42%, #FFFCFF 0%, #C9C9C9 100%);
}
.team__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team__card figcaption { padding-top: .95rem; }
.team__card h3 { font-size: 1.02rem; color: var(--s-ink); }
.team__card figcaption p { font-size: .9rem; color: var(--s-muted); margin-top: .15rem; }
@media (max-width: 980px) { .team__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .team__grid { grid-template-columns: repeat(2, 1fr); } }

/* Encabezado centrado */
.solve__head { text-align: center; max-width: 720px; margin-inline: auto; margin-bottom: clamp(28px, 4vw, 48px); }
.rule-center { display: block; width: 64px; height: 2px; margin: 0 auto 1.4rem; background: var(--s-dim); border-radius: 2px; }
.solve__lead { margin-top: 1rem; font-size: clamp(1rem, 1.4vw, 1.12rem); }

/* Grid de dolores 3×2 con divisores internos */
.pains {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--s-line);          /* el gap revela el fondo como divisores */
  border: 1px solid var(--s-line);
  border-radius: var(--r-card); overflow: hidden;
}
.pain {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--s-surface);
  transition: background var(--t-fast);
}
.pain:hover { background: #FAFBFC; }
.pain__ic {
  flex: none; width: 38px; height: 38px; border-radius: var(--r-pill);
  display: grid; place-items: center; font-size: 1.25rem;
  background: #EEF0F3; color: var(--s-dim);
}
.pain p { color: var(--s-muted); font-size: .95rem; line-height: 1.5; }

/* Bloque destacado: texto + imagen */
.solve {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  margin-top: clamp(20px, 2.6vw, 32px);
  padding: clamp(28px, 3.4vw, 48px);
  background: var(--s-surface); border: 1px solid var(--s-line);
  border-radius: var(--r-card);
}
.solve__text h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 1rem; }
.solve__text > p { margin-bottom: 1rem; }
.solve__list { list-style: none; display: grid; gap: .7rem; margin: 1.2rem 0 1.4rem; }
.solve__list li { position: relative; padding-left: 1.5rem; color: var(--s-ink); font-weight: 600; }
.solve__list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--s-ink);
}
.solve__media img {
  display: block; width: 100%; height: auto; border-radius: var(--r-img);
  border: 1px solid var(--s-line);
}

/* ============================================================
   SERVICIOS  (carrusel, sección oscura con fondo arquitectónico)
   ============================================================ */
.svc-section { position: relative; overflow: hidden; background: var(--bg); }
.svc-bg { position: absolute; inset: 0; z-index: 0; }
.svc-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .16; }
.svc-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(14,15,18,.55) 38%, rgba(14,15,18,.7) 72%, var(--bg) 100%);
}
.svc-section > .container { position: relative; z-index: 1; }
/* Eyebrow con línea larga al lado (en vez de la línea corta inicial) */
.svc-section .eyebrow { display: flex; width: 100%; max-width: 520px; }
.svc-section .eyebrow::before { display: none; }
.svc-section .eyebrow::after {
  content: ""; flex: 1; height: 1px; margin-left: .9rem; align-self: center;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* Pista del carrusel */
.carousel { position: relative; margin-top: clamp(32px, 4vw, 48px); }
.carousel__track {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding-bottom: 6px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 2px solid var(--silver); outline-offset: 4px; border-radius: var(--r-card); }

/* Tarjeta de servicio — cuerpo BLANCO sobre la sección oscura */
.svc-card {
  flex: 0 0 calc((100% - 48px) / 3);   /* 3 visibles · 2 gaps de 24px */
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-card); overflow: hidden;
}
.svc-card__media { position: relative; aspect-ratio: 16 / 10; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-card__icon {
  position: absolute; left: 22px; bottom: -28px; z-index: 2;
  width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center;
  background: #14161B; border: 8px solid #fff;     /* stroke blanco de 8px */
}
.svc-card__icon img { width: 28px; height: 28px; object-fit: contain; }
.svc-card__body {
  display: flex; flex-direction: column; gap: .55rem; flex: 1;
  padding: 46px 26px 28px;
}
.svc-card__body h3 { font-size: 1.22rem; color: #14161B; }
.svc-card__body p { color: #5E6672; font-size: .92rem; flex: 1; }

/* Botón "Consultar mi caso" — liquid fill (izquierda → derecha) en hover.
   Default: botón blanco · borde negro · texto negro · círculo relleno negro + chevron blanco.
   Hover:   el relleno negro entra de izq. a der. → botón negro · texto blanco · círculo anillo blanco. */
.btn-case {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: .8rem; align-self: flex-start; margin-top: .9rem;
  padding: .55rem .55rem .55rem 1.15rem; border-radius: 8px;
  background: #fff; border: 1.5px solid #14161B;
  color: #14161B; font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  transition: color .4s var(--ease);
}
/* el relleno que "sube" de izquierda a derecha */
.btn-case::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #14161B; transform: scaleX(0); transform-origin: left center;
  transition: transform .65s var(--ease);
}
.btn-case__ic {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  border: 1.5px solid #14161B; background: #14161B;     /* default: círculo relleno negro */
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.btn-case__ic img { width: 10px; height: auto; }
.btn-case:hover { color: #fff; }
.btn-case:hover::before { transform: scaleX(1); }
.btn-case:hover .btn-case__ic { background: transparent; border-color: #fff; }

/* Navegación del carrusel */
.carousel__nav { display: flex; gap: 1rem; margin-top: clamp(28px, 4vw, 44px); }
.carousel__btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.4rem;
  border: 1px solid var(--line-strong); color: var(--text);
  background: var(--glass); transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast), opacity var(--t-fast);
}
.carousel__btn:hover:not(:disabled) { border-color: var(--silver); background: rgba(255,255,255,.08); transform: translateY(-2px); }
.carousel__btn:disabled { opacity: .3; cursor: not-allowed; }

/* ============================================================
   ETAPAS — acompañamiento por etapa (sección CLARA, imagen a la derecha)
   ============================================================ */
.etapas { position: relative; overflow: hidden; }
.etapas__content { position: relative; z-index: 1; max-width: 600px; }
.etapas__head { margin-bottom: clamp(22px, 3.4vw, 36px); }
.etapas__head p { margin-top: .9rem; font-size: clamp(1rem, 1.4vw, 1.1rem); }

.etapas__list { list-style: none; display: grid; margin-bottom: clamp(28px, 4vw, 40px); }
.etapa { display: flex; gap: 1.1rem; align-items: flex-start; padding: clamp(18px, 2.4vw, 26px) 0; }
.etapa + .etapa { border-top: 1px solid var(--s-line); }
.etapa__ic {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.45rem;
  border: 1.5px solid var(--s-ink); color: var(--s-ink); background: transparent;
  transition: background var(--t-fast), color var(--t-fast);
}
.etapa:hover .etapa__ic { background: var(--s-ink); color: #fff; }
.etapa__txt h3 { font-size: 1.18rem; margin-bottom: .35rem; color: var(--s-ink); }
.etapa__txt p { color: var(--s-muted); font-size: .94rem; }

/* Imagen sangrando al borde derecho, fundida a la izquierda con máscara */
.etapas__media { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; z-index: 0; }
.etapas__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}

/* ============================================================
   MÉTODO  (timeline de pasos, numerada y conectada)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step { position: relative; padding: 0 1.4rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 22px; right: -1px; width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), var(--line)); z-index: 0;
}
.step__num {
  position: relative; z-index: 1;
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 1.4rem;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  background: var(--bg); font-family: var(--font-display); font-weight: 800; color: var(--silver);
}
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step p { font-size: .94rem; }

/* ============================================================
   BENEFICIOS + ESTADÍSTICAS  (split texto + bento de métricas)
   ============================================================ */
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
.why__list { display: grid; gap: 1rem; margin-top: 1.6rem; }
.why__item { display: flex; gap: .85rem; align-items: flex-start; }
.why__item i { color: var(--silver); font-size: 1.3rem; flex: none; margin-top: 2px; }
.why__item b { font-family: var(--font-display); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  padding: clamp(1.4rem,2.4vw,2rem); border-radius: var(--r-card);
  border: 1px solid var(--line); background: var(--bg-elev);
}
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem,4vw,3rem); line-height: 1; }
.stat__label { color: var(--text-dim); font-size: .92rem; margin-top: .5rem; }
.stat--tall { grid-row: span 1; }

/* ============================================================
   MARQUEE  clientes (una sola por página)
   ============================================================ */
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
/* Dos grupos idénticos; cada uno llena el viewport (min-width:100%) y ambos se desplazan
   -100% en sincronía → loop infinito perfecto, sin saltos ni huecos. No reacciona al hover. */
.marquee__group {
  flex: 0 0 auto; min-width: 100%;
  display: flex; align-items: center; justify-content: space-around; gap: 3rem;
  animation: marquee-scroll 32s linear infinite;
}
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.clients__label { text-align: center; color: var(--s-muted); font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 2rem; }
.marquee__logo { height: 42px; width: auto; flex: none; object-fit: contain; opacity: .72; }
@media (prefers-reduced-motion: reduce) { .marquee__group { animation: none; } }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { position: relative; z-index: 1; }
.cta-band__inner {
  position: relative; overflow: hidden;
  border-radius: 0;
  padding: clamp(2.6rem, 6vw, 5rem) clamp(1.6rem, 5vw, 4rem);
  text-align: center;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, var(--bg-elev-2), var(--bg-soft));
}
.cta-band__inner::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(700px 300px at 50% -30%, rgba(199,204,209,.16), transparent 70%);
  pointer-events: none;
}
/* Imagen de fondo al 28% */
.cta-band__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .28; pointer-events: none;
}
.cta-band__content { position: relative; z-index: 2; }
.cta-band h2 { max-width: 18ch; margin: 0 auto 1rem; }
.cta-band p { max-width: 50ch; margin: 0 auto 2rem; }
.cta-band__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FAQ  (acordeón)
   ============================================================ */
.faq { display: grid; gap: 0; max-width: 820px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem 0; text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--text);
}
.faq__q i { color: var(--silver); font-size: 1.4rem; transition: transform var(--t); flex: none; }
.faq__item.is-open .faq__q i { transform: rotate(45deg); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height var(--t); }
.faq__a p { padding-bottom: 1.4rem; max-width: 70ch; }

/* ============================================================
   FORMULARIO  (para Contacto)
   ============================================================ */
.field { display: grid; gap: .5rem; margin-bottom: 1.1rem; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--text); }
.field input, .field select, .field textarea {
  background: var(--bg-soft); border: 1px solid var(--line-strong);
  border-radius: var(--r-input); padding: .85rem 1rem; color: var(--text);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--silver); background: var(--bg-elev); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 72px) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 48px); }
.footer h4 { font-family: var(--font-display); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1.2rem; }
.footer__links { display: grid; gap: .7rem; }
.footer__links a { color: var(--text-muted); font-size: .95rem; transition: color var(--t-fast); }
.footer__links a:hover { color: var(--text); }
.footer__brand p { font-size: .95rem; max-width: 34ch; margin-top: 1rem; }
.footer__contact { display: grid; gap: .8rem; }
.footer__contact a { display: flex; align-items: center; gap: .7rem; color: var(--text-muted); font-size: .95rem; }
.footer__contact i { color: var(--silver); font-size: 1.2rem; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: clamp(32px,4vw,56px); padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--text-dim); font-size: .85rem; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--text-muted); font-size: 1.2rem; transition: all var(--t-fast); }
.footer__social a:hover { color: var(--text); border-color: var(--silver); transform: translateY(-2px); }

/* WhatsApp flotante */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: var(--z-overlay);
  width: 58px; height: 58px; border-radius: var(--r-pill);
  display: grid; place-items: center; font-size: 1.8rem;
  background: #1FAE54; color: #fff;
  transition: transform var(--t-fast);
}
.wa-fab:hover { transform: scale(1.06); }

/* ============================================================
   REVEAL on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .footer__social a, .btn-case, .btn-case::before, .btn-case__ic { transition: none !important; }
  .carousel__track { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 28px; }
  .hero__visual { max-width: 480px; margin-inline: auto; }
  /* el texto pasa a ancho completo → velo más uniforme y oscuro para que se lea en cualquier zona */
  .hero::after {
    background: linear-gradient(180deg, rgba(14,15,18,.80) 0%, rgba(14,15,18,.62) 45%, rgba(14,15,18,.55) 100%);
  }
  .hero h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); text-wrap: balance; }
  .why__grid { grid-template-columns: 1fr; }
  .pains { grid-template-columns: repeat(2, 1fr); }   /* 3 → 2 columnas */
  .solve { grid-template-columns: 1fr; }              /* bloque destacado se apila */
  /* Etapas: la imagen deja de sangrar y se apila debajo del contenido */
  .etapas__content { max-width: none; }
  .etapas__media { position: static; width: 100%; margin-top: clamp(28px, 5vw, 40px); }
  .etapas__media img { position: static; height: auto; aspect-ratio: 16 / 9; -webkit-mask-image: none; mask-image: none; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 1rem; }
  .step:not(:last-child)::after { display: none; }
  .svc-card { flex-basis: calc((100% - 24px) / 2); }   /* 3 → 2 visibles */
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.menu-open .nav__links {
    display: flex; flex-direction: column; gap: 1.3rem;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    padding: 1.6rem 24px 2rem; background: rgba(14,15,18,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .nav.menu-open .nav__links a { font-size: 1.1rem; }
  .steps, .stats, .field--row { grid-template-columns: 1fr; }
  .pains { grid-template-columns: 1fr; }              /* 2 → 1 columna */
  .svc-card { flex-basis: 84%; }                      /* ~1 tarjeta + asomo de la siguiente */
  .footer__grid { grid-template-columns: 1fr; }
  .container { padding-inline: 20px; }
}