/*
 * landing.css — estilos de la página de inicio (home.html).
 * Sistema visual cálido inspirado en shadcn/ui: fondo hueso, bordes piedra de 1px,
 * tarjetas blancas con sombra suave, azul de marca + acentos durazno/ámbar.
 */

:root {
  --lp-bg: #fbfaf7;
  --lp-bg-2: #f5f1ea;
  --lp-card: #ffffff;
  --lp-border: #ebe5da;
  --lp-border-strong: #ddd4c4;
  --lp-text: #1c1917;
  --lp-muted: #6b6259;
  --lp-subtle: #a39a8f;
  --lp-primary: #136dec;
  --lp-primary-2: #0f55c0;
  --lp-peach: #fb923c;
  --lp-amber: #f59e0b;
  --lp-violet: #8b5cf6;
  --lp-radius: 16px;
  --lp-shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04), 0 1px 1px rgba(28, 25, 23, 0.03);
  --lp-shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 12px 32px -14px rgba(28, 25, 23, 0.16);
  --lp-shadow-lg: 0 2px 4px rgba(28, 25, 23, 0.04), 0 32px 64px -24px rgba(60, 40, 20, 0.28);
  --lp-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --lp-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --fx-gradient: linear-gradient(90deg, #136dec, #7c3aed, #c2410c, #136dec);
}

html { scroll-behavior: smooth; overflow-x: clip; }
/* Foco visible al navegar con teclado */
.lp :where(a, button, input, .lp-btn, .lp-icon-btn):focus-visible {
  outline: 2px solid var(--lp-primary);
  outline-offset: 3px;
  border-radius: 999px;
}
.lp-cta-form input:focus-visible { outline-color: var(--lp-peach); }
body.lp {
  margin: 0;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--lp-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip, no hidden: hidden vuelve al body contenedor de scroll y rompe position: sticky */
  letter-spacing: -0.011em;
}
body.lp ::selection { background: var(--lp-primary); color: #fff; }
.lp img { max-width: 100%; height: auto; display: block; }
.lp a { color: inherit; text-decoration: none; }

.lp-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
@media (min-width: 768px) { .lp-container { padding: 0 32px; } }

/* ---------- Tipografía ---------- */
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--lp-primary);
  letter-spacing: 0;
}
.lp-h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.25rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.045em;
  margin: 0;
  color: var(--lp-text);
}
.lp-h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0;
}
.lp-h1, .lp-h2, .lp-step h3, .lp-lead { text-wrap: balance; }
.lp-h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.lp-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--lp-muted); margin: 0; }
.lp-p { font-size: 0.95rem; line-height: 1.6; color: var(--lp-muted); margin: 0; }
/* Palabra de acento: serif itálica con degradado */
.lp-accent {
  font-family: var(--lp-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  padding-right: 0.06em;
}

.lp-section { padding: 112px 0; position: relative; }
@media (max-width: 767px) { .lp-section { padding: 80px 0; } }
.lp-section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; display: grid; gap: 16px; justify-items: center; }

/* ---------- Botones (estilo shadcn) ---------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: 500 15px/1 var(--lp-sans); letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease-out-expo), background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.lp-btn:active { transform: scale(0.97); }
.lp-btn-primary { background: var(--lp-primary); color: #fff !important; --ap-accent: var(--lp-primary); }
.lp-btn-primary:hover { background: var(--lp-primary-2); }
.lp-btn-outline { background: var(--lp-card); color: var(--lp-text); border-color: var(--lp-border-strong); box-shadow: var(--lp-shadow-sm); }
.lp-btn-outline:hover { background: var(--lp-bg-2); }
.lp-btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.lp-btn .material-icons { font-size: 18px; transition: transform 0.25s var(--ease-out-expo); }
.lp-btn:hover .lp-arrow { transform: translateX(3px); }

/* Badge de anuncio (shadcn "announcement") */
.lp-announce {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; border-radius: 999px;
  background: var(--lp-card); border: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow-sm);
  font-size: 13px; font-weight: 500; color: var(--lp-muted);
  transition: border-color 0.2s, transform 0.3s var(--ease-out-expo);
}
.lp-announce:hover { border-color: var(--lp-border-strong); transform: translateY(-1px); }
.lp-announce-tag {
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: linear-gradient(90deg, #fff1e6, #eef4ff); color: var(--lp-text);
  border: 1px solid var(--lp-border);
}
.lp-announce .material-icons { font-size: 16px; color: var(--lp-subtle); }

/* ---------- Navbar flotante ---------- */
.lp-nav {
  position: fixed; top: 12px; left: 0; right: 0; z-index: 50;
  padding: 0 12px; pointer-events: none;
}
.lp-nav-inner {
  pointer-events: auto;
  margin: 0 auto; max-width: 1120px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px; padding: 0 10px 0 18px; border-radius: 999px;
  border: 1px solid transparent;
  transition: max-width 0.5s var(--ease-out-expo), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.lp-nav.is-scrolled .lp-nav-inner {
  max-width: 880px;
  background: rgba(251, 250, 247, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
          backdrop-filter: saturate(180%) blur(16px);
  border-color: var(--lp-border);
  box-shadow: var(--lp-shadow);
}
.lp-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; letter-spacing: -0.03em; }
.lp-logo img { width: 28px; height: 28px; }
.lp-nav-links { display: none; align-items: center; gap: 4px; }
.lp-nav-links a {
  padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--lp-muted);
  transition: color 0.2s, background 0.2s;
}
.lp-nav-links a:hover { color: var(--lp-text); background: rgba(28, 25, 23, 0.05); }
.lp-nav-actions { display: none; align-items: center; gap: 6px; }
.lp-nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--lp-border);
  background: var(--lp-card); cursor: pointer; color: var(--lp-text);
}
@media (min-width: 900px) {
  .lp-nav-links, .lp-nav-actions { display: flex; }
  .lp-nav-toggle { display: none; }
}
.lp-mobile-menu {
  pointer-events: auto;
  max-width: 1120px; margin: 8px auto 0; padding: 8px;
  background: var(--lp-card); border: 1px solid var(--lp-border); border-radius: 20px;
  box-shadow: var(--lp-shadow-lg);
  display: grid; gap: 2px;
}
.lp-mobile-menu[hidden] { display: none; }
.lp-mobile-menu a { padding: 12px 14px; border-radius: 12px; font-weight: 500; }
.lp-mobile-menu a:hover { background: var(--lp-bg-2); }
.lp-mobile-menu .lp-btn { margin-top: 6px; }

