/* ==========================================================================
   GEBENZ — estilos
   Paleta monocromática (como el logo) con un acento cobalto.
   El bot vendedor usa un acento por línea de servicio (--accent).
   ========================================================================== */
:root {
  --paper: #edede8;
  --paper-2: #fafaf7;
  --ink: #000;
  --steel: #5d6168;
  --signal: #2e4bff;
  --signal-ink: #fff;
  --accent: #7b93ff;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--steel);
  --line: rgba(0, 0, 0, 0.13);

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 18px;
}
body.is-dark {
  --bg: #000;
  --fg: #f2f2ee;
  --muted: #9a9ea6;
  --line: rgba(255, 255, 255, 0.15);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.55;
  background: var(--bg); color: var(--fg);
  transition: background-color 0.7s var(--ease), color 0.7s var(--ease);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--signal); color: #fff; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--ink); color: #fff; padding: 0.7rem 1rem; border-radius: 10px; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Textos animados: ocultos hasta que JS los prepara (con seguro de 6 s) */
html.js [data-hero], html.js [data-split] { visibility: hidden; }
html.fx-timeout [data-hero], html.fx-timeout [data-split] { visibility: visible !important; }
.line { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.word { will-change: transform; }

/* ---------- Botones ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0.85rem 1.55rem; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn-sm { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.94rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0.3rem 0; text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }

/* ---------- Preloader --------------------------------------------------- */
#preloader { position: fixed; inset: 0; z-index: 150; background: #000; clip-path: inset(0 0 0% 0); display: grid; place-content: center; justify-items: center; gap: 1.6rem; }
.pre-logo { width: 88px; height: 88px; border-radius: 22px; }
.pre-line { width: 160px; height: 2px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.pre-line i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
html.fx-timeout #preloader { display: none; }

/* ---------- Cursor de proyectos ----------------------------------------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 120; width: 104px; height: 104px; margin: -52px 0 0 -52px;
  border-radius: 50%; background: var(--signal); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 0.95rem; pointer-events: none; transform: scale(0);
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Navegación -------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 90; display: flex; align-items: center; gap: 2rem;
  padding: 0.85rem var(--gutter);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform 0.5s var(--ease), border-color 0.3s, background-color 0.7s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-105%); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 1.8rem; margin-left: auto; font-weight: 500; }
.nav-links a { text-decoration: none; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; place-content: center; gap: 6px; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; transition: transform 0.4s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 80; background: #000; color: #f2f2ee; padding: 7rem var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: 0.6rem; visibility: hidden; opacity: 0; transition: opacity 0.4s, visibility 0.4s;
}
.menu.open { visibility: visible; opacity: 1; }
.menu a:not(.btn) { font-size: clamp(2rem, 9vw, 3rem); font-weight: 800; letter-spacing: -0.04em; text-decoration: none; }
.menu .btn { margin-top: auto; background: #fff; color: #000; border-color: #fff; }

/* ---------- Hero -------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center; min-height: 100svh; padding: 7.5rem var(--gutter) 3.5rem; max-width: 1440px; margin: 0 auto;
}
.hero h1 { font-size: clamp(3.1rem, 6.6vw, 7rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.058em; max-width: 10.5ch; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.3rem); color: var(--muted); max-width: 46ch; line-height: 1.5; }
.hero .lead { margin-top: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-place { margin-top: 1.6rem; font-size: 0.95rem; color: var(--muted); }

/* ---------- Bot vendedor ------------------------------------------------ */
.bot {
  position: relative; display: flex; flex-direction: column; height: clamp(580px, 76vh, 720px);
  background: #000; color: #f2f2ee; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.55);
  clip-path: inset(0% 0% 0% 0% round 36px);
}
.bot-head { display: flex; align-items: center; gap: 0.8rem; padding: 1.1rem 1.2rem 0.9rem; }
.bot-head img { width: 40px; height: 40px; border-radius: 11px; }
.bot-id { display: grid; line-height: 1.25; }
.bot-id strong { font-weight: 700; }
.bot-id small { display: flex; align-items: center; gap: 0.4rem; color: #9a9ea6; font-size: 0.82rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.18); }
.bot-reset { margin-left: auto; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; border-radius: 999px; padding: 0.4rem 0.85rem; font-size: 0.85rem; color: #c9ccd2; transition: border-color 0.3s, color 0.3s; }
.bot-reset:hover { border-color: var(--accent); color: #fff; }
.bot-progress { height: 2px; background: rgba(255, 255, 255, 0.1); }
.bot-progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.bot-log {
  flex: 1 1 0; min-height: 110px; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 0.55rem; padding: 1.1rem 1.1rem 0.6rem;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.msg { max-width: 88%; padding: 0.72rem 0.95rem; border-radius: 18px; font-size: 0.97rem; line-height: 1.45; overflow-wrap: anywhere; }
.msg-bot { align-self: flex-start; background: #19191b; border-bottom-left-radius: 6px; }
.msg-user { align-self: flex-end; background: var(--accent); color: #000; font-weight: 500; border-bottom-right-radius: 6px; }
.msg-typing { display: flex; gap: 4px; padding: 0.9rem 1rem; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8d9198; animation: typing 1.1s infinite ease-in-out; }
.msg-typing i:nth-child(2) { animation-delay: 0.15s; }
.msg-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }

.quote { display: grid; gap: 0.55rem; min-width: min(300px, 70vw); }
.quote small { color: #9a9ea6; font-size: 0.82rem; }
.quote-range { font-size: clamp(1.45rem, 2.4vw, 1.85rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.quote-was { color: #8d9198; font-size: 0.9rem; }
.quote-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.quote-tags span { font-size: 0.78rem; padding: 0.22rem 0.6rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #d6d8dc; }
.quote-includes { display: grid; gap: 0.3rem; font-size: 0.9rem; }
.quote-includes li { padding-left: 1.3rem; position: relative; }
.quote-includes li::before { content: ""; position: absolute; left: 0.1rem; top: 0.5em; width: 0.6rem; height: 0.32rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.quote-note { font-size: 0.8rem; color: #8d9198; }

.bot-chips { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0.35rem 1.1rem 0.8rem; max-height: 46%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.bot-chips:empty { padding: 0; }
.chip {
  flex: 1 1 100%; display: grid; gap: 0.1rem; text-align: left; padding: 0.62rem 0.9rem; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; color: #f2f2ee;
  transition: border-color 0.25s, background-color 0.25s, transform 0.35s var(--ease);
}
.chip:hover:not(:disabled), .chip:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); transform: translateX(3px); }
.chip-label { font-weight: 600; font-size: 0.94rem; }
.chip-sub { font-size: 0.8rem; color: #9a9ea6; }
.chip-primary { background: var(--accent); border-color: var(--accent); color: #000; }
.chip-primary:hover:not(:disabled), .chip-primary:focus-visible { background: #fff; border-color: #fff; color: #000; transform: none; }
.chips-compact .chip, .chip:only-child { flex: 0 1 auto; border-radius: 999px; padding: 0.5rem 0.9rem; }

.bot-input { display: flex; gap: 0.5rem; padding: 0.7rem 0.9rem 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.bot-input input { flex: 1; min-width: 0; background: #141416; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 0.75rem 1.1rem; color: #f2f2ee; }
.bot-input input::placeholder { color: #7d8189; }
.bot-input input:focus { outline: none; border-color: var(--accent); }
.bot-input button { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: #000; display: grid; place-items: center; transition: transform 0.3s var(--ease); }
.bot-input button:hover { transform: scale(1.06); }

/* ---------- Franja en movimiento ---------------------------------------- */
.ticker { background: #000; color: #f2f2ee; overflow: hidden; padding: 1.15rem 0; }
.ticker-track { display: flex; width: max-content; white-space: nowrap; }
.ticker-track span { display: inline-flex; align-items: center; font-size: clamp(1.4rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; padding-right: 1.6rem; }
.ticker-track span::after { content: ""; width: 0.42em; height: 0.42em; margin-left: 1.6rem; border-radius: 50%; background: var(--signal); }

/* ---------- Secciones genéricas ----------------------------------------- */
.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.h-section { font-size: clamp(2.4rem, 5.4vw, 5.4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; max-width: 15ch; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-dark { background: #000; color: #f2f2ee; --muted: #9a9ea6; --line: rgba(255, 255, 255, 0.15); }
html.theme-fx .section-dark { background: transparent; color: inherit; }

/* ---------- Declaración + datos ------------------------------------------ */
.statement { max-width: 1440px; margin: 0 auto; padding: clamp(5rem, 11vw, 10rem) var(--gutter) clamp(3rem, 6vw, 5rem); }
.statement-text { font-size: clamp(1.8rem, 4.3vw, 4.2rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.035em; max-width: 24ch; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: clamp(3.5rem, 8vw, 7rem); }
.facts > div { border-top: 1.5px solid var(--fg); padding-top: 1.1rem; }
.facts dt { font-size: clamp(3rem, 6.5vw, 6rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts dd { color: var(--muted); margin-top: 0.6rem; max-width: 22ch; }

/* ---------- Empresas con las que hemos trabajado ---------------------- */
.trust { margin-top: clamp(3.5rem, 7vw, 6rem); display: grid; gap: 1.4rem; }
.trust-title { color: var(--muted); font-weight: 500; }
.trust-list { display: flex; flex-wrap: wrap; gap: 0.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-list li {
  flex: 1 1 auto; padding: 1.4rem 1.6rem; text-align: center;
  font-size: clamp(1.35rem, 2.6vw, 2.3rem); font-weight: 800; letter-spacing: -0.045em; white-space: nowrap;
  color: color-mix(in srgb, var(--fg) 42%, transparent); transition: color 0.4s var(--ease);
}
.trust-list li + li { border-left: 1px solid var(--line); }
.trust-list li:hover { color: var(--fg); }
@media (max-width: 760px) {
  .trust-list li { flex: 1 1 50%; padding: 1rem; }
  .trust-list li + li { border-left: 0; }
}

/* Logos de empresas: en gris, a color al pasar el cursor */
.trust-list img { height: clamp(26px, 3vw, 38px); width: auto; margin: 0 auto; filter: grayscale(1) contrast(1.15); opacity: 0.55; transition: filter 0.4s, opacity 0.4s; }
.trust-list img.logo-bachoco { height: clamp(32px, 3.6vw, 46px); }
.trust-list li { display: flex; align-items: center; justify-content: center; }
.trust-list li:hover img { filter: none; opacity: 1; }

/* ---------- Botón flotante de WhatsApp ---------------------------------- */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 85; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.15rem 0.8rem 0.95rem; border-radius: 999px; background: #1f9d55; color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 16px 34px -14px rgba(31, 157, 85, 0.75); transition: transform 0.4s var(--ease), background-color 0.3s;
}
.wa-float:hover { transform: translateY(-3px); background: #178a49; }
.wa-float.is-away { opacity: 0; transform: translateY(20px) scale(0.9); pointer-events: none; }
.wa-float { transition: transform 0.4s var(--ease), background-color 0.3s, opacity 0.3s; }
.promo-raffle { font-size: 0.92rem; font-weight: 700; color: inherit; }

/* ---------- Etapas ------------------------------------------------------ */
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.stage { position: relative; display: flex; flex-direction: column; gap: 1.1rem; min-height: 540px; padding: clamp(1.6rem, 2.6vw, 2.4rem); border-radius: var(--r-xl); overflow: hidden; }
.stage-1 { background: var(--paper-2); color: var(--ink); }
.stage-2 { background: var(--signal); color: #fff; }
.stage-3 { background: #000; color: #f2f2ee; }
.stage-n { font-size: clamp(5rem, 9vw, 8rem); font-weight: 900; line-height: 0.8; letter-spacing: -0.07em; opacity: 0.16; }
.stage h3 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-top: auto; }
.stage p { opacity: 0.8; }
.stage ul { display: grid; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 25%, transparent); }
.stage li { padding-left: 1.4rem; position: relative; font-weight: 500; }
.stage li::before { content: "+"; position: absolute; left: 0; font-weight: 800; }
.stage .btn { align-self: flex-start; margin-top: 0.6rem; }
.stage-1 .btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.stage-2 .btn-light:hover { background: #000; border-color: #000; }

/* ---------- Acordeones (servicios y FAQ) -------------------------------- */
.acc-item { border-top: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 52px; align-items: center; gap: 1.5rem; padding: 1.6rem 0; text-align: left; background: none; border: 0; }
.acc-title { font-weight: 800; letter-spacing: -0.045em; line-height: 1; transition: transform 0.5s var(--ease), color 0.3s; }
.services .acc-title { font-size: clamp(1.8rem, 4.6vw, 4.4rem); }
.services .acc-head:hover .acc-title { transform: translateX(0.6rem); color: var(--signal); }
.acc-hint { color: var(--muted); font-size: 0.98rem; }
.acc-icon { position: relative; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); transition: background-color 0.3s, border-color 0.3s, transform 0.5s var(--ease); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: currentColor; transition: transform 0.5s var(--ease); }
.acc-icon::after { transform: rotate(90deg); }
.is-open .acc-icon { background: var(--fg); border-color: var(--fg); color: var(--bg); transform: rotate(180deg); }
.is-open .acc-icon::after { transform: rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.is-open > .acc-panel { grid-template-rows: 1fr; }
.acc-body { min-height: 0; overflow: hidden; }
.svc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.svc-list li { display: grid; gap: 0.35rem; padding: 1.3rem; border-radius: var(--r-md); background: var(--paper-2); }
.svc-list span { color: var(--muted); font-size: 0.95rem; }
.services .acc-body > .btn { margin-bottom: 2rem; }

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq .acc-title { font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.faq .acc-head { grid-template-columns: minmax(0, 1fr) 44px; padding: 1.3rem 0; }
.faq .acc-icon { width: 44px; height: 44px; }
.faq .acc-body p { color: var(--muted); max-width: 60ch; padding-bottom: 1.5rem; }

/* ---------- Capacitación ------------------------------------------------ */
.cap-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.cap-head .h-section { margin-bottom: 0; }
.norms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.norm { display: grid; gap: 0.7rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.4rem); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color 0.4s; }
.norm-code {
  font-size: clamp(3.6rem, 8.5vw, 8rem); font-weight: 900; letter-spacing: -0.065em; line-height: 0.85;
  color: transparent; -webkit-text-stroke: 1.5px var(--fg); transition: color 0.5s var(--ease);
}
.norm:hover { border-color: #ffc34d; }
.norm:hover .norm-code { color: #ffc34d; -webkit-text-stroke-color: #ffc34d; }
.norm h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 0.6rem; }
.norm p { color: var(--muted); }
.norm small { font-size: 0.9rem; font-weight: 600; }
.cap-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; margin-top: 2.5rem; }
.cap-cta p { color: var(--muted); max-width: 52ch; font-size: 0.95rem; }

/* ---------- Proyectos apilados ------------------------------------------ */
.stack { display: grid; gap: 1.5rem; padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.stack-card {
  position: sticky; top: 5.6rem; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  min-height: min(80vh, 720px); padding: clamp(1.5rem, 4vw, 3.5rem); border-radius: var(--r-xl); transform-origin: 50% 0;
}
.card-hcd { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.card-psico { background: var(--signal); color: #fff; }
.card-next { background: #000; color: #f2f2ee; }
.stack-copy { display: grid; gap: 1.1rem; justify-items: start; }
.stack-kind { font-weight: 600; opacity: 0.7; }
.stack-copy h3 { font-size: clamp(2.4rem, 5vw, 4.8rem); font-weight: 800; letter-spacing: -0.055em; line-height: 0.92; }
.stack-copy > p:not(.stack-kind) { opacity: 0.82; max-width: 44ch; }
.stack-copy ul { display: grid; gap: 0.45rem; }
.stack-copy li { padding-left: 1.4rem; position: relative; }
.stack-copy li::before { content: "+"; position: absolute; left: 0; font-weight: 800; }
.card-psico .btn { background: #fff; color: #000; border-color: #fff; }
.card-psico .btn:hover { background: #000; color: #fff; border-color: #000; }
.card-next { grid-template-columns: 1fr; min-height: min(70vh, 620px); align-content: center; }
.card-next h3 { font-size: clamp(3rem, 8vw, 7.5rem); max-width: 12ch; }

.mock { display: block; border-radius: 22px; overflow: hidden; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.45); transition: transform 0.6s var(--ease); }
.mock:hover { transform: scale(1.015) rotate(-0.4deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 0.8rem 1rem; background: #f0f0ec; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d3cd; }
.mock-bar em { margin-left: 0.8rem; font-style: normal; font-size: 0.8rem; color: #555a61; background: #fff; padding: 0.22rem 0.8rem; border-radius: 999px; }
.mock-screen { display: grid; gap: 1.2rem; padding: clamp(1.1rem, 2.5vw, 2rem); }
.mock-title { font-size: clamp(1.3rem, 2.3vw, 2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; max-width: 18ch; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.mock-tile { display: grid; gap: 0.7rem; align-content: start; padding: 0.95rem; border-radius: 14px; background: #f3f3ef; font-size: 0.82rem; }
.mock-tile b { font-weight: 700; }
.mock-wide { grid-column: 1 / -1; }
.mock-dots { display: flex; gap: 5px; flex-wrap: wrap; }
.mock-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.mock-dots i:nth-child(n+8) { background: #cfcfc8; }
.mock-cal { height: 46px; border-radius: 8px; background: repeating-linear-gradient(90deg, #fff 0 12%, transparent 12% 14.3%), repeating-linear-gradient(0deg, #e2e2dc 0 30%, transparent 30% 34%); }
.mock-bars { display: grid; gap: 6px; }
.mock-bars i { height: 8px; width: var(--w); border-radius: 99px; background: var(--signal); }
.mock-ring { width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(var(--signal) 0 72%, #d9d9d3 72% 100%); -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%); mask: radial-gradient(circle, transparent 54%, #000 55%); }
.mock-chat { display: grid; gap: 6px; }
.mock-chat i { height: 22px; border-radius: 10px; background: #fff; width: 70%; }
.mock-chat i + i { justify-self: end; width: 48%; background: var(--signal); }

/* ---------- Soluciones por industria ------------------------------------ */
.sol-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.sol-head .h-section { margin-bottom: 0; }
.sol-filters { display: grid; gap: 0.9rem; margin-bottom: 1.6rem; }
.sol-search { width: 100%; max-width: 560px; padding: 0.95rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.sol-search:focus { outline: none; border-color: var(--signal); }
.sol-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sol-chips button { padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-weight: 600; font-size: 0.94rem; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.sol-chips button:hover { border-color: var(--fg); }
.sol-chips button.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.sol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.sol { display: flex; flex-direction: column; gap: 0.7rem; padding: clamp(1.3rem, 2.2vw, 1.8rem); border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.5s var(--ease); }
.sol:hover { border-color: var(--fg); transform: translateY(-4px); }
.sol-tags { font-size: 0.84rem; font-weight: 600; color: var(--signal); }
.sol h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.sol > p:not(.sol-tags) { color: var(--muted); }
.sol .btn { margin-top: auto; align-self: flex-start; }
.sol[hidden] { display: none; }
.sol-empty { display: grid; justify-items: start; gap: 1rem; padding: 2rem; border-radius: var(--r-lg); border: 1px dashed var(--line); margin-top: 1rem; }

/* ---------- Promociones -------------------------------------------------- */
.promo-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.promo-head .h-section { margin-bottom: 0; }
.promo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.promo-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.6rem, 3.5vw, 3rem); border-radius: var(--r-xl); background: var(--signal); color: #fff;
}
.promo-card.is-featured { background: #000; color: #f2f2ee; }
.promo-card.is-featured::after { content: ""; position: absolute; right: -20%; top: -35%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(46, 75, 255, 0.55), transparent 65%); pointer-events: none; }
.promo-card > * { position: relative; z-index: 1; }
.promo-badge { align-self: flex-start; display: inline-block; padding: 0.3rem 0.85rem; border-radius: 999px; background: var(--signal); color: #fff; font-weight: 700; font-size: 0.86rem; }
.promo-card:not(.is-featured) .promo-badge { background: #fff; color: var(--signal); }
.promo-title { font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.98; }
.promo-pitch { opacity: 0.8; max-width: 42ch; }
.promo-price { display: flex; align-items: baseline; gap: 0.6rem; font-size: clamp(3.2rem, 6.5vw, 5.6rem); font-weight: 900; letter-spacing: -0.06em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.promo-tax { font-size: 1.1rem; font-weight: 700; letter-spacing: 0; opacity: 0.75; }
.promo-items { display: grid; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.promo-items li { padding-left: 1.6rem; position: relative; }
.promo-items li::before { content: ""; position: absolute; left: 0.15rem; top: 0.45em; width: 0.65rem; height: 0.35rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.promo-terms { font-size: 0.88rem; opacity: 0.7; }
.promo-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; padding-top: 0.6rem; }
.promo-actions .btn-ghost { color: inherit; }
.promo-actions .btn-ghost:hover { background: #fff; color: #000; border-color: #fff; }
.promo-card:not(.is-featured) .btn-light:hover { background: #000; border-color: #000; }

.promo-pop {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 95; width: min(360px, calc(100vw - 2rem));
  display: grid; gap: 0.8rem; padding: 1.3rem 1.3rem 1.2rem; border-radius: 26px; background: #000; color: #f2f2ee;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(24px) scale(0.96); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.35s;
}
.promo-pop.is-in { transform: none; opacity: 1; }
.promo-pop .promo-badge { justify-self: start; }
.promo-pop-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; padding-right: 2rem; }
.promo-pop-items { display: grid; gap: 0.3rem; font-size: 0.92rem; color: #c9ccd2; }
.promo-pop-items li { padding-left: 1rem; position: relative; }
.promo-pop-items li::before { content: "+"; position: absolute; left: 0; font-weight: 800; color: #fff; }
.promo-pop-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.3rem; }
.promo-pop-price { font-size: 2rem; font-weight: 900; letter-spacing: -0.05em; }
.promo-close { position: absolute; top: 0.9rem; right: 0.9rem; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: #f2f2ee; display: grid; place-items: center; }
.promo-close:hover { border-color: #fff; }
.nav-promo { color: var(--signal); font-weight: 700; }

@media (max-width: 1080px) {
  .sol-head, .promo-head, .promo-grid { grid-template-columns: 1fr; }
  .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .wa-float { right: 1rem; bottom: 5.1rem; width: 54px; height: 54px; padding: 0; justify-content: center; }
  .wa-float span { display: none; }
  body.promo-open .wa-float, body.promo-open .fab { opacity: 0; pointer-events: none; }
  .promo-pop { bottom: 1rem; gap: 0.5rem; padding: 1rem 1.1rem; border-radius: 22px; }
  .promo-pop-items { display: none; }
  .promo-pop-title { font-size: 1.2rem; }
  .promo-pop-price { font-size: 1.6rem; }
}
@media (max-width: 600px) {
  .sol-grid { grid-template-columns: 1fr; }
  .sol-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.3rem; scrollbar-width: none; }
  .sol-chips button { flex: none; }
}

/* ---------- Rutas ----------------------------------------------------- */
.stage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; margin-top: 0.6rem; }
.stage-actions .btn { margin-top: 0; }
.stage-actions .link-btn { color: inherit; }
.cross { margin: 2rem auto 0; max-width: 62ch; text-align: center; color: var(--muted); font-size: 1.05rem; }

/* ---------- Ruta vibe coders ------------------------------------------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tier { display: flex; flex-direction: column; gap: 0.8rem; padding: clamp(1.4rem, 2.6vw, 2.2rem); border-radius: var(--r-lg); border: 1px solid var(--line); }
.tier.is-featured { background: #fff; color: var(--ink); border-color: #fff; }
.tier h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.035em; }
.tier-flag { align-self: flex-start; padding: 0.25rem 0.75rem; border-radius: 999px; background: var(--signal); color: #fff; font-weight: 700; font-size: 0.82rem; }
.tier-price { font-size: clamp(2.6rem, 4.6vw, 3.8rem); font-weight: 900; letter-spacing: -0.06em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.tier-price span, .tier-price small { font-size: 1rem; font-weight: 700; letter-spacing: 0; opacity: 0.7; }
.tier-price.tier-quote { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.tier-when { color: var(--muted); font-weight: 500; }
.tier.is-featured .tier-when { color: #4b4f56; }
.tier ul { display: grid; gap: 0.5rem; padding-top: 0.9rem; border-top: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 20%, transparent); margin-bottom: 0.6rem; }
.tier li { padding-left: 1.4rem; position: relative; }
.tier li::before { content: "+"; position: absolute; left: 0; font-weight: 800; }
.tier .btn { margin-top: auto; align-self: flex-start; }

.review { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin-top: clamp(3rem, 6vw, 5rem); }
.review h3, .audit h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.045em; margin-bottom: 1.2rem; }
.review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 2rem; }
.review-list div { border-top: 1.5px solid var(--fg); padding-top: 0.9rem; }
.review-list dt { font-weight: 800; font-size: 1.2rem; margin-bottom: 0.3rem; }
.review-list dd { color: var(--muted); }
.seal { display: grid; gap: 1rem; justify-items: start; padding: 1.6rem; border-radius: var(--r-lg); border: 1px solid var(--line); }
.seal img { width: min(320px, 100%); height: auto; }
.seal p { color: var(--muted); font-size: 0.95rem; }
.seal a { color: var(--fg); }

.audit { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; margin-top: clamp(3rem, 6vw, 5rem); scroll-margin-top: 90px; }
.audit-copy p { color: var(--muted); margin-bottom: 1rem; max-width: 46ch; }
.audit-note { padding: 1rem 1.2rem; border-radius: var(--r-md); border: 1px dashed var(--line); }
.audit-note strong { color: var(--fg); }
.audit-total { font-size: 1.05rem; }
.audit-total strong { font-size: 1.4rem; font-weight: 800; }
.form.form-dark { background: #0d0e10; border-color: rgba(255, 255, 255, 0.14); color: #f2f2ee; }
.form.form-dark .field label { color: #f2f2ee; }
.form.form-dark .opt-tag, .form.form-dark .consent { color: #9a9ea6; }
.form-dark .field input, .form-dark .field select { background: #111214; border-color: rgba(255, 255, 255, 0.16); color: #f2f2ee; }
.form-dark .consent a { color: #f2f2ee; }
.field select { width: 100%; padding: 0.85rem 2.4rem 0.85rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.form-dark .field select { background-color: #111214; }
.field select:focus { outline: none; border-color: var(--signal); }

/* ---------- Ruta pymes: extras y SaaB ---------------------------------- */
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.extra { display: grid; gap: 0.6rem; justify-items: start; padding: clamp(1.3rem, 2.2vw, 1.8rem); border-radius: var(--r-lg); border: 1px dashed var(--line); }
.extra h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; }
.extra p { color: var(--muted); }
.saab { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.6rem, 4vw, 3.2rem); border-radius: var(--r-xl); background: #000; color: #f2f2ee; }
.saab-copy { display: grid; gap: 1rem; justify-items: start; }
.saab-copy h3 { font-size: clamp(1.7rem, 3.2vw, 2.8rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.saab-copy p { color: #c9ccd2; max-width: 52ch; }
.saab-copy strong { color: #fff; }
.saab-list { display: grid; gap: 0.6rem; }
.saab-list li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.9rem; padding: 0.9rem 1rem; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.06); }
.saab-list strong { grid-column: 2; }
.saab-list small { grid-column: 2; color: #9a9ea6; }
.saab-status { grid-row: 1 / span 2; align-self: center; padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.25); color: #c9ccd2; white-space: nowrap; }
.saab-status.is-ready { background: #3ddc84; border-color: #3ddc84; color: #000; }

/* ---------- Ruta industria: ofertas ------------------------------------ */
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.offer { display: grid; gap: 0.7rem; justify-items: start; padding: clamp(1.4rem, 2.6vw, 2.2rem); border-radius: var(--r-lg); border: 1px solid var(--line); }
.offer h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.035em; }
.offer p { color: var(--muted); }

/* ---------- Reel --------------------------------------------------------- */
.reel { padding: clamp(2rem, 5vw, 4rem) var(--gutter) 0; }
.reel-frame { max-width: 1440px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #000; transform-origin: 50% 0; will-change: transform; }
.reel-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Etiqueta de descuento dentro del bot */
.quote-badge { justify-self: start; padding: 0.25rem 0.65rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); font-size: 0.8rem; font-weight: 700; }

@media (max-width: 1080px) {
  .tiers, .review, .audit, .saab { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .review-list, .extras, .offers { grid-template-columns: 1fr; }
  .reel-frame { border-radius: 18px; }
}

/* ---------- Proceso ----------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.steps li { border-top: 1.5px solid var(--fg); padding-top: 1.2rem; display: grid; gap: 0.5rem; align-content: start; }
.steps span { font-weight: 800; color: var(--signal); }
.steps h3 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; }
.steps p { color: var(--muted); }

/* ---------- Contacto ---------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-copy { display: grid; gap: 1.5rem; justify-items: start; }
.contact-copy .h-section { margin-bottom: 0; }
.summary { width: 100%; padding: 1.3rem 1.4rem; border-radius: var(--r-md); background: var(--paper-2); border: 1px solid var(--line); }
.summary-title { font-weight: 700; margin-bottom: 0.7rem; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.2rem; font-size: 0.94rem; }
.summary dt { color: var(--muted); }
.summary dd { font-weight: 500; }
.form { display: grid; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: var(--r-xl); background: var(--paper-2); border: 1px solid var(--line); }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field label { font-size: 0.9rem; font-weight: 600; }
.opt-tag { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 0.85rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; transition: border-color 0.25s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--signal); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #d92d20; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 0.1rem; accent-color: var(--signal); flex: none; }
.consent a { color: var(--fg); }
.form-status { min-height: 1.4em; font-size: 0.94rem; color: var(--muted); }
.form-status.err { color: #d92d20; }
.form-done { display: grid; gap: 1rem; justify-items: start; }
.form-done h3 { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; }
.form-done p { color: var(--muted); }

/* ---------- Footer ------------------------------------------------------ */
.footer { background: #000; color: #f2f2ee; padding-top: clamp(4rem, 8vw, 7rem); overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; align-items: flex-end; }
.footer-claim { font-size: clamp(2.2rem, 4.6vw, 4.2rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin-bottom: 1.5rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 0.6rem 2.5rem; }
.footer-links a { text-decoration: none; color: #c9ccd2; }
.footer-links a:hover { color: #fff; }
.footer-word { font-size: 23.4vw; font-weight: 900; letter-spacing: -0.075em; line-height: 0.78; text-align: center; margin: clamp(2.5rem, 6vw, 5rem) 0 0; overflow: hidden; white-space: nowrap; }
.footer-word .char { display: inline-block; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.6rem; color: #9a9ea6; font-size: 0.9rem; }

/* ---------- Botón flotante (móvil) -------------------------------------- */
.fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 70; display: none; padding: 0.9rem 1.4rem; border-radius: 999px; background: var(--signal); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 16px 30px -12px rgba(46, 75, 255, 0.7); transform: translateY(160%); transition: transform 0.5s var(--ease); }
.fab.show { transform: none; }

/* ---------- Aviso de privacidad ----------------------------------------- */
.doc { max-width: 760px; margin: 0 auto; padding: 7rem var(--gutter) 5rem; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.doc h2 { font-size: 1.35rem; font-weight: 700; margin: 2.2rem 0 0.7rem; letter-spacing: -0.02em; }
.doc p, .doc li { color: #33363b; margin-bottom: 0.8rem; }
.doc ul { list-style: disc; padding-left: 1.3rem; }
.doc .todo { background: #fff1c2; padding: 0 0.3rem; border-radius: 4px; }

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 7rem; }
  .hero h1 { max-width: 12ch; }
  .bot { height: min(640px, 78svh); }
  .stages, .norms, .cap-head, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .stage { min-height: 0; }
  .stage h3 { margin-top: 0; }
  .facts, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-list { grid-template-columns: 1fr; }
  .stack-card { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: grid; }
  .fab { display: inline-flex; }
  .acc-hint { display: none; }
  .acc-head { grid-template-columns: minmax(0, 1fr) 44px; }
  .acc-icon { width: 44px; height: 44px; }
  .stack-card { position: relative; top: 0; min-height: 0; }
}
@media (max-width: 600px) {
  .facts, .steps, .field-row { grid-template-columns: 1fr; }
  .mock-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .msg { max-width: 92%; }
}

/* En pantallas táctiles el chat no atrapa el scroll: al llegar al final, sigue la página */
@media (pointer: coarse) {
  .bot-log, .bot-chips { overscroll-behavior: auto; }
}

/* ---------- Movimiento reducido ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  html.js [data-hero], html.js [data-split] { visibility: visible; }
}

/* ---------- Página /verificar ------------------------------------------- */
.verify-form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0; }
.verify-form input { flex: 1 1 240px; padding: 0.9rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 1.05rem; letter-spacing: 0.04em; }
.verify-form input:focus { outline: none; border-color: var(--signal); }
.verify-result { margin-bottom: 2rem; }
.verify-bad { padding: 1rem 1.2rem; border-radius: 14px; background: #fde8e6; color: #8a1c12; }
.verify-card { display: grid; gap: 0.9rem; padding: 1.6rem; border-radius: 22px; border: 1px solid var(--line); background: #fff; }
.verify-card.is-valid { border-color: #1f9d55; }
.verify-state { font-weight: 800; color: #1f9d55; }
.verify-card.is-invalid .verify-state { color: #b42318; }
.verify-card h2 { margin: 0; font-size: 1.8rem; }
.verify-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1.2rem; }
.verify-card dt { color: var(--muted); }
.verify-embed-title { font-weight: 600; margin: 0; }
.verify-embed { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; padding: 0.8rem; border-radius: 12px; border: 1px solid var(--line); background: #f6f6f3; resize: none; }
body.is-dark .nav-cta { background: #fff; color: #000; border-color: #fff; }
body.is-dark .nav-cta:hover { background: var(--signal); color: #fff; border-color: var(--signal); }
