/* =============================================================
   KBH Studio — sitio de marca (agencia de IA + automatización)
   Dirección: dark premium, cálido. Un solo acento (ámbar).
   Inter como protagonista · IBM Plex Mono para etiquetas técnicas.
   Vibe: Linear / Stripe en modo oscuro, con calidez europea.
   ============================================================= */

/* =============================================================
   0. Fuentes — auto-hospedadas (antes Google Fonts, bloqueaba el
   render y era la principal causa de un LCP de ~3s). Un solo archivo
   variable para Inter cubre los 5 pesos; IBM Plex Mono solo usa 400/500.
   ============================================================= */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/inter-variable-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
}

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Superficies — Carbón Cálido (carbón cálido, nunca #000) */
  --bg:        #10130E;
  --bg-elev:   #1a1714;
  --bg-card:   #1c1a18;
  --bg-card-2: #221f1c;

  /* Texto */
  --text:      #f2efea;   /* blanco cálido */
  --text-soft: #c7c0b6;   /* secundario */
  --text-mute: #9c958b;   /* etiquetas / apoyo (AA sobre --bg) */

  /* Acento — naranja vibrante */
  --accent:      #F58220;
  --accent-soft: #FF9E45;
  --accent-deep: #D96A0E;
  --ink-on-accent: #1e1512;  /* texto sobre botón naranja */

  /* Líneas y vidrio */
  --line:        rgba(242, 239, 234, 0.10);
  --line-strong: rgba(242, 239, 234, 0.17);
  --glass:       rgba(255, 255, 255, 0.035);
  --glass-2:     rgba(255, 255, 255, 0.06);

  /* Sombras */
  --shadow-card: 0 24px 60px -34px rgba(0, 0, 0, 0.85);
  --shadow-cta:  0 16px 38px -14px rgba(245, 130, 32, 0.55);
  --shadow-pop:  0 30px 80px -40px rgba(0, 0, 0, 0.9);

  /* Forma */
  --radius:    16px;
  --radius-lg: 24px;
  --radius-pill: 100px;
  --container: 1140px;

  /* Tipografía */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Easings */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --header-h: 68px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
h4, h5 { text-wrap: balance; }
strong { color: var(--text); font-weight: 600; }
::selection { background: var(--accent); color: var(--ink-on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed; top: -120px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--accent); color: var(--ink-on-accent);
  z-index: 9999; border-radius: 10px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* anclas no quedan tapadas por el header sticky */
section[id], main[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

/* =============================================================
   3. Utilidades
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 5vw, 2.5rem);
}
.container--narrow { max-width: 760px; }
.center { text-align: center; }
.accent { color: var(--accent); }

/* =============================================================
   4. Fondo decorativo
   ============================================================= */
.bg {
  position: fixed; inset: 0; z-index: -2;
  overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -20%, #1a130d 0%, transparent 55%),
    var(--bg);
}
.bg-glow {
  position: absolute; border-radius: 50%;
  filter: blur(110px); opacity: .5;
}
.bg-glow--1 {
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  top: -22vw; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%, rgba(245,130,32,.30), transparent 70%);
}
.bg-glow--2 {
  width: 50vw; height: 50vw; max-width: 620px; max-height: 620px;
  bottom: -18vw; right: -10vw;
  background: radial-gradient(circle at 50% 50%, rgba(245,130,32,.16), transparent 70%);
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(242,239,234,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242,239,234,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 70%);
}
.bg-grain {
  position: absolute; inset: 0; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============================================================
   5. Tipografía de apoyo
   ============================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-weight: 500;
  font-size: .78rem; letter-spacing: .04em;
  color: var(--text-mute);
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(245,130,32,.16);
}
.kicker {
  font-family: var(--mono); font-weight: 500;
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-head { max-width: 620px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head.center { margin-inline: auto; }
.section-title {
  font-size: clamp(1.75rem, 4.4vw, 2.85rem);
  line-height: 1.05;
}
.section-lead {
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--text-soft);
  max-width: 54ch;
}

/* check / cross reutilizables */
.tick {
  flex: none; width: 19px; height: 19px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 11px; line-height: 1; font-weight: 700;
  background: rgba(245,130,32,.16); color: var(--accent);
}
.tick::before { content: "\2713"; }

/* =============================================================
   6. Botones
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: .95rem 1.4rem; min-height: 48px;
  border-radius: var(--radius-pill);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out),
              background .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.btn-primary {
  color: var(--ink-on-accent);
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 45%, var(--accent-deep) 100%);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -14px rgba(245,130,32,.65); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: var(--glass);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-soft); background: var(--glass-2); }
.btn-sm { min-height: 44px; padding: .7rem 1.1rem; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: 1.1rem 1.7rem; font-size: 1.04rem; }
.ico-wa { width: 1.3em; height: 1.3em; fill: currentColor; flex: none; }
.ico-arrow { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* =============================================================
   7. Header / nav
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), backdrop-filter .3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(16, 12, 10, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; width: 100%;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; flex: none; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); display: block; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name {
  font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; color: var(--text);
}
.brand-sup {
  font-weight: 500; color: var(--text-mute); letter-spacing: -.01em;
}

.nav { display: none; }
.nav-list { display: flex; align-items: center; gap: .35rem; }
.nav-list a {
  display: inline-block; padding: .62rem .8rem; border-radius: 8px;
  font-size: .92rem; font-weight: 500; color: var(--text-soft);
  transition: color .2s var(--ease-out), background .2s var(--ease-out);
}
.nav-list a:hover { color: var(--text); background: var(--glass); }
.nav-list a.is-active { color: var(--accent); }

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line-strong);
}
.nav-toggle-bar {
  display: block; width: 20px; height: 2px; margin-inline: auto;
  background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s var(--ease-out);
}
.site-header.menu-open .nav-toggle-bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.site-header.menu-open .nav-toggle-bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
  background: rgba(16, 12, 10, 0.97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 1rem clamp(1.15rem, 5vw, 2.5rem) 1.6rem;
  display: grid; gap: 1.1rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: grid; gap: .2rem; }
.mobile-menu a:not(.btn) {
  display: block; padding: .85rem .4rem; font-size: 1.05rem; font-weight: 500;
  color: var(--text-soft); border-bottom: 1px solid var(--line);
}
.mobile-menu a:not(.btn):hover { color: var(--accent); }
.mobile-menu .btn { width: 100%; }

/* =============================================================
   8. Hero
   ============================================================= */
.hero {
  position: relative;
  padding: clamp(3rem, 9vh, 6rem) 0 clamp(3.5rem, 9vh, 6rem);
  overflow: hidden;
}
.hero-net {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.hero .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-net { display: none; }
}
/* Timeline vertical con línea de scroll animada (estilo "Cómo trabajamos") */
.etl { max-width: 760px; margin: 3rem auto 0; position: relative; }
.etl-line {
  position: absolute; left: 33px; width: 3px;
  background: rgba(245, 130, 32, 0.15); border-radius: 3px; overflow: hidden;
}
.etl-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent-deep));
  box-shadow: 0 0 18px rgba(245, 130, 32, 0.55);
}
.etl-fill.intro { transition: height 1.7s cubic-bezier(.45,0,.2,1); }
@media (max-width: 520px) { .etl-line { left: 27px; } }
.estep { display: flex; gap: 26px; padding: 22px 0; position: relative; }
.enode {
  flex: 0 0 auto; width: 68px; height: 68px; border-radius: 50%;
  background: var(--bg-elev, #1a1714); border: 2px solid rgba(245, 130, 32, 0.32);
  display: flex; align-items: center; justify-content: center;
  color: rgba(245, 130, 32, 0.55); z-index: 2;
  transition: .5s cubic-bezier(.2,.8,.2,1);
}
.enode svg { width: 30px; height: 30px; }
.estep.act .enode {
  border-color: var(--accent);
  color: #1e1512;
  background: radial-gradient(circle at 50% 32%, var(--accent-soft), var(--accent-deep));
  box-shadow: 0 0 0 6px rgba(245, 130, 32, 0.12), 0 0 32px rgba(245, 130, 32, 0.5);
  transform: scale(1.07);
}
.eb { padding-top: 9px; opacity: .6; transform: translateX(8px); transition: .55s cubic-bezier(.2,.8,.2,1); }
.estep.act .eb { opacity: 1; transform: none; }
.eb .st { font-size: 12px; letter-spacing: .22em; color: var(--accent); text-transform: uppercase; }
.eb h3 { font-weight: 700; font-size: 22px; margin: 4px 0 8px; }
.eb p { color: var(--text-soft, #9a948c); font-size: 14.5px; line-height: 1.6; max-width: 520px; }
@media (max-width: 520px) {
  .enode { width: 56px; height: 56px; }
  .enode svg { width: 24px; height: 24px; }
  .estep { gap: 18px; }
  .eb h3 { font-size: 20px; }
}

/* Constelación del ecosistema (logo KBH en el centro + 7 nodos) */
.eco { text-align: center; }
.eco-head { max-width: 40rem; margin: 0 auto; }
.eco-sub { color: var(--text-soft, #9a948c); margin-top: .6rem; }
/* Aviso "tocá un punto": para que la constelación no se lea como solo decorativa. Punto que titila + texto sutil. */
.eco-hint {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: .9rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em;
  color: var(--accent-soft, #FF9E45);
}
.eco-hint-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent, #F58220); flex: none;
  animation: ecoHintPulse 1.8s ease-in-out infinite;
}
@keyframes ecoHintPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 130, 32, .55); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(245, 130, 32, 0); opacity: .65; }
}
.constelacion {
  position: relative;
  width: min(88vw, 560px);
  height: min(88vw, 560px);
  margin: 3rem auto 0;
}
.eco-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.eco-lines line { stroke: rgba(245, 130, 32, 0.18); stroke-width: 1.5; transition: stroke .3s; }
.eco-lines line.active { stroke: rgba(245, 130, 32, 0.6); }

.eco-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--bg-elev, #1a1714);
  border: 2px solid rgba(245, 130, 32, 0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); z-index: 3;
  box-shadow: 0 0 40px rgba(245, 130, 32, 0.25);
}
.eco-hub svg { width: 38px; height: 38px; }

.eco-node {
  position: absolute; width: 76px; height: 76px; border-radius: 50%;
  background: var(--bg-elev, #1a1714); border: 2px solid rgba(245, 130, 32, 0.28);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; z-index: 2;
  transition: .35s cubic-bezier(.2,.8,.2,1);
  color: rgba(245, 130, 32, 0.6);
  font: inherit; padding: 0; appearance: none;
}
.eco-node:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.eco-node svg { width: 24px; height: 24px; }
.eco-node span { font-size: 10.5px; font-weight: 600; color: var(--text-soft, #9a948c); line-height: 1.15; text-align: center; }
.eco-node:hover, .eco-node.active {
  border-color: var(--accent);
  color: #1e1512;
  background: radial-gradient(circle at 50% 32%, var(--accent-soft), var(--accent-deep));
  box-shadow: 0 0 0 6px rgba(245, 130, 32, 0.12), 0 0 28px rgba(245, 130, 32, 0.45);
  transform: scale(1.08);
}
.eco-node.active span, .eco-node:hover span { color: #1e1512; }
/* Titileo lento tipo "hay algo acá" (videojuegos): solo en el primer nodo, hasta el primer click
   en CUALQUIER nodo — después queda igual que los demás para siempre. */
.eco-node.pulse {
  animation: ecoNodePulse 2.6s ease-in-out infinite;
}
.eco-node.pulse:hover, .eco-node.pulse.active { animation: none; }
@keyframes ecoNodePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 130, 32, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(245, 130, 32, 0), 0 0 26px 3px rgba(245, 130, 32, 0.6); }
}

.eco-card {
  position: absolute;
  top: 50%; left: 50%;
  width: min(86%, 380px); padding: 1.5rem 1.6rem;
  border-radius: 1rem;
  background: rgba(22, 19, 16, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 130, 32, 0.3);
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  text-align: left; z-index: 5;
  opacity: 0; transform: translate(-50%, -46%) scale(.96);
  transition: .38s cubic-bezier(.2,.8,.2,1); pointer-events: none;
}
.eco-card.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.eco-card h3 { font-size: 1.35rem; margin: .1rem 0 .45rem; line-height: 1.15; }
.eco-card p { color: var(--text-soft, #9a948c); font-size: .95rem; line-height: 1.55; }
/* Badge tipo pastilla arriba de la tarjeta */
.eco-card-badge {
  display: inline-block; margin-bottom: .7rem;
  padding: .32rem .7rem; border-radius: 999px;
  background: rgba(245, 130, 32, 0.14);
  border: 1px solid rgba(245, 130, 32, 0.4);
  color: var(--accent, #F58220);
  font-family: var(--mono); font-size: .64rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
/* Boton cerrar (X) arriba a la derecha */
.eco-card-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--text-soft, #9a948c);
  cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.eco-card-close svg { width: 15px; height: 15px; }
@media (hover: hover) {
  .eco-card-close:hover { color: var(--accent); border-color: var(--accent); background: rgba(245,130,32,.1); }
}
/* Barra de progreso / metrica */
.eco-metric { margin-top: 1.3rem; }
.eco-metric-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: .5rem;
}
.eco-metric-head span { color: var(--text-soft, #9a948c); font-size: .82rem; }
.eco-metric-head strong { color: var(--text, #f4efe7); font-size: .92rem; font-weight: 700; }
.eco-metric-bar {
  height: 6px; border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,.08);
}
.eco-metric-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep, #D96A0E), var(--accent, #F58220));
  transition: width 1s cubic-bezier(.2,.8,.2,1);
}

/* =============================================================
   Diagrama "Así responde tu asistente": mensaje del cliente → IA "piensa" →
   aparecen los servicios que hicieron posible la respuesta → confirma.
   Se dispara con el botón (flow-trigger), no en loop automático.
   ============================================================= */
.flow { text-align: center; }
.flow .product-title { max-width: 40rem; margin: 0 auto 1rem; }

.flow-stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 1.6rem;
  max-width: 720px; margin: 2.5rem auto 0;
}
@media (min-width: 880px) {
  .flow-stage {
    flex-direction: row; align-items: center; justify-content: space-between;
    max-width: 1000px; min-height: 140px; gap: 0;
    /* .flow-services va position:absolute debajo del stage — este margen le reserva el
       espacio real en el flujo normal del documento, para que el botón de abajo no se
       superponga con esa fila. */
    margin-bottom: 4.6rem;
  }
}

.flow-node {
  position: relative;
  width: 108px; height: 108px; border-radius: 14px; flex: none;
  border: 1.5px solid rgba(245, 130, 32, 0.4);
  background: linear-gradient(160deg, rgba(245, 130, 32, 0.05), rgba(0,0,0,0.3));
  display: flex; align-items: center; justify-content: center;
  color: rgba(245, 130, 32, 0.7); z-index: 3;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  transition: border-color .4s, color .4s, box-shadow .4s;
}
.flow-node-lbl { font-size: .72rem; line-height: 1.35; text-align: center; }
.flow-node--ia { width: 122px; height: 122px; }
.flow-node.is-filling {
  border-color: #FFB066; color: #FFF9F0;
  box-shadow: 0 0 40px rgba(245, 130, 32, 0.55), inset 0 0 20px rgba(245, 130, 32, 0.3);
  background: linear-gradient(160deg, rgba(245, 130, 32, 0.28), rgba(0,0,0,0.3));
}
/* Pulso creciente: mientras la IA "piensa", el glow crece y decrece en loop */
@keyframes flowIaPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(245, 130, 32, 0.35), inset 0 0 10px rgba(245, 130, 32, 0.15); }
  50% { box-shadow: 0 0 55px rgba(245, 130, 32, 0.85), inset 0 0 26px rgba(245, 130, 32, 0.4); }
}
.flow-node.is-thinking {
  border-color: #FFB066; color: #FFF9F0;
  animation: flowIaPulse 1.1s ease-in-out infinite;
}

.flow-connector {
  position: relative;
  width: 3px; height: 46px;
  background: rgba(245, 130, 32, 0.1);
}
@media (min-width: 880px) {
  .flow-connector { flex: 1; width: auto; height: 2px; margin: 0 4px; }
}
.flow-beam {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: linear-gradient(180deg, transparent, var(--accent, #F58220), transparent);
  box-shadow: 0 0 12px rgba(245, 130, 32, 0.6);
  transition: height .9s cubic-bezier(.4,0,.2,1);
}
@media (min-width: 880px) {
  .flow-beam {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, transparent, var(--accent, #F58220), transparent);
    transition: width .9s cubic-bezier(.4,0,.2,1);
  }
}
.flow-connector.is-active .flow-beam { height: 100%; }
@media (min-width: 880px) {
  .flow-connector.is-active .flow-beam { width: 100%; }
}

.flow-bubble {
  /* .flow-node es un cuadrado chico (108px) con display:flex + justify-content:center —
     con position:relative esta burbuja quedaba como flex item más, centrada ENCIMA del
     nodo y los tags de abajo en vez de debajo. Con absolute + top:100% sale del flujo
     del flex del nodo y se ancla debajo, sin importar el ancho. */
  position: absolute; top: calc(100% + .8rem); left: 50%;
  transform: translateX(-50%) translateY(8px) scale(.92);
  width: min(88vw, 230px);
  background: var(--bg-elev, #1a1714);
  border: 1px solid var(--accent, #F58220);
  border-radius: 14px 14px 4px 14px;
  padding: .65rem .9rem;
  font-size: .78rem; line-height: 1.35;
  color: var(--text, #f4efe7); text-align: left;
  opacity: 0;
  transition: opacity .4s, transform .4s;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  pointer-events: none;
  z-index: 5;
}
.flow-bubble--system { border-radius: 14px 14px 14px 4px; }
.flow-bubble.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.flow-bubble-tag {
  display: block; margin-bottom: .2rem;
  color: var(--accent, #F58220); font-weight: 600; font-size: .66rem;
}
@media (min-width: 880px) {
  .flow-bubble {
    position: absolute; top: -6.6rem; left: 50%; transform: translateX(-50%) translateY(8px) scale(.92);
    margin: 0;
  }
  .flow-bubble.show { transform: translateX(-50%) translateY(0) scale(1); }
}

.flow-services {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem;
  margin-top: .5rem;
  transition: margin-top .3s;
}
@media (max-width: 879.98px) {
  /* La burbuja del último nodo es absolute (no reserva espacio en el flex column) —
     mientras está mostrándose, empujamos estos tags para que no se tapen. */
  .flow-stage:has(#flowBubbleSystem.show) .flow-services { margin-top: 5.5rem; }
}
@media (min-width: 880px) {
  .flow-services {
    position: absolute; left: 50%; top: 100%; margin-top: 2.4rem;
    transform: translateX(-50%);
    flex-wrap: nowrap;
  }
}
.flow-service {
  font-size: 1.1rem; font-weight: 800; white-space: nowrap;
  /* Verde (no naranja de marca): diferencia visualmente "lo que la IA logró" del resto del diagrama. */
  color: #7CFFB2;
  text-shadow: 0 0 24px rgba(60, 220, 140, 0.55);
  opacity: 0; transform: translateY(14px) scale(.85);
  transition: opacity .5s, transform .5s;
}
.flow-service.show { opacity: 1; transform: translateY(0) scale(1); }

.flow-trigger {
  margin-top: 3rem;
  white-space: nowrap;
}
@media (min-width: 880px) {
  .flow-trigger { margin-top: 1.4rem; }
}

.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; justify-items: center; }
.hero-copy { max-width: 54rem; text-align: center; }
.hero-title {
  margin-top: 1.2rem;
  font-size: clamp(2.7rem, 9vw, 4.6rem);
  line-height: 1.0; letter-spacing: -.04em; font-weight: 800;
}
.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 2vw, 1.27rem);
  color: var(--text-soft); max-width: 34rem; margin-left: auto; margin-right: auto;
}
.hero-cta { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.hero-note {
  margin-top: 1rem;
  font-size: clamp(.88rem, 1.4vw, .98rem);
  font-weight: 400; color: var(--text-mute);
  max-width: 42ch;
}

/* =============================================================
   9. Secciones genéricas
   ============================================================= */
.section { padding: clamp(2.5rem, 6vh, 4.5rem) 0; position: relative; }

/* =============================================================
   9b. Franja "Funciona para" (rubros, sin animación)
   ============================================================= */
.industries {
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.industries-eyebrow {
  font-family: var(--mono); font-weight: 400; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute);
  margin-bottom: clamp(1.2rem, 3vw, 1.8rem);
}
/* Carrusel horizontal infinito de rubros. Se mueve solo (JS) y ademas se puede
   arrastrar con mouse o dedo. El movimiento lo controla main.js, no CSS. */
.industries-marquee {
  position: relative;
  overflow-x: clip;               /* recorta los costados horizontales... */
  overflow-y: visible;            /* ...pero deja que la tarjeta sobresalga arriba/abajo al hover */
  padding: clamp(1.6rem, 4vw, 2.6rem) 0;   /* aire para que la tarjeta agrandada no se corte */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  cursor: grab;
  touch-action: pan-y;            /* deja hacer scroll vertical, captura el horizontal */
  -webkit-user-select: none; user-select: none;
}
.industries-marquee.is-dragging { cursor: grabbing; }
.industries-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.industries-track img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.industry-card {
  position: relative;
  flex: none;
  width: clamp(220px, 26vw, 300px);
  aspect-ratio: 4 / 5;
  margin-right: clamp(.9rem, 2vw, 1.2rem);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  transition: transform .4s var(--ease-out), opacity .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
}
/* Hover: la tarjeta bajo el mouse crece y se destaca; el resto se atenua.
   Solo en dispositivos con puntero real (no molesta en tactil). */
@media (hover: hover) {
  .industries-marquee:hover .industry-card { opacity: .4; transform: scale(.94); }
  .industries-marquee .industry-card:hover {
    opacity: 1;
    transform: scale(1.18) translateY(-10px);
    z-index: 3;
    border-color: var(--accent);
    box-shadow: 0 30px 70px rgba(0,0,0,.65), 0 0 0 1px var(--accent);
  }
}
.industry-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter .4s var(--ease-out);
}
@media (hover: hover) {
  .industries-marquee:hover .industry-card img { filter: saturate(.6) brightness(.82); }
  .industries-marquee .industry-card:hover img { filter: none; }
}
.industry-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.82) 100%);
}
.industry-card-copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(1rem, 2.4vw, 1.4rem);
  color: #fff;
}
.industry-card-copy h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700; margin: 0 0 .3rem;
}
.industry-card-copy span {
  display: block;
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
/* banner CTA bajo la grilla (resaltado en acento, click → WhatsApp) */
.industries-cta {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  max-width: 640px; margin: .8rem auto 0;
  padding: clamp(.9rem, 2.5vw, 1.15rem) 1.2rem;
  border: 1px solid rgba(245,130,32,.4); border-radius: var(--radius);
  background: rgba(245,130,32,.08);
  color: var(--accent-soft); font-weight: 600; text-align: center;
  font-size: clamp(.95rem, 1.6vw, 1.05rem);
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.industries-cta .ico-arrow-r {
  width: 1.05em; height: 1.05em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s var(--ease-out);
}
@media (hover: hover) {
  .industries-cta:hover { background: rgba(245,130,32,.14); border-color: var(--accent); transform: translateY(-2px); }
  .industries-cta:hover .ico-arrow-r { transform: translateX(3px); }
}

/* =============================================================
   10. Manifiesto
   ============================================================= */
.manifesto { text-align: center; padding-block: clamp(4rem, 11vh, 7.5rem); }
.manifesto-title {
  font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 800; letter-spacing: -.035em;
  line-height: 1.02; margin-bottom: 1.2rem;
}
.manifesto-lead {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--text-soft);
  max-width: 30ch; margin-inline: auto;
}
.manifesto-close {
  margin-top: 2rem; font-family: var(--mono); font-size: .92rem; letter-spacing: .02em;
  color: var(--text-mute);
}

/* =============================================================
   10b. El día a día (pausa / reconocimiento del problema, sin CTA)
   ============================================================= */
.daily-title {
  font-size: clamp(1.75rem, 4.4vw, 2.85rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.12; margin-top: .2rem;
}
/* Sin kicker arriba: el título es el primer elemento, sin hueco huérfano */
.daily-title--lead { margin-top: 0; }
.daily-body {
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  font-size: clamp(1.1rem, 1.95vw, 1.38rem);
  font-weight: 500; color: var(--text-soft); line-height: 1.5;
  max-width: 42ch;
}
.daily-close {
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text-mute);
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
}

/* =============================================================
   11. Servicios
   ============================================================= */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.service {
  position: relative;
  padding: 1.7rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--glass-2), transparent 60%), var(--bg-card);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.service--live:hover {
  transform: translateY(-4px);
  border-color: rgba(245,130,32,.4);
  box-shadow: var(--shadow-card);
}
.service-tag {
  align-self: flex-start;
  font-family: var(--mono); font-size: .69rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 100px; margin-bottom: 1.2rem;
  color: var(--accent); background: rgba(245,130,32,.1); border: 1px solid rgba(245,130,32,.28);
}
.service-tag--soon { color: var(--text-mute); background: rgba(242,239,234,.05); border-color: var(--line-strong); }
.service-ico {
  width: 48px; height: 48px; border-radius: 13px; margin-bottom: 1.1rem;
  display: grid; place-items: center;
  background: rgba(245,130,32,.1); border: 1px solid rgba(245,130,32,.2);
}
.service-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 1.22rem; margin-bottom: .55rem; }
.service > p { color: var(--text-soft); font-size: .96rem; }
.service-feats { margin-top: 1.1rem; display: grid; gap: .5rem; }
.service-feats li {
  position: relative; padding-left: 1.4rem;
  font-size: .9rem; color: var(--text-soft);
}
.service-feats li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700; font-size: .85rem;
}
.service-link {
  margin-top: auto; padding-top: 1.3rem;
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .94rem; color: var(--accent);
}
.service-link .ico-arrow-r { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.service-link:hover .ico-arrow-r { transform: translateX(4px); }

/* Próximamente — marcado aparte */
.service--soon {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
}
.service--soon .service-ico { background: rgba(242,239,234,.04); border-color: var(--line); }
.service--soon .service-ico svg { stroke: var(--text-mute); }
.service--soon h3 { color: var(--text-soft); }
.service--soon > p { color: var(--text-mute); }

/* =============================================================
   12. Proceso
   ============================================================= */
.steps { display: grid; grid-template-columns: 1fr; gap: 1rem; counter-reset: step; }
.step {
  padding: 1.6rem 1.5rem; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--bg-card);
}
.step-num {
  font-family: var(--mono); font-size: .9rem; font-weight: 500;
  color: var(--accent); letter-spacing: .04em;
  display: inline-block; margin-bottom: .9rem;
  padding-bottom: .3rem; border-bottom: 1px solid rgba(245,130,32,.3);
}
.step h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.step p { color: var(--text-soft); font-size: .94rem; }

/* =============================================================
   12b. Franja de garantías (sutil, sin sección dedicada)
   ============================================================= */
.trust-strip { padding: clamp(0.5rem, 2vw, 1rem) 0; }
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .8rem 2.2rem;
  padding: clamp(1.1rem, 3vw, 1.5rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-row li {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .95rem; color: var(--text-mute);
}
.trust-row strong { color: var(--text-soft); }

/* =============================================================
   13. Por qué KBH
   ============================================================= */
.why-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.why-lead {
  margin-top: 1.3rem; font-size: clamp(1.05rem, 1.9vw, 1.22rem);
  color: var(--text-soft); max-width: 40ch;
}

/* Por qué KBH — diferenciadores en columna de tarjetas (sin comparación) */
.why-points { display: grid; gap: .7rem; }
.why-points li {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-soft); font-size: 1rem; line-height: 1.45;
}
.why-points .tick { margin-top: .12rem; }

/* =============================================================
   14. Nosotros
   ============================================================= */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.about-visual { order: -1; }
.about-card {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 1.8rem;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(100% 80% at 20% 10%, rgba(245,130,32,.22), transparent 55%),
    linear-gradient(150deg, #20180f 0%, #14100c 70%);
  box-shadow: var(--shadow-card);
}
.about-mark {
  font-weight: 800; font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -.03em;
  color: rgba(242,239,234,.12);
  line-height: 1.05;
}
.about-route {
  font-family: var(--mono); font-size: .92rem; color: var(--text-soft);
  display: inline-flex; align-items: center; gap: .5rem;
}
.about-arrow { color: var(--accent); }
.about-text { margin-top: 1.2rem; color: var(--text-soft); font-size: clamp(1rem, 1.7vw, 1.1rem); max-width: 50ch; }
.about-text + .about-text { margin-top: 1rem; }

/* =============================================================
   15. FAQ
   ============================================================= */
.faq-list { display: grid; gap: .8rem; }
.faq-item {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-card);
  transition: border-color .25s var(--ease-out);
}
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1.2rem 1.3rem; min-height: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 600; font-size: 1.04rem; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-weight: 400; font-size: 1.5rem; line-height: 1;
  color: var(--accent); transition: transform .3s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.3rem 1.3rem; }
.faq-body p { color: var(--text-soft); }

/* =============================================================
   16. Contacto
   ============================================================= */
.contact-card {
  text-align: center;
  padding: clamp(2.4rem, 6vw, 4.2rem) clamp(1.4rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245,130,32,.28);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(245,130,32,.13), transparent 60%),
    var(--bg-elev);
  box-shadow: var(--shadow-card);
}
.contact-title { font-size: clamp(1.75rem, 4.4vw, 2.85rem); font-weight: 800; letter-spacing: -.035em; margin-top: .2rem; }
.contact-sub { margin: 1rem auto 2rem; max-width: 46ch; color: var(--text-soft); font-size: 1.08rem; }
.contact-mail { margin-top: 1.4rem; font-size: .92rem; color: var(--text-mute); }
.contact-mail a { color: var(--accent); border-bottom: 1px solid rgba(245,130,32,.4); }
.contact-mail a:hover { color: var(--accent-soft); }

/* =============================================================
   17. Footer
   ============================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(2.6rem, 6vw, 3.6rem) 0 2rem;
  margin-top: clamp(2rem, 6vw, 4rem);
}
.footer-inner {
  display: grid; gap: 2rem;
  padding-bottom: 2.2rem; border-bottom: 1px solid var(--line);
}
.footer-tagline { margin-top: 1rem; color: var(--text-soft); font-size: 1rem; max-width: 24ch; }
.footer-nav ul { display: grid; gap: 0; }
.footer-nav a { display: block; padding-block: .6rem; color: var(--text-soft); font-size: .94rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-contact { display: grid; gap: 0; align-content: start; }
.footer-contact a { display: block; padding-block: .6rem; color: var(--text-soft); font-size: .94rem; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  padding-top: 1.6rem;
}
.footer-copy, .footer-made { font-size: .85rem; color: var(--text-mute); }

/* =============================================================
   18. FAB — WhatsApp flotante (visible en todos los breakpoints)
   ============================================================= */
.fab {
  position: fixed; right: clamp(1rem, 3vw, 1.8rem); bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 200;
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 56px; padding: .9rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 600; color: var(--ink-on-accent);
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 45%, var(--accent-deep) 100%);
  box-shadow: var(--shadow-cta);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), opacity .25s var(--ease-out), visibility .25s var(--ease-out);
}
.fab svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.fab:hover { transform: translateY(-2px) scale(1.02); }
.fab-label { font-size: .95rem; }
/* Estado oculto: el FAB se aparta cuando un botón de WhatsApp ya está en pantalla (no tapa nada) */
.fab.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(14px) scale(.92); }
.js .fab { animation: fabIn .5s var(--ease-out) .4s both; }
@keyframes fabIn { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }

