/* ==========================================================================
   MiTienda — landing.css
   Landing "editorial-terminal" para mitienda.cl
   Vanilla CSS · sin frameworks · sin recursos externos (todo self-hosted)

   Índice
     01. Fuentes locales (@font-face)
     02. Tokens de diseño (:root)
     03. Reset y base
     04. Utilidades (shell, kickers, chips, botones, reveal, a11y)
     05. Navbar + menú móvil
     06. Hero + mockup del panel
     07. Franja marquee
     08. Secciones base + Características
     09. Cómo funciona (sección oscura)
     10. Planes
     11. FAQ
     12. CTA final
     13. Footer
     14. Keyframes
     15. Movimiento reducido
   ========================================================================== */


/* ==========================================================================
   01. FUENTES LOCALES
   Servidas desde /fonts (mismo origen). Variable weights para Fraunces y
   Karla; tres cortes para IBM Plex Mono.
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Karla';
  src: url('/fonts/karla-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/plexmono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/plexmono-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/plexmono-600-latin.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Caveat';
  src: url('/fonts/caveat-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   02. TOKENS
   ========================================================================== */

:root {
  /* Paleta */
  --ld-yellow: #ffe600;        /* acento primario (amarillo ML) */
  --ld-yellow-tint: rgba(255, 230, 0, .5);
  --ld-ink: #16150f;           /* tinta oscura */
  --ld-paper: #f7f4ec;         /* crema papel */
  --ld-white: #ffffff;
  --ld-green: #0e8a5f;         /* éxito */
  --ld-blue: #3483fa;          /* acción (azul ML) */

  --ld-ink-70: rgba(22, 21, 15, .72);
  --ld-ink-55: rgba(22, 21, 15, .55);
  --ld-ink-35: rgba(22, 21, 15, .35);
  --ld-ink-14: rgba(22, 21, 15, .14);
  --ld-cream-70: rgba(247, 244, 236, .7);
  --ld-cream-55: rgba(247, 244, 236, .55);

  /* Geometría */
  --ld-line: 1.5px solid var(--ld-ink);
  --ld-radius-sm: 10px;
  --ld-radius: 14px;
  --ld-radius-lg: 18px;

  /* Sombras duras (neo-editorial) */
  --ld-shadow-sm: 3px 3px 0 var(--ld-ink);
  --ld-shadow: 4px 4px 0 var(--ld-ink);
  --ld-shadow-lg: 8px 8px 0 var(--ld-ink);

  /* Tipografía */
  --ld-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --ld-body: 'Karla', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --ld-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ld-hand: 'Caveat', 'Segoe Script', cursive;

  /* Movimiento */
  --ld-ease: cubic-bezier(.2, .7, .2, 1);

  /* Layout */
  --ld-shell: 1180px;
  --ld-nav-h: 74px;
}

@media (max-width: 640px) {
  :root {
    --ld-nav-h: 64px;
  }
}


/* ==========================================================================
   03. RESET Y BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--ld-nav-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ld-paper);
  color: var(--ld-ink);
  font-family: var(--ld-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

svg {
  max-width: 100%;
}

::selection {
  background: var(--ld-yellow);
  color: var(--ld-ink);
}

:focus-visible {
  outline: 3px solid var(--ld-blue);
  outline-offset: 3px;
}

.ld-no-scroll {
  overflow: hidden;
}


/* ==========================================================================
   04. UTILIDADES
   ========================================================================== */

/* --- Contenedor --- */
.ld-shell {
  width: 100%;
  max-width: var(--ld-shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.ld-shell--narrow {
  max-width: 840px;
}

@media (max-width: 640px) {
  .ld-shell {
    padding-inline: 18px;
  }
}

/* --- Skip link (a11y) --- */
.ld-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ld-ink);
  color: var(--ld-paper);
  font: 700 13px/1 var(--ld-body);
  border-radius: 10px;
  text-decoration: none;
  translate: 0 -64px;
  transition: translate .25s var(--ld-ease);
}

.ld-skip:focus-visible {
  translate: 0 0;
}

/* --- Kicker mono --- */
.ld-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ld-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ld-ink);
}

.ld-kicker::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--ld-yellow);
  border: 1.5px solid var(--ld-ink);
}

