/* ==========================================================================
   Livadesk — Design System & Main Website Styles
   Palette: Amber (#F5A524) on Warm Dark (#141210) · "Luz de escritorio"
   Typography: Outfit (display/headings/numbers) + Inter (body/UI)
   ========================================================================== */

:root {
  color-scheme: dark;
  --ld-amber: #F5A524;
  --ld-amber-dark: #C97F0A;
  --ld-amber-light: #FFD48A;
  --ld-amber-soft: #3A2A10;
  --ld-amber-tint: #1E170D;
  --ld-amber-border: #5A4318;
  --ld-bg: #141210;
  --ld-surface: #1A1816;
  --ld-surface-2: #1F1C18;
  --ld-border: #2B2722;
  --ld-border-strong: #3A352F;
  --ld-text: #F5EFE6;
  --ld-text-2: #D6CEC3;
  --ld-muted: #B8AFA3;
  --ld-on-amber: #1A1208;
  --ld-radius-control: 12px;
  --ld-radius-card: 16px;
  --ld-font-display: "Outfit", system-ui, -apple-system, sans-serif;
  --ld-font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Compatibility aliases for shared components */
  --bg-page: var(--ld-bg);
  --bg-surface: var(--ld-surface);
  --bg-card: var(--ld-surface);
  --bg-card-hover: var(--ld-surface-2);
  --bg-input: var(--ld-bg);
  --border-subtle: var(--ld-border);
  --text-primary: var(--ld-text);
  --text-secondary: var(--ld-muted);
  --font-display: var(--ld-font-display);
  --font-sans: var(--ld-font-body);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

body {
  background: var(--ld-bg);
  color: var(--ld-text);
  font-family: var(--ld-font-body);
  line-height: 1.6;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--ld-font-display);
}

a {
  color: var(--ld-amber);
}

a:hover {
  color: var(--ld-amber-light);
}

:focus-visible {
  outline: 2px solid var(--ld-amber);
  outline-offset: 2px;
}

.do-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Background: "Luz de escritorio" ---------- */
.ld-page {
  position: relative;
  overflow: hidden;
  padding-bottom: 64px;
}

.ld-page::before {
  content: "";
  position: absolute;
  left: -200px;
  top: -260px;
  width: 1100px;
  height: 900px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    closest-side,
    rgba(255, 212, 138, 0.13),
    rgba(255, 212, 138, 0.04) 60%,
    rgba(255, 212, 138, 0) 100%
  );
}

.ld-page > * {
  position: relative;
  z-index: 1;
}

/* ---------- Container ---------- */
.ld-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 32px;
}

/* ---------- Logo & Wordmark ---------- */
.ld-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.ld-wordmark {
  font-family: var(--ld-font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ld-text);
}

.ld-wordmark--footer {
  font-size: 26px;
}

.ld-i {
  position: relative;
  display: inline-block;
}

.ld-i-dot {
  position: absolute;
  left: 50%;
  top: -0.04em;
  width: 0.15em;
  height: 0.24em;
  margin-left: -0.075em;
  border-radius: 0.075em;
  background: var(--ld-amber);
}

/* ---------- Liva Animations (Hero attending card only) ---------- */
@keyframes ldBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.1); }
}