/* ---------- Hero ---------- */
.lp-hero { position: relative; padding: 148px 0 120px; overflow: hidden; }
.lp-hero .fx-aurora { height: 780px; bottom: auto; }
.lp-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(28, 25, 23, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
}
.lp-hero-inner { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 24px; }
.lp-hero .lp-lead { max-width: 640px; }
.lp-hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.lp-hero-login { font-size: 14px; color: var(--lp-muted); }
.lp-hero-login a { color: var(--lp-primary); font-weight: 600; }
.lp-hero-login a:hover { text-decoration: underline; }

.lp-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%; max-width: 640px; margin: 20px auto 0;
  border: 1px solid var(--lp-border); border-radius: var(--lp-radius);
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--lp-shadow-sm);
}
.lp-stats > div { padding: 16px 12px; display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: center; gap: 2px; }
.lp-stats > div + div { border-left: 1px solid var(--lp-border); }
.lp-stats dd { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -0.04em; }
.lp-stats dt { font-size: 12.5px; color: var(--lp-muted); text-align: center; line-height: 1.35; }

/* Showcase del producto: se endereza con el scroll (ContainerScroll) */
.lp-showcase {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 64px auto 0;
  perspective: 1400px;
}
.lp-showcase-frame {
  --lp-tilt: 18deg; --lp-scale: 0.94;
  transform: rotateX(var(--lp-tilt)) scale(var(--lp-scale));
  transform-origin: 50% 0%;
  border-radius: 20px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
  border: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  will-change: transform;
}
.lp-browser {
  border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid var(--lp-border);
}
.lp-browser-bar {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  background: #f7f5f1; border-bottom: 1px solid var(--lp-border);
}
.lp-browser-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #e2dcd2; }
.lp-browser-bar > span:nth-child(1) { background: #ff6159; }
.lp-browser-bar > span:nth-child(2) { background: #ffbd2e; }
.lp-browser-bar > span:nth-child(3) { background: #28c941; }
.lp-browser-url {
  margin: 0 auto; padding: 4px 14px; border-radius: 8px;
  background: #fff; border: 1px solid var(--lp-border);
  font-size: 12px; color: var(--lp-muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.lp-browser-url .material-icons { font-size: 13px; color: #16a34a; }

/* Tarjetas flotantes sobre el showcase */
.lp-float {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow-lg);
  font-size: 13px; line-height: 1.3;
  opacity: 0; transform: translateY(16px) scale(0.96);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.lp-showcase.is-visible .lp-float { opacity: 1; transform: none; }
.lp-showcase.is-visible .lp-float-2 { transition-delay: 0.25s; }
.lp-showcase.is-visible .lp-float-3 { transition-delay: 0.5s; }
.lp-float strong { display: block; font-weight: 600; color: var(--lp-text); }
.lp-float small { color: var(--lp-muted); font-size: 12px; }
.lp-float-icon {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: #fff;
}
.lp-float-icon .material-icons { font-size: 19px; }
.lp-float-1 { left: -28px; top: 22%; }
.lp-float-2 { right: -32px; top: 46%; }
.lp-float-3 { left: 12%; bottom: -24px; }
.lp-float-1 .lp-float-icon { background: linear-gradient(135deg, #fb923c, #f59e0b); }
.lp-float-2 .lp-float-icon { background: linear-gradient(135deg, #136dec, #8b5cf6); }
.lp-float-3 .lp-float-icon { background: linear-gradient(135deg, #10b981, #22c55e); }
.lp-float-bob { animation: lp-bob 6s ease-in-out infinite; }
.lp-float-2 .lp-float-bob, .lp-float-2.lp-float-bob { animation-delay: -2s; }
@keyframes lp-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.lp-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: lp-live 2s infinite; display: inline-block; margin-right: 6px; }
@keyframes lp-live { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@media (max-width: 899px) {
  .lp-float { display: none; }
  .lp-showcase { margin-top: 44px; }
}

/* ---------- Manifiesto: texto que se ilumina con el scroll (ScrollReveal) ---------- */
.lp-manifesto { padding: 120px 0; }
.lp-manifesto p {
  max-width: 980px; margin: 0 auto; text-align: center;
  font-size: clamp(1.75rem, 3.8vw, 3.1rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.035em;
}
.lp-manifesto .lp-word { opacity: 0.14; transition: opacity 0.25s linear; }
.lp-manifesto .lp-word.is-lit { opacity: 1; }
.lp-manifesto .lp-word.lp-accent-word { font-family: var(--lp-serif); font-style: italic; font-weight: 400; color: var(--lp-primary); }

/* ---------- Bento de características ---------- */
.lp-bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .lp-bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(300px, auto); }
  .lp-bento .lp-span-2 { grid-column: span 2; }
  .lp-bento .lp-span-full { grid-column: 1 / -1; }
}
.lp-card {
  position: relative;
  background: var(--lp-card); border: 1px solid var(--lp-border); border-radius: 20px;
  box-shadow: var(--lp-shadow-sm);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}
.lp-card:hover, .lp-card.reveal.is-visible:hover { box-shadow: var(--lp-shadow); transform: translateY(-3px); }
.lp-card[data-fx="spotlight"] { --spot-color: rgba(251, 146, 60, 0.12); --spot-border: rgba(19, 109, 236, 0.7); }
.lp-card-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--lp-border); background: var(--lp-bg); color: var(--lp-primary);
  margin-bottom: 6px;
}
.lp-card-icon .material-icons { font-size: 21px; }
.lp-card-visual { margin-top: auto; padding-top: 18px; }

/* Visual 1: buscador IA que escribe solo */
.lp-search {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--lp-border-strong); background: var(--lp-bg);
  font-size: 15px; color: var(--lp-text);
}
.lp-search .material-icons { color: var(--lp-primary); font-size: 20px; }
.lp-caret { display: inline-block; width: 2px; height: 18px; background: var(--lp-primary); margin-left: 1px; vertical-align: -3px; animation: lp-caret 1s steps(1) infinite; }
@keyframes lp-caret { 50% { opacity: 0; } }
.lp-results { display: grid; gap: 8px; margin-top: 12px; }
.lp-result {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--lp-border); border-radius: 12px; background: #fff;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.lp-results.is-on .lp-result { opacity: 1; transform: none; }
.lp-results.is-on .lp-result:nth-child(2) { transition-delay: 0.12s; }
.lp-results.is-on .lp-result:nth-child(3) { transition-delay: 0.24s; }
.lp-result-thumb { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #fde7d3, #dbe8ff); flex: none; }
.lp-result-lines { flex: 1; display: grid; gap: 6px; }
.lp-result-lines i { display: block; height: 7px; border-radius: 99px; background: #ece7df; }
.lp-result-lines i:first-child { width: 70%; background: #e2dbcf; }
.lp-result-lines i:last-child { width: 45%; }
.lp-match {
  font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  color: #0f55c0; background: #eaf2ff; border: 1px solid #d4e4ff;
}

/* Visual 2: barras de valor referencial por m² */
.lp-bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 0 4px; }
.lp-bars i {
  flex: 1; border-radius: 8px 8px 4px 4px; background: #efe9df;
  height: var(--h); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.9s var(--ease-out-expo);
}
.lp-bars i.is-key { background: linear-gradient(180deg, #fb923c, #136dec); }
.is-visible .lp-bars i { transform: scaleY(1); }
.is-visible .lp-bars i:nth-child(2) { transition-delay: 0.06s; }
.is-visible .lp-bars i:nth-child(3) { transition-delay: 0.12s; }
.is-visible .lp-bars i:nth-child(4) { transition-delay: 0.18s; }
.is-visible .lp-bars i:nth-child(5) { transition-delay: 0.24s; }
.is-visible .lp-bars i:nth-child(6) { transition-delay: 0.3s; }
.lp-bars-caption { display: flex; justify-content: space-between; font-size: 12px; color: var(--lp-muted); margin-top: 10px; }
.lp-chip-time { font-weight: 600; color: var(--lp-text); }

/* Visual 3: pila de alertas */
.lp-alerts { display: grid; gap: 8px; }
.lp-alert {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--lp-border); background: #fff; font-size: 13px;
  opacity: 0; transform: translateX(-12px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.is-visible .lp-alert { opacity: 1; transform: none; }
.is-visible .lp-alert:nth-child(2) { transition-delay: 0.2s; }
.is-visible .lp-alert:nth-child(3) { transition-delay: 0.4s; }
.lp-alert .material-icons { font-size: 18px; color: var(--lp-peach); }
.lp-alert b { font-weight: 600; }
.lp-alert time { margin-left: auto; font-size: 11.5px; color: var(--lp-subtle); }

/* Visual 4: etiquetas */
.lp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--lp-border); background: #fff; font-size: 13px; font-weight: 500;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.2s, background 0.2s;
}
.lp-tag:hover { transform: translateY(-2px) rotate(-1deg); border-color: var(--lp-border-strong); }
.lp-tag i { width: 8px; height: 8px; border-radius: 50%; }

/* Visual 5: contacto directo */
.lp-contact {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px;
  border: 1px solid var(--lp-border); background: #fff;
}
.lp-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 600; font-size: 13px; color: #9a3412; background: linear-gradient(135deg, #ffedd5, #fed7aa);
}
.lp-contact-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: #16a34a; color: #fff; box-shadow: 0 6px 16px -6px rgba(22, 163, 74, 0.6);
}
.lp-contact-btn .material-icons { font-size: 16px; }

/* Visual 6: PDFs */
.lp-docs { display: flex; gap: 12px; }
.lp-doc {
  flex: 1; border: 1px solid var(--lp-border); border-radius: 12px; padding: 12px; background: #fff;
  display: grid; gap: 7px; position: relative;
}
.lp-doc i { display: block; height: 6px; border-radius: 99px; background: #ece7df; }
.lp-doc i:nth-child(2) { width: 80%; } .lp-doc i:nth-child(3) { width: 60%; }
.lp-doc-img { height: 44px; border-radius: 8px; background: linear-gradient(135deg, #dbe8ff, #fde7d3); }
.lp-doc b { font-size: 12px; font-weight: 600; }
.lp-doc-ok {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  background: #16a34a; color: #fff; display: grid; place-items: center;
  transform: scale(0); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}
.is-visible .lp-doc-ok { transform: scale(1); }
.lp-doc-ok .material-icons { font-size: 15px; }

/* ---------- Cómo funciona: pasos con visual fijo (sticky scroll) ---------- */
.lp-how { background: var(--lp-bg-2); border-block: 1px solid var(--lp-border); }
.lp-how-grid { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .lp-how-grid { grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
}
.lp-how-visual {
  aspect-ratio: 4 / 3.2; border-radius: 22px; overflow: hidden; position: relative;
  position: sticky; top: 120px;
  background: var(--lp-card); border: 1px solid var(--lp-border); box-shadow: var(--lp-shadow-lg);
}
.lp-how-layer {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 28px;
  opacity: 0; transform: scale(1.04); filter: blur(6px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.8s var(--ease-out-expo), filter 0.6s var(--ease-out-expo);
}
.lp-how-layer.is-active { opacity: 1; transform: none; filter: none; }
.lp-how-layer:not(.lp-how-layer-1) {
  background:
    radial-gradient(60% 50% at 20% 15%, rgba(251, 146, 60, 0.16), transparent 70%),
    radial-gradient(60% 55% at 85% 90%, rgba(19, 109, 236, 0.14), transparent 70%),
    #fdfcf9;
}
.lp-how-layer picture, .lp-how-layer img.lp-how-shot { width: 100%; height: 100%; }
.lp-how-layer img.lp-how-shot { object-fit: cover; object-position: top center; border-radius: 12px; border: 1px solid var(--lp-border); }
.lp-how-layer-1 { padding: 0; }
.lp-how-layer-1 img.lp-how-shot { border-radius: 0; border: 0; }
.lp-how-steps { display: grid; }
.lp-how-steps > *, .lp-how-grid > * { min-width: 0; }
.lp-step {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px;
  padding: 40px 0; min-height: 44vh; align-content: center;
  opacity: 0.35; transition: opacity 0.5s var(--ease-out-expo);
}
.lp-step.is-active { opacity: 1; }
.lp-step-num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 600; background: var(--lp-card); border: 1px solid var(--lp-border-strong); color: var(--lp-muted);
  transition: background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.lp-step.is-active .lp-step-num {
  background: var(--lp-primary); color: #fff; border-color: var(--lp-primary);
  box-shadow: 0 0 0 6px rgba(19, 109, 236, 0.12);
}
.lp-step h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -0.03em; margin: 8px 0 12px; line-height: 1.2; }
.lp-step .lp-p { font-size: 1.02rem; }
.lp-step-mobile-visual { display: none; }
/* En escritorio cada paso ocupa casi una pantalla: el panel fijo alcanza a mostrarse con cada uno */
@media (min-width: 960px) {
  .lp-step { min-height: 72vh; }
}
/* Celular: la imagen queda fija arriba (bajo la barra) y los textos pasan por debajo.
   La sección deja de ser grid: en una grilla de una columna el sticky no puede salir de su
   propia celda, así que no acompañaría a los pasos. */
@media (max-width: 959px) {
  .lp-how-grid { display: block; }
  .lp-how-visual {
    position: sticky; top: 84px; z-index: 2;
    aspect-ratio: auto; height: min(42vh, 360px); margin-bottom: 8px;
    border-radius: 18px;
    /* Primera sombra: bloque sólido del color de la sección, desplazado hacia arriba, que
       tapa el texto que sube por detrás de la imagen (un ::before quedaría recortado por
       el overflow: hidden del panel). */
    /* 2.ª sombra: difuminado del color de fondo bajo el panel, para que el número y el
       título del paso se desvanezcan al pasar por debajo en vez de cortarse en seco. */
    box-shadow: 0 -96px 0 0 var(--lp-bg-2), 0 22px 20px 10px var(--lp-bg-2), var(--lp-shadow-lg);
  }
  .lp-how-layer { padding: 14px; }
  .lp-how-layer.lp-how-layer-1 { padding: 0; }  /* la captura del mapa va a sangre */
  .lp-how-layer .lp-mini { transform: scale(0.86); transform-origin: center; }
  .lp-how-layer-1 img.lp-how-shot { object-position: top left; }
  .lp-step { min-height: 62vh; padding: 28px 0; align-content: start; }
  .lp-step:last-child { min-height: 48vh; }
  .lp-step-mobile-visual { display: none; }
}
/* Tarjetas ilustrativas de los pasos 2 y 3 */
.lp-mini {
  width: 100%; max-width: 420px; border-radius: 18px; background: #fff;
  border: 1px solid var(--lp-border); box-shadow: var(--lp-shadow); padding: 22px;
  display: grid; gap: 14px;
}
.lp-mini-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--lp-muted); }
.lp-mini-title { font-weight: 600; color: var(--lp-text); font-size: 15px; }
.lp-range { position: relative; height: 12px; border-radius: 999px; background: #f1ece4; }
.lp-range span { position: absolute; left: 28%; right: 22%; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, #136dec, #8b5cf6, #fb923c); }
.lp-range b { position: absolute; left: 52%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; border: 3px solid var(--lp-text); box-shadow: var(--lp-shadow); }
.lp-mini-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--lp-muted); }
.lp-mini-list { display: grid; gap: 8px; }
.lp-mini-list div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.lp-mini-list .material-icons { font-size: 18px; color: #16a34a; }
.lp-pdf { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; }
.lp-pdf-page { aspect-ratio: 3 / 4; border-radius: 8px; border: 1px solid var(--lp-border); background: #fff; padding: 8px; display: grid; gap: 5px; align-content: start; box-shadow: var(--lp-shadow-sm); }
.lp-pdf-page .lp-doc-img { height: 34px; }
.lp-pdf-page i { display: block; height: 4px; border-radius: 99px; background: #ece7df; }
.lp-pdf-page i:nth-child(3) { width: 70%; }
.lp-share { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Captaciones ---------- */
.lp-row-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.lp-row-head > div:first-child { display: grid; gap: 12px; }
.lp-arrows { display: flex; gap: 8px; }
.lp-icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--lp-border-strong); background: var(--lp-card); color: var(--lp-text);
  transition: background 0.2s, transform 0.2s var(--ease-out-expo);
}
.lp-icon-btn:hover { background: var(--lp-bg-2); }
.lp-icon-btn:active { transform: scale(0.94); }
.lp-track {
  --lp-gutter: max(20px, calc((100vw - 1200px) / 2 + 32px));
  scroll-padding-inline: var(--lp-gutter);
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px var(--lp-gutter) 24px;
}
.lp-track::-webkit-scrollbar { display: none; }
.lp-listing {
  flex: none; width: min(360px, 82vw); scroll-snap-align: start;
  border-radius: 20px; overflow: hidden; background: var(--lp-card);
  border: 1px solid var(--lp-border); box-shadow: var(--lp-shadow-sm);
  transition: box-shadow 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}
.lp-listing:hover { box-shadow: var(--lp-shadow-lg); transform: translateY(-4px); }
.lp-listing-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.lp-listing-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out-expo); }
.lp-listing:hover .lp-listing-img img { transform: scale(1.06); }
.lp-listing-badge {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center;
  padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lp-listing-body { padding: 18px 20px 20px; display: grid; gap: 6px; }
.lp-listing-body h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.lp-listing-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.lp-price { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; }
.lp-specs { display: flex; gap: 12px; color: var(--lp-muted); font-size: 13px; }
.lp-specs span { display: inline-flex; align-items: center; gap: 4px; }
.lp-specs .material-icons { font-size: 16px; }
.lp-listing-link {
  display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 14px 0 6px;
  border-top: 1px solid var(--lp-border); font-size: 14px; font-weight: 500; color: var(--lp-primary) !important;
}
.lp-listing-link .material-icons { font-size: 18px; transition: transform 0.3s var(--ease-out-expo); }
.lp-listing:hover .lp-listing-link .material-icons { transform: translateX(4px); }

.lp-banner {
  margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 32px; border-radius: 22px; border: 1px solid var(--lp-border);
  background: linear-gradient(120deg, #fff7ef 0%, #ffffff 45%, #eef4ff 100%);
  box-shadow: var(--lp-shadow-sm);
}
.lp-banner h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 600; letter-spacing: -0.03em; margin: 0 0 6px; }

/* ---------- Testimonios (marquee) ---------- */
.lp-marquee { display: grid; gap: 16px; }
.lp-marquee-row { display: flex; overflow: hidden; }
.lp-marquee-track { display: flex; gap: 16px; padding: 4px 8px; width: max-content; animation: lp-marquee 70s linear infinite; }
.lp-marquee-row.is-reverse .lp-marquee-track { animation-direction: reverse; }
.lp-marquee-row:hover .lp-marquee-track { animation-play-state: paused; }
@keyframes lp-marquee { to { transform: translateX(-50%); } }
.lp-quote {
  flex: none; width: 340px; padding: 22px; border-radius: 18px; box-sizing: border-box;
  background: var(--lp-card); border: 1px solid var(--lp-border); box-shadow: var(--lp-shadow-sm);
  display: grid; gap: 16px; align-content: space-between;
}
.lp-quote p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--lp-text); }
.lp-quote footer { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.lp-quote footer b { font-weight: 600; }
.lp-quote footer small { display: block; color: var(--lp-muted); font-size: 12px; }
.lp-stars { color: var(--lp-amber); letter-spacing: 2px; font-size: 13px; }

/* ---------- CTA final (momento de contraste) ---------- */
.lp-cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 32px; padding: clamp(56px, 8vw, 96px) 24px;
  background: #16120f; color: #fbfaf7; text-align: center;
  display: grid; justify-items: center; gap: 20px;
}
.lp-cta .fx-aurora { z-index: -1; opacity: 0.9; }
.lp-cta-glow {
  position: absolute; z-index: -1; inset: auto -10% -60% -10%; height: 90%;
  background: radial-gradient(closest-side, rgba(251, 146, 60, 0.35), transparent);
  filter: blur(20px);
}
.lp-cta .lp-h2 { color: #fbfaf7; max-width: 820px; }
.lp-cta .lp-lead { color: #c9c0b4; max-width: 560px; }
.lp-cta-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; max-width: 480px; margin-top: 8px; }
.lp-cta-form input {
  flex: 1 1 220px; height: 48px; padding: 0 18px; border-radius: 999px; box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); color: #fff;
  font: 15px var(--lp-sans); outline: none; transition: border-color 0.2s, background 0.2s;
}
.lp-cta-form input::placeholder { color: #a39a8f; }
.lp-cta-form input:focus { border-color: rgba(251, 146, 60, 0.7); background: rgba(255, 255, 255, 0.1); }

/* ---------- Footer ---------- */
.lp-footer { padding: 72px 0 40px; }
.lp-footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .lp-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.lp-footer .lp-footer-title { font-size: 13px; font-weight: 600; margin: 0 0 14px; color: var(--lp-text); }
.lp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-footer ul a { display: inline-block; padding: 6px 0; font-size: 14px; color: var(--lp-muted); transition: color 0.2s; }
.lp-footer ul a:hover { color: var(--lp-text); }
.lp-footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--lp-border);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--lp-muted);
}
.lp-social { display: flex; gap: 8px; }
.lp-social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--lp-border); color: var(--lp-muted); transition: color 0.2s, background 0.2s;
}
.lp-social a:hover { color: var(--lp-text); background: var(--lp-bg-2); }
.lp-social .material-icons { font-size: 18px; }

/* ---------- Aparición al hacer scroll (desenfoque + subida) ---------- */
.reveal {
  opacity: 0; transform: translateY(24px); filter: blur(8px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo), filter 0.9s var(--ease-out-expo);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
.no-js .reveal { opacity: 1; transform: none; filter: none; }

/* Barra de progreso de lectura */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 100000;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #136dec, #8b5cf6, #fb923c);
}

.hide-scrollbar { scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp *, .lp *::before, .lp *::after { transition-duration: 0.01ms !important; }
  #housebot-stage, #housebot-stage * { animation: none !important; }
  .lp-card:hover, .lp-listing:hover, .lp-announce:hover, .lp-tag:hover { transform: none !important; }
  .lp-bars i { transform: none; }
  .lp-doc-ok { transform: none; }
  .reveal, .lp-float, .lp-result, .lp-alert, .lp-how-layer { transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .lp-float { opacity: 1; transform: none; }
  .lp-marquee-track, .lp-float-bob, .lp-live-dot, .lp-caret { animation: none; }
  .lp-showcase-frame { --lp-tilt: 0deg !important; --lp-scale: 1 !important; }
  .lp-manifesto .lp-word { opacity: 1; }
}

/* ===== Demo video modal ===== */
#demo-modal {
  position: fixed; inset: 0; z-index: 100001;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 18, 38, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s var(--ease-out-expo);
  padding: 1.5rem;
}
#demo-modal.is-open { opacity: 1; visibility: visible; }
#demo-modal .demo-box {
  position: relative; width: min(1100px, 100%);
  aspect-ratio: 16 / 9; max-height: 88vh;
  border-radius: 1.25rem; overflow: hidden;
  background: #000;
  border: 1px solid rgba(19, 109, 236, 0.4);
  box-shadow: 0 30px 80px rgba(19, 109, 236, 0.35), 0 0 0 1px rgba(255,255,255,0.06);
  transform: scale(0.85) translateY(30px); opacity: 0;
  transition: transform 0.55s var(--ease-out-expo), opacity 0.45s var(--ease-out-expo);
}
#demo-modal.is-open .demo-box { transform: scale(1) translateY(0); opacity: 1; }
#demo-modal video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
#demo-modal .demo-close {
  position: absolute; top: -14px; right: -14px;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: #136dec;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(19,109,236,0.4);
  border: 1px solid rgba(19,109,236,0.25);
  cursor: pointer; transition: transform 0.25s var(--ease-out-expo), background 0.25s ease;
  z-index: 2;
}
#demo-modal .demo-close:hover { transform: rotate(90deg) scale(1.08); background: #136dec; color: #fff; }
#demo-modal .demo-glow {
  position: absolute; inset: -40px; pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(19,109,236,0.45), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(6,182,212,0.40), transparent 55%);
  filter: blur(40px); opacity: 0.7; z-index: -1;
}
body.demo-open { overflow: hidden; }


/* ===== HouseBot mascot (dopamine edition) ===== */
:root {
  --hb-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
#housebot-stage {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 132px;
  z-index: 40;
  pointer-events: none;
  opacity: 1;
  transform: translateX(0) translateY(0);
  animation: hb-stage-in 0.9s var(--hb-spring) 0.3s both;
}
@keyframes hb-stage-in {
  0%   { opacity: 0; transform: translateX(140%) translateY(30px) scale(0.6) rotate(8deg); }
  70%  { opacity: 1; transform: translateX(-6%) translateY(-4px) scale(1.04) rotate(-2deg); }
  100% { opacity: 1; transform: translateX(0) translateY(0) scale(1) rotate(0); }
}
#housebot-stage.hb-stage-out {
  opacity: 0;
  transform: translateX(140%) translateY(20px) scale(0.7);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

/* Halo glow detrás del robot */
.hb-halo {
  position: absolute;
  inset: -18% -10% -10% -10%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgba(34,211,238,0.45) 0%, rgba(19,109,236,0.18) 35%, rgba(19,109,236,0) 70%);
  filter: blur(14px);
  z-index: -1;
  pointer-events: none;
  animation: hb-halo-pulse 3.4s ease-in-out infinite;
}
@keyframes hb-halo-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.08); }
}