.ld-kicker--dot::before {
  border-radius: 50%;
  background: var(--ld-green);
  border-color: var(--ld-green);
  animation: ld-pulse 2.2s ease-in-out infinite;
}

.ld-kicker--dark {
  color: var(--ld-paper);
}

.ld-kicker--dark::before {
  background: var(--ld-yellow);
  border-color: var(--ld-yellow);
}

/* --- Chip mono --- */
.ld-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ld-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
  padding: 7px 11px;
  border: var(--ld-line);
  border-radius: 999px;
  background: var(--ld-white);
  color: var(--ld-ink);
}

.ld-chip--dark {
  background: transparent;
  border-color: rgba(255, 230, 0, .55);
  color: var(--ld-yellow);
}

/* --- Botones --- */
.ld-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: var(--ld-line);
  border-radius: 12px;
  font-family: var(--ld-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  color: var(--ld-ink);
  background: var(--ld-white);
  text-decoration: none;
  cursor: pointer;
  translate: 0 0;
  box-shadow: 0 0 0 rgba(22, 21, 15, 0);
  transition:
    translate .18s var(--ld-ease),
    box-shadow .18s var(--ld-ease),
    background-color .18s var(--ld-ease),
    color .18s var(--ld-ease);
}

.ld-btn--lg {
  padding: 16px 26px;
  font-size: 16px;
  border-radius: 14px;
}

.ld-btn--sm {
  padding: 10px 16px;
  font-size: 13.5px;
  border-radius: 10px;
}

.ld-btn--block {
  width: 100%;
}

.ld-btn--ink {
  background: var(--ld-ink);
  color: var(--ld-paper);
}

.ld-btn--ink:hover {
  background: var(--ld-yellow);
  color: var(--ld-ink);
  translate: -2px -2px;
  box-shadow: var(--ld-shadow);
}

.ld-btn--ghost {
  background: transparent;
}

.ld-btn--ghost:hover {
  background: var(--ld-white);
  translate: -2px -2px;
  box-shadow: var(--ld-shadow);
}

.ld-btn--yellow {
  background: var(--ld-yellow);
  color: var(--ld-ink);
}

.ld-btn--yellow:hover {
  translate: -2px -2px;
  box-shadow: var(--ld-shadow);
}

.ld-btn:active {
  translate: 0 0;
  box-shadow: 1px 1px 0 var(--ld-ink);
}

.ld-btn__icon {
  width: 17px;
  height: 17px;
  flex: none;
}

/* --- Tarjetas base (borde tinta + sombra dura) ---
   Importante: la transición de hover (translate/box-shadow) vive en
   .ld-reveal para no pisar la animación de entrada. */
.ld-card {
  position: relative;
  background: var(--ld-white);
  border: var(--ld-line);
  border-radius: var(--ld-radius-lg);
  box-shadow: var(--ld-shadow);
}

.ld-card:hover {
  translate: -3px -3px;
  box-shadow: 7px 7px 0 var(--ld-ink);
}

/* --- Reveal on scroll (IntersectionObserver agrega .ld-in) ---
   Solo se oculta si hay JS disponible y el usuario acepta movimiento
   (@media scripting + no-preference): sin JS nunca hay contenido invisible. */
.ld-reveal {
  transition:
    opacity .65s var(--ld-ease),
    transform .65s var(--ld-ease),
    translate .25s var(--ld-ease),
    box-shadow .22s var(--ld-ease);
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .ld-reveal:not(.ld-in) {
    opacity: 0;
    transform: translateY(24px);
  }
}


/* ==========================================================================
   05. NAVBAR + MENÚ MÓVIL
   ========================================================================== */

.ld-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(247, 244, 236, .6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid transparent;
  transition:
    background-color .3s var(--ld-ease),
    border-color .3s var(--ld-ease),
    box-shadow .3s var(--ld-ease);
}

.ld-nav--scrolled {
  background: rgba(247, 244, 236, .92);
  border-bottom-color: var(--ld-ink);
  box-shadow: 0 6px 24px rgba(22, 21, 15, .07);
}

.ld-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  height: var(--ld-nav-h);
}

/* --- Logo --- */
.ld-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ld-ink);
}