/* =============================================================
   19. Reveal (solo con JS — sin JS, todo se ve)
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
/* stagger sutil dentro de grillas */
.js .services-grid .reveal:nth-child(2) { transition-delay: .06s; }
.js .services-grid .reveal:nth-child(3) { transition-delay: .12s; }
.js .services-grid .reveal:nth-child(4) { transition-delay: .18s; }
.js .services-grid .reveal:nth-child(5) { transition-delay: .24s; }
.js .steps .reveal:nth-child(2) { transition-delay: .06s; }
.js .steps .reveal:nth-child(3) { transition-delay: .12s; }
.js .steps .reveal:nth-child(4) { transition-delay: .18s; }
/* Franja "Aplica a": entrada escalonada. La etiqueta y el CTA usan el reveal del
   sitio; los chips entran UNO POR UNO (keyframes) para que la animacion se note. */
.js .industries-eyebrow.reveal { transition-delay: 0s; }
.js .industries-cta.reveal     { transition-delay: .6s; }
/* El contenedor del marquee no se desliza: el movimiento lo hacen los chips */
.js .industries-marquee.reveal { opacity: 1; transform: none; }
/* Tarjetas ocultas hasta que la franja entra al viewport, despues pop-in escalonado */
.js .industries-marquee.reveal .industry-card { opacity: 0; }
.js .industries-marquee.reveal.is-visible .industry-card { animation: chipIn .55s var(--ease-out) both; }
.js .industries-marquee.reveal.is-visible .industry-card:nth-child(1) { animation-delay: .12s; }
.js .industries-marquee.reveal.is-visible .industry-card:nth-child(2) { animation-delay: .20s; }
.js .industries-marquee.reveal.is-visible .industry-card:nth-child(3) { animation-delay: .28s; }
.js .industries-marquee.reveal.is-visible .industry-card:nth-child(4) { animation-delay: .36s; }
.js .industries-marquee.reveal.is-visible .industry-card:nth-child(5) { animation-delay: .44s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* =============================================================
   20. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 880px) {
  /* Antes pasaba a 3 columnas recién en 960px — una ventana partida a la mitad de un
     monitor ancho (~960px menos el scrollbar) se quedaba trabada en 2 columnas. */
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .hero-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: .9fr 1.1fr; }
  .about-visual { order: 0; }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* En pantallas chicas, el FAB muestra solo el ícono */