.ld-blink {
  animation: ldBlink 5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes ldDot {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}

.ld-dot {
  width: 5px;
  height: 5px;
  border-radius: 9px;
  background: var(--ld-amber);
  animation: ldDot 1.2s ease-in-out infinite;
}

.ld-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.ld-dot:nth-child(3) {
  animation-delay: 0.4s;
}

.do-paused .ld-blink,
.do-paused .ld-dot {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .ld-blink,
  .ld-dot {
    animation: none !important;
  }
}

/* ---------- Buttons ---------- */
.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--ld-radius-control);
  font-family: var(--ld-font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ld-btn--primary {
  background: var(--ld-amber);
  color: var(--ld-on-amber);
  border-color: var(--ld-amber);
}

.ld-btn--primary:hover {
  background: var(--ld-amber-dark);
  border-color: var(--ld-amber-dark);
  color: var(--ld-on-amber);
}

.ld-btn--secondary {
  background: transparent;
  color: var(--ld-text);
  border-color: var(--ld-border-strong);
}

.ld-btn--secondary:hover {
  border-color: var(--ld-amber);
  color: var(--ld-text);
}

.ld-btn--link {
  background: transparent;
  border-color: transparent;
  color: var(--ld-text);
  padding: 0 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ld-btn--link:hover {
  color: var(--ld-amber-light);
}

.ld-btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ---------- Header / Navigation ---------- */
.ld-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ld-nav-group {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.ld-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.ld-nav a {
  color: var(--ld-text);
  text-decoration: none;
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.ld-nav a:hover {
  color: var(--ld-amber-light);
}

.ld-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.do-lang {
  display: inline-flex;
  border: 1px solid var(--ld-border-strong);
  border-radius: 999px;
  padding: 2px;
  background: var(--ld-surface);
}

.do-lang a {
  min-height: 36px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--ld-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.do-lang a[aria-current="true"] {
  background: var(--ld-amber-soft);
  color: var(--ld-amber-light);
}

.ld-login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--ld-radius-control);
  border: 1px solid var(--ld-border-strong);
  color: var(--ld-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.ld-login:hover {
  border-color: var(--ld-amber);
  color: var(--ld-text);
}

.do-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--ld-surface);
  color: var(--ld-text);
  border: 1px solid var(--ld-border-strong);
  border-radius: var(--ld-radius-control);
  cursor: pointer;
}

.do-mobile-drawer,
.do-mobile-backdrop {
  display: none;
}

/* ---------- Hero ---------- */
.ld-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
  align-items: center;
}

.ld-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ld-founder-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--ld-amber-border);
  background: #241B0E;
  color: var(--ld-amber-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.ld-founder-pill[hidden] {
  display: none;
}

.ld-founder-pill:hover {
  border-color: var(--ld-amber);
  color: var(--ld-amber-light);
}

.ld-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ld-muted);
}

.ld-hero h1 {
  font-size: 58px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ld-text);
}

.ld-accent {
  color: var(--ld-amber);
}

.ld-hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ld-text-2);
  max-width: 520px;
}

.ld-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ld-channels {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ld-text-2);
}

.ld-channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ld-trust-line {
  font-size: 14px;
  color: var(--ld-muted);
}

/* Hero visual right column */
.ld-hero-visual {
  position: relative;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
}

.ld-mock-panel {
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius-card);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.ld-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ld-border);
}

.ld-mock-head-title {
  font-weight: 600;
  font-size: 15px;
}

.ld-mock-head-badge {
  font-size: 12px;
  color: var(--ld-muted);
}

.ld-mock-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ld-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ld-kpi {
  background: var(--ld-bg);
  border: 1px solid var(--ld-border);
  border-radius: 12px;
  padding: 12px 14px;
}

.ld-kpi-label {
  font-size: 12px;
  color: var(--ld-muted);
}

.ld-kpi-val {
  margin-top: 4px;
  font-family: var(--ld-font-display);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ld-kpi-val--amber {
  color: var(--ld-amber);
}

.ld-kpi-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ld-muted);
}

.ld-notes-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ld-amber);
}

.ld-note-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--ld-border);
}

.ld-note-name {
  font-weight: 600;
  font-size: 15px;
}

.ld-note-meta {
  font-weight: 400;
  color: var(--ld-muted);
}

.ld-note-text {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ld-text-2);
}

.ld-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.ld-tag--amber {
  background: var(--ld-amber-soft);
  color: var(--ld-amber);
}

.ld-tag--neutral {
  background: var(--ld-border);
  color: var(--ld-text);
}