.ld-logo__mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.ld-logo__word {
  font-family: var(--ld-display);
  font-weight: 620;
  font-size: 21.5px;
  letter-spacing: -.01em;
  line-height: 1;
}

.ld-logo__tld {
  font-family: var(--ld-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 5px 3px;
  border: 1.5px solid var(--ld-ink);
  border-radius: 7px;
  background: var(--ld-yellow);
  translate: 0 -6px;
}

/* --- Links ancla --- */
.ld-nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.ld-nav__links a {
  position: relative;
  padding: 8px 2px;
  font-family: var(--ld-body);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  color: var(--ld-ink);
  text-decoration: none;
}

.ld-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--ld-yellow);
  box-shadow: 0 1.5px 0 var(--ld-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ld-ease);
}

.ld-nav__links a:hover::after,
.ld-nav__links a:focus-visible::after {
  transform: scaleX(1);
}

/* --- Acciones --- */
.ld-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Hamburguesa --- */
.ld-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: var(--ld-white);
  border: var(--ld-line);
  border-radius: 11px;
  cursor: pointer;
  transition: box-shadow .2s var(--ld-ease), translate .2s var(--ld-ease);
}

.ld-burger:hover {
  translate: -1px -1px;
  box-shadow: 3px 3px 0 var(--ld-ink);
}

.ld-burger__bar {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ld-ink);
  transition: transform .3s var(--ld-ease);
}

.ld-burger.is-open .ld-burger__bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.ld-burger.is-open .ld-burger__bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* --- Panel móvil --- */
.ld-mobile {
  position: fixed;
  top: var(--ld-nav-h);
  left: 0;
  right: 0;
  z-index: 55;
  max-height: calc(100vh - var(--ld-nav-h));
  max-height: calc(100dvh - var(--ld-nav-h));
  overflow-y: auto;
  padding: 6px 0 22px;
  background: var(--ld-paper);
  border-bottom: 1.5px solid var(--ld-ink);
  box-shadow: 0 22px 34px rgba(22, 21, 15, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity .28s var(--ld-ease),
    transform .28s var(--ld-ease),
    visibility 0s linear .28s;
}

.ld-mobile--open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.ld-mobile__inner {
  display: grid;
}

.ld-mobile__inner > a {
  padding: 14px 4px;
  font-family: var(--ld-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--ld-ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--ld-ink-14);
}

.ld-mobile__inner > a:active {
  background: rgba(255, 230, 0, .25);
}

.ld-mobile__ctas {
  display: grid;
  gap: 10px;
  padding-top: 18px;
}

/* --- Breakpoints navbar --- */
@media (max-width: 899px) {
  .ld-nav__links {
    display: none;
  }

  .ld-burger {
    display: inline-flex;
  }
}

@media (min-width: 900px) {
  .ld-mobile {
    display: none;
  }
}

@media (max-width: 639px) {
  .ld-nav__actions .ld-btn--ghost {
    display: none;
  }
}


/* ==========================================================================
   06. HERO
   ========================================================================== */

.ld-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--ld-nav-h) + 58px) 0 96px;
}

/* Grilla de puntos sutil con desvanecido */
.ld-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(22, 21, 15, .17) 1px, transparent 1.4px);
  background-size: 24px 24px;
  opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 96%);
  pointer-events: none;
}

.ld-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Blobs de gradiente flotando lento */
.ld-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: .55;
  will-change: transform;
}

.ld-blob--a {
  width: 460px;
  height: 460px;
  left: -140px;
  top: -130px;
  background: radial-gradient(circle at 32% 32%, rgba(255, 230, 0, .8), rgba(255, 230, 0, 0) 70%);
  animation: ld-float-a 16s ease-in-out infinite alternate;
}

.ld-blob--b {
  width: 540px;
  height: 540px;
  right: -170px;
  top: 30px;
  background: radial-gradient(circle at 60% 40%, rgba(52, 131, 250, .5), rgba(52, 131, 250, 0) 70%);
  animation: ld-float-b 19s ease-in-out infinite alternate;
}

.ld-blob--c {
  width: 400px;
  height: 400px;
  left: 32%;
  bottom: -190px;
  background: radial-gradient(circle at 50% 50%, rgba(14, 138, 95, .35), rgba(14, 138, 95, 0) 70%);
  animation: ld-float-c 13s ease-in-out infinite alternate;
}