@media (max-width: 539px) {
  .fab-label { display: none; }
  .fab { padding: 0; width: 56px; justify-content: center; }
  /* Zona segura al final para que el FAB no tape el contenido del pie */
  body { padding-bottom: 5rem; }
}

/* =============================================================
   21. Reduced-motion — solo lo intrusivo (bucles de fondo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-dot, .fab { animation: none; }
  .js .fab { opacity: 1; transform: none; }
  /* Marquee de rubros: estático, sin animar */
  .industries-track { animation: none; }
  /* Franja "Aplica a": entrada instantánea (sin fade/slide, sin pop-in de chips) */
  .js .industries-eyebrow.reveal,
  .js .industries-marquee.reveal,
  .js .industries-cta.reveal { opacity: 1; transform: none; transition: none; }
  .js .industries-marquee.reveal .industry-card { opacity: 1; animation: none; }
}

/* =============================================================
   22. Media frame — marco reutilizable para capturas reales
   ============================================================= */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 40px 90px -34px rgba(0, 0, 0, 0.85),
    0 0 90px -26px rgba(245, 130, 32, 0.30);   /* glow naranja sutil */
}
.media-frame img { display: block; width: 100%; height: auto; }

/* =============================================================
   23. Aurelia — panel/producto (métricas IG + herramientas IA)
   ============================================================= */