.ld-attending-card {
  position: absolute;
  left: -20px;
  bottom: 0;
  width: 300px;
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.ld-attending-title {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ld-dots {
  display: inline-flex;
  gap: 3px;
}

.ld-attending-sub {
  margin-top: 2px;
  font-size: 13px;
  color: var(--ld-muted);
}

/* ---------- Never Strip ---------- */
.ld-never-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.ld-never {
  border-top: 1px solid var(--ld-border);
  border-bottom: 1px solid var(--ld-border);
  padding: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ld-label-upper {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ld-muted);
}

.ld-never-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
}

.ld-never-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ld-never-item svg {
  flex: none;
  margin-top: 2px;
}

.ld-never-title {
  font-weight: 600;
  font-size: 15px;
}

.ld-never-desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ld-muted);
}

/* ---------- Generic Section ---------- */
.ld-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ld-section--compact-top {
  padding-top: 64px;
}

.ld-section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.ld-h2 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ld-text);
}

.ld-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ld-text-2);
}

/* ---------- Rubros Section (#como-funciona) ---------- */
.ld-rubro-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ld-rubro-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font-family: var(--ld-font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--ld-border-strong);
  background: transparent;
  color: var(--ld-text);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ld-rubro-btn:hover {
  border-color: var(--ld-amber);
}

.ld-rubro-btn[aria-pressed="true"] {
  background: var(--ld-amber);
  border-color: var(--ld-amber);
  color: var(--ld-on-amber);
}

.ld-rubro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 20px;
  align-items: start;
}

.ld-card {
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius-card);
}

.ld-chat-card {
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.ld-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ld-border);
}

.ld-chat-head-name {
  font-weight: 600;
  font-size: 15px;
}

.ld-chat-head-sub {
  margin-top: 2px;
  font-size: 13px;
  color: var(--ld-muted);
}

.ld-chat-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 190px;
}

.ld-bubble-visitor {
  align-self: flex-end;
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px 16px 4px 16px;
  background: var(--ld-border);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ld-text);
}

.ld-bubble-liva {
  align-self: flex-start;
  max-width: 86%;
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  background: var(--ld-amber-soft);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ld-text);
}

.ld-noted-box {
  padding: 16px 18px;
  border-top: 1px solid var(--ld-border);
  background: var(--ld-bg);
}

.ld-noted-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}

.ld-noted-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ld-noted-field {
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: 10px;
  padding: 10px 12px;
}

.ld-noted-k {
  font-size: 12px;
  color: var(--ld-muted);
}

.ld-noted-v {
  margin-top: 4px;
  font-weight: 600;
  font-size: 14px;
}

.ld-questions-card {
  padding: 8px 20px 18px;
}

.ld-questions-head {
  margin: 10px 0 6px;
  font-size: 13px;
  color: var(--ld-muted);
}

.ld-questions-list {
  list-style: none;
}

.ld-q-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--ld-border);
  font-size: 15px;
}

.ld-switch {
  width: 40px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  flex: none;
  background: var(--ld-border-strong);
  justify-content: flex-start;
}

.ld-switch.is-on {
  background: var(--ld-amber);
  justify-content: flex-end;
}

.ld-switch-knob {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #8C857C;
}

.ld-switch.is-on .ld-switch-knob {
  background: var(--ld-on-amber);
}

.ld-q-add {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ld-amber);
}

.ld-q-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ld-muted);
}

/* ---------- Place Section (#tu-panel) ---------- */
.ld-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}

.ld-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ld-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ld-step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ld-amber);
  color: var(--ld-on-amber);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.ld-step-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ld-muted);
}

.ld-mini-view {
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: 14px;
  padding: 14px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ld-mini-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.ld-mini-table {
  width: 100%;
  border-collapse: collapse;
}

.ld-mini-table th {
  font-size: 11px;
  color: var(--ld-muted);
  padding: 4px 6px;
  text-align: left;
  font-weight: 600;
}

.ld-mini-table td {
  font-size: 12px;
  padding: 6px;
  border-top: 1px solid var(--ld-border);
  color: var(--ld-muted);
  white-space: nowrap;
}

.ld-mini-table tr.is-highlight {
  background: var(--ld-amber-soft);
}

.ld-mini-table tr.is-highlight td {
  color: var(--ld-text);
}

.ld-mini-table tr.is-highlight td:first-child {
  font-weight: 600;
}

.ld-mini-cal-month {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ld-text);
}