.ld-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 58px;
  align-items: center;
}

/* --- Columna copy --- */
.ld-hero__copy {
  display: grid;
  gap: 20px;
  max-width: 620px;
  justify-items: start;
}

.ld-h1 {
  font-family: var(--ld-display);
  font-weight: 570;
  font-size: clamp(2.55rem, 5vw + .8rem, 4.5rem);
  line-height: 1.06;
  letter-spacing: -.022em;
}

.ld-hero__sub {
  font-size: clamp(16px, 1.1vw + 11px, 18.5px);
  line-height: 1.65;
  color: var(--ld-ink-70);
  max-width: 54ch;
}

.ld-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 8px;
}

.ld-hero__micro {
  font-family: var(--ld-mono);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ld-ink-55);
  margin-top: 2px;
}

/* Subrayado marcador amarillo del H1 (se "dibuja" tras la entrada) */
.ld-h1 em {
  font-style: italic;
  font-weight: 520;
  background-image: linear-gradient(var(--ld-yellow), var(--ld-yellow));
  background-repeat: no-repeat;
  background-size: 100% .32em;
  background-position: 0 88%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 .06em;
  margin: 0 -.06em;
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .ld-hero__copy:not(.ld-in) .ld-h1 em {
    background-size: 0% .32em;
  }

  .ld-hero__copy .ld-h1 em {
    transition: background-size .9s var(--ld-ease) .5s;
  }
}

/* --- Columna mockup --- */
.ld-hero__panelwrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: center;
}

.ld-panel {
  position: relative;
  background: var(--ld-white);
  border: var(--ld-line);
  border-radius: var(--ld-radius-lg);
  box-shadow: 10px 10px 0 var(--ld-yellow);
  overflow: hidden;
}

.ld-panel__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: #fbf9f3;
  border-bottom: var(--ld-line);
}

.ld-panel__dots {
  display: inline-flex;
  gap: 5px;
}

.ld-panel__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--ld-ink);
  background: var(--ld-white);
}

.ld-panel__dots i:nth-child(1) { background: var(--ld-yellow); }
.ld-panel__dots i:nth-child(2) { background: var(--ld-green); }
.ld-panel__dots i:nth-child(3) { background: var(--ld-blue); }

.ld-panel__url {
  font-family: var(--ld-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ld-ink-55);
}

.ld-panel__live {
  margin-left: auto;
  font-family: var(--ld-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ld-green);
}

.ld-panel__wrap {
  display: grid;
  grid-template-columns: 128px 1fr;
  min-height: 330px;
}

/* Sidebar simulada */
.ld-panel__side {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 12px 10px;
  background: #f6f2e7;
  border-right: var(--ld-line);
}

.ld-side__search {
  height: 20px;
  margin-bottom: 3px;
  border: 1.5px solid var(--ld-ink-35);
  border-radius: 7px;
  background: var(--ld-white);
}

.ld-side__row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-family: var(--ld-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(22, 21, 15, .78);
  white-space: nowrap;
  overflow: hidden;
}

.ld-side__row.is-active {
  background: var(--ld-yellow-tint);
  border-color: var(--ld-ink);
}

.ld-side__swatch {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--ld-yellow);
  border: 1px solid var(--ld-ink);
}

.ld-side__swatch--blue { background: var(--ld-blue); }
.ld-side__swatch--green { background: var(--ld-green); }

.ld-side__divider {
  height: 1.5px;
  margin: 4px 2px;
  background: var(--ld-ink-14);
}

.ld-side__row b {
  margin-left: auto;
  padding: 2px 5px;
  border-radius: 6px;
  font-family: var(--ld-mono);
  font-size: 9.5px;
  font-weight: 600;
  background: var(--ld-ink);
  color: var(--ld-yellow);
}

/* Zona principal: KPIs + conversación */
.ld-panel__main {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  background: #fbf9f3;
}

.ld-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
}

.ld-kpi {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  background: var(--ld-white);
  border: var(--ld-line);
  border-radius: 10px;
}

.ld-kpi__label {
  font-family: var(--ld-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ld-ink-55);
}

