/* =============================================================
   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.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Superficies — Carbón Cálido (carbón cálido, nunca #000) */
  --bg:        #121110;
  --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 — UN solo color cálido (terracota apagada) */
  --accent:      #c56a4b;
  --accent-soft: #da8a6c;
  --accent-deep: #c06a45;
  --ink-on-accent: #1e1512;  /* texto sobre botón terracota */

  /* 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(192, 106, 69, 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; }
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(197,106,75,.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(192,106,69,.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(197,106,75,.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(197,106,75,.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(192,106,69,.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: .55rem .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);
}
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.hero-copy { max-width: 38rem; }
.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;
}
.hero-cta { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-note {
  margin-top: 1rem;
  font-size: clamp(.88rem, 1.4vw, .98rem);
  font-weight: 400; color: var(--text-mute);
  max-width: 42ch;
}

/* Visual del hero — maqueta del sistema */
.hero-visual { position: relative; padding: clamp(.5rem, 3vw, 1.6rem); }
.panel {
  position: relative; z-index: 2;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
    var(--bg-card);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .panel { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.panel-top {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1.1rem; border-bottom: 1px solid var(--line);
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-deep));
  color: var(--ink-on-accent); font-weight: 700; font-size: 1.05rem;
}
.chat-peer { display: flex; flex-direction: column; line-height: 1.2; }
.chat-peer-name { font-size: .95rem; font-weight: 600; color: var(--text); }
.chat-peer-status { font-size: .76rem; font-weight: 400; color: var(--text-mute); }