/* Sparkles ambientales */
.hb-sparkle {
  position: absolute;
  width: 6px; height: 6px;
  background: radial-gradient(circle, #fff 0%, #67e8f9 60%, rgba(103,232,249,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: hb-sparkle 3.2s ease-in-out infinite;
}
.hb-sparkle:nth-child(1) { top: 10%;  left: -8%;  animation-delay: 0s;   }
.hb-sparkle:nth-child(2) { top: 30%;  right: -10%; animation-delay: 0.7s; }
.hb-sparkle:nth-child(3) { top: 55%;  left: -4%;  animation-delay: 1.3s; }
.hb-sparkle:nth-child(4) { top: 70%;  right: -6%; animation-delay: 1.9s; width: 4px; height: 4px;}
.hb-sparkle:nth-child(5) { top: 18%;  right: 12%; animation-delay: 2.4s; width: 8px; height: 8px;}
@keyframes hb-sparkle {
  0%, 100% { opacity: 0; transform: scale(0.4) translateY(0); }
  20%      { opacity: 1; transform: scale(1.2) translateY(-4px); }
  50%      { opacity: 0.8; transform: scale(0.9) translateY(-12px); }
}

.hb-bot {
  position: relative;
  pointer-events: auto;
  cursor: pointer;
  animation: hb-bob 4.2s ease-in-out infinite, hb-tilt 7s ease-in-out infinite;
  filter: drop-shadow(0 14px 18px rgba(19, 109, 236, 0.35));
  transition: transform 0.4s var(--hb-spring), filter 0.4s ease;
}
.hb-bot svg { width: 100%; height: auto; display: block; }
.hb-bot:hover {
  transform: scale(1.08) translateY(-4px);
  filter: drop-shadow(0 22px 28px rgba(19, 109, 236, 0.5));
}
.hb-bot:active { transform: scale(0.96); }
@keyframes hb-bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}
@keyframes hb-tilt {
  0%, 100% { rotate: 0deg; }
  25%      { rotate: -3deg; }
  75%      { rotate: 3deg; }
}