.ld-kpi__value {
  font-family: var(--ld-mono);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ld-ink);
  white-space: nowrap;
}

.ld-kpi__delta {
  font-family: var(--ld-mono);
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ld-green);
}

.ld-kpi__delta--dim {
  color: var(--ld-ink-55);
}

/* Tarjeta de pregunta + respuesta IA */
.ld-ask {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--ld-white);
  border: var(--ld-line);
  border-radius: 12px;
}

.ld-ask__row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.ld-ask__row--a {
  flex-direction: column;
  align-items: stretch;
  padding-left: 35px;
}

.ld-ask__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--ld-yellow);
  border: 1.5px solid var(--ld-ink);
  border-radius: 8px;
  font-family: var(--ld-mono);
  font-size: 10.5px;
  font-weight: 600;
}

.ld-ask__bubble {
  display: grid;
  gap: 3px;
}

.ld-ask__meta {
  font-family: var(--ld-mono);
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ld-ink-55);
}

.ld-ask__q-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.ld-ai-chip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: var(--ld-yellow);
  border: 1.5px solid var(--ld-ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ld-ink);
  font-family: var(--ld-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  rotate: -1.5deg;
  animation: ld-pop .5s var(--ld-ease) 1.15s backwards;
}

.ld-ask__bubble--ai {
  padding: 9px 11px;
  background: #fff9d9;
  border: 1.5px solid var(--ld-ink);
  border-radius: 10px;
}

/* Reserva de altura para que el typing no mueva el layout */
.ld-ask__type {
  min-height: 3.2em;
  font-family: var(--ld-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(22, 21, 15, .85);
  overflow-wrap: anywhere;
}

.ld-cursor {
  display: inline-block;
  width: 7px;
  height: .95em;
  margin-left: 2px;
  background: var(--ld-yellow);
  border: 1px solid var(--ld-ink);
  vertical-align: -2px;
  animation: ld-blink 1.1s linear infinite;
}

/* Chips flotantes alrededor del panel */
.ld-floatchip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: var(--ld-white);
  border: var(--ld-line);
  border-radius: 999px;
  box-shadow: var(--ld-shadow-sm);
  font-family: var(--ld-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ld-floatchip--a {
  top: -16px;
  right: -12px;
  color: var(--ld-green);
  animation: ld-float-chip 7s ease-in-out infinite alternate;
}

.ld-floatchip--b {
  bottom: -16px;
  left: -14px;
  background: var(--ld-yellow);
  color: var(--ld-ink);
  animation: ld-float-chip 8.5s ease-in-out infinite alternate-reverse;
}

/* --- Breakpoints hero --- */
@media (min-width: 900px) {
  .ld-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 60px;
  }
}

@media (max-width: 900px) {
  .ld-hero {
    padding-top: calc(var(--ld-nav-h) + 36px);
    padding-bottom: 76px;
  }

  .ld-floatchip--a {
    right: 6px;
  }

  .ld-floatchip--b {
    left: 6px;
  }
}

@media (max-width: 480px) {
  .ld-panel__side {
    display: none;
  }

  .ld-panel__wrap {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ld-ask__type {
    min-height: 5.2em;
  }
}


/* ==========================================================================
   07. FRANJA MARQUEE
   ========================================================================== */

.ld-strip {
  padding: 15px 0;
  background: var(--ld-white);
  border-top: var(--ld-line);
  border-bottom: var(--ld-line);
}

.ld-marquee {
  overflow: hidden;
}

.ld-marquee__track {
  display: flex;
  width: max-content;
  animation: ld-marquee 38s linear infinite;
  will-change: transform;
}

.ld-marquee:hover .ld-marquee__track,
.ld-marquee:focus-within .ld-marquee__track {
  animation-play-state: paused;
}

.ld-marquee__group {
  display: flex;
  align-items: center;
}

.ld-marquee__group li {
  display: flex;
  align-items: center;
  font-family: var(--ld-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ld-ink);
}

/* Separador: diamante amarillo */
.ld-marquee__group li::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin: 0 22px;
  background: var(--ld-yellow);
  border: 1.5px solid var(--ld-ink);
  transform: rotate(45deg);
}


/* ==========================================================================
   08. SECCIONES BASE + CARACTERÍSTICAS
   ========================================================================== */

.ld-section {
  position: relative;
  padding: 96px 0;
}

@media (max-width: 900px) {
  .ld-section {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  .ld-section {
    padding: 58px 0;
  }
}

.ld-section__head {
  display: grid;
  gap: 14px;
  max-width: 680px;
  margin-bottom: 48px;
}

.ld-section__head--center {
  justify-items: center;
  text-align: center;
  margin-inline: auto;
}

.ld-section__sub {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ld-ink-70);
}

.ld-h2 {
  font-family: var(--ld-display);
  font-weight: 560;
  font-size: clamp(1.85rem, 3vw + .5rem, 2.9rem);
  line-height: 1.12;
  letter-spacing: -.015em;
}

/* Marcador amarillo compartido para <em> en titulares */
.ld-h2 em {
  font-style: italic;
  font-weight: 520;
  background-image: linear-gradient(var(--ld-yellow), var(--ld-yellow));
  background-repeat: no-repeat;
  background-size: 100% .3em;
  background-position: 0 88%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 .06em;
  margin: 0 -.06em;
}

.ld-grid {
  display: grid;
  gap: 22px;
}

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

.ld-feature {
  padding: 26px;
}

.ld-feature__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  background: var(--ld-yellow);
  border: var(--ld-line);
  border-radius: 12px;
  box-shadow: 2.5px 2.5px 0 var(--ld-ink);
  color: var(--ld-ink);
}