.ld-mini-cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.ld-mini-cal-days span {
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--ld-muted);
}

.ld-mini-cal-days span.is-selected {
  background: var(--ld-amber);
  color: var(--ld-on-amber);
  font-weight: 700;
}

.ld-mini-cal-event {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ld-text-2);
}

.ld-mini-cash-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}

.ld-mini-cash-row span:first-child {
  color: var(--ld-muted);
}

.ld-mini-cash-row span:last-child {
  font-weight: 600;
  color: var(--ld-text);
}

.ld-mini-cash-row--balance span:last-child {
  color: var(--ld-amber);
}

.ld-mini-cash-sep {
  border-top: 1px solid var(--ld-border);
  margin: 4px 0;
}

.ld-step h3 {
  font-size: 18px;
  font-weight: 600;
}

.ld-step-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ld-text-2);
}

.ld-report-line {
  font-size: 15px;
  color: var(--ld-text-2);
}

.ld-report-line b {
  color: var(--ld-text);
}

.ld-extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
  padding: 8px 0 4px;
}

.ld-extra-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ld-extra-item svg {
  flex: none;
  margin-top: 2px;
}

.ld-extra-title {
  font-weight: 600;
  font-size: 15px;
}

.ld-extra-desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ld-muted);
}

.ld-data-box {
  border: 1px solid var(--ld-amber-border);
  background: var(--ld-amber-tint);
  border-radius: var(--ld-radius-card);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px 40px;
  align-items: center;
}

.ld-data-box h3 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ld-data-box p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ld-text-2);
}

.ld-data-box a {
  color: var(--ld-amber);
  font-weight: 600;
}

/* ---------- Pricing (#precios) ---------- */
.do-toggle {
  align-self: flex-start;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--ld-surface);
  border: 1px solid var(--ld-border-strong);
}

.do-toggle[hidden] {
  display: none;
}

.do-toggle button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ld-text-2);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.do-toggle button[aria-pressed="true"] {
  background: var(--ld-amber);
  color: var(--ld-on-amber);
  font-weight: 600;
}

.ld-founder-banner {
  border: 1px solid var(--ld-amber-border);
  background: var(--ld-amber-tint);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ld-text-2);
}

.ld-founder-banner[hidden] {
  display: none;
}

.ld-founder-banner b {
  color: var(--ld-amber-light);
}

.do-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  align-items: stretch;
}

.ld-plan {
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ld-plan--featured {
  border: 2px solid var(--ld-amber);
}

.ld-plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ld-plan-head h3 {
  font-size: 24px;
  font-weight: 600;
}

.ld-plan-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--ld-amber);
  color: var(--ld-on-amber);
  white-space: nowrap;
}

.ld-plan-founder-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ld-amber);
}

.ld-plan-price {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.ld-plan-amount {
  font-family: var(--ld-font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.ld-plan-per {
  font-size: 15px;
  color: var(--ld-muted);
}

.ld-plan-strike {
  font-size: 16px;
  color: var(--ld-muted);
  text-decoration: line-through;
}

.ld-plan-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ld-muted);
  line-height: 1.45;
}

.ld-plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ld-plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ld-text);
}

.ld-plan li svg {
  flex: none;
  margin-top: 3px;
}

.ld-plan .ld-btn {
  margin-top: auto;
  min-height: 48px;
}

.ld-pricing-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 15px;
  color: var(--ld-text-2);
}

.ld-pricing-notes b,
.ld-pricing-notes strong {
  color: var(--ld-text);
}

.ld-pricing-foot {
  font-size: 14px;
  color: var(--ld-muted);
}

/* ---------- Calculator (#calculadora) ---------- */
.ld-calc-card {
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: 20px;
  padding: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 40px;
  align-items: center;
}

.ld-calc-in {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ld-calc-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ld-calc-label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  color: var(--ld-text);
}