/* área de chat (más oscura que el header, estilo WhatsApp dark, en cálido) */
.panel-body {
  padding: 1rem; display: grid; gap: .5rem;
  background-color: #0f0c0a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23f2efea' stroke-opacity='0.05' stroke-width='1.1'%3E%3Ccircle cx='16' cy='16' r='4'/%3E%3Cpath d='M44 13v8M40 17h8'/%3E%3Ccircle cx='48' cy='48' r='3'/%3E%3Cpath d='M13 45l5 5M18 45l-5 5'/%3E%3C/g%3E%3C/svg%3E");
}
.chat {
  position: relative; max-width: 82%;
  padding: .5rem .7rem .4rem; border-radius: 10px;
  font-size: .9rem; line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0,0,0,.28);
}
.chat p { color: inherit; }
.chat-meta {
  margin-top: 2px; font-size: .62rem; color: var(--text-mute);
  display: flex; gap: 4px; align-items: center; justify-content: flex-end;
}
.ticks { width: 15px; height: 9px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* Candela (entrante, izquierda) — burbuja neutra; sistema (saliente, derecha) — terracota */
.chat--in {
  justify-self: start; border-top-left-radius: 3px;
  background: #211e1a; color: var(--text-soft);
}
.chat--out {
  justify-self: end; border-top-right-radius: 3px;
  background: #4a2c1d; color: var(--text);
}
/* colas (tails) estilo WhatsApp en la esquina superior anclada */
.chat--in::after {
  content: ""; position: absolute; top: 0; left: -6px;
  width: 9px; height: 12px; background: #211e1a;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
.chat--out::after {
  content: ""; position: absolute; top: 0; right: -6px;
  width: 9px; height: 12px; background: #4a2c1d;
  clip-path: polygon(0 0, 0 100%, 100% 0);
}
/* aviso de sistema (confirmación), centrado y en tono terracota (no verde) */
.panel-confirm {
  margin-top: .35rem; justify-self: center; max-width: 94%;
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .8rem; border-radius: 10px;
  background: rgba(132,160,109,.1); border: 1px solid rgba(132,160,109,.24);
  font-size: .76rem; color: var(--text-soft);
}
.panel-confirm svg {
  width: 17px; height: 17px; flex: none;
  fill: none; stroke: #84a06d; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

/* --- Animación del mock (Idea A): la conversación se contesta y agenda sola.
       Solo con JS; sin JS o con reduced-motion el mock se ve completo. Sin
       layout shift: los huecos quedan reservados, solo cambia la opacidad. --- */
.chat--out { position: relative; }
.js .panel-body .chat,
.js .panel-confirm { opacity: 0; transform: translateY(7px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.js .panel-body .chat.is-in,
.js .panel-confirm.is-in { opacity: 1; transform: none; }
/* burbuja de respuesta: el <p> reserva la altura; el "escribiendo" va por encima */
.js .chat--out > p,
.js .chat--out > .chat-meta { opacity: 0; transition: opacity .35s var(--ease-out); }
.js .chat--out.is-text > p,
.js .chat--out.is-text > .chat-meta { opacity: 1; }
.chat--out .typing {
  position: absolute; left: .7rem; top: .55rem;
  display: inline-flex; gap: 4px; align-items: center;
  opacity: 0; transition: opacity .25s var(--ease-out);
}
.js .chat--out.is-typing .typing { opacity: 1; }
.chat--out .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-soft); }
.js .chat--out.is-typing .typing i { animation: typingDot 1.2s ease-in-out infinite; }
.js .chat--out.is-typing .typing i:nth-child(2) { animation-delay: .18s; }
.js .chat--out.is-typing .typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* =============================================================
   9. Secciones genéricas
   ============================================================= */
.section { padding: clamp(3.5rem, 10vh, 7rem) 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);
}
/* Marquee horizontal infinito de rubros (reemplaza la grilla estática) */
.industries-marquee {
  position: relative;
  overflow: hidden;
  -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%);
}
.industries-track {
  display: flex;
  width: max-content;
  animation: industriesScroll 36s linear infinite;
  will-change: transform;
}
.industry {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  margin-right: clamp(.7rem, 2vw, .9rem);
  padding: clamp(.85rem, 2.4vw, 1.1rem) clamp(1.1rem, 3vw, 1.55rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 500; color: var(--text);
  font-size: clamp(1rem, 1.8vw, 1.15rem); line-height: 1.3;
  white-space: nowrap;
}
.industry svg {
  width: 1.2em; height: 1.2em; flex: none;
  fill: none; stroke: var(--accent); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Pausa al pasar el mouse (solo desktop con puntero) */
@media (hover: hover) {
  .industries-marquee:hover .industries-track { animation-play-state: paused; }
}
@keyframes industriesScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* 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(197,106,75,.4); border-radius: var(--radius);
  background: rgba(197,106,75,.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(197,106,75,.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.7rem, 4.4vw, 2.6rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.12; margin-top: .2rem;
}
.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(197,106,75,.4);
  box-shadow: var(--shadow-card);
}
.service-tag {
  align-self: flex-start;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 100px; margin-bottom: 1.2rem;
  color: var(--accent); background: rgba(197,106,75,.1); border: 1px solid rgba(197,106,75,.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(197,106,75,.1); border: 1px solid rgba(197,106,75,.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(197,106,75,.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(197,106,75,.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(197,106,75,.28);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(197,106,75,.13), transparent 60%),
    var(--bg-elev);
  box-shadow: var(--shadow-card);
}
.contact-title { font-size: clamp(2rem, 5.5vw, 3.2rem); 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(197,106,75,.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: .6rem; }
.footer-nav a { color: var(--text-soft); font-size: .94rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-contact { display: grid; gap: .6rem; align-content: start; }
.footer-contact a { 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; }

/* =============================================================
   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: 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: 1.05fr .95fr; }
  .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; }
  /* Mock del hero: mostrar completo, sin animar */
  .js .panel-body .chat,
  .js .panel-confirm { opacity: 1; transform: none; transition: none; }
  .js .chat--out > p,
  .js .chat--out > .chat-meta { opacity: 1; }
  .chat--out .typing { display: none; }
  /* Marquee de rubros: estático, sin animar */
  .industries-track { animation: none; }
}