.ld-feature__icon svg {
  width: 24px;
  height: 24px;
}

.ld-feature__title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.ld-feature__text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ld-ink-70);
}

@media (min-width: 640px) {
  .ld-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ld-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ==========================================================================
   09. CÓMO FUNCIONA (sección oscura)
   ========================================================================== */

.ld-how {
  background: var(--ld-ink);
  color: var(--ld-paper);
}

.ld-how .ld-h2 {
  color: var(--ld-paper);
}

.ld-steps {
  position: relative;
  display: grid;
  gap: 26px;
}

/* Línea conectora: vertical en mobile, horizontal en desktop.
   Se dibuja (scale) cuando el observer agrega .ld-in al <ol>. */
.ld-steps::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 230, 0, .55), rgba(255, 230, 0, .12));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.1s var(--ld-ease) .15s;
}

.ld-steps.ld-in::before {
  transform: scaleY(1);
}

.ld-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
}

.ld-step__num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: #201d12;
  border: 1.5px solid rgba(255, 230, 0, .45);
  border-radius: 12px;
  font-family: var(--ld-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ld-yellow);
}

.ld-step__card {
  padding: 22px 24px;
  background: #1f1d14;
  border: 1.5px solid rgba(255, 230, 0, .22);
  border-radius: 16px;
}

.ld-step__card h3 {
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--ld-paper);
}

.ld-step__card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ld-cream-70);
}

.ld-how__note {
  margin-top: 36px;
  text-align: center;
  font-family: var(--ld-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ld-cream-55);
}

@media (min-width: 900px) {
  .ld-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .ld-step {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ld-step__num {
    margin-bottom: 16px;
  }

  .ld-steps::before {
    left: 14px;
    right: 14px;
    top: 23px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 230, 0, .55), rgba(255, 230, 0, .12));
    transform: scaleX(0);
    transform-origin: left;
  }

  .ld-steps.ld-in::before {
    transform: scaleX(1);
  }
}


/* ==========================================================================
   10. PLANES
   ========================================================================== */

.ld-plans__grid {
  grid-template-columns: 1fr;
  padding-top: 14px; /* espacio para la badge flotante del plan destacado */
}

.ld-plan {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
}

.ld-plan__head {
  display: grid;
  gap: 9px;
  justify-items: start;
  margin-bottom: 18px;
}

.ld-plan__tag {
  font-family: var(--ld-hand);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ld-ink);
  rotate: -1.5deg;
}