.ld-calc-label-row output {
  font-family: var(--ld-font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ld-amber);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ld-calc-field input[type="range"] {
  width: 100%;
  accent-color: var(--ld-amber);
  min-height: 32px;
  cursor: pointer;
}

.ld-calc-out {
  background: var(--ld-bg);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ld-calc-out-label {
  font-size: 14px;
  color: var(--ld-muted);
}

.ld-calc-big {
  margin-top: 4px;
  font-family: var(--ld-font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.ld-calc-big--amber {
  color: var(--ld-amber);
}

.ld-calc-punch {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ld-text-2);
}

.ld-calc-note {
  font-size: 13px;
  color: var(--ld-muted);
}

/* ---------- FAQ (#faq) ---------- */
.ld-faq-more {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ld-text-2);
}

.ld-faq-more a {
  color: var(--ld-amber);
  font-weight: 600;
}

.do-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
}

.do-faq details {
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: 14px;
  padding: 0 22px;
}

.do-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--ld-font-display);
  font-size: 19px;
  font-weight: 600;
  min-height: 44px;
  color: var(--ld-text);
}

.do-faq summary::-webkit-details-marker {
  display: none;
}

.do-faq summary::after {
  content: "+";
  font-family: var(--ld-font-body);
  font-size: 22px;
  color: var(--ld-amber);
  flex: none;
}

.do-faq details[open] summary::after {
  content: "−";
}

.do-faq p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ld-text-2);
}

.do-faq p a {
  color: var(--ld-amber);
  font-weight: 600;
}

.ld-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  align-items: start;
}

.ld-faq-layout .do-faq {
  max-width: none;
}

.ld-faq-liva {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 8px;
}

.ld-faq-bubble {
  position: relative;
  margin: 0 0 18px;
  padding: 12px 16px;
  background: var(--ld-surface-2, #1F1C18);
  border: 1px solid var(--ld-border-strong);
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ld-text-2);
}

.ld-faq-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: var(--ld-surface-2, #1F1C18);
  border-right: 1px solid var(--ld-border-strong);
  border-bottom: 1px solid var(--ld-border-strong);
  transform: rotate(45deg);
}

.ld-faq-ask {
  margin-top: 14px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--ld-amber-border);
  background: transparent;
  color: var(--ld-amber);
  font: 600 15px var(--ld-font-body);
  cursor: pointer;
}

.ld-faq-ask:hover {
  background: var(--ld-amber-tint);
}

.ld-faq-ask:focus-visible {
  outline: 2px solid var(--ld-amber);
  outline-offset: 2px;
}

.ld-note-line {
  stroke-dasharray: 22;
  stroke-dashoffset: 0;
}

.ld-liva-note.is-writing .ld-note-line {
  animation: ldNoteWrite .9s ease-out both;
}

.ld-liva-note.is-writing .ld-note-line-2 {
  animation-delay: .45s;
}

.ld-liva-note.is-writing .ld-note-pen {
  animation: ldNotePen .45s ease-in-out 2;
}

@keyframes ldNoteWrite {
  from { stroke-dashoffset: 22; }
  to { stroke-dashoffset: 0; }
}

@keyframes ldNotePen {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-5px, 2px); }
}

@media (prefers-reduced-motion: reduce) {
  .ld-liva-note.is-writing .ld-note-line,
  .ld-liva-note.is-writing .ld-note-pen {
    animation: none;
  }
}

/* ---------- Contact (#contacto) ---------- */
.ld-contact-card {
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: 20px;
  padding: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px;
}

.ld-contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ld-contact-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ld-contact-checks li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 16px;
}

.ld-contact-email {
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ld-amber);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ld-contact-email:hover {
  color: var(--ld-amber-light);
}

.ld-human-card {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--ld-bg);
  border: 1px solid var(--ld-border);
}

.ld-human-card svg {
  flex: none;
}

.ld-human-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ld-text-2);
}

.do-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 16px;
  align-content: start;
}