.aurelia-lead {
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  max-width: 52ch;
}
.aurelia-shot { margin: clamp(1.8rem, 4.5vw, 2.8rem) auto 0; max-width: 1000px; }
.aurelia-personalize {
  margin: 1rem auto 0;
  max-width: 40ch;
  text-align: center;
  font-family: var(--mono);
  font-size: clamp(.74rem, 1.3vw, .82rem);
  letter-spacing: .02em;
  color: var(--text-mute);
}
.aurelia-personalize .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: .5rem; vertical-align: middle;
}
.aurelia-callouts {
  list-style: none;
  margin: clamp(1.8rem, 4.5vw, 2.6rem) auto 0;
  display: grid; grid-template-columns: 1fr; gap: .9rem;
}
.callout {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--glass);
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.callout-ico {
  flex: none; width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(245, 130, 32, 0.35);
  background: rgba(245, 130, 32, 0.10);
}
.callout-ico svg {
  width: 1.3rem; height: 1.3rem;
  fill: none; stroke: var(--accent); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.callout > div { min-width: 0; }   /* permite que el texto envuelva y no desborde */
.callout h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: .2rem; }
.callout p { font-size: .92rem; color: var(--text-soft); line-height: 1.45; overflow-wrap: break-word; }
@media (hover: hover) {
  .callout:hover { border-color: var(--line-strong); transform: translateY(-2px); }
}
@media (min-width: 680px) {
  .aurelia-callouts { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .aurelia-callouts { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   24. Productos (el bot + el panel, lado a lado)
   ============================================================= */
.productos-grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 2.6rem);
  margin-top: clamp(1.8rem, 4.5vw, 2.6rem);
}
.product { display: flex; flex-direction: column; align-items: center; }
.product-chat { width: 100%; max-width: 400px; }
.product .media-frame { width: 100%; }
.product-label {
  margin-top: 1rem; text-align: center;
  font-size: clamp(.95rem, 1.6vw, 1.05rem); font-weight: 600; color: var(--text);
}
.productos-note {
  margin: clamp(1.6rem, 4vw, 2.2rem) auto 0; max-width: 40ch;
  text-align: center; font-family: var(--mono);
  font-size: clamp(.74rem, 1.3vw, .82rem); letter-spacing: .02em; color: var(--text-mute);
}
.productos-note .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: .5rem; vertical-align: middle;
}
@media (min-width: 880px) {
  .productos-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 4vw, 3rem); }
}