.ld-plan__badge {
  position: absolute;
  top: -15px;
  right: 18px;
  padding: 7px 12px;
  background: var(--ld-yellow);
  border: var(--ld-line);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ld-ink);
  font-family: var(--ld-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ld-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.ld-price__num {
  display: inline-block;
  font-family: var(--ld-mono);
  font-size: clamp(26px, 2.4vw, 31px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--ld-ink);
}

.ld-price__num--custom {
  font-family: var(--ld-display);
  font-style: italic;
  font-weight: 540;
  letter-spacing: 0;
}

.ld-price__per {
  font-family: var(--ld-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ld-ink-55);
}

.ld-price__note {
  font-family: var(--ld-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ld-ink-55);
  margin-bottom: 18px;
}

/* Animación al alternar mensual/anual */
.ld-price--flip {
  animation: ld-flip .42s var(--ld-ease);
}

.ld-plan__list {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.ld-plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(22, 21, 15, .82);
}

.ld-plan__list svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--ld-green);
}

.ld-plan .ld-btn {
  margin-top: auto;
}

/* --- Plan destacado: Operador --- */
.ld-plan--operador {
  border: 3px solid var(--ld-yellow);
  box-shadow: 7px 7px 0 var(--ld-yellow);
  z-index: 2;
}

.ld-plan--operador:hover {
  box-shadow: 10px 10px 0 var(--ld-yellow);
}

@media (min-width: 1200px) {
  .ld-plan--operador {
    scale: 1.03;
  }
}

/* --- Plan Capitán (tarjeta oscura a medida) --- */
.ld-plan--capitan {
  background: var(--ld-ink);
  border-color: var(--ld-ink);
  color: var(--ld-paper);
  box-shadow: 6px 6px 0 var(--ld-yellow);
}

.ld-plan--capitan:hover {
  box-shadow: 9px 9px 0 var(--ld-yellow);
}

.ld-plan--capitan .ld-plan__tag {
  color: var(--ld-cream-70);
}

.ld-plan--capitan .ld-price__num--custom {
  color: var(--ld-paper);
}

.ld-plan--capitan .ld-price__note {
  color: var(--ld-cream-55);
}

.ld-plan--capitan .ld-plan__list li {
  color: var(--ld-cream-70);
}

.ld-plan--capitan .ld-plan__list svg {
  color: var(--ld-yellow);
}

/* --- Toggle mensual / anual --- */
.ld-billing {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: var(--ld-white);
  border: var(--ld-line);
  border-radius: 999px;
  box-shadow: var(--ld-shadow-sm);
}

.ld-billing__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  background: var(--ld-ink);
  border-radius: 999px;
  transition: transform .3s var(--ld-ease), width .3s var(--ld-ease);
}

.ld-billing__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--ld-body);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ld-ink);
  cursor: pointer;
  transition: color .25s var(--ld-ease), background-color .25s var(--ld-ease);
}

.ld-billing__btn.is-active {
  color: var(--ld-paper);
  background: var(--ld-ink); /* fallback si el thumb no se posiciona */
}

.ld-billing__save {
  padding: 3px 7px;
  border: 1px solid var(--ld-ink);
  border-radius: 999px;
  background: var(--ld-yellow);
  font-family: var(--ld-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ld-ink);
}

.ld-plans__micro {
  max-width: 640px;
  margin: 36px auto 0;
  text-align: center;
  font-family: var(--ld-mono);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ld-ink-55);
}

@media (min-width: 640px) {
  .ld-plans__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .ld-plans__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}


/* ==========================================================================
   11. FAQ
   ========================================================================== */

.ld-faqsec {
  background: var(--ld-white);
  border-top: var(--ld-line);
}

.ld-faq {
  display: grid;
  gap: 14px;
}

.ld-faq__item {
  background: var(--ld-paper);
  border: var(--ld-line);
  border-radius: var(--ld-radius);
  box-shadow: var(--ld-shadow-sm);
}

.ld-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--ld-body);
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ld-ink);
  border-bottom: 1.5px solid transparent;
  transition: background-color .2s var(--ld-ease), border-color .2s var(--ld-ease);
}

.ld-faq__q::-webkit-details-marker {
  display: none;
}

.ld-faq__q:hover {
  background: rgba(255, 230, 0, .16);
}

.ld-faq__item[open] .ld-faq__q {
  border-bottom-color: var(--ld-ink);
}

.ld-faq__chev {
  flex: none;
  width: 20px;
  height: 20px;
  transition: transform .3s var(--ld-ease);
}