.do-form .do-full {
  grid-column: 1 / -1;
}

.do-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ld-text);
}

.do-form input,
.do-form select,
.do-form textarea {
  min-height: 46px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--ld-radius-control);
  border: 1px solid var(--ld-border-strong);
  background: var(--ld-bg);
  color: var(--ld-text);
  font-family: var(--ld-font-body);
  font-size: 15px;
  font-weight: 400;
}

.do-form textarea {
  min-height: 110px;
  max-height: 260px;
  resize: vertical;
  line-height: 1.5;
}

.do-form input:focus-visible,
.do-form select:focus-visible,
.do-form textarea:focus-visible {
  outline: 2px solid var(--ld-amber);
  outline-offset: 1px;
}

.do-form input[aria-invalid="true"],
.do-form textarea[aria-invalid="true"] {
  border-color: #F87171;
}

.do-field-err {
  font-size: 12.5px;
  font-weight: 400;
  color: #FCA5A5;
}

.do-field-err[hidden] {
  display: none;
}

.do-form .do-check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
}

.do-form .do-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  margin: 0;
  accent-color: var(--ld-amber);
  flex: none;
  cursor: pointer;
}

.do-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.do-form .ld-btn--primary {
  width: 100%;
}

.do-feedback {
  padding: 12px 16px;
  border-radius: var(--ld-radius-control);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.do-feedback[hidden] {
  display: none;
}

.do-feedback--ok {
  background: var(--ld-amber-tint);
  border: 1px solid var(--ld-amber-border);
  color: var(--ld-amber-light);
}

.do-feedback--err {
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #FCA5A5;
}

/* ---------- Footer ---------- */
.ld-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 32px 0;
}

.ld-footer-inner {
  border-top: 1px solid var(--ld-border);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.ld-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ld-footer-tagline {
  font-size: 14px;
  color: var(--ld-muted);
}

.ld-footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
}

.ld-footer-links a {
  color: var(--ld-text-2);
  text-decoration: none;
}

.ld-footer-links a:hover {
  color: var(--ld-amber-light);
}

.ld-footer-copy {
  font-size: 14px;
  color: var(--ld-muted);
  width: 100%;
}

/* ---------- Interactive Demo Modal ---------- */
body.do-modal-open {
  overflow: hidden;
}

.do-demo-modal[hidden] {
  display: none;
}

.do-demo-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(12, 10, 8, 0.82);
  backdrop-filter: blur(6px);
}

.do-demo-dialog {
  width: 100%;
  max-width: 980px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--ld-bg);
  border: 1px solid var(--ld-border-strong);
  border-radius: 18px;
  color: var(--ld-text);
  scrollbar-width: thin;
  scrollbar-color: var(--ld-border-strong) var(--ld-bg);
}

.do-demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.do-demo-topbar h2 {
  font-size: 20px;
  font-weight: 600;
}

.do-demo-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--ld-border-strong);
  background: var(--ld-surface);
  color: var(--ld-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.do-demo-rubros-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.do-demo-rubros-label {
  font-size: 13px;
  color: var(--ld-muted);
  margin-right: 4px;
}

.do-demo-rubros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.do-demo-rubro-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--ld-border-strong);
  background: var(--ld-surface);
  color: var(--ld-text-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.do-demo-rubro-btn.is-active {
  background: var(--ld-amber);
  border-color: var(--ld-amber);
  color: var(--ld-on-amber);
}

.do-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 16px;
  align-items: start;
}

.do-demo-chat-panel {
  display: flex;
  flex-direction: column;
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius-card);
  overflow: hidden;
}

.do-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ld-border);
  font-size: 14px;
  font-weight: 600;
}

.do-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ld-amber);
}

.do-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ld-amber);
  flex: none;
}

.do-demo-chat-panel .do-chat-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 270px;
  min-height: 270px;
  max-height: 270px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.45;
  scrollbar-width: thin;
  scrollbar-color: var(--ld-border-strong) var(--ld-bg);
}