/* Parpadeo de ojos */
#hb-eyes {
  transform-origin: 110px 100px;
  animation: hb-blink 4.6s infinite;
}
@keyframes hb-blink {
  0%, 90%, 96%, 100% { transform: scaleY(1); }
  93%                { transform: scaleY(0.08); }
}

/* Pulso del corazón */
#hb-heart {
  transform-origin: 110px 188px;
  animation: hb-heartbeat 1.4s ease-in-out infinite;
}
@keyframes hb-heartbeat {
  0%, 100% { transform: scale(1); }
  15%      { transform: scale(1.18); }
  30%      { transform: scale(0.95); }
  45%      { transform: scale(1.10); }
  60%      { transform: scale(1); }
}

/* Antena: bolita brilla y rebota */
#hb-antenna-tip {
  transform-origin: 110px 22px;
  animation: hb-antenna 2.4s ease-in-out infinite;
}
@keyframes hb-antenna {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.25); }
}

/* Boca: micro sonrisa */
#hb-mouth {
  transform-origin: 110px 120px;
  animation: hb-smile 6s ease-in-out infinite;
}
@keyframes hb-smile {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

/* Cachetes con leve pulse */
.hb-cheek { animation: hb-cheek-pulse 3s ease-in-out infinite; }
@keyframes hb-cheek-pulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.75; }
}