.ld-faq__item[open] .ld-faq__chev {
  transform: rotate(180deg);
}

.ld-faq__a {
  padding: 2px 20px 18px;
}

.ld-faq__a p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ld-ink-70);
}

.ld-faq__item[open] .ld-faq__a {
  animation: ld-faq-in .32s var(--ld-ease);
}


/* ==========================================================================
   12. CTA FINAL
   ========================================================================== */

.ld-cta {
  padding: 82px 0;
  background-color: var(--ld-yellow);
  /* Patrón de puntos tinta */
  background-image: radial-gradient(rgba(22, 21, 15, .16) 1.2px, transparent 1.4px);
  background-size: 15px 15px;
  border-top: var(--ld-line);
  border-bottom: var(--ld-line);
}

.ld-cta__inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.ld-cta__title {
  font-family: var(--ld-display);
  font-weight: 580;
  font-size: clamp(2rem, 4.4vw + .4rem, 3.3rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--ld-ink);
  max-width: 16ch;
}

/* En la banda amarilla el marcador pasa a blanco */
.ld-cta__title em {
  font-style: italic;
  font-weight: 520;
  background-image: linear-gradient(var(--ld-white), var(--ld-white));
  background-repeat: no-repeat;
  background-size: 100% .3em;
  background-position: 0 88%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 .06em;
  margin: 0 -.06em;
}

/* Hover del botón tinta sobre fondo amarillo: pasa a blanco */
.ld-cta .ld-btn--ink:hover {
  background: var(--ld-white);
  color: var(--ld-ink);
}

.ld-cta__micro {
  font-family: var(--ld-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(22, 21, 15, .72);
}


/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.ld-footer {
  padding: 42px 0;
  background: var(--ld-ink);
  color: var(--ld-paper);
}

.ld-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.ld-footer__brand {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.ld-footer__brand p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ld-cream-55);
}

.ld-logo--footer {
  color: var(--ld-paper);
}

.ld-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.ld-footer__links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--ld-paper);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ld-ease), border-color .2s var(--ld-ease);
}

.ld-footer__links a:hover,
.ld-footer__links a:focus-visible {
  color: var(--ld-yellow);
  border-bottom-color: var(--ld-yellow);
}


/* ==========================================================================
   14. KEYFRAMES
   ========================================================================== */

/* Marquee infinito: el track contiene 2 grupos idénticos → -50% = loop perfecto */
@keyframes ld-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Blobs del hero */
@keyframes ld-float-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(46px, 36px) scale(1.08); }
}

@keyframes ld-float-b {
  from { transform: translate(0, 0) scale(1.04); }
  to   { transform: translate(-52px, 30px) scale(.96); }
}

@keyframes ld-float-c {
  from { transform: translate(0, 0) scale(.98); }
  to   { transform: translate(34px, -30px) scale(1.06); }
}

/* Chips flotantes del mockup */
@keyframes ld-float-chip {
  from { translate: 0 0; }
  to   { translate: 0 -9px; }
}

/* Punto verde pulsante del kicker */
@keyframes ld-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14, 138, 95, .45); }
  50%      { box-shadow: 0 0 0 6px rgba(14, 138, 95, 0); }
}

/* Cursor de la respuesta IA */
@keyframes ld-blink {
  0%, 49%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Chip "IA respondió" aparece con pop */
@keyframes ld-pop {
  from { opacity: 0; scale: .6; }
  to   { opacity: 1; scale: 1; }
}

/* Precios al alternar período */
@keyframes ld-flip {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}

/* Apertura del FAQ */
@keyframes ld-faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}


/* ==========================================================================
   15. MOVIMIENTO REDUCIDO
   Todo se revela sin transición, marquee/blobs/typing quedan estáticos
   (el typing estático lo resuelve landing.js). Reglas genéricas al final
   para ganar cualquier especificidad sin !important encadenado.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ld-blob,
  .ld-floatchip,
  .ld-ai-chip,
  .ld-kicker--dot::before,
  .ld-price--flip,
  .ld-faq__item[open] .ld-faq__a,
  .ld-cursor {
    animation: none !important;
  }

  .ld-marquee__track {
    animation: none !important;
    transform: none;
  }

  .ld-steps::before {
    transition: none;
    transform: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