.do-msg {
  max-width: 82%;
  padding: 10px 14px;
  overflow-wrap: break-word;
}

.do-msg--user {
  align-self: flex-end;
  background: var(--ld-border);
  color: var(--ld-text);
  border-radius: 14px 14px 4px 14px;
}

.do-msg--bot {
  align-self: flex-start;
  max-width: 86%;
  background: var(--ld-amber-soft);
  color: var(--ld-text);
  border-radius: 14px 14px 14px 4px;
}

.do-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  background: var(--ld-surface-2);
  border-radius: 14px 14px 14px 4px;
}

.do-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ld-amber);
}

.do-saved {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ld-amber-light);
  background: var(--ld-amber-soft);
  border-radius: 999px;
  padding: 6px 12px;
}

.do-escalated {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ld-amber-light);
  background: var(--ld-amber-tint);
  border: 1px solid var(--ld-amber-border);
  border-radius: 999px;
  padding: 6px 12px;
}

.do-demo-typing-row {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.do-demo-suggestions {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--ld-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.do-demo-suggestions[hidden] {
  display: none;
}

.do-demo-q-btn {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--ld-amber-border);
  background: var(--ld-amber-tint);
  color: var(--ld-amber-light);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.do-demo-q-btn:hover:not(:disabled) {
  background: var(--ld-amber-soft);
}

.do-demo-q-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.do-demo-guardrail-btn {
  width: calc(100% - 36px);
  margin: 0 18px 14px;
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px dashed var(--ld-border-strong);
  background: transparent;
  color: var(--ld-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.do-demo-guardrail-btn:hover:not(:disabled) {
  color: var(--ld-text);
  border-color: var(--ld-amber-border);
}

.do-demo-guardrail-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.do-demo-guardrail-btn[hidden] {
  display: none;
}

.do-mock {
  background: var(--ld-surface);
  border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius-card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.do-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.do-mock-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.do-mock-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--ld-amber);
  background: var(--ld-amber-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ld-amber-light);
}

.do-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ld-muted);
  border: 1px solid var(--ld-border-strong);
  border-radius: 999px;
  padding: 2px 8px;
}

.do-mock-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  padding-top: 4px;
}

.do-pill-warn {
  font-size: 11px;
  font-weight: 600;
  color: var(--ld-amber);
  background: var(--ld-amber-soft);
  border-radius: 999px;
  padding: 3px 9px;
}

.do-demo-leads {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.do-lead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--ld-bg);
  border: 1px solid var(--ld-border);
}

.do-lead-row div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.do-lead-row strong {
  font-size: 14px;
}

.do-lead-row small {
  font-size: 12px;
  color: var(--ld-muted);
}

.do-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ld-amber-light);
  background: var(--ld-amber-soft);
  border: 1px solid var(--ld-amber-border);
  border-radius: 10px;
  padding: 6px 10px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}

.do-mini-btn:hover {
  border-color: var(--ld-amber);
}

.do-mini-bolt {
  width: 16px;
  height: 16px;
}

.do-demo-toast {
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ld-amber-tint);
  border: 1px solid var(--ld-amber-border);
  color: var(--ld-amber-light);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.do-demo-toast[hidden] {
  display: none;
}

.do-lead-row--new {
  border-color: var(--ld-amber);
  animation: do-demo-lead-in 0.45s ease-out both;
}

@keyframes do-demo-lead-in {
  from { opacity: 0; transform: translateY(-6px); background: var(--ld-amber-soft); }
  to { opacity: 1; transform: none; }
}

.do-demo-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