/* Brazo izquierdo levantado */
#housebot-stage[data-scene="cta"] #hb-arm-left,
#housebot-stage[data-scene="captaciones"] #hb-arm-left,
#housebot-stage[data-scene="hero"] #hb-arm-left {
  transform: rotate(-28deg) translate(-2px, -14px);
}
/* Brazo derecho levantado */
#housebot-stage[data-scene="final"] #hb-arm-right,
#housebot-stage[data-scene="how"] #hb-arm-right,
#housebot-stage[data-scene="reviews"] #hb-arm-right,
#housebot-stage[data-scene="features"] #hb-arm-right {
  transform: rotate(28deg) translate(2px, -14px);
}
#hb-arm-left  { transform-origin: 65px 168px; }
#hb-arm-right { transform-origin: 155px 168px; }
#hb-arm-left, #hb-arm-right {
  transition: transform 0.6s var(--hb-spring);
}
/* Hero: ondea la mano */
#housebot-stage[data-scene="hero"] #hb-arm-left {
  animation: hb-wave 1.4s ease-in-out infinite;
}
@keyframes hb-wave {
  0%, 100% { transform: rotate(-22deg) translate(-2px, -14px); }
  50%      { transform: rotate(-42deg) translate(-2px, -14px); }
}

/* Accesorios: aparición con bounce */
#hb-prop-house, #hb-prop-clipboard, #hb-prop-magnifier,
#hb-prop-wave, #hb-prop-chart, #hb-prop-thumb {
  transform-origin: center;
  animation: hb-prop-in 0.6s var(--hb-spring) both;
}
@keyframes hb-prop-in {
  0%   { opacity: 0; transform: scale(0.2) rotate(-20deg); }
  70%  { opacity: 1; transform: scale(1.15) rotate(6deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* Confetti burst (al hacer click) */
.hb-confetti {
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
}
.hb-confetti.go {
  animation: hb-confetti-fly 0.9s ease-out forwards;
}
@keyframes hb-confetti-fly {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
  100% { opacity: 0; transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(0.4) rotate(var(--rot, 0deg)); }
}

/* Globo de diálogo */
.hb-bubble {
  position: absolute;
  right: 100%;
  bottom: 36%;
  margin-right: 12px;
  max-width: 210px;
  padding: 11px 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(245,250,255,0.98) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(19, 109, 236, 0.3);
  border-radius: 16px 16px 4px 16px;
  box-shadow:
    0 18px 38px -14px rgba(19, 109, 236, 0.4),
    0 0 0 1px rgba(255,255,255,0.6) inset;
  color: #0b1730;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: bottom right;
  transition: opacity 0.4s var(--hb-spring), transform 0.4s var(--hb-spring);
  pointer-events: auto;
  animation: hb-bubble-in 0.6s var(--hb-spring) 1s both;
  white-space: normal;
  word-wrap: break-word;
}
@keyframes hb-bubble-in {
  0%   { opacity: 0; transform: translateY(10px) scale(0.7); }
  70%  { opacity: 1; transform: translateY(-2px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.hb-bubble.hb-bubble-hidden {
  opacity: 0;
  transform: translateY(8px) scale(0.85);
}
.hb-bubble::after {
  content: '';
  position: absolute;
  right: -7px;
  bottom: 12px;
  width: 14px;
  height: 14px;
  background: inherit;
  border-right: 1.5px solid rgba(19, 109, 236, 0.3);
  border-bottom: 1.5px solid rgba(19, 109, 236, 0.3);
  transform: rotate(-45deg);
  border-radius: 0 0 4px 0;
}
.hb-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #136dec, #06b6d4);
  color: white;
  border: 2px solid white;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(19, 109, 236, 0.5);
  pointer-events: auto;
  transition: transform 0.25s var(--hb-spring);
}
.hb-close:hover { transform: scale(1.15) rotate(90deg); }

/* Mobile */
@media (max-width: 640px) {
  #housebot-stage { width: 96px; right: 10px; bottom: 10px; }
  .hb-bubble {
    right: 0;
    bottom: 100%;
    margin-right: 0;
    margin-bottom: 10px;
    max-width: 180px;
    font-size: 12px;
    border-radius: 14px 14px 14px 4px;
  }
  .hb-bubble::after {
    right: 16px;
    bottom: -8px;
    border-right: none;
    border-bottom: 1.5px solid rgba(19, 109, 236, 0.3);
    border-left: 1.5px solid rgba(19, 109, 236, 0.3);
    transform: rotate(-135deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb-bot, .hb-halo, .hb-sparkle { animation: none; }
  #hb-eyes, #hb-heart, #hb-antenna-tip, #hb-mouth, .hb-cheek { animation: none; }
  #hb-prop-house, #hb-prop-clipboard, #hb-prop-magnifier,
  #hb-prop-wave, #hb-prop-chart, #hb-prop-thumb { animation: none; }
}

/* ---------- Ajustes móviles ---------- */
@media (max-width: 767px) {
  .lp-banner { padding: 24px 20px; }
  .lp-banner .lp-btn { white-space: normal; height: auto; min-height: 48px; padding-block: 12px; text-align: center; max-width: 100%; }
  .lp-stats dt { font-size: 12px; }
  .lp-hero-login a { display: inline-block; padding: 10px 4px; }
}
@media (max-width: 480px) {
  .lp-step { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 959px) {
  #housebot-stage { scale: 0.8; transform-origin: bottom right; }
}
@media (max-width: 480px) {
  #housebot-stage .hb-bubble { display: none; }
}
#housebot-stage .hb-close::after { content: ""; position: absolute; inset: -10px; }