/* =============================================================
   25. Productos — filas alternadas (bot + panel) con copy
   ============================================================= */
.product-row {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(1.8rem, 5vw, 2.6rem);
  align-items: center;
  margin-top: clamp(2.6rem, 6vw, 4.5rem);
}
.product-eyebrow {
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-soft);
  margin-bottom: .8rem;
}
.product-title {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem); font-weight: 700;
  line-height: 1.14; letter-spacing: -.02em; margin-bottom: 1rem;
}
.product-sub {
  color: var(--text-soft); font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.6; max-width: 46ch; margin-bottom: 1.4rem;
}
.product-bullets { list-style: none; display: grid; gap: .7rem; }
.product-bullets li {
  display: flex; align-items: center; gap: .6rem;
  color: var(--text); font-weight: 500;
}
.mp-badge {
  display: inline-flex; align-items: center;
  padding: .12rem .5rem; border-radius: 6px;
  background: #009ee3; color: #fff; font-size: .74rem; font-weight: 600;
}
.product-callouts { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; }
.product-callouts li {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-size: .9rem; font-weight: 500; color: var(--text-soft); background: var(--glass);
}
.product-callouts li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.product-row__media .media-frame { width: 100%; aspect-ratio: 1388 / 821; background: var(--bg-elev); }
.product-row__media .media-frame img { height: 100%; object-fit: contain; }
.product-row__media .product-chat { width: 100%; max-width: 420px; margin-inline: auto; }
@media (min-width: 880px) {
  .product-row { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4rem); }
  .product-row--media-left { grid-template-columns: 1.4fr 1fr; }   /* dashboard más grande */
  .product-row--media-left .product-row__media { order: -1; }
}