/* ---------- Responsive (<= 768px) ---------- */
@media (max-width: 768px) {
  /* Deja libre la esquina del botón flotante del chat (56 px + 14 px de margen). */
  .ld-trust-line {
    padding-right: 72px;
  }

  /* FAQ: Liva va debajo de las preguntas, en una fila compacta. */
  .ld-faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .ld-faq-liva {
    position: static;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas: "liva bubble" "liva ask";
    align-items: center;
    column-gap: 14px;
    text-align: left;
    padding-top: 0;
  }

  .ld-faq-liva .ld-liva-note {
    grid-area: liva;
    width: 76px;
    height: 70px;
  }

  .ld-faq-bubble {
    grid-area: bubble;
    margin: 0;
  }

  .ld-faq-bubble::after {
    left: -7px;
    top: 50%;
    bottom: auto;
    margin: -6px 0 0;
    border-right: 0;
    border-bottom: 1px solid var(--ld-border-strong);
    border-left: 1px solid var(--ld-border-strong);
  }

  .ld-faq-ask {
    grid-area: ask;
    justify-self: start;
  }

  .ld-header {
    padding: 18px 20px;
  }

  .ld-nav-group {
    display: none;
  }

  .do-menu-btn {
    display: inline-flex;
  }

  .do-mobile-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(12, 10, 8, 0.72);
    backdrop-filter: blur(4px);
    z-index: 9998;
  }

  .do-mobile-drawer:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 82vw);
    margin: 0;
    padding: 20px;
    background: var(--ld-surface);
    border-left: 1px solid var(--ld-border-strong);
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.55);
    z-index: 9999;
    overflow-y: auto;
  }

  .do-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--ld-border);
  }

  .do-mobile-close {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--ld-muted);
    border: 1px solid var(--ld-border-strong);
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .do-mobile-drawer a.do-m-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--ld-text);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
  }

  .do-mobile-drawer a.do-m-link:hover {
    background: var(--ld-surface-2);
    color: var(--ld-amber-light);
  }

  .do-mobile-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--ld-border);
  }

  .ld-hero {
    padding: 28px 20px 32px;
    gap: 32px;
  }

  .ld-hero h1 {
    font-size: 40px;
  }

  .ld-h2 {
    font-size: 28px;
  }

  .ld-hero-visual {
    padding-bottom: 0;
    gap: 14px;
  }

  .ld-attending-card {
    position: static;
    width: 100%;
    order: -1;
    box-shadow: none;
  }

  .ld-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ld-kpi:last-child {
    grid-column: 1 / -1;
  }

  .ld-never-wrap {
    padding: 0 20px;
  }

  .ld-section {
    padding: 64px 20px 0;
  }

  .ld-noted-fields {
    grid-template-columns: 1fr;
  }

  .ld-calc-card,
  .ld-contact-card {
    padding: 24px 20px;
    gap: 28px;
  }

  .ld-footer {
    padding: 64px 20px 0;
  }

  .do-demo-dialog {
    padding: 16px;
  }

  .do-demo-grid {
    grid-template-columns: 1fr;
  }

  .do-demo-chat-panel .do-chat-body {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .do-lead-row--new {
    animation: none !important;
  }
}

/* ---------- Entradas animadas (una sola vez) ---------- */
/* Hero: el texto casi al instante (solo fundido), el panel apenas después y Liva al final. Todo < 1 s. */
@keyframes ldEnterFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ldEnterUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes ldEnterPop {
  from { opacity: 0; transform: scale(.85) translateY(6px); }
  to { opacity: 1; transform: none; }
}

.ld-hero-copy > * {
  animation: ldEnterFade .2s ease-out both;
}

.ld-hero-copy > :nth-child(n+4) {
  animation-delay: .06s;
}

.ld-mock-panel {
  animation: ldEnterUp .4s cubic-bezier(.2, .7, .2, 1) .15s both;
}

.ld-attending-card {
  animation: ldEnterPop .35s cubic-bezier(.3, 1.4, .5, 1) .5s both;
}

/* Resto de la página: lo agrega initReveal() en app.js solo a lo que está fuera de pantalla al cargar. */
.ld-anim .ld-reveal {
  opacity: 0;
  transform: translateY(12px);
}

.ld-anim .ld-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .4s cubic-bezier(.2, .7, .2, 1), transform .4s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--ld-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .ld-hero-copy > *,
  .ld-mock-panel,
  .ld-attending-card {
    animation: none;
  }

  .ld-anim .ld-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
