/* ==========================================================================
   Lúcido — web v2. Mismo lenguaje que la app: Montserrat (titulares en peso 300),
   tinta #061b31, un único acento índigo #533afd, radio de 4 px, líneas finas
   en vez de sombras. El movimiento gira en torno a la marca de dos círculos
   (anillo + disco): --mk-gap / --mk-rot los escribe script.js con el scroll.
   Sin JavaScript todo el contenido es visible y legible (mejora progresiva).
   ========================================================================== */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/montserrat-300.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/montserrat-700.woff2") format("woff2"); }

:root {
  --bone: #ffffff;
  --mist: #f8fafd;
  --slate: #061b31;
  --muted: #64748d;
  --steel: #50617a;
  --accent: #533afd;
  --accent-hover: #7389ff;
  --hairline: #e5edf5;
  --hairline-dark: #1c2c40;
  --lavender: #b9b9f9;
  --periwinkle: #e8e9ff;
  --positive: #15803d;
  --muted-on-dark: #9db0c8;
  --r: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
  --mk-gap: 0.55;
  --mk-rot: 0deg;
  --bg-primary: var(--bone);
  --bg-surface: var(--mist);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bone); color: var(--slate); line-height: 1.65; font-size: 16px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 { font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; }
h3 { font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
h4 { font-weight: 600; letter-spacing: 0; font-size: 13px; text-transform: uppercase; }
p { max-width: 68ch; }
.text-muted { color: var(--muted); }
.accent { color: var(--accent); }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15px/1 "Montserrat", sans-serif; letter-spacing: 0; text-align: center;
  padding: 16px 26px; border-radius: var(--r); border: 1px solid transparent;
  cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; will-change: transform;
}
.btn-sm { padding: 11px 18px; font-size: 13.5px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: #fff; color: var(--accent); border-color: var(--lavender); }
.btn-ghost:hover { background: var(--periwinkle); }
.theme-dark .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.theme-dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Marca: anillo + disco ---------- */
.mark { width: 44px; height: auto; overflow: visible; flex: none; }
.mk-orbit { transform-origin: 28px 16px; transform: rotate(var(--mk-rot)); }
.mk-ring { fill: none; stroke: url(#lg-ring); stroke-width: 5; transform: translateX(calc(var(--mk-gap) * -11px)); }
.mk-disc { fill: url(#lg-gold); transform: translateX(calc(var(--mk-gap) * 11px)); }

/* ---------- Navegación fija con desenfoque; se oscurece sobre secciones oscuras ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; color: var(--slate);
  background: rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hairline); transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.nav.is-dark { background: rgba(6, 27, 49, 0.78); border-color: var(--hairline-dark); color: #fff; }
.nav-inner { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.nav .logo { display: flex; align-items: center; gap: 10px; flex: none; }
.nav .logo .logo-word { font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.nav-menu { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; gap: 30px; margin-inline: auto; }
.nav-links > a { font-size: 14px; font-weight: 500; opacity: 0.8; transition: opacity 0.2s, color 0.2s; }
.nav-links > a:hover { opacity: 1; color: var(--accent); }
@media (min-width: 961px) { .nav-links { align-items: center; } .nav-links > a, .nav-item { display: inline-flex; align-items: center; } }
.nav.is-dark .nav-links > a:hover { color: var(--lavender); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; flex: none; align-items: center; gap: 5px; height: 30px; padding: 0 11px 0 8px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--periwinkle); font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--accent); opacity: .92; transition: opacity .2s, border-color .2s, color .2s, background .2s, transform .2s; }
.lang-switch svg { width: 14px; height: 14px; flex: none; }
.lang-switch:hover { opacity: 1; border-color: var(--lavender); transform: translateY(-1px); }
.nav.is-dark .lang-switch, .theme-dark .lang-switch { border-color: rgba(255, 255, 255, .25); color: #fff; background: rgba(255, 255, 255, .12); }

/* ---------- Aviso de idioma según el idioma del navegador ---------- */
.lang-bar { position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 90; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 12px 20px; background: var(--slate); color: #fff; text-align: center; transform: translateY(-120%); opacity: 0; transition: transform .45s var(--ease), opacity .35s; }
.lang-bar.is-on { transform: translateY(0); opacity: 1; }
.lang-bar p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .88); }
.lang-bar .btn { flex: none; }
.lang-bar-close { flex: none; width: 26px; height: 26px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; transition: background .2s; }
.lang-bar-close:hover { background: rgba(255, 255, 255, .24); }
@media (prefers-reduced-motion: reduce) { .lang-bar { transition: none; } }
.nav.is-dark .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.nav-burger { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--hairline); border-radius: var(--r); background: transparent; color: inherit; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav.is-dark .nav-burger { border-color: var(--hairline-dark); }
.nav-burger span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease); }
.nav.is-open .nav-burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav-burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.footer .logo { display: inline-flex; align-items: center; gap: 10px; }
.footer .logo .logo-word { font-weight: 500; font-size: 18px; }

/* ---------- Estructura de página ---------- */
main > section, main > header, .hs, body > section, body > header, body > footer { position: relative; }
main > section > *, main > header > *, .hs > *, body > section > *, body > header > *, body > footer > * { position: relative; z-index: 2; }

.theme-dark { background: var(--slate); color: #fff; }
.theme-dark .text-muted { color: var(--muted-on-dark); }
.theme-mist { background: var(--mist); }

.section { padding: clamp(72px, 10vw, 150px) 0; }
.section-head { margin-bottom: clamp(36px, 5.5vw, 68px); max-width: 880px; }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.theme-dark .section-label { color: var(--lavender); }
.section-head h2, .cta-final h2 { font-size: clamp(28px, 3.9vw, 52px); }
.section-head p { margin-top: 20px; color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); }
.theme-dark .section-head p { color: var(--muted-on-dark); }
.lead { font-size: clamp(15px, 1.3vw, 18px); color: var(--muted); font-weight: 400; margin-top: 22px; }

.page-hero { padding: clamp(120px, 15vw, 190px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(34px, 4.8vw, 68px); max-width: 16ch; }

/* ---------- Tarjetas (líneas finas, radio 4, sin sombras) ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; counter-reset: feat; }
.feature-card { counter-increment: feat; background: #fff; border: 1px solid var(--hairline); border-radius: var(--r); padding: 30px; transition: border-color 0.25s; will-change: transform; }
.feature-card:hover { border-color: var(--lavender); }
.feature-card h3 { font-size: 21px; margin-bottom: 12px; }
.feature-card p { font-size: 15px; }
.feature-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; border-radius: var(--r); background: var(--periwinkle); color: var(--accent); font-size: 0; font-weight: 500; }
.feature-icon::before { content: counter(feat, decimal-leading-zero); font-size: 13px; letter-spacing: 0.04em; }
.feature-fact { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: 13px; font-weight: 500; color: var(--accent); }

/* ---------- Precios ---------- */
.pricing-toggle { display: inline-flex; border: 1px solid var(--hairline); border-radius: var(--r); padding: 3px; margin-bottom: 36px; background: #fff; }
.pricing-toggle button { font: 500 13.5px "Montserrat", sans-serif; padding: 10px 18px; border: 0; background: transparent; color: var(--muted); border-radius: 3px; cursor: pointer; }
.pricing-toggle button.active { background: var(--accent); color: #fff; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; align-items: stretch; }
.price-card { position: relative; background: #fff; border: 1px solid var(--hairline); border-radius: var(--r); padding: 34px 30px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); }
.price-card.featured::before { content: "Recomendado"; position: absolute; top: -11px; left: 26px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; }
.price-card h3 { font-size: 22px; }
.price-amount { font-size: clamp(44px, 4.4vw, 54px); font-weight: 300; letter-spacing: -0.03em; margin: 18px 0 20px; line-height: 1; }
.price-amount span:not([data-price]) { font-size: 15px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.price-list { margin-bottom: 28px; display: grid; gap: 11px; flex: 1; align-content: start; }
.price-list li { font-size: 14.5px; padding-left: 22px; position: relative; color: var(--steel); }
.price-list li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.price-card .btn { margin-top: auto; }
.price-note { margin-top: 22px; font-size: 13.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--hairline); padding: 26px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-item h3 { font-size: 20px; font-weight: 500; cursor: pointer; }
.faq-item p { margin-top: 12px; color: var(--muted); font-size: 16px; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 24px 0; font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
.faq details p { padding: 0 44px 26px 0; color: var(--muted); font-size: 16px; }

/* ---------- CTA final y pie ---------- */
.cta-final { padding: clamp(84px, 13vw, 180px) 0; }
.cta-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.cta-steps { display: grid; border-top: 1px solid var(--hairline-dark); }
.cta-steps li { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--hairline-dark); }
.cta-steps li > span { font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: var(--lavender); padding-top: 4px; font-variant-numeric: tabular-nums; }
.cta-steps b { display: block; font-size: clamp(18px, 1.6vw, 22px); font-weight: 400; color: #fff; }
.cta-steps small { display: block; margin-top: 6px; font-size: 14px; color: var(--muted-on-dark); line-height: 1.5; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }
.cta-final h2 { max-width: 15ch; }
.cta-final p { margin-top: 22px; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }
.cta-final.theme-dark p { color: var(--muted-on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.cta-final .btn-primary { font-size: 17px; padding: 20px 34px; }

.footer { padding: 72px 0 36px; border-top: 1px solid var(--hairline); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer-col h4 { color: var(--slate); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--hairline); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover { color: var(--accent); text-decoration: underline; }

/* Páginas legales: aviso, privacidad, cookies, condiciones */
.legal-body { max-width: 640px; font-size: 15px; line-height: 1.7; color: var(--steel); }
.legal-body section { margin-bottom: 30px; }
.legal-body h2 { font-size: 17px; font-weight: 600; color: var(--slate); margin-bottom: 8px; }
.legal-body p + p { margin-top: 10px; }
.legal-body a { color: var(--accent); text-decoration: underline; }

/* Aviso de cookies */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 180; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; max-width: 720px; margin-inline: auto; padding: 16px 18px; border-radius: 16px; background: var(--slate); color: #fff; box-shadow: 0 30px 60px -30px rgba(6, 27, 49, .5); transform: translateY(140%); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.cookie-bar.is-on { transform: translateY(0); opacity: 1; }
.cookie-bar p { flex: 1 1 320px; margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.cookie-bar a { color: #fff; text-decoration: underline; }
.cookie-bar button { flex: none; }
@media (prefers-reduced-motion: reduce) { .cookie-bar { transition: none; } }

/* ==========================================================================
   Home
   ========================================================================== */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 56px) 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(34px, 4.2vw, 64px); letter-spacing: -0.035em; line-height: 1.05; }
.hero .lead { max-width: 46ch; }
.h-line { display: block; white-space: nowrap; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 13.5px; font-weight: 500; color: var(--steel); }
.hero-points li { position: relative; padding-left: 20px; }
.hero-points li::before { content: ""; position: absolute; left: 1px; top: 0.5em; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.hero-cue { position: absolute; left: max(24px, calc((100vw - 1200px) / 2)); bottom: 28px; z-index: 3; display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hero-cue .mark { width: 40px; animation: cue-spin 14s linear infinite; }
@keyframes cue-spin { to { transform: rotate(360deg); } }

/* Simulación de factura que se genera sola */
.sim { width: 100%; max-width: 480px; margin-left: auto; }
.sim-prompt { display: flex; align-items: center; gap: 10px; background: var(--slate); color: #fff; border-radius: var(--r) var(--r) 0 0; padding: 16px 18px; font-size: 13.5px; min-height: 84px; line-height: 1.5; }
.sim-prompt .sim-text { flex: 1; }
.sim-caret { display: inline-block; width: 2px; height: 1.1em; background: var(--lavender); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sim-doc { background: #fff; border: 1px solid var(--hairline); border-top: 0; border-radius: 0 0 var(--r) var(--r); padding: 22px 22px 20px; }
.sim-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.sim-head span:last-child { color: var(--muted); font-weight: 500; }
.sim-client { margin: 6px 0 16px; font-size: 14px; color: var(--muted); }
.sim-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--hairline); font-size: 14px; }
.sim-lines li small { display: block; color: var(--muted); font-size: 12px; }
.sim-lines li b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sim-sum { display: flex; justify-content: space-between; padding: 8px 0 0; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--hairline); }
.sim-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; }
.sim-total span { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.sim-total strong { font-size: clamp(32px, 3vw, 40px); font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--accent); }
.sim-status { margin-top: 12px; font-size: 12.5px; font-weight: 500; color: var(--positive); }

/* Cinta de oficios */
.marquee { overflow: hidden; border-block: 1px solid var(--hairline); background: #fff; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; flex: none; }
.marquee-set span { font-size: clamp(20px, 2.4vw, 32px); font-weight: 300; letter-spacing: -0.02em; white-space: nowrap; }
.marquee-set i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin: 0 clamp(20px, 3vw, 38px); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cómo funciona */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.step { border-top: 1px solid var(--slate); padding-top: 22px; }
.step-n { display: block; font-size: clamp(48px, 5vw, 72px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--accent); margin-bottom: 22px; }
.step h3 { font-size: clamp(18px, 1.7vw, 22px); font-weight: 400; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* Lo que dejas de hacer */
.tasks { display: grid; }
.task { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; padding: 32px 0; border-top: 1px solid var(--hairline-dark); align-items: baseline; }
.task:last-child { border-bottom: 1px solid var(--hairline-dark); }
.task-n { font-size: 14px; font-weight: 500; color: var(--lavender); }
.task h3 { font-size: clamp(18px, 1.9vw, 25px); font-weight: 300; text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(255, 255, 255, 0.35); color: var(--muted-on-dark); }
.task p { color: #fff; font-size: 16.5px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 7vw, 100px); position: relative; }
.stat strong { display: block; font-size: clamp(52px, 7.5vw, 112px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 12px; font-size: 14.5px; color: var(--muted-on-dark); max-width: 24ch; }

/* Funciones: sección horizontal fijada (escritorio) / carrusel (tablet y móvil) */
.hs { padding: 0; }
.hs-head { padding: clamp(72px, 10vw, 130px) 0 36px; }
.hs-head h2 { font-size: clamp(26px, 3.6vw, 46px); max-width: 20ch; }
.hs-stage { overflow: hidden; }
.hs-track { display: flex; padding: 0 max(24px, calc((100vw - 1200px) / 2)) 80px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hs-track::-webkit-scrollbar { display: none; }
.hs-panel { flex: none; width: min(560px, 82vw); margin-right: -26px; scroll-snap-align: center; transform: scale(var(--s, 1)); transform-origin: center; will-change: transform; }
.hs-card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r); padding: 20px; height: 100%; display: flex; flex-direction: column; gap: 20px; }
.hs-media { position: relative; min-height: 290px; border-radius: var(--r); overflow: hidden; background: linear-gradient(160deg, #eceeff, #f6f7ff); padding: 18px; display: flex; align-items: center; isolation: isolate; }
.hs-media::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5; background-image: radial-gradient(rgba(83, 58, 253, 0.14) 1px, transparent 1px); background-size: 16px 16px; }
.hs-tag { align-self: flex-start; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.hs-card h3 { font-size: clamp(19px, 1.9vw, 24px); font-weight: 300; }
.hs-card p { color: var(--muted); font-size: 15px; }
.hs-progress { display: none; }
.hs-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.hs--pinned .hs-track { overflow: visible; scroll-snap-type: none; }
.hs-controls { display: none; align-items: center; justify-content: space-between; width: min(1200px, 100% - 48px); margin: 0 auto; }
.hs-dots { display: flex; gap: 8px; }
.hs-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--lavender); cursor: pointer; transition: width 0.3s var(--ease), background-color 0.3s; }
.hs-dots button.is-active { width: 26px; background: var(--accent); }
.hs-arrows { display: flex; gap: 8px; }
.hs-arrows button { width: 44px; height: 44px; border: 1px solid var(--hairline); border-radius: var(--r); background: #fff; color: var(--slate); cursor: pointer; font-size: 18px; }
.hs-arrows button:hover { border-color: var(--accent); color: var(--accent); }

/* Maquetas de producto dentro de las tarjetas (HTML/CSS, no imágenes) */
.ui { width: 100%; display: grid; gap: 8px; font-size: 12.5px; line-height: 1.45; }
.ui-card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r); padding: 10px 12px; }
.bub { max-width: 84%; padding: 9px 12px; border-radius: var(--r); }
.bub.me { margin-left: auto; background: var(--accent); color: #fff; }
.bub.bot { background: #fff; border: 1px solid var(--hairline); }
.bub.bot b { display: block; font-weight: 600; margin-bottom: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips span { font-size: 11px; font-weight: 500; background: var(--periwinkle); color: var(--accent); padding: 3px 8px; border-radius: 2px; }
.urow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px solid var(--hairline); }
.urow:first-child { border-top: 0; padding-top: 0; }
.urow:last-child { padding-bottom: 0; }
.urow small { display: block; color: var(--muted); font-size: 11px; }
.urow b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.urow.is-neg b { color: #dc2626; }
.urow.is-total { font-weight: 600; }
.urow.is-total b { font-size: 15px; color: var(--accent); font-weight: 600; }
.lock { display: inline-block; width: 10px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; margin-right: 6px; vertical-align: -1px; }
.lock::before { content: ""; position: absolute; left: 1px; top: -6px; width: 4px; height: 5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 3px 3px 0 0; }
.ubtn { display: inline-block; font-size: 11.5px; font-weight: 600; background: var(--accent); color: #fff; padding: 6px 10px; border-radius: 3px; }
.ubtn.ghost { background: #fff; color: var(--accent); border: 1px solid var(--lavender); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumb { aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--hairline); border-radius: 2px; padding: 8px; display: grid; align-content: start; gap: 5px; }
.thumb i { display: block; height: 3px; background: #dfe5ee; }
.thumb i:nth-child(1) { width: 40%; height: 5px; background: var(--accent); }
.thumb i:nth-child(3), .thumb i:nth-child(5) { width: 70%; }
.thumb.t1 { border: 2px solid #1f7a4d; } .thumb.t1 i:nth-child(1) { background: #1f7a4d; }
.thumb.t2 i { background: #f0c7c4; } .thumb.t2 i:nth-child(1) { background: #e0493f; }
.thumb.t3 { background: #101011; border-color: #101011; } .thumb.t3 i { background: #3a3a3c; } .thumb.t3 i:nth-child(1) { background: #c9a45c; }
.slider .track { position: relative; height: 3px; background: var(--lavender); border-radius: 2px; margin: 12px 4px 6px; }
.slider .track::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 62%; background: var(--accent); border-radius: 2px; }
.slider .track::after { content: ""; position: absolute; left: 62%; top: -5px; width: 13px; height: 13px; margin-left: -6px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }

/* Oficios: pestañas + documento de ejemplo */
.tradetabs { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 88px); align-items: start; }
.tradetabs-list { display: grid; }
.tradetab { text-align: left; background: none; border: 0; border-top: 1px solid var(--hairline); padding: 26px 0 26px 26px; position: relative; cursor: pointer; color: var(--muted); transition: color 0.3s var(--ease); }
.tradetab:last-child { border-bottom: 1px solid var(--hairline); }
.tradetab::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 0.5s var(--ease); }
.tradetab h3 { font-size: clamp(19px, 1.9vw, 24px); font-weight: 300; letter-spacing: -0.02em; color: inherit; transition: color 0.3s var(--ease); }
.tradetab p { font-size: 15px; margin-top: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease), opacity 0.5s var(--ease), margin-top 0.5s var(--ease); }
.tradetab:hover { color: var(--slate); }
.tradetab.is-active { color: var(--slate); }
.tradetab.is-active::before { transform: scaleY(1); }
.tradetab.is-active h3 { color: var(--accent); }
.tradetab.is-active p { max-height: 160px; opacity: 1; margin-top: 12px; color: var(--muted); }
.tradetab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tradepanels { background: var(--mist); border: 1px solid var(--hairline); border-radius: var(--r); padding: clamp(18px, 3vw, 40px); position: relative; }
.tradepanels::before { content: ""; position: absolute; inset: 0; border-radius: var(--r); background-image: radial-gradient(rgba(83,58,253,0.16) 1px, transparent 1px); background-size: 16px 16px; mask-image: linear-gradient(135deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%); pointer-events: none; }
.tradepanel { position: relative; }
.tradepanel[hidden] { display: none; }
.tradepanel.is-active { animation: tradein 0.7s var(--ease) both; }
@keyframes tradein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tdoc { border-top: 1px solid var(--hairline); border-radius: var(--r); max-width: 520px; margin: 0 auto; }
.tdoc .sim-sum + .sim-sum { border-top: 0; padding-top: 4px; }
@media (max-width: 900px) {
  .tradetabs { grid-template-columns: 1fr; }
  .tradepanels { order: -1; }
  .tradetab { padding: 20px 0 20px 20px; }
}

/* ==========================================================================
   Capas de movimiento (solo con JS)
   ========================================================================== */
.spot { position: fixed; left: 0; top: 0; z-index: 1; width: 70vmax; height: 70vmax; border-radius: 50%; pointer-events: none; margin: -35vmax 0 0 -35vmax; opacity: 0.14; will-change: transform, opacity; background: radial-gradient(circle at center, rgba(83, 58, 253, 0.85) 0%, rgba(83, 58, 253, 0.35) 28%, rgba(83, 58, 253, 0) 62%); }
.cursor { position: fixed; left: 0; top: 0; z-index: 200; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 1.5px solid var(--accent); mix-blend-mode: normal; pointer-events: none; opacity: 0; will-change: transform; transition: opacity 0.3s; }
.cursor.is-on { opacity: 1; }
.cursor-inner { width: 100%; height: 100%; border-radius: 50%; transition: transform 0.35s var(--ease), background-color 0.2s; }
.cursor.is-hover .cursor-inner { transform: scale(2.1); background: rgba(83, 58, 253, 0.14); }
.cursor.on-dark { border-color: #fff; }
.cursor.on-dark.is-hover .cursor-inner { background: rgba(255, 255, 255, 0.22); }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: text; }

.loader { display: none; }
.js .loader { display: flex; position: fixed; inset: 0; z-index: 300; background: #fff; color: var(--slate); align-items: center; justify-content: center; clip-path: inset(0 0 0 0); transition: clip-path 0.9s var(--ease); }
.js .loader .mark { width: 96px; animation: loader-orbit 1.6s var(--ease) infinite; }
.js .loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes loader-orbit { 100% { transform: rotate(360deg); } }

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-split] .w { display: inline-block; }
.js [data-split] .wi { display: inline-block; opacity: 0; transform: translateY(0.45em); filter: blur(8px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.js [data-split].is-visible .wi { opacity: 1; transform: none; filter: blur(0); }

.js .h-line > span { display: block; clip-path: inset(0 0 100% 0); transform: translateY(0.22em); transition: clip-path 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i) * 80ms + 150ms); }
.js.is-ready .h-line > span { clip-path: inset(-12% -3% -22% -3%); transform: none; }
.js .hero .lead, .js .hero .hero-actions, .js .hero .hero-points, .js .hero .sim, .js .hero-cue { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: 650ms; }
.js.is-ready .hero .lead, .js.is-ready .hero .hero-actions, .js.is-ready .hero .hero-points, .js.is-ready .hero .sim, .js.is-ready .hero-cue { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive: escritorio > 1024 · tablet 641–1024 · móvil ≤ 640
   ========================================================================== */
@media (max-width: 1024px) {
  .hs-controls { display: flex; }
  .hs-progress { display: none; }
  .hs-track { padding: 0 24px 22px; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; gap: 16px; }
  .hs-panel { width: min(520px, 78vw); margin-right: 0; transform: none; scroll-snap-align: start; }
  .hs-head { padding-bottom: 28px; }
  .hs > .hs-spacer { display: none; }
}
@media (max-width: 960px) {
  .nav-menu { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 24px 26px; background: #fff; border-bottom: 1px solid var(--hairline); }
  .nav.is-dark .nav-menu { background: var(--slate); border-color: var(--hairline-dark); }
  .nav.is-open .nav-menu { display: flex; }
  .nav-links { flex-direction: column; gap: 0; margin: 0; }
  .nav-links > a { padding: 15px 0; font-size: 17px; border-bottom: 1px solid var(--hairline); opacity: 1; }
  .nav.is-dark .nav-links > a { border-color: var(--hairline-dark); }
  .nav-cta { flex-direction: column; margin-top: 12px; }
  .nav-cta .btn { width: 100%; padding: 16px; font-size: 15px; }
  .nav-burger { display: flex; }
  .nav.is-open { background: #fff; }
  .nav.is-dark.is-open { background: var(--slate); }
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 40px); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .sim { margin: 0; max-width: 560px; }
  .hero-cue { display: none; }
  .task { grid-template-columns: 44px 1fr; gap: 6px 16px; }
  .task p { grid-column: 2; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(1200px, 100% - 40px); }
  .hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .hero-actions .btn { width: 100%; }
  .hero-points { gap: 8px 18px; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .stat strong { font-size: 64px; }
  .hs-panel { width: 84vw; }
  .hs-media { padding: 14px; min-height: 300px; }
  .hs-arrows { display: none; }
  .hs-controls { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-final .btn-primary { width: 100%; }
}

/* ---------- Movimiento reducido: sin fijado, parallax, cursor, cinta ni giros; solo fundidos suaves ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .js [data-reveal], .js [data-split] .wi, .js .h-line > span, .js .hero .lead, .js .hero .hero-actions, .js .hero .hero-points, .js .hero .sim, .js .hero-cue {
    transform: none !important; filter: none !important; clip-path: none !important; transition: opacity 0.6s ease !important; transition-delay: 0s !important;
  }
  .loader, .cursor, .spot { display: none !important; }
  .hs-panel { transform: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-set[aria-hidden="true"] { display: none; }
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } .has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary { cursor: auto; } }

/* Panel de ejemplo con gráficas */
.dash { border: 1px solid var(--hairline); border-radius: var(--r); background: #fff; margin-top: clamp(8px, 2vw, 24px); }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border-bottom: 1px solid var(--hairline); }
.dash-kpis > div { background: #fff; padding: clamp(16px, 2vw, 26px); }
.dash-kpis small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.dash-kpis strong { display: block; font-size: clamp(22px, 2.4vw, 34px); font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dash-kpis strong.pos { color: var(--positive); }
.dash-kpis em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.dash-kpis em.up { color: var(--positive); }
.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--hairline); }
.dpanel { background: #fff; padding: clamp(18px, 2.2vw, 30px); min-width: 0; }
.dpanel h3 { font-size: 14px; font-weight: 500; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dp-bars { grid-column: span 7; } .dp-donut { grid-column: span 5; } .dp-clients { grid-column: span 5; } .dp-line { grid-column: span 7; }
.dp-bars { display: flex; flex-direction: column; }
.cbars { display: flex; align-items: flex-end; gap: clamp(8px, 1.6vw, 22px); flex: 1; min-height: 210px; }
.cbar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; min-width: 0; }
.cbar b { font-size: 11.5px; font-weight: 500; color: var(--steel); font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0; transition: opacity 0.6s var(--ease) calc(0.6s + var(--i) * 0.09s); }
.cbar i { display: block; width: 100%; height: var(--h); background: var(--lavender); border-radius: 2px 2px 0 0; transform-origin: bottom; transition: transform 1s var(--ease) calc(var(--i) * 0.09s); }
.cbar:last-child i { background: var(--accent); }
.cbar span { font-size: 12px; color: var(--muted); }
.js .dash:not(.is-visible) .cbar i { transform: scaleY(0); }
.js .dash.is-visible .cbar b { opacity: 1; }
.js .dash:not(.is-visible) .cbar b { opacity: 0; }
.cdonut { position: relative; width: min(190px, 60%); margin: 0 auto 18px; }
.cdonut svg { display: block; width: 100%; }
.cseg { transition: stroke-dasharray 1.2s var(--ease); }
.js .dash:not(.is-visible) .cseg { stroke-dasharray: 0 400 !important; }
.cdonut-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cdonut-c strong { font-size: 30px; font-weight: 300; letter-spacing: -0.02em; }
.cdonut-c span { font-size: 12px; color: var(--muted); }
.clegend { display: grid; gap: 8px; font-size: 13px; }
.clegend li { display: flex; align-items: center; gap: 8px; }
.clegend li i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.clegend li b { margin-left: auto; font-weight: 500; font-variant-numeric: tabular-nums; }
.cclients { display: grid; gap: 16px; }
.cclients li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; font-size: 13.5px; }
.cclients li div { grid-column: 1 / -1; height: 6px; background: var(--periwinkle); border-radius: 1px; overflow: hidden; }
.cclients li i { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: 1px; transform-origin: left; transition: transform 1s var(--ease) calc(0.2s + var(--i) * 0.1s); }
.js .dash:not(.is-visible) .cclients li i { transform: scaleX(0); }
.cclients li b { font-weight: 500; font-variant-numeric: tabular-nums; }
.clegend-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 400; color: var(--muted); }
.clegend-inline i { width: 14px; height: 2px; display: inline-block; }
.clegend-inline .li { background: var(--accent); } .clegend-inline .lg { background: var(--slate); margin-left: 8px; }
.cline { width: 100%; height: auto; aspect-ratio: 300 / 130; display: block; overflow: visible; }
.cline .cbase { stroke: var(--hairline); stroke-width: 1; fill: none; }
.cpath { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease) 0.2s; }
.cp-i { stroke: var(--accent); } .cp-g { stroke: var(--slate); }
.js .dash:not(.is-visible) .cpath { stroke-dashoffset: 1; }
.cdot { fill: #fff; stroke: var(--accent); stroke-width: 1.5; }
.cline-x { display: flex; justify-content: space-between; padding: 0 3%; margin-top: 8px; font-size: 12px; color: var(--muted); }
.dash-note { max-width: none; padding: 12px 20px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--hairline); background: var(--mist); }
.dash-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: clamp(28px, 4vw, 56px); }
.dash-points li { border-top: 1px solid var(--slate); padding-top: 18px; color: var(--muted); font-size: 15px; }
.dash-points b { display: block; color: var(--slate); font-weight: 400; font-size: 20px; margin-bottom: 8px; }
@media (max-width: 900px) {
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .dp-bars, .dp-donut, .dp-clients, .dp-line { grid-column: 1 / -1; }
  .dash-points { grid-template-columns: 1fr; }
  .cbars { min-height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .dash:not(.is-visible) .cbar i, .js .dash:not(.is-visible) .cclients li i { transform: none; }
  .js .dash:not(.is-visible) .cpath { stroke-dashoffset: 0; }
  .js .dash:not(.is-visible) .cseg { stroke-dasharray: revert !important; }
  .js .dash:not(.is-visible) .cbar b { opacity: 1; }
}

/* Hero: el documento cambia de ejemplo; se reserva altura para que la página no salte */
.sim-sums .sim-sum + .sim-sum { border-top: 0; padding-top: 4px; }
.sim .sim-doc { min-height: var(--sim-doc-h, 0px); }
.sim .sim-doc { display: flex; flex-direction: column; }
.sim .sim-doc .sim-total { margin-top: auto; }

/* Integraciones: chip de estado sobre cada tarjeta */
.int-status { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.int-status.int-live { color: var(--positive); }
.trade h3 { display: flex; align-items: center; gap: 8px; }
.int-logo { border-radius: 4px; flex: none; }

/* Panel de funciones: aviso de duplicado y riesgo de impago */
.chips span.warn { background: rgba(217,119,6,0.12); color: #b45309; }
.urow .risk { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 2px; }
.risk.high { background: rgba(220,38,38,0.1); color: #dc2626; }
.risk.mid { background: rgba(217,119,6,0.12); color: #b45309; }

/* ---- Integraciones: slider horizontal de 2 filas (móvil) / 3 filas (tablet y escritorio) ---- */
.int-slider { margin-top: 8px; }
.int-track {
  list-style: none; margin: 0; padding: 6px 2px 10px;
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto);
  grid-auto-columns: 112px; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab;
}
.int-track::-webkit-scrollbar { display: none; }
.int-track.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.int-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.int-tile {
  scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 8px 14px; text-align: center; background: var(--bone);
  border: 1px solid var(--hairline); border-radius: 12px;
  transition: transform .35s var(--ease), border-color .25s, box-shadow .35s var(--ease);
}
.int-tile:hover { transform: translateY(-3px); border-color: var(--lavender); box-shadow: 0 10px 24px -14px rgba(83, 58, 253, .35); }
.int-tile b { font-size: 13px; font-weight: 600; color: var(--slate); line-height: 1.25; }
.int-tile em { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.int-tile em.int-live { color: var(--positive); }
.int-tile em.int-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--positive); margin-right: 5px; vertical-align: 1px; }
.int-tile.is-live { border-color: #bfe3cb; background: linear-gradient(180deg, #f4fbf6, var(--bone)); }
.int-tile .int-logo { width: 34px; height: 34px; object-fit: contain; pointer-events: none; }
.int-bank { color: var(--slate); }
.int-mark { display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: -.02em; color: #05c3dd; width: auto !important; }
.int-controls { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.int-progress { flex: 1; height: 3px; border-radius: 3px; background: var(--hairline); overflow: hidden; }
.int-progress span { display: block; height: 100%; width: 30%; background: var(--accent); border-radius: 3px; transform-origin: left; transition: transform .15s linear; }
.int-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hairline); background: var(--bone);
  color: var(--slate); font-size: 16px; cursor: pointer; transition: border-color .2s, background .2s, opacity .2s;
}
.int-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--periwinkle); }
.int-btn:disabled { opacity: .35; cursor: default; }
.int-note { margin-top: 18px; max-width: 64ch; font-size: 14px; color: var(--steel); }
@media (min-width: 768px) {
  .int-track { grid-template-rows: repeat(3, auto); grid-auto-columns: 156px; gap: 14px; }
  .int-tile { padding: 22px 10px 18px; }
  .int-tile .int-logo { width: 40px; height: 40px; }
  .int-tile b { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .int-tile, .int-progress span { transition: none; } .int-tile:hover { transform: none; } }
.int-tile .int-logo[src*="woocommerce"] { width: 62px; }
.int-slider.no-scroll .int-controls { display: none; }
@media (min-width: 1100px) { .int-track { grid-auto-columns: calc((100% - 5 * 14px) / 5.45); } }

/* ---- Menú con secciones desplegables ---- */
.nav-item { position: relative; }
.nav-trigger { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 500; color: inherit; opacity: .8; cursor: pointer; transition: opacity .2s, color .2s; }
.nav-trigger:hover, .nav-item.is-open .nav-trigger { opacity: 1; color: var(--accent); }
.nav.is-dark .nav-trigger:hover, .nav.is-dark .nav-item.is-open .nav-trigger { color: var(--lavender); }
.nav-trigger .chev { transition: transform .25s var(--ease); }
.nav-item.is-open .chev { transform: rotate(180deg); }
.nav-sub { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px); padding-top: 18px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .3s var(--ease), visibility .2s; z-index: 60; }
.nav-item.is-open > .nav-sub { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
@media (hover: hover) and (min-width: 961px) {
  .nav-item.has-sub:hover > .nav-sub { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
  .nav-item.has-sub:hover .chev { transform: rotate(180deg); }
}
.nav-sub-in { background: #fff; color: var(--slate); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: 0 28px 64px -28px rgba(6, 27, 49, .38); padding: 12px; min-width: 370px; display: grid; gap: 2px; }
.nav-sub.cols .nav-sub-in { grid-template-columns: 1fr 1fr; min-width: 640px; }
.nav-sub-h { grid-column: 1 / -1; margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 6px; }
.nav-sub-a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; transition: background .2s; }
.nav-sub-a:hover { background: var(--mist); }
.nav-sub-a b { display: block; font-size: 14px; font-weight: 600; color: var(--slate); }
.nav-sub-a small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.ni { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid color-mix(in srgb, var(--c) 20%, #fff); }
.ni svg { width: 19px; height: 19px; }
.nav-promo { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; padding: 16px 18px; border-radius: 12px; background: var(--slate); color: #fff; }
.nav-promo small { display: block; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 4px; }
.nav-promo b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.nav-promo em { flex: none; font-style: normal; font-size: 13px; font-weight: 600; background: #fff; color: var(--slate); padding: 9px 14px; border-radius: 999px; }
body.nav-lock { overflow: hidden; }
[data-tradetabs], .aud-card, #autonomos, #asesorias { scroll-margin-top: calc(var(--nav-h) + 24px); }
@media (min-width: 961px) and (max-width: 1180px) { .nav-links { gap: 16px; } .nav-cta .btn-ghost { display: none; } }

@media (max-width: 960px) {
  .nav-menu { position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; height: calc(100dvh - var(--nav-h)); overflow-y: auto; padding: 0 22px; gap: 0; justify-content: flex-start; background: #fff; color: var(--slate); border: 0; }
  .nav.is-dark .nav-menu { background: #fff; border: 0; }
  .nav.is-open, .nav.is-dark.is-open { background: #fff; color: var(--slate); }
  .nav.is-open .nav-burger { border-color: var(--hairline); }
  .nav-links { flex: 1; padding-top: 6px; }
  .nav-links > a, .nav-trigger { width: 100%; justify-content: space-between; padding: 17px 2px; font-size: 18px; font-weight: 500; opacity: 1; color: var(--slate); border-bottom: 1px solid var(--hairline); }
  .nav-trigger:hover, .nav-item.is-open .nav-trigger { color: var(--accent); }
  .nav-sub { position: static; display: none; transform: none; padding: 0; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-item.is-open > .nav-sub { display: block; transform: none; }
  .nav-sub-in { min-width: 0 !important; border: 0; box-shadow: none; padding: 4px 0 12px; grid-template-columns: 1fr !important; border-radius: 0; }
  .nav-sub-h { padding: 12px 2px 6px; }
  .nav-sub-a { padding: 9px 2px; }
  .nav-sub-a small { display: none; }
  .nav-sub-a b { font-size: 16px; font-weight: 500; }
  .nav-promo { flex-direction: column; align-items: flex-start; }
  .nav-cta { position: sticky; bottom: 0; flex-direction: row; flex-wrap: nowrap; gap: 8px; margin: 0 -22px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--hairline); }
  .nav-cta .btn { width: auto; flex: 1; min-width: 0; padding: 13px 8px; font-size: 13.5px; white-space: nowrap; }
  .nav-cta .lang-switch { flex: none; }
}

/* ---- Para quién: autónomos y asesorías ---- */
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.aud-card { padding: clamp(24px, 3vw, 42px); border: 1px solid var(--hairline); border-radius: 18px; background: var(--bone); }
.aud-card.is-accent { background: linear-gradient(180deg, var(--periwinkle), #fff 70%); border-color: var(--lavender); }
.aud-card h3 { font-size: clamp(19px, 1.9vw, 24px); margin: 4px 0 20px; letter-spacing: -.01em; max-width: none; }
.aud-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.aud-list li { position: relative; padding-left: 28px; color: var(--steel); font-size: 15.5px; line-height: 1.5; }
.aud-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 800px) { .aud-grid { grid-template-columns: 1fr; } }

/* ---- Recorrido interactivo de la app ---- */
.tour { position: relative; max-width: 1080px; margin: 0 auto; padding-bottom: 40px; }
@media (min-width: 1001px) { .tour { max-width: 1200px; padding-right: 150px; } .tour-stage { padding-right: 66px; } }
.tour-frame { background: #fff; border: 1px solid var(--hairline); border-radius: 20px; box-shadow: 0 40px 90px -40px rgba(6, 27, 49, .28); overflow: hidden; }
.tour-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); background: var(--mist); }
.tour-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d5dee9; }
.tour-bar span { margin-left: auto; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tour-body { display: grid; grid-template-columns: 64px 1fr; }
.tour-rail { display: flex; flex-direction: column; gap: 6px; padding: 14px 10px; border-right: 1px solid var(--hairline); background: var(--mist); }
.tour-tab { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--steel); cursor: pointer; transition: background .2s, color .2s; }
.tour-tab svg { width: 20px; height: 20px; }
.tour-tab:hover { background: #fff; color: var(--accent); }
.tour-tab.is-active { background: var(--slate); color: #fff; }
.tour-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tour-lbl { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--slate); color: #fff; font-size: 12px; padding: 5px 9px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 5; }
.tour-tab:hover .tour-lbl, .tour-tab:focus-visible .tour-lbl { opacity: 1; }
.tour-stage { display: grid; padding: 22px 26px 26px; min-width: 0; }
.tour-pane { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; }
.tour-pane.is-active { opacity: 1; visibility: visible; transform: none; }
.tp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tp-head small, .kpi small, .tp-card > small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tp-head h3 { margin: 3px 0 0; font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -.01em; max-width: none; color: var(--slate); }
.tp-btn { flex: none; font-size: 12.5px; font-weight: 600; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--slate); background: #fff; white-space: nowrap; }
.tp-btn.is-fill { background: var(--accent); border-color: var(--accent); color: #fff; }
.tp-note { margin: 0; font-size: 13px; color: var(--muted); max-width: none; }
.tbl { display: grid; border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; }
.tr { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.tr:last-child { border-bottom: 0; }
.tr-a b { display: block; font-size: 14px; font-weight: 600; color: var(--slate); }
.tr-a small { display: block; font-size: 12.5px; color: var(--muted); }
.tr-c { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--slate); text-align: right; }
.tr-d { min-width: 118px; text-align: right; }
.tc { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tc-ok { background: #e6f5ec; color: #15803d; } .tc-warn { background: #fff3dc; color: #a15c07; } .tc-bad { background: #fde8ea; color: #be123c; }
.tc-info { background: var(--periwinkle); color: var(--accent); } .tc-mute { background: #eef2f7; color: var(--steel); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 14px 16px; border: 1px solid var(--hairline); border-radius: 12px; }
.kpi b { display: block; white-space: nowrap; margin-top: 6px; font-size: clamp(17px, 2.2vw, 26px); font-weight: 600; letter-spacing: -.02em; color: var(--slate); font-variant-numeric: tabular-nums; }
.kpi.is-hi { background: var(--periwinkle); border-color: var(--lavender); } .kpi.is-hi b { color: var(--accent); }
.tp-card { padding: 14px 16px; border: 1px solid var(--hairline); border-radius: 12px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; margin-top: 12px; }
.bar { flex: 1; display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.bar i { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; transform-origin: bottom; }
.bar i.neg { background: #eaa3b1; }
.tour-pane.is-active .bar i { animation: barGrow .8s var(--ease) both; }
@keyframes barGrow { from { transform: scaleY(0); } }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } }
.tp-alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #fff3dc; color: #7a4a05; font-size: 13.5px; }
.tp-alert.is-ok { background: #e6f5ec; color: #116a30; } .tp-alert.is-info { background: var(--periwinkle); color: var(--accent); }
.hb { display: grid; grid-template-columns: 112px 1fr 64px; align-items: center; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--steel); }
.hb em { display: block; height: 8px; border-radius: 8px; background: #eef2f7; overflow: hidden; }
.hb em i { display: block; height: 100%; background: var(--accent); border-radius: 8px; }
.hb b { text-align: right; color: var(--slate); font-variant-numeric: tabular-nums; }
.chat-u { align-self: flex-end; max-width: 82%; background: var(--slate); color: #fff; padding: 12px 16px; border-radius: 16px 16px 4px 16px; font-size: 14px; }
.chat-a { max-width: 94%; border: 1px solid var(--hairline); border-radius: 16px 16px 16px 4px; padding: 14px 16px; display: grid; gap: 12px; font-size: 14px; }
.mini-inv { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 14px; background: var(--mist); border-radius: 10px; }
.mini-inv small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.mini-inv dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 2px 20px; font-size: 13px; }
.mini-inv dt { color: var(--muted); } .mini-inv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; } .mini-inv .t { font-weight: 700; color: var(--slate); }
.chat-act { display: flex; gap: 8px; flex-wrap: wrap; }
.scan { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; }
.ticket { background: #fffef8; border: 1px dashed #cfd6de; padding: 16px 14px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: #33404f; display: grid; gap: 6px; transform: rotate(-1.5deg); box-shadow: 0 10px 24px -16px rgba(6, 27, 49, .4); }
.ticket b { text-align: center; font-size: 13px; } .ticket i { display: block; border-top: 1px dashed #cfd6de; }
.ticket span { display: flex; justify-content: space-between; } .ticket em { font-style: normal; } .ticket .t { font-weight: 700; } .ticket small { text-align: center; color: #8794a5; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fields > div { padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 10px; }
.fields small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; } .fields b { font-size: 14px; color: var(--slate); }
.fields .tp-btn { grid-column: 1 / -1; justify-self: start; }
.tour-phone { position: absolute; right: 0; bottom: -8px; width: 208px; border: 6px solid #0b1a2e; border-radius: 30px; background: #0b1a2e; box-shadow: 0 30px 60px -24px rgba(6, 27, 49, .55); overflow: hidden; z-index: 3; }
.ph-top { height: 20px; display: grid; place-items: center; } .ph-top i { width: 56px; height: 8px; border-radius: 8px; background: #000; }
.ph-body { padding: 10px 14px 16px; background: var(--slate); color: #fff; }
.ph-body small { display: block; font-size: 10px; color: var(--muted-on-dark); }
.ph-body b { display: block; font-size: 26px; letter-spacing: -.02em; font-weight: 600; }
.ph-body .bars { height: 56px; gap: 5px; margin: 10px 0; } .ph-body .bar i { background: #7d6dff; } .ph-body .bar i.neg { background: #ff9bb0; }
.ph-acts { display: flex; gap: 6px; } .ph-acts span { flex: 1; text-align: center; font-size: 10px; padding: 7px 0; border-radius: 8px; background: rgba(255, 255, 255, .12); }
.ph-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-size: 11px; }
.ph-row i { width: 7px; height: 7px; border-radius: 50%; background: #f0b429; } .ph-row i.b { background: #4ade80; }
.tour-pills { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; background: #fff; border: 1px solid var(--hairline); border-radius: 999px; box-shadow: 0 12px 30px -16px rgba(6, 27, 49, .35); padding: 6px; z-index: 2; }
.tour-pills span { padding: 8px 16px; font-size: 13px; font-weight: 500; color: var(--slate); white-space: nowrap; }
.tour-pills span + span { border-left: 1px solid var(--hairline); }
@media (max-width: 1000px) { .tour-phone { display: none; } }
@media (max-width: 900px) {
  .tour-body { grid-template-columns: 1fr; }
  .tour-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--hairline); padding: 10px 12px; scrollbar-width: none; }
  .tour-rail::-webkit-scrollbar { display: none; }
  .tour-tab { flex: none; width: auto; min-width: 74px; height: auto; padding: 9px 8px; display: flex; flex-direction: column; gap: 5px; }
  .tour-lbl { position: static; transform: none; opacity: 1; background: none; color: inherit; padding: 0; font-size: 11px; }
  .tour-stage { padding: 18px 16px 40px; }
  .tour-pills { max-width: calc(100% - 16px); } .tour-pills span { padding: 8px 12px; font-size: 12px; white-space: normal; text-align: center; }
  .scan { grid-template-columns: 1fr; } .ticket { max-width: 240px; }
  .kpi b { font-size: 14px; } .kpis { gap: 8px; }
  .tour-pane { transition: none; } .tour-pane:not(.is-active) { display: none; } .tour-pane.is-active { animation: paneIn .35s var(--ease); }
  .kpi { padding: 10px 9px; } .kpi small { font-size: 10px; letter-spacing: .04em; }
  .tr { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 11px 14px; } .tr-d { grid-column: 1 / -1; text-align: left; min-width: 0; }
  .hb { grid-template-columns: 88px 1fr 58px; }
}
@media (max-width: 560px) { .tp-head .tp-btn { display: none; } .fields { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tour-pane, .tour-tab { transition: none; } .tour-pane.is-active .bar i { animation: none; } }

/* ---- Por qué Lúcido / Abierto por diseño / Sin letra pequeña ---- */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { display: flex; flex-direction: column; padding: 28px 26px; border: 1px solid var(--hairline); border-radius: 18px; background: var(--bone); transition: transform .35s var(--ease), border-color .25s, box-shadow .35s var(--ease); }
.why-card:hover { transform: translateY(-4px); border-color: var(--lavender); box-shadow: 0 18px 40px -26px rgba(83, 58, 253, .4); }
.why-n { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--accent); }
.why-card h3 { margin: 14px 0 10px; font-size: clamp(19px, 1.8vw, 23px); letter-spacing: -.01em; max-width: none; }
.why-card p { margin: 0; color: var(--steel); font-size: 15.5px; line-height: 1.55; max-width: none; }
.why-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 18px; }
.why-tags span { font-size: 12px; color: var(--steel); background: var(--mist); border: 1px solid var(--hairline); padding: 4px 10px; border-radius: 999px; }
.why-tags span::before { content: "+ "; color: var(--accent); font-weight: 600; }
.why-tags a { font-size: 12.5px; font-weight: 600; color: var(--accent); align-self: center; margin-left: 4px; }
.open-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.open-card { padding: 28px 26px; border: 1px dashed var(--lavender); border-radius: 18px; background: linear-gradient(180deg, var(--periwinkle), #fff 80%); }
.open-card h3 { margin: 4px 0 10px; font-size: clamp(19px, 1.8vw, 23px); max-width: none; }
.open-card p { margin: 0; color: var(--steel); font-size: 15.5px; max-width: none; }
.check-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 28px; }
.check-grid li { position: relative; padding: 18px 0 18px 34px; border-top: 1px solid var(--hairline); color: var(--steel); font-size: 15px; line-height: 1.5; }
.check-grid li b { display: block; color: var(--slate); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.check-grid li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 13px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.tool-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 44px; padding: clamp(24px, 3vw, 36px); border-radius: 20px; background: var(--slate); color: #fff; }
.tool-cta h3 { margin: 4px 0 8px; font-size: clamp(20px, 2.2vw, 28px); color: #fff; max-width: none; }
.tool-cta p { margin: 0; color: var(--muted-on-dark); max-width: 52ch; font-size: 15px; }
.tool-cta .int-status { color: var(--lavender); margin-bottom: 4px; }
.tool-cta .btn { flex: none; }
.tool-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); background: transparent; }
@media (max-width: 960px) { .why-grid, .open-grid { grid-template-columns: 1fr 1fr; } .check-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .why-grid, .open-grid, .check-grid { grid-template-columns: 1fr; } .tool-cta { flex-direction: column; align-items: flex-start; } .tool-cta .btn { width: 100%; text-align: center; } }

/* ---- Directorio de integraciones ---- */
.dir-tools { display: grid; gap: 16px; margin-bottom: 18px; }
.dir-searchbox input { width: 100%; max-width: 460px; padding: 14px 18px; font: inherit; font-size: 15px; color: var(--slate); background: #fff; border: 1px solid var(--hairline); border-radius: 999px; outline: none; transition: border-color .2s, box-shadow .2s; }
.dir-searchbox input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(83, 58, 253, .12); }
.dir-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dir-chip { font: inherit; font-size: 13.5px; font-weight: 500; color: var(--steel); background: #fff; border: 1px solid var(--hairline); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.dir-chip:hover { border-color: var(--lavender); color: var(--accent); }
.dir-chip.is-active { background: var(--slate); border-color: var(--slate); color: #fff; }
.dir-count { margin: 6px 0 18px; font-size: 13px; color: var(--muted); }
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dir-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px 22px; border: 1px solid var(--hairline); border-radius: 16px; background: #fff; transition: transform .35s var(--ease), border-color .25s, box-shadow .35s var(--ease); }
.dir-card:hover { transform: translateY(-3px); border-color: var(--lavender); box-shadow: 0 16px 36px -26px rgba(83, 58, 253, .4); }
.dir-card .int-logo { flex: none; width: 38px; height: 38px; object-fit: contain; }
.dir-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dir-top h3 { margin: 0; font-size: 17px; max-width: none; }
.dir-top .int-status { margin: 0; font-size: 10px; }
.dir-card small { display: block; margin: 2px 0 8px; font-size: 12px; color: var(--muted); }
.dir-card p { margin: 0; font-size: 14px; color: var(--steel); line-height: 1.5; max-width: none; }
.dir-empty { padding: 40px 0; text-align: center; color: var(--muted); }
@media (max-width: 960px) { .dir-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .dir-grid { grid-template-columns: 1fr; } }

/* ---- Generador de facturas ---- */
.gen { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gen-form fieldset { border: 0; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.gen-form legend { padding: 0; margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.gen-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--steel); }
.gen-form input, .gen-form select, .gen-form textarea { width: 100%; padding: 11px 13px; font: inherit; font-size: 14.5px; color: var(--slate); background: #fff; border: 1px solid var(--hairline); border-radius: 10px; outline: none; transition: border-color .2s, box-shadow .2s; }
.gen-form input:focus, .gen-form select:focus, .gen-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(83, 58, 253, .12); }
.gen-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gen-type { display: flex; gap: 4px; padding: 4px; margin-bottom: 20px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--mist); }
.gen-type-btn { flex: 1; padding: 10px 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.gen-type-btn.is-on { background: var(--accent); color: #fff; }
.gen-hint { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); max-width: none; }
.g-line { border: 1px solid var(--hairline); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.g-line-top { display: flex; align-items: center; gap: 8px; }
.g-line-top input { flex: 1; min-width: 0; }
.g-line-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.g-line-grid label { display: grid; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; overflow-wrap: break-word; }
.g-line-grid input, .g-line-grid select { padding: 9px 8px; font-size: 13.5px; }
.g-del { flex: none; border: 1px solid var(--hairline); background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1; cursor: pointer; border-radius: 8px; padding: 9px 12px; white-space: nowrap; }
.g-del:hover { color: #be123c; background: #fde8ea; border-color: #f0b6b6; }
.gen-side { position: sticky; top: calc(var(--nav-h) + 20px); }
.gen-preview { background: #fff; border: 1px solid var(--hairline); border-radius: 16px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 30px 70px -40px rgba(6, 27, 49, .3); font-size: 14px; color: var(--slate); }
.gen-preview small { display: block; color: var(--muted); font-size: 12.5px; }
.inv-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--hairline); }
.inv-head b { display: block; font-size: 16px; }
.inv-title { text-align: right; } .inv-title span { display: block; font-size: 11px; letter-spacing: .12em; color: var(--accent); font-weight: 600; }
.inv-title #p-validez { margin-top: 2px; }
.inv-client { padding: 18px 0; } .inv-client small:first-child { font-size: 11px; letter-spacing: .09em; font-weight: 600; margin-bottom: 4px; } .inv-client b { display: block; font-size: 15px; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.inv-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--hairline); }
.inv-table th:not(:first-child), .inv-table td.r { text-align: right; }
.inv-table td { padding: 10px 6px; border-bottom: 1px solid var(--hairline); font-variant-numeric: tabular-nums; }
.inv-totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; margin: 18px 0 0 auto; max-width: 300px; font-size: 14px; }
.inv-totals dt { color: var(--muted); } .inv-totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.inv-totals .t { font-size: 18px; font-weight: 700; color: var(--slate); padding-top: 8px; border-top: 1px solid var(--slate); }
.inv-notes { margin: 20px 0 0; font-size: 13px; color: var(--steel); white-space: pre-line; max-width: none; }
.gen-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.gen-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); max-width: none; }
@media (max-width: 960px) { .gen { grid-template-columns: minmax(0, 1fr); } .gen-side { position: static; } }
@media (max-width: 560px) {
  .g-line-grid { grid-template-columns: 1fr 1fr; }
  .inv-head { flex-direction: column; }
  .inv-title { text-align: left; }
}
@media print {
  .nav, .footer, .page-hero, .gen-form, .gen-actions, .gen-note, .gen-cta, .cursor, .loader { display: none !important; }
  .section, .container { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .gen { display: block; } .gen-side { position: static; }
  .gen-preview { border: 0; box-shadow: none; padding: 0; }
  body { background: #fff; }
}

/* Iconos propios de Lúcido: trazo redondeado + relleno suave + punto sólido */
.lx { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lx .f { fill: currentColor; fill-opacity: .15; stroke: none; }
.lx .d { fill: currentColor; stroke: none; }

/* ---- Identidad propia: enfoque, hoja de ruta, compromisos, menú y recorrido ---- */
.lx-tile { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--accent); background: var(--periwinkle); }
.lx-tile .lx { width: 26px; height: 26px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 56px; }
.why-list li { display: flex; gap: 20px; align-items: flex-start; }
.why-list h3 { margin: 2px 0 8px; font-size: clamp(19px, 1.8vw, 23px); letter-spacing: -.01em; max-width: none; }
.why-list p { margin: 0 0 10px; color: var(--steel); font-size: 15.5px; line-height: 1.55; max-width: none; }
.why-list em { font-style: normal; font-size: 13px; color: var(--muted); border-left: 2px solid var(--lavender); padding-left: 10px; }
.why-list em a { color: var(--accent); font-weight: 600; }
.road { list-style: none; margin: 0; padding: 0 0 0 30px; display: grid; gap: 32px; border-left: 2px dashed var(--lavender); max-width: 720px; }
.road li { position: relative; }
.road li::before { content: ""; position: absolute; left: -39px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--periwinkle); }
.road h3 { margin: 2px 0 6px; font-size: clamp(19px, 1.8vw, 23px); max-width: none; }
.road p { margin: 0; color: var(--steel); font-size: 15.5px; max-width: 56ch; }
.pledge { margin: 0; display: grid; }
.pledge > div { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 12px 40px; padding: 20px 0; border-top: 1px solid var(--hairline); }
.pledge > div:last-child { border-bottom: 1px solid var(--hairline); }
.pledge dt { font-size: 17px; font-weight: 600; color: var(--slate); }
.pledge dd { margin: 0; color: var(--steel); font-size: 15.5px; }
.int-legal { margin: 18px 0 0; max-width: 70ch; font-size: 12px; line-height: 1.5; color: var(--muted); }
@media (max-width: 900px) { .why-list { grid-template-columns: 1fr; } .pledge > div { grid-template-columns: 1fr; gap: 4px; } }

/* menú: tarjeta de invitación con estilo propio */
.nav-promo { background: var(--periwinkle); color: var(--slate); border: 1px solid var(--lavender); }
.nav-promo small { color: var(--accent); }
.nav-promo em { background: transparent; color: var(--accent); padding: 0; border-radius: 0; text-decoration: underline; text-underline-offset: 3px; }

/* recorrido: pestañas arriba, como una ventana de navegador, en todos los tamaños */
.tour, .tour-frame + * { padding-right: 0; }
@media (min-width: 1001px) { .tour { max-width: 1080px; padding-right: 0; } .tour-stage { padding-right: 26px; } }
.tour-body { grid-template-columns: 1fr; }
.tour-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--hairline); padding: 10px 14px; gap: 6px; scrollbar-width: none; }
.tour-rail::-webkit-scrollbar { display: none; }
.tour-tab { flex: none; width: auto; min-width: 0; height: auto; padding: 9px 14px; display: flex; flex-direction: row; align-items: center; gap: 8px; border-radius: 999px; }
.tour-tab svg { width: 18px; height: 18px; }
.tour-lbl { position: static; transform: none; opacity: 1; background: none; color: inherit; padding: 0; font-size: 13px; font-weight: 500; pointer-events: none; }
.tour-phone, .tour-pills { display: none !important; }
.tour { padding-bottom: 0; }

/* integraciones: cada logo dentro de una insignia circular */
.int-tile .int-logo { box-sizing: content-box; width: 30px; height: 30px; padding: 10px; border-radius: 50%; background: var(--mist); border: 1px solid var(--hairline); }
@media (min-width: 768px) { .int-tile .int-logo { width: 34px; height: 34px; } }
.int-tile.is-live .int-logo { background: #fff; border-color: #bfe3cb; }

/* ---- Identidad propia (3): insignias circulares monocromas, bloques claros y cierre en color de marca ---- */
/* Iconos del menú: círculo con aro y un solo color de marca (sin recuadros de colores distintos) */
.ni { border-radius: 50%; background: transparent !important; border: 1.5px solid var(--lavender) !important; color: var(--accent) !important; }
.nav-sub-a:hover .ni { background: var(--periwinkle) !important; border-color: var(--accent) !important; }
.lx-tile { border-radius: 50%; background: transparent; border: 1.5px solid var(--lavender); }

/* menú: entrada "Factura gratis" como cápsula propia */
.nav-links > a.nav-free { color: var(--accent); opacity: 1; padding: 7px 14px; border: 1px solid var(--lavender); border-radius: 999px; }
.nav-links > a.nav-free:hover { background: var(--periwinkle); }
@media (max-width: 960px) { .nav-links > a.nav-free { border-radius: 0; border-width: 0 0 1px 0; border-color: var(--hairline); padding: 17px 2px; } }

/* herramienta gratis: bloque claro, no oscuro */
.tool-cta { background: linear-gradient(120deg, var(--periwinkle), #fff); color: var(--slate); border: 1px solid var(--lavender); }
.tool-cta h3 { color: var(--slate); }
.tool-cta p { color: var(--steel); }
.tool-cta .int-status { color: var(--accent); }
.tool-cta .btn-ghost { color: var(--accent); border-color: var(--lavender); }

/* cierre: degradado del color de marca en lugar del bloque azul oscuro */
.cta-final.theme-dark { background: linear-gradient(135deg, #3a25d6 0%, #533afd 52%, #8a78ff 100%); }
.cta-final.theme-dark p, .cta-final.theme-dark .cta-steps small { color: rgba(255, 255, 255, .86); }
.cta-final.theme-dark .cta-steps span { color: #fff; }

/* Firma de color de Lúcido: iconos de línea en el morado de marca y un punto dorado (la "luz" de lúcido) */
.lx .d { fill: #f5a400; }

/* ---- Página de creadores y agencias ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-rev > :first-child { order: 0; }
.split-p { margin: 18px 0 20px; color: var(--steel); font-size: clamp(16px, 1.3vw, 18px); max-width: 52ch; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.aud-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .aud-grid { grid-template-columns: 1fr; } }

.demo { padding: clamp(20px, 3vw, 32px); background: #fff; border: 1px solid var(--hairline); border-radius: 20px; box-shadow: 0 30px 70px -44px rgba(83, 58, 253, .45); }
.demo-h { margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.demo-mods { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.demo-mod { font: inherit; font-size: 14px; font-weight: 500; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--hairline); background: #fff; color: var(--steel); cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.demo-mod small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.demo-mod:hover { border-color: var(--lavender); }
.demo-mod[aria-pressed="true"] { background: var(--periwinkle); border-color: var(--accent); color: var(--accent); }
.demo-mod[aria-pressed="true"] small { color: var(--accent); }
.demo-mod:active { transform: scale(.97); }
.demo-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; }
.demo-list li { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--hairline); font-size: 15px; }
.demo-list li:last-child { border-bottom: 0; }
.demo-price, [data-total] { font-variant-numeric: tabular-nums; transition: color .25s; }
.demo.is-changed .demo-price, .demo.is-changed [data-total] { color: var(--accent); }
.demo-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--slate); font-size: 15px; }
.demo-total b { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.demo-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); max-width: none; }

.lic-mock { padding: clamp(18px, 3vw, 28px); background: #fff; border: 1px solid var(--hairline); border-radius: 20px; box-shadow: 0 30px 70px -44px rgba(6, 27, 49, .3); }
.lic-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--hairline); border-radius: 12px; }
.lic-row b { display: block; font-size: 15px; }
.lic-row small { color: var(--muted); font-size: 12.5px; }
.lic-row em { font-style: normal; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.lic-row.is-soon { border-color: #f0d18a; background: #fff8e6; } .lic-row.is-soon em { color: #a15c07; }
.lic-row.is-ok em { color: var(--positive); }
.lic-row.is-late { border-color: #f1b7c0; background: #fff1f3; } .lic-row.is-late em { color: #be123c; }
.lic-btn { display: inline-block; margin-top: 6px; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; }
@media (max-width: 520px) { .lic-row { flex-direction: column; align-items: flex-start; gap: 6px; } }

.kit-mock { background: #fff; border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px -44px rgba(6, 27, 49, .3); max-width: 420px; justify-self: center; width: 100%; }
.kit-bar { height: 8px; background: var(--accent); }
.kit-body { padding: 26px; }
.kit-body h3 { margin: 0; font-size: 24px; font-weight: 400; max-width: none; }
.kit-tag { margin: 4px 0 18px; color: var(--accent); font-size: 14px; }
.kit-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kit-stats > div { border: 1px solid var(--hairline); border-radius: 10px; padding: 12px; }
.kit-stats b { display: block; font-size: 30px; font-weight: 300; color: var(--accent); }
.kit-stats small { color: var(--muted); font-size: 12px; line-height: 1.3; display: block; }
.kit-mini { margin: 16px 0 10px; font-size: 13px; color: var(--steel); }
.kit-body ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.kit-body li { position: relative; padding-left: 16px; margin-bottom: 6px; }
.kit-body li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: #f5a400; }

/* ---- Hero interactivo: un documento que se puede avanzar, editar y mover ---- */
.hx { position: relative; max-width: 520px; margin-inline: auto; }
.hx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hx-chip { font: inherit; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hairline); background: #fff; color: var(--steel); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.hx-chip:hover { border-color: var(--lavender); color: var(--accent); }
.hx-chip.is-active { background: var(--slate); border-color: var(--slate); color: #fff; }
.hx-chip:active { transform: scale(.96); }
.hx-prompt { min-height: 46px; display: flex; align-items: center; padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; background: var(--mist); border: 1px solid var(--hairline); font-size: 13.5px; color: var(--steel); line-height: 1.4; }
.hx-caret { display: inline-block; flex: none; width: 2px; height: 1.1em; margin-left: 2px; background: var(--accent); animation: hxBlink 1s steps(2) infinite; }
@keyframes hxBlink { 50% { opacity: 0; } }
.hx-stage { position: relative; perspective: 1100px; min-height: 470px; }
.hx-doc { position: relative; padding: 20px 22px 18px; background: #fff; border: 1px solid var(--hairline); border-radius: 20px; box-shadow: 0 40px 80px -46px rgba(83, 58, 253, .5), 0 8px 24px -16px rgba(6, 27, 49, .25); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease), box-shadow .3s; }
.hx-doc.is-flip { animation: hxFlip .5s var(--ease); }
@keyframes hxFlip { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg) scale(.96); } 100% { transform: rotateY(0); } }
.hx-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.hx-head small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.hx-head b { font-size: 16px; font-variant-numeric: tabular-nums; }
.hx-status { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: #eef2f7; color: var(--steel); transition: background .3s, color .3s; white-space: nowrap; }
.hx-status[data-s="enviado"] { background: var(--periwinkle); color: var(--accent); }
.hx-status[data-s="aceptado"] { background: #e6f5ec; color: #15803d; }
.hx-status[data-s="emitida"] { background: var(--accent); color: #fff; }
.hx-status[data-s="pagada"] { background: #15803d; color: #fff; }
.hx-client { margin: 12px 0 6px; font-size: 15px; font-weight: 600; max-width: none; }
.hx-lines { list-style: none; margin: 0; padding: 0; }
.hx-lines li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; animation: hxIn .45s var(--ease) both; }
@keyframes hxIn { from { opacity: 0; transform: translateY(8px); } }
.hx-lines li.is-out { animation: hxOut .28s ease both; }
@keyframes hxOut { to { opacity: 0; transform: translateX(16px); height: 0; padding: 0; } }
.hx-lines .d { flex: 1; min-width: 0; } .hx-lines .d small { display: block; color: var(--muted); font-size: 12px; }
.hx-lines b { font-variant-numeric: tabular-nums; font-weight: 600; }
.hx-x { flex: none; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.hx-x:hover { background: #fde8ea; color: #be123c; }
.hx-doc.is-locked .hx-x, .hx-doc.is-locked .hx-add, .hx-doc.is-locked .hx-irpf { display: none; }
.hx-add { margin-top: 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.hx-add:disabled { opacity: .35; cursor: default; }
.hx-sums { margin: 10px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; font-size: 13px; color: var(--muted); }
.hx-sums dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--steel); }
.hx-irpf { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--steel); cursor: pointer; }
.hx-irpf input { position: absolute; opacity: 0; pointer-events: none; }
.hx-switch { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--hairline); transition: background .25s; flex: none; }
.hx-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(6, 27, 49, .3); }
.hx-irpf input:checked + .hx-switch { background: var(--accent); } .hx-irpf input:checked + .hx-switch::after { transform: translateX(14px); }
.hx-irpf input:focus-visible + .hx-switch { outline: 2px solid var(--accent); outline-offset: 2px; }
.hx-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--slate); }
.hx-total strong { font-size: 26px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hx-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; min-height: 42px; }
.hx-cta { position: relative; }
.hx-cta.is-idle::after { content: ""; position: absolute; inset: -5px; border-radius: 999px; border: 2px solid var(--accent); animation: hxPulse 1.8s ease-out infinite; pointer-events: none; }
@keyframes hxPulse { from { opacity: .7; transform: scale(.94); } to { opacity: 0; transform: scale(1.12); } }
.hx-reset { font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hx-stamp { position: absolute; right: 18px; top: 58px; padding: 6px 14px; border: 3px solid currentColor; border-radius: 8px; font-size: 18px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transform: rotate(-11deg) scale(1.8); pointer-events: none; }
.hx-stamp.is-on { animation: hxStamp .55s var(--ease) forwards; }
@keyframes hxStamp { 0% { opacity: 0; transform: rotate(-11deg) scale(1.8); } 60% { opacity: 1; transform: rotate(-11deg) scale(.94); } 100% { opacity: .92; transform: rotate(-11deg) scale(1); } }
.hx-toast { position: absolute; left: 50%; bottom: -14px; width: max-content; max-width: 92%; transform: translate(-50%, 24px); opacity: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--slate); color: #fff; font-size: 13px; box-shadow: 0 20px 40px -20px rgba(6, 27, 49, .6); pointer-events: none; transition: opacity .35s, transform .45s var(--ease); z-index: 6; }
.hx-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.hx-toast i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #f5a400; }
.hx-sticker { position: absolute; z-index: 5; font: inherit; font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--accent); border: 1.5px solid var(--lavender); box-shadow: 0 10px 24px -14px rgba(83, 58, 253, .55); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.hx-sticker::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #f5a400; vertical-align: 1px; }
.hx-sticker.is-drag { cursor: grabbing; box-shadow: 0 18px 30px -12px rgba(83, 58, 253, .6); }
.hx-sticker.s1 { right: -10px; top: 26%; } .hx-sticker.s2 { left: -12px; top: 48%; } .hx-sticker.s3 { right: 4%; bottom: 14%; }
.hx-hint { margin: 22px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; max-width: none; }
.hx-conf { position: absolute; left: 50%; top: 40%; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; z-index: 7; animation: hxConf .95s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes hxConf { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); } }
@media (max-width: 960px) { .hx-sticker.s1 { right: 0; } .hx-sticker.s2 { left: 0; } .hx-stage { min-height: 450px; } }
@media (max-width: 520px) { .hx-doc { padding: 16px 16px 14px; } .hx-sticker { font-size: 11.5px; padding: 7px 11px; } .hx-total strong { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .hx-doc, .hx-lines li, .hx-toast, .hx-stamp, .hx-cta.is-idle::after, .hx-caret { animation: none !important; transition: none !important; } .hx-stamp.is-on { opacity: .92; transform: rotate(-11deg); } }

/* etiquetas del hero: fuera de las zonas donde se pulsa (quitar línea, botones), pero arrastrables a cualquier sitio */
.hx-stage { margin-top: 26px; }
.hx-sticker.s1 { left: 6%; right: auto; top: -18px; }
.hx-sticker.s2 { left: 42%; right: auto; top: -24px; }
.hx-sticker.s3 { right: 4%; left: auto; top: auto; bottom: -20px; }

/* ---- Invita y gana ---- */
.invite-card { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: 28px; border: 1px solid var(--lavender); background: linear-gradient(135deg, var(--periwinkle) 0%, #fff 70%); box-shadow: 0 40px 90px -56px rgba(83, 58, 253, .55); }
.invite-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; border: 1.5px solid var(--lavender); background: #fff; color: var(--accent); }
.invite-icon .lx { width: 28px; height: 28px; }
.invite-copy h2 { margin: 6px 0 14px; font-size: clamp(26px, 3.2vw, 40px); max-width: 16ch; }
.invite-copy p { margin: 0 0 22px; color: var(--steel); font-size: clamp(16px, 1.3vw, 18px); max-width: 48ch; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.invite-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.invite-steps li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--hairline); }
.invite-steps b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #ffd166, #f5a400); color: var(--slate); font-size: 15px; }
.invite-steps span { font-weight: 600; font-size: 15.5px; color: var(--slate); }
.invite-steps small { display: block; margin-top: 2px; font-weight: 400; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .invite-card { grid-template-columns: 1fr; } .invite-copy h2 { max-width: none; } }

/* Marca sobre fondos oscuros: el aro pasa a blanco y el disco sigue dorado */
.nav.is-dark .mk-ring, .theme-dark .mk-ring, .cta-final .mk-ring { stroke: #fff; }


/* «Invita y gana»: solo en el menú móvil como entrada directa (en escritorio vive en «Qué hace») */
.nav-links > a.nav-invite { display: none; }
@media (max-width: 960px) {
  .nav-links > a.nav-invite { display: flex; align-items: center; gap: 12px; color: var(--accent); }
  .nav-invite .lx { width: 22px; height: 22px; flex: none; }
  .nav-invite em { margin-left: auto; white-space: nowrap; font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, #ffd166, #f5a400); color: var(--slate); }
}

/* ---- Imágenes con scroll: revelado, parallax, zoom suave e interacción ---- */
.sx { position: relative; margin: 0; --p: .5; --mx: 0; --my: 0; }
.sx-frame { position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 16 / 10; background: var(--periwinkle);
  clip-path: inset(calc((1 - min(var(--p) * 3.2, 1)) * 12%) calc((1 - min(var(--p) * 3.2, 1)) * 6%) round 24px); }
.sx-frame img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; display: block; will-change: transform;
  transform: translate3d(calc(var(--mx) * 14px), calc((var(--p) - .5) * -9% + var(--my) * 9px), 0) scale(calc(1.13 - var(--p) * .08)); transition: opacity .35s; }
.sx-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(43, 27, 179, 0) 55%, rgba(43, 27, 179, .22)); }
.sx-tag { position: absolute; left: 14px; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #fff; background: rgba(6, 27, 49, .55); backdrop-filter: blur(6px); }
.sx-wide .sx-frame { aspect-ratio: 21 / 8; }
.sx-band { margin-top: 0; margin-bottom: clamp(32px, 5vw, 56px); }
.sx-second { position: absolute; right: -3%; bottom: -9%; z-index: 3; width: 40%; aspect-ratio: 16 / 10; padding: 0; border: 5px solid #fff; border-radius: 18px; overflow: hidden; cursor: pointer; background: var(--periwinkle);
  box-shadow: 0 24px 50px -24px rgba(6, 27, 49, .55); transform: translate3d(0, calc((var(--p) - .5) * 46px), 0) rotate(calc((var(--p) - .5) * 5deg)); transition: box-shadow .3s, filter .3s; }
.sx-second img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.sx-second:hover img { transform: scale(1.08); }
.sx-second:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sx.is-swap .sx-frame img, .sx.is-swap .sx-second img { opacity: 0; }
/* dentro de los sectores: la foto arriba y el documento montado encima */
.sx-sector { margin-bottom: 0; }
.sx-sector .sx-frame { aspect-ratio: 16 / 9; }
.sx-sector + .tdoc { position: relative; z-index: 2; margin-top: -54px; width: calc(100% - 28px); box-shadow: 0 30px 60px -34px rgba(6, 27, 49, .45); }
.sx-pair { margin-bottom: 26px; }
.sx-icon .sx-frame { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; clip-path: none; background: linear-gradient(135deg, #2b1bb3, #533afd 55%, #8a78ff); color: #fff; }
.sx-icon .lx { width: 56px; height: 56px; } .sx-icon .lx .d { fill: #ffd166; } .sx-icon span { font-size: 15px; font-weight: 500; letter-spacing: .02em; }
.tradepanel.is-active .sx-frame img { animation: sxIn 1s var(--ease) both; }
@keyframes sxIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 900px) { .sx-wide .sx-frame { aspect-ratio: 16 / 9; } .sx-second { width: 46%; right: -2%; } .sx-sector + .tdoc { margin-top: -40px; } }
@media (prefers-reduced-motion: reduce) { .sx-frame { clip-path: none; } .sx-frame img, .sx-second { transform: none !important; } .tradepanel.is-active .sx-frame img { animation: none; } }

/* Capturas reales de la app y bloques con imagen */
.shot { margin: 0; }
.shot-band { max-width: 1000px; margin: 0 auto clamp(36px, 5vw, 64px); }
.shot-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--hairline); background: #fff; box-shadow: 0 40px 80px -44px rgba(43, 27, 179, .4); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.shot:hover .shot-frame { transform: translateY(-4px); box-shadow: 0 50px 90px -44px rgba(43, 27, 179, .5); }
.shot-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--periwinkle); border-bottom: 1px solid var(--hairline); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--lavender); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--muted); }
.theme-dark .shot figcaption { color: rgba(255, 255, 255, .6); }
.theme-dark .shot-frame { border-color: rgba(255, 255, 255, .14); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7); }
.phone-shot { max-width: 300px; margin-inline: auto; }
.phone-shot .shot-frame { border-radius: 40px; border: 9px solid var(--slate); }
.vis-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.vis-split .why-list { grid-template-columns: 1fr; gap: 26px; }
.sx-tall .sx-frame { aspect-ratio: 4 / 5; }
@media (max-width: 900px) { .vis-split { grid-template-columns: 1fr; } .sx-tall .sx-frame { aspect-ratio: 16 / 10; } }
@media (prefers-reduced-motion: reduce) { .shot-frame, .shot:hover .shot-frame { transition: none; transform: none; } }

/* Móvil e interacción */
.read-bar { position: fixed; left: 0; top: 0; z-index: 150; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, #2b1bb3, #533afd 55%, #ffd166); pointer-events: none; }
.car-dots { display: none; }
.mcta { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 90; transform: translate(-50%, 140%); padding: 9px 17px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; box-shadow: 0 12px 28px -12px rgba(43, 27, 179, .6); transition: transform .45s var(--ease), background .2s; opacity: 0; pointer-events: none; }
.mcta.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.mcta:active { transform: translate(-50%, 0) scale(.96); }
@media (min-width: 901px) { .mcta { display: none; } }

/* galería de pantallas */
.phones { position: relative; margin-top: clamp(8px, 2vw, 24px); }
.phones-track { position: relative; display: flex; gap: clamp(14px, 2.4vw, 32px); overflow-x: auto; padding: 18px calc(50% - 140px) 26px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; cursor: grab; outline: none; }
.phones-track::-webkit-scrollbar { display: none; }
.phones-track.is-drag { scroll-snap-type: none; cursor: grabbing; }
.phones-track.is-drag .phone { transition: none; }
.phone { --d: 1; flex: 0 0 280px; margin: 0; scroll-snap-align: center; transform: scale(calc(1 - var(--d) * .09)); opacity: calc(1 - var(--d) * .38); transition: opacity .25s linear; user-select: none; }
.phone-shell { border-radius: 42px; border: 9px solid var(--slate); overflow: hidden; background: #fff; box-shadow: 0 40px 70px -40px rgba(43, 27, 179, .55); }
.phone-shell img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.phone figcaption { margin-top: 16px; text-align: center; }
.phone figcaption b { display: block; font-size: 16px; font-weight: 600; color: var(--slate); }
.phone figcaption span { display: block; margin: 4px auto 0; max-width: 26ch; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.phone:not(.is-cur) figcaption { visibility: hidden; }
.phones-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 4px; }
.phones-dots { display: flex; gap: 8px; }
.phones-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--lavender); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.phones-dots button.is-on { width: 24px; background: var(--accent); }
.phones-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--lavender); background: #fff; color: var(--accent); cursor: pointer; transition: background .2s, transform .2s; }
.phones-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phones-arrow:hover:not(:disabled) { background: var(--periwinkle); }
.phones-arrow:active:not(:disabled) { transform: scale(.92); }
.phones-arrow:disabled { opacity: .35; cursor: default; }
@media (prefers-reduced-motion: reduce) { .phone { transform: none; opacity: 1; transition: none; } .read-bar { display: none; } }

@media (max-width: 900px) {
  /* pasos y tareas como tarjetas que se deslizan */
  .steps, .tasks { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; --gx: 24px; scroll-padding-inline: var(--gx); margin-inline: calc(50% - 50vw); padding: 4px calc(50vw - 50%) 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .steps::-webkit-scrollbar, .tasks::-webkit-scrollbar { display: none; }
  .steps > *, .tasks > * { opacity: 1 !important; transform: none !important; }
  .step { flex: 0 0 82%; scroll-snap-align: start; padding: 24px 22px; border: 1px solid var(--hairline); border-top: 1px solid var(--hairline); border-radius: 22px; background: #fff; box-shadow: 0 24px 40px -32px rgba(43, 27, 179, .35); }
  .step-n { margin-bottom: 14px; }
  .task { flex: 0 0 82%; scroll-snap-align: start; display: block; padding: 24px 22px; border: 1px solid var(--hairline-dark); border-radius: 22px; background: rgba(255, 255, 255, .05); }
  .task:last-child { border-bottom: 1px solid var(--hairline-dark); }
  .task-n { display: block; margin-bottom: 10px; }
  .task p { margin-top: 12px; }
  .car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
  .car-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--lavender); transition: width .3s var(--ease), background .3s; }
  .car-dots button.is-on { width: 24px; background: var(--accent); }
  .theme-dark .car-dots button { background: rgba(255, 255, 255, .28); }
  .theme-dark .car-dots button.is-on { background: #fff; }
  .phones-track { padding-inline: calc(50% - 130px); }
  .phone { flex-basis: 260px; }
  .phones-arrow { display: none; }
  .btn:active, .invite-steps li:active, .tradetab:active { transform: scale(.98); }
}

/* Factura gratis: email y mensajes */
.gen-email { margin-top: 18px; display: grid; gap: 6px; }
.gen-email label { font-size: 13.5px; font-weight: 600; color: var(--slate); }
.gen-email input { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--lavender); background: #fff; font: inherit; color: var(--slate); }
.gen-email input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gen-email small { font-size: 12.5px; color: var(--muted); }
.gen-email label.gen-check { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 11.5px; font-weight: 400; color: var(--muted); cursor: pointer; line-height: 1.35; }
.gen-email label.gen-check input { width: 9px; height: 9px; margin-top: 0; flex: none; accent-color: var(--accent); }
.gen-email .gen-check-note { display: block; margin: 3px 0 0 17.5px; font-size: 11.5px; color: var(--muted); }
.gen-email .gen-check-note a { color: var(--accent); text-decoration: underline; }
.gen-msg { margin: 14px 0 0; padding: 13px 16px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; border: 1px solid var(--lavender); background: var(--periwinkle); color: var(--slate); }
.gen-msg.is-error { border-color: #f0b6b6; background: #fff4f4; color: #7a1f1f; }
.gen-msg a { color: var(--accent); font-weight: 600; text-decoration: underline; }
#g-print[disabled] { opacity: .55; cursor: not-allowed; }
@media print {
  body:has(#g-preview) > * { display: none !important; }
  body:has(#g-preview)::before { content: "Descarga tu factura en PDF con el botón «Descargar PDF» de la página."; display: block; padding: 40px; font: 16px sans-serif; }
}

/* Sin desplazamiento lateral en móvil: nada de lo que se salga del ancho de pantalla mueve la página */
html { overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; max-width: 100%; }
body { overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; max-width: 100%; }

/* El formulario del generador nunca es más ancho que la pantalla */
.gen-form, .gen-side, .gen-form fieldset { min-width: 0; }
@media (max-width: 640px) { .steps, .tasks { --gx: 20px; } }

/* ---------- Chat de ayuda flotante (visitantes) ---------- */
.hc-fab { position: fixed; right: 18px; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); z-index: 170; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 14px 34px -10px rgba(83, 58, 253, .65), 0 2px 8px rgba(6, 27, 49, .18); transition: transform .25s var(--ease), background .2s; }
.hc-fab:hover { background: var(--accent-hover); transform: translateY(-2px); }
.hc-fab:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; }
.hc-tip { position: fixed; right: 82px; bottom: calc(74px + env(safe-area-inset-bottom, 0px)); z-index: 170; background: var(--slate); color: #fff; font-size: 13px; font-weight: 500; padding: 9px 13px; border-radius: 10px; box-shadow: 0 12px 30px -12px rgba(6, 27, 49, .5); animation: hcIn .4s var(--ease); pointer-events: none; }
.hc-tip[hidden] { display: none; }
.hc-panel { position: fixed; z-index: 175; right: 18px; bottom: 156px; width: min(384px, calc(100vw - 24px)); height: min(560px, calc(100dvh - 180px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -24px rgba(6, 27, 49, .55); animation: hcIn .3s var(--ease); }
.hc-panel[hidden] { display: none; }
@keyframes hcIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hc-head { display: flex; align-items: center; gap: 11px; padding: 13px 14px; background: var(--slate); color: #fff; }
.hc-mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #2b1bb3, #533afd); display: grid; place-items: center; flex: none; }
.hc-mark svg { width: 26px; }
.hc-ht { flex: 1; min-width: 0; line-height: 1.25; }
.hc-ht b { display: block; font-size: 14.5px; font-weight: 600; }
.hc-ht small { font-size: 12px; color: var(--muted-on-dark); }
.hc-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.hc-x:hover { background: rgba(255, 255, 255, .24); }
.hc-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 9px; background: var(--mist); overscroll-behavior: contain; touch-action: pan-y; }
html, body { overscroll-behavior-y: none; }
.hc-b { max-width: 86%; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.hc-bot { align-self: flex-start; background: #fff; border: 1px solid var(--hairline); color: var(--slate); border-bottom-left-radius: 4px; }
.hc-bot a { color: var(--accent); text-decoration: underline; }
.hc-me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.hc-wait { color: var(--muted); font-style: italic; }
.hc-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 10px; background: var(--mist); }
.hc-chips:empty { display: none; }
.hc-chip { border: 1px solid var(--lavender); background: #fff; color: var(--accent); font: inherit; font-size: 12.5px; padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.hc-chip:hover { background: var(--periwinkle); }
.hc-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--hairline); background: #fff; }
.hc-input { flex: 1; min-width: 0; border: 1px solid var(--hairline); border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 16px; color: var(--slate); background: #fff; }
.hc-input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--periwinkle); }
.hc-send { flex: none; width: 44px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hc-send:hover { background: var(--accent-hover); }
.hc-note { margin: 0; padding: 0 14px 10px; font-size: 11px; line-height: 1.4; color: var(--muted); background: #fff; }
.hc-note a { color: var(--accent); text-decoration: underline; }
body:has(.cookie-bar.is-on) .hc-fab { bottom: 174px; }
body:has(.cookie-bar.is-on) .hc-tip { bottom: 210px; }
@media (min-width: 961px) { .hc-fab { bottom: 24px; right: 24px; } .hc-tip { bottom: 34px; right: 90px; } .hc-panel { bottom: 90px; right: 24px; } body:has(.cookie-bar.is-on) .hc-fab { bottom: 24px; } body:has(.cookie-bar.is-on) .hc-tip { bottom: 34px; } }
@media (max-width: 960px) { .hc-panel { right: 0; left: 0; bottom: 0; width: 100%; height: min(78dvh, 640px); border-radius: 16px 16px 0 0; } .hc-open .hc-fab, .hc-open .hc-tip, .hc-open .mcta { display: none; } }
@media (prefers-reduced-motion: reduce) { .hc-fab, .hc-panel, .hc-tip { animation: none; transition: none; } }
@media print { .hc-fab, .hc-panel, .hc-tip { display: none !important; } }

/* Barra superior de escritorio: ningún texto del menú se parte en dos líneas */
.nav-links > a, .nav-trigger, .nav-cta .btn, .nav-cta .lang-switch { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1400px) {
  .nav-inner { gap: 16px; }
  .nav-links { gap: 18px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-sm { padding-inline: 14px; }
  .nav-links > a.nav-free { padding-inline: 12px; }
}

/* Guías y documentación: listas y bloques de código dentro de .legal-body */
.legal-body ul { list-style: disc; padding-left: 20px; margin: 10px 0; }
.legal-body li { margin: 5px 0; }
.legal-body b { color: var(--slate); font-weight: 600; }
.legal-body code { background: var(--periwinkle); color: var(--slate); padding: 1px 6px; border-radius: 4px; font-size: .92em; }
.legal-body pre { background: var(--slate); color: #e8ecf5; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: 13px; line-height: 1.6; margin: 12px 0; }
.legal-body pre code { background: none; color: inherit; padding: 0; }
.legal-body.wide { max-width: 760px; }

/* Compromisos: en móvil, carrusel horizontal */
@media (max-width: 700px) {
  .pledge { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; }
  .pledge::-webkit-scrollbar { display: none; }
  .pledge > div, .pledge > div:last-child { flex: 0 0 78%; scroll-snap-align: start; display: block; padding: 20px; border: 1px solid var(--hairline); border-radius: 16px; background: #fff; opacity: 1 !important; transform: none !important; }
  .pledge dt { margin-bottom: 6px; }
}