/* =============================================================
   26. Botones de WhatsApp — verde WhatsApp oscurecido (#0D8049, no el
   #25D366 oficial): con texto blanco el oficial da 1.98:1 de contraste
   (ilegible al sol); este mide 5.0:1 y se sigue leyendo como WhatsApp.
   ============================================================= */
.fab,
.btn-primary[data-wa],
.btn-ghost[data-wa] {
  background: #0D8049;
  color: #fff;
  border-color: #0D8049;
  box-shadow: 0 16px 38px -14px rgba(13, 128, 73, 0.5);
}
.fab:hover,
.btn-primary[data-wa]:hover,
.btn-ghost[data-wa]:hover {
  background: #0b6d3e;
  border-color: #0b6d3e;
  color: #fff;
  box-shadow: 0 22px 46px -14px rgba(13, 128, 73, 0.6);
}

/* =============================================================
   27. Panel Aurelia — réplica en HTML/CSS (reemplaza la captura)
   Imita el dashboard real con la paleta KBH (carbón + naranja).
   Autocontenido, responsive, solo variables del sistema.
   ============================================================= */
.dash {
  padding: clamp(1rem, 2.6vw, 1.6rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 88% 0%, rgba(245, 130, 32, 0.07), transparent 58%),
    var(--bg-elev);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 40px 90px -34px rgba(0, 0, 0, 0.85),
    0 0 90px -26px rgba(245, 130, 32, 0.30);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}

/* — Encabezado — */
.dash-head {
  display: flex; flex-direction: column; gap: 1rem;
  padding-bottom: 1.2rem; margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}
.dash-eyebrow {
  font-family: var(--mono); font-size: .69rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute);
}
.dash-eyebrow::before {
  content: ""; display: inline-block; width: 14px; height: 1px;
  background: var(--accent); vertical-align: middle; margin-right: .5rem;
}
/* Aclaración anti-humo: el panel es un mockup, no un cliente real (nunca solo en aria-label) */
.dash-demo-tag {
  display: inline-block; vertical-align: middle; margin-left: .5rem;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .18rem .5rem; border-radius: var(--radius-pill);
  color: var(--text-mute); background: rgba(242,239,234,.05); border: 1px solid var(--line-strong);
}
.dash-title {
  margin-top: .5rem;
  font-size: clamp(1.3rem, 3.4vw, 1.7rem); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.1;
}
.dash-subtitle {
  font-style: italic; color: var(--text-mute);
  font-size: .82rem; margin-top: .2rem;
}
.dash-head-side {
  display: flex; flex-direction: column; align-items: flex-start; gap: .6rem;
}
.dash-refresh {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .7rem; border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 130, 32, 0.32); background: rgba(245, 130, 32, 0.08);
  color: var(--accent-soft); font-size: .72rem; font-weight: 500; white-space: nowrap;
}
.dash-refresh svg {
  width: .82rem; height: .82rem; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.dash-period {
  display: grid; gap: 1px; text-align: left;
  padding: .45rem .8rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--glass);
}
.dash-period-label {
  font-family: var(--mono); font-size: .69rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-mute);
}
.dash-period-month { font-weight: 600; font-size: .9rem; color: var(--text); }

@media (min-width: 560px) {
  .dash-head { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 1.4rem; }
  .dash-head-main { min-width: 0; }
  /* Pill + badge apilados y del mismo ancho → bloque prolijo, y deja al título en una línea */
  .dash-head-side { flex-direction: column; align-items: stretch; gap: .5rem; flex: none; }
  .dash-refresh { justify-content: center; }
  .dash-period { text-align: right; }
}

/* — Tarjetas KPI — */
.dash-kpis { display: grid; gap: .6rem; margin-bottom: .6rem; }
.dash-kpis--3 { grid-template-columns: 1fr; }
.dash-kpis--4 { grid-template-columns: 1fr 1fr; }
.dash-kpi {
  position: relative; min-width: 0;
  padding: .8rem .8rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--glass);
}
.dash-kpi-label {
  font-family: var(--mono); font-size: .69rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-mute);
}
.dash-kpi-value {
  display: block; margin: .35rem 0 .3rem;
  font-weight: 700; letter-spacing: -.03em; line-height: 1;
}
/* Jerarquía: la fila 1 (métricas clave) más protagonista; la fila 2, de apoyo */
.dash-kpis--3 .dash-kpi-value { font-size: clamp(1.5rem, 3.6vw, 1.85rem); }
.dash-kpis--4 .dash-kpi-value { font-size: clamp(1.12rem, 2.7vw, 1.35rem); }
.dash-kpi-delta {
  font-size: .69rem; color: var(--text-mute);
  display: inline-flex; align-items: center; gap: .3rem; overflow-wrap: anywhere;
}
.dash-kpi-delta.up { color: var(--accent-soft); }
.dash-kpi-delta.up::before {
  content: ""; flex: none; width: 0; height: 0;
  border-left: 3px solid transparent; border-right: 3px solid transparent;
  border-bottom: 5px solid currentColor;
}
.dash-spark {
  position: absolute; right: .7rem; top: .75rem; width: 62px; height: 26px;
  overflow: visible;
}
.dash-spark-area { fill: var(--accent); opacity: .15; }
.dash-spark-line {
  fill: none; stroke: var(--accent); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.dash-spark-dot { fill: var(--accent); stroke: var(--bg-elev); stroke-width: 1.5; }

@media (min-width: 640px) {
  .dash-kpis--3 { grid-template-columns: repeat(3, 1fr); }
  .dash-kpis--4 { grid-template-columns: repeat(4, 1fr); }
}

/* — Herramientas IA — */
.dash-tools-head { margin: 1.6rem 0 .8rem; }
.dash-tools-head .dash-eyebrow { display: inline-block; }
.dash-tools-title {
  margin-top: .45rem;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem); font-weight: 700; letter-spacing: -.01em;
}
.dash-tools { display: grid; gap: .6rem; grid-template-columns: 1fr; }
.dash-tool {
  display: flex; flex-direction: column; min-width: 0;
  padding: .85rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--glass);
}
.dash-tool-ico {
  width: 2rem; height: 2rem; display: grid; place-items: center; margin-bottom: .6rem;
  border-radius: 10px; border: 1px solid rgba(245, 130, 32, 0.32);
  background: rgba(245, 130, 32, 0.10);
}
.dash-tool-ico svg {
  width: 1.05rem; height: 1.05rem; fill: none; stroke: var(--accent);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.dash-tool-name { font-weight: 600; font-size: .92rem; }
.dash-tool-desc { margin-top: .25rem; font-size: .72rem; color: var(--text-soft); line-height: 1.45; }
.dash-tool-link {
  margin-top: .7rem; font-family: var(--mono); font-size: .69rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute);
}

@media (min-width: 640px) {
  .dash-tools { grid-template-columns: repeat(3, 1fr); }
}

/* — Pie "datos de muestra" — */
.dash-foot {
  margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .69rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-mute);
}
.dash-foot::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: .45rem; vertical-align: middle;
}

/* =============================================================
   23. Rediseño 2026-06 — más visual e interactivo
   ============================================================= */

/* Variables gold (solo para el CTA de rubros, único elemento dorado) */
:root {
  --gold:        #e8c879;
  --gold-deep:   #c9a14a;
  --gold-light:  #f3dd95;
  --ink-on-gold: #241c08;
}

/* — Barra de progreso de scroll — */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 8px rgba(245, 130, 32, .55);
  pointer-events: none; will-change: width;
}

/* — Hero: chips de garantía — */
.hero-chips {
  list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  margin: 1.3rem 0 .2rem; padding: 0; justify-content: center;
}
.hero-chips li {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--text-soft); font-size: .95rem;
}
.js .hero-chips.reveal li { opacity: 0; }
.js .hero-chips.reveal.is-visible li { animation: chipIn .55s var(--ease-out) both; }
.js .hero-chips.reveal.is-visible li:nth-child(1) { animation-delay: .1s; }
.js .hero-chips.reveal.is-visible li:nth-child(2) { animation-delay: .2s; }

/* — Panel (sub-2): layout vertical, título arriba + panel ancho — */
.product-row--stack { display: block; text-align: center; }
.product-row--stack .product-row__copy { max-width: 820px; margin: 0 auto 2.4rem; }
.product-row--stack .product-row__media { max-width: 1000px; margin: 0 auto; text-align: left; }
.product-row--stack .dash { max-width: 100%; }
.dash-tools--compact .dash-tool { flex-direction: row; align-items: center; gap: .6rem; padding: .65rem .85rem; }
.dash-tools--compact .dash-tool-ico { margin-bottom: 0; }
.js .product-row--stack .product-title { opacity: 0; }
.js .product-row--stack.is-visible .product-title { animation: titleIn .7s var(--ease-out) forwards; }
.js .product-row--stack .dash { opacity: 0; }
.js .product-row--stack.is-visible .dash { animation: panelIn .9s var(--ease-out) .15s forwards; }
.js .product-row--stack.is-visible .dash .dash-kpi,
.js .product-row--stack.is-visible .dash .dash-tool { opacity: 0; animation: kpiIn .6s ease forwards; }
.js .product-row--stack.is-visible .dash .dash-kpi:nth-child(1) { animation-delay: .5s; }
.js .product-row--stack.is-visible .dash .dash-kpi:nth-child(2) { animation-delay: .62s; }
.js .product-row--stack.is-visible .dash .dash-kpi:nth-child(3) { animation-delay: .74s; }
.js .product-row--stack.is-visible .dash .dash-tool:nth-child(1) { animation-delay: .86s; }
.js .product-row--stack.is-visible .dash .dash-tool:nth-child(2) { animation-delay: .96s; }
.js .product-row--stack.is-visible .dash .dash-tool:nth-child(3) { animation-delay: 1.06s; }
@keyframes titleIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(40px) scale(.96); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes kpiIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (hover: hover) { .dash:hover { box-shadow: 0 30px 70px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(245,130,32,.2); } }

/* — Comparativa "A mano / Con sistema" — */
.vs { display: grid; gap: 16px; margin-top: 1.8rem; }
.vs-card {
  padding: 1.4rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--glass); text-align: left;
}
.vs-card--new { border-color: rgba(245,130,32,.4); }
.vs-head { font-weight: 700; margin-bottom: .9rem; }
.vs-card--old .vs-head { color: var(--text-mute); }
.vs-card--new .vs-head { color: var(--accent); }
.vs-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.vs-list li { display: flex; align-items: center; gap: .6rem; color: var(--text-soft); font-size: .94rem; }
.vs-x { flex: none; width: 18px; height: 18px; display: inline-grid; place-items: center; color: var(--text-mute); font-weight: 700; }
.vs-x::before { content: "\2715"; font-size: .85rem; }
.js .vs.reveal .vs-card { opacity: 0; transition: opacity .65s ease, transform .65s var(--ease-out); }
/* Mobile (1 columna): entran desde abajo para no desbordar el viewport */
.js .vs.reveal .vs-card--old,
.js .vs.reveal .vs-card--new { transform: translateY(18px); }
.js .vs.reveal.is-visible .vs-card { opacity: 1; transform: none; }
/* Desktop (2 columnas): entran desde lados opuestos */
@media (min-width: 720px) {
  .vs { grid-template-columns: 1fr 1fr; }
  .js .vs.reveal .vs-card--old { transform: translateX(-24px); }
  .js .vs.reveal .vs-card--new { transform: translateX(24px); }
}

/* — Servicios: ícono circular, desplegable, hover premium — */
.service { position: relative; transition: transform .3s var(--ease-out), border-color .3s ease, box-shadow .3s ease; }
.service::after {
  content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .35s ease;
}
@media (hover: hover) {
  .service:hover {
    transform: translateY(-6px); border-color: rgba(245,130,32,.55);
    box-shadow: 0 18px 40px -18px rgba(0,0,0,.7), 0 0 0 1px rgba(245,130,32,.18);
  }
  .service:hover::after { opacity: .9; }
  .service:hover .service-ico--round { transform: scale(1.12) rotate(-4deg); border-color: rgba(245,130,32,.6); background: rgba(245,130,32,.18); }
  .service:hover .service-link { color: var(--accent-soft); }
  .service:hover .service-link svg { transform: translateX(5px); }
}
.service-ico--round {
  width: 52px; height: 52px; border-radius: 50%;
  transition: transform .35s var(--ease-out), border-color .3s ease, background .3s ease;
}
.service-link svg { transition: transform .25s ease; }
.service-more { margin: 1rem 0 .2rem; }
.service-more > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 1rem; min-height: 44px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--glass);
  font-size: .9rem; font-weight: 600; transition: background .25s ease, border-color .25s ease;
}
.service-more > summary::-webkit-details-marker { display: none; }
.service-more > summary::after {
  content: "+"; flex: none; color: var(--accent); font-size: 1.4rem; line-height: 1; font-weight: 400;
  transition: transform .3s var(--ease-out);
}
.service-more[open] > summary::after { transform: rotate(45deg); }
@media (hover: hover) { .service-more > summary:hover { background: var(--glass-2); border-color: var(--line-strong); } }
.service-more-body { padding: .9rem .2rem 0; }
.service-more-body > p { color: var(--text-soft); font-size: .92rem; }

/* — Proceso: círculos con íconos conectados por línea — */
.steps--flow {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.steps-line {
  position: absolute; top: 26px; left: 12%; right: 12%; height: 1px;
  background: rgba(245,130,32,.35); transform: scaleX(0); transform-origin: left center;
  transition: transform .9s ease .15s;
}
.js .steps--flow.is-visible .steps-line { transform: scaleX(1); }
.steps--flow .step {
  border: none; background: transparent; text-align: center; padding: 0 .9rem; position: relative;
}
.step-ico {
  position: relative; z-index: 1; display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(245,130,32,.5); background: var(--bg-elev);
}
.step-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.steps--flow .step-num { display: block; margin: .8rem 0 .2rem; padding-bottom: 0; border-bottom: 0; }
.steps--flow .step h3 { font-size: 1.05rem; margin: .15rem 0 .4rem; }
.steps--flow .step p { color: var(--text-soft); font-size: .9rem; }
.js .steps--flow .step-ico { opacity: 0; }
.js .steps--flow.is-visible .step-ico { animation: stepPop .55s var(--ease-out) both; }
.js .steps--flow.is-visible .step:nth-child(2) .step-ico { animation-delay: .15s; }
.js .steps--flow.is-visible .step:nth-child(3) .step-ico { animation-delay: .3s; }
.js .steps--flow.is-visible .step:nth-child(4) .step-ico { animation-delay: .45s; }
.js .steps--flow.is-visible .step:nth-child(5) .step-ico { animation-delay: .6s; }
@keyframes stepPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .steps--flow { grid-template-columns: 1fr; gap: 1.4rem; text-align: left; }
  .steps--flow .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 1rem; align-items: center; padding: 0; }
  .steps--flow .step-ico { grid-row: span 3; }
  .steps-line { display: none; }
  .steps--flow .step-num { margin: 0; }
}

/* — Botón "Preguntá por tu rubro": DORADO — */
.industries-cta {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--gold); border-color: rgba(212,175,90,.55);
  transition: color .3s ease, transform .25s ease, border-color .3s ease;
  animation: goldShimmer 3.2s ease-in-out infinite;
}
.industries-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, var(--gold-deep) 0%, var(--gold-light) 45%, #d4af5a 100%);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
@media (hover: hover) {
  .industries-cta:hover {
    color: var(--ink-on-gold); transform: translateY(-2px);
    border-color: rgba(233,207,134,.9); animation: none;
  }
  .industries-cta:hover::before { transform: scaleX(1); }
  .industries-cta:hover svg { transform: translateX(5px); }
}
.industries-cta svg { transition: transform .3s ease; }
@keyframes goldShimmer {
  0%, 100% { box-shadow: 0 0 0 1px rgba(212,175,90,.45), 0 0 0 0 rgba(212,175,90,0); }
  50% { box-shadow: 0 0 0 1px rgba(212,175,90,.85), 0 0 26px 3px rgba(212,175,90,.3); }
}

/* — Scroll reveal con bullets escalonados (why-points + comparativa vs) — */
@keyframes bulletIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* Por qué KBH: los 5 checks entran uno por uno */
.js .why-points.reveal li { opacity: 0; }
.js .why-points.reveal.is-visible li { animation: bulletIn .55s var(--ease-out) both; }
.js .why-points.reveal.is-visible li:nth-child(1) { animation-delay: .05s; }
.js .why-points.reveal.is-visible li:nth-child(2) { animation-delay: .15s; }
.js .why-points.reveal.is-visible li:nth-child(3) { animation-delay: .25s; }
.js .why-points.reveal.is-visible li:nth-child(4) { animation-delay: .35s; }
.js .why-points.reveal.is-visible li:nth-child(5) { animation-delay: .45s; }
/* Comparativa "A mano / Con sistema": además del slide de las tarjetas, los ítems escalonados */
.js .vs.reveal .vs-list li { opacity: 0; }
.js .vs.reveal.is-visible .vs-list li { animation: bulletIn .5s var(--ease-out) both; }
.js .vs.reveal.is-visible .vs-list li:nth-child(1) { animation-delay: .25s; }
.js .vs.reveal.is-visible .vs-list li:nth-child(2) { animation-delay: .35s; }
.js .vs.reveal.is-visible .vs-list li:nth-child(3) { animation-delay: .45s; }

/* — Reduced motion para lo nuevo — */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .service, .service-ico--round, .service-link svg, .service::after,
  .dash, .industries-cta, .industries-cta::before, .industries-cta svg { transition: none; animation: none; }
  .js .product-row--stack .product-title,
  .js .product-row--stack .dash,
  .js .product-row--stack .dash .dash-kpi,
  .js .product-row--stack .dash .dash-tool,
  .js .steps--flow .step-ico,
  .js .hero-chips.reveal li,
  .js .vs.reveal .vs-card,
  .js .why-points.reveal li,
  .js .vs.reveal .vs-list li { opacity: 1; transform: none; animation: none; filter: none; }
  .flow-node.is-thinking { animation: none; }
  .flow-bubble, .flow-service { transition: none; }
  .eco-hint-dot { animation: none; opacity: 1; }
  .eco-node.pulse { animation: none; }
  .steps-line { transform: scaleX(1); }
}
