/* ══════════════════════════════════════════════════════════════════════════
   Landing pública — isfreethink
   Concepto: "la línea que piensa". Un trazo fino de luz (las líneas sobre la
   piel del retrato) conecta el hero, marca el progreso del carrusel y separa
   las secciones. Minimalismo lineal, aire, una sola escena memorable.
   Todo va bajo .lx para no tocar los estilos de la aplicación.
   ══════════════════════════════════════════════════════════════════════════ */

.lx {
  /* Paleta */
  --lx-mist:     #E9EDF2;   /* fondo general, gris azulado frío */
  --lx-paper:    #F5F7FA;   /* superficies elevadas */
  --lx-ink:      #1C2230;   /* texto principal */
  --lx-graphite: #5B6576;   /* texto secundario */
  --lx-thread:   #AEB8C6;   /* líneas finas */
  --lx-signal:   #3355FF;   /* único acento: la línea de luz */
  --lx-night:    #131826;   /* escenas de video */

  /* Tipografía — escala 1.333 */
  --lx-display: 'Unbounded', 'Instrument Sans', system-ui, sans-serif;
  --lx-text:    'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lx-s-1: 0.844rem;
  --lx-s0:  1.0625rem;
  --lx-s1:  1.333rem;
  --lx-s2:  1.777rem;
  --lx-s3:  2.369rem;
  --lx-hero: clamp(2.3rem, 5.2vw, 4.6rem);

  --lx-gutter: clamp(1.25rem, 5vw, 5rem);
  --lx-max: 1280px;
  --lx-ease: cubic-bezier(.2, .7, .1, 1);

  background: var(--lx-mist);
  color: var(--lx-ink);
  font-family: var(--lx-text);
  font-size: var(--lx-s0);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.lx *, .lx *::before, .lx *::after { box-sizing: border-box; }
/* Neutralizar los estilos globales de la app (tema oscuro, enlaces violeta) */
.lx a { color: inherit; }
.lx a:hover { color: inherit; text-decoration: none; }
.lx :is(h1, h2, h3, h4) { color: inherit; }
:where(.lx) p { margin-bottom: 0; }
.lx [hidden] { display: none !important; }
.lx img, .lx video { display: block; max-width: 100%; }
.lx :focus-visible { outline: 2px solid var(--lx-signal); outline-offset: 3px; }

.lx-h {
  font-family: var(--lx-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

/* ── Botones ──────────────────────────────────────────────────────────────── */

.lx-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font: 500 var(--lx-s0)/1 var(--lx-text);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s;
}
.lx .lx-btn--solid,
.lx .lx-btn--solid:hover { color: var(--lx-paper); }
.lx-btn--solid  { background: var(--lx-ink); }
.lx-btn--solid:hover { background: var(--lx-signal); }
.lx-btn--line   { border-color: currentColor; background: transparent; }
.lx .lx-btn--line:hover { color: var(--lx-signal); }
.lx .lx-btn--light,
.lx .lx-btn--light:hover { color: var(--lx-ink); }
.lx-btn--light  { background: var(--lx-paper); }
.lx-btn--light:hover { background: #fff; }
.lx-btn--small  { padding: .6rem 1.15rem; font-size: var(--lx-s-1); }

/* ── Navegación ───────────────────────────────────────────────────────────── */

.lx-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--lx-gutter);
  transition: background-color .35s, box-shadow .35s;
}
.lx-nav.is-scrolled {
  background: color-mix(in srgb, var(--lx-mist) 88%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--lx-thread);
}
.lx-logo {
  font: 400 1.05rem/1 var(--lx-display);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.lx-logo__name strong { font-weight: 600; }
.lx-logo__mark { width: 24px; height: 24px; color: #2B3A78; } /* logo del laboratorio (añil) */
.lx[data-scene="dark"] .lx-nav:not(.is-scrolled) .lx-logo__mark { color: var(--lx-paper); }
.lx-nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: .35rem .35rem .35rem 1.4rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lx-paper) 72%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(174, 184, 198, .45);
}
.lx-nav.is-scrolled .lx-nav__links { background: transparent; box-shadow: none; backdrop-filter: none; }
.lx[data-scene="dark"] .lx-nav:not(.is-scrolled) .lx-nav__links {
  background: rgba(19, 24, 38, .45);
  box-shadow: inset 0 0 0 1px rgba(245, 247, 250, .15);
}
.lx a.lx-nav__link {
  text-decoration: none;
  font-size: var(--lx-s-1);
  color: var(--lx-ink);
  transition: color .2s;
}
.lx a.lx-nav__link:hover { color: var(--lx-ink); }

/* Sobre escenas oscuras la navegación pasa a claro */
.lx[data-scene="dark"] .lx-nav:not(.is-scrolled) { color: var(--lx-paper); }
.lx[data-scene="dark"] .lx-nav:not(.is-scrolled) .lx-nav__link { color: rgba(245, 247, 250, .75); }
.lx[data-scene="dark"] .lx-nav:not(.is-scrolled) .lx-btn--solid,
.lx[data-scene="dark"] .lx-nav:not(.is-scrolled) .lx-btn--solid:hover { background: var(--lx-paper); color: var(--lx-ink); }

/* ── Carrusel hero ────────────────────────────────────────────────────────── */

.lx-stage {
  position: relative;
  height: 100svh;
  min-height: 560px;
  max-height: 980px;
  overflow: hidden;
  background: var(--lx-mist);
  touch-action: pan-y;
}

.lx-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--lx-ease), visibility 0s linear 1.1s;
}
.lx-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.1s var(--lx-ease), visibility 0s;
}
.lx-slide--dark { background: var(--lx-night); color: var(--lx-paper); }

.lx-slide__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lx-slide__media--right { object-position: 72% center; }

/* Veladura para legibilidad del texto */
.lx-slide__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lx-slide__veil--mist  { background: linear-gradient(90deg, rgba(233,237,242,.92) 0%, rgba(233,237,242,.55) 38%, rgba(233,237,242,0) 62%); }
.lx-slide__veil--night { background: linear-gradient(90deg, rgba(19,24,38,.86) 0%, rgba(19,24,38,.45) 45%, rgba(19,24,38,.1) 100%); }

.lx-slide__copy {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--lx-max);
  margin: 0 auto;
  padding: 0 var(--lx-gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
}
.lx-slide__copy > * { max-width: 34rem; }
.lx-slide__title { font-size: var(--lx-hero); }
.lx-slide__sub {
  margin: 0;
  font-size: var(--lx-s1);
  line-height: 1.5;
  color: var(--lx-graphite);
  max-width: 28rem;
}
.lx-slide--dark .lx-slide__sub { color: rgba(245, 247, 250, .78); }
.lx-slide__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .5rem; }

/* Entrada del texto: solo en la escena activa, una vez por cambio */
.lx-slide__copy > * { opacity: 0; transform: translateY(14px); }
.lx-slide.is-active .lx-slide__copy > * {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--lx-ease), transform .9s var(--lx-ease);
}
.lx-slide.is-active .lx-slide__copy > :nth-child(2) { transition-delay: .12s; }
.lx-slide.is-active .lx-slide__copy > :nth-child(3) { transition-delay: .24s; }

/* La línea de luz que se dibuja sobre el retrato (el momento memorable) */
.lx-trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.lx-trace path {
  fill: none;
  stroke: var(--lx-signal);
  stroke-width: 1.2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: .75;
}
.lx-trace circle { fill: var(--lx-signal); opacity: 0; }
.lx-slide.is-active .lx-trace path { animation: lx-draw 2.6s .3s var(--lx-ease) forwards; }
.lx-slide.is-active .lx-trace path:nth-of-type(2) { animation-delay: .7s; }
.lx-slide.is-active .lx-trace circle { animation: lx-node .6s 2.4s forwards; }
@keyframes lx-draw { to { stroke-dashoffset: 0; } }
@keyframes lx-node { to { opacity: 1; } }

/* Zoom lento sobre imágenes fijas: les da vida sin distraer */
.lx-slide--kenburns .lx-slide__media { transform: scale(1); transform-origin: 70% 50%; }
.lx-slide--kenburns.is-active .lx-slide__media { animation: lx-kenburns 9s ease-out forwards; }
@keyframes lx-kenburns { to { transform: scale(1.07); } }

/* Mosaico de estilos */
.lx-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  background: var(--lx-night);
}
.lx-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.lx-mosaic img:first-child { grid-row: span 2; }
.lx-mosaic figure { margin: 0; position: relative; overflow: hidden; }
.lx-mosaic figure:first-child { grid-row: span 2; }
.lx-mosaic figcaption {
  position: absolute;
  left: .9rem;
  top: .7rem;
  font-size: var(--lx-s-1);
  color: rgba(245, 247, 250, .9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.lx-slide--mosaic .lx-slide__copy { justify-content: flex-end; padding-bottom: 7.5rem; }
.lx-slide--mosaic .lx-slide__copy > * { max-width: 30rem; }
.lx-slide--mosaic .lx-slide__panel {
  background: rgba(19, 24, 38, .72);
  backdrop-filter: blur(10px);
  padding: 1.6rem 1.8rem;
  border-radius: 4px;
  display: grid;
  gap: 1rem;
}

/* Antes / después con deslizador */
.lx-compare {
  position: absolute;
  inset: 0;
  left: 46%;
  display: grid;
  place-items: center;
  padding: 7rem var(--lx-gutter) 7rem 2rem;
}
.lx-compare__frame {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 30px 80px -30px rgba(28, 34, 48, .45);
}
.lx-compare__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lx-compare__after { clip-path: inset(0 0 0 var(--cut, 50%)); }
.lx-compare__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--cut, 50%);
  width: 1px;
  background: var(--lx-paper);
  box-shadow: 0 0 0 .5px rgba(28, 34, 48, .2);
  pointer-events: none;
}
.lx-compare__line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1px solid var(--lx-paper);
  background: rgba(28, 34, 48, .35);
  backdrop-filter: blur(4px);
}
.lx-compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.lx-compare__tag {
  position: absolute;
  top: .8rem;
  font-size: var(--lx-s-1);
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(245, 247, 250, .85);
  color: var(--lx-ink);
}
.lx-compare__tag--before { left: .8rem; }
.lx-compare__tag--after  { right: .8rem; }
.lx-prompt {
  margin: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--lx-signal);
  font-style: italic;
  color: var(--lx-graphite);
}
.lx-slide--dark .lx-prompt { color: rgba(245, 247, 250, .8); }

/* Controles: la línea de progreso es el indicador */
.lx-controls {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 2.2rem;
  max-width: var(--lx-max);
  margin: 0 auto;
  padding: 0 var(--lx-gutter);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.lx-ind { display: flex; gap: .5rem; flex: 1; max-width: 420px; }
.lx-ind__btn {
  flex: 1;
  padding: .9rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.lx-ind__track {
  display: block;
  height: 1px;
  background: currentColor;
  opacity: .35;
  position: relative;
}
.lx-ind__btn.is-active .lx-ind__track { opacity: 1; background: transparent; }
.lx-ind__fill {
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: .35;
}
.lx-ind__btn.is-active .lx-ind__fill {
  background: var(--lx-signal);
  opacity: 1;
  transform-origin: left;
  transform: scaleX(0);
  animation: lx-fill var(--lx-dur, 7s) linear forwards;
}
.lx-stage:hover .lx-ind__fill,
.lx-stage.is-paused .lx-ind__fill,
.lx-stage:focus-within .lx-ind__fill { animation-play-state: paused; }
@keyframes lx-fill { to { transform: scaleX(1); } }
.lx-ind__label {
  display: block;
  margin-top: .55rem;
  font-size: .75rem;
  opacity: .7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lx-ind__btn.is-active .lx-ind__label { opacity: 1; }

.lx-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: .8;
  transition: opacity .2s, color .2s;
}
.lx-arrow:hover { opacity: 1; color: var(--lx-signal); }
.lx-arrow svg { width: 16px; height: 16px; }
.lx-stage[data-scene="dark"] .lx-controls { color: var(--lx-paper); }

/* ── Secciones ────────────────────────────────────────────────────────────── */

.lx-section {
  max-width: var(--lx-max);
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--lx-gutter);
}
.lx-section__head { max-width: 44rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.lx-section__title { font-size: var(--lx-s3); }
.lx-section__lead { margin: 1.2rem 0 0; font-size: var(--lx-s1); color: var(--lx-graphite); line-height: 1.5; }

/* Separador lineal: una línea con un nodo, eco del trazo del hero */
.lx-rule {
  max-width: var(--lx-max);
  margin: 0 auto;
  padding: 0 var(--lx-gutter);
}
.lx-rule span {
  display: block;
  height: 1px;
  background: var(--lx-thread);
  position: relative;
}
.lx-rule span::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 18%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lx-signal);
}

/* Filas editoriales: lo que puedes crear hoy */
.lx-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.lx-row + .lx-row { margin-top: clamp(4.5rem, 9vw, 8rem); }
.lx-row--flip .lx-row__media { order: 2; }
.lx-row__media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--lx-night);
  aspect-ratio: 16 / 10;
}
.lx-row__media img, .lx-row__media video { width: 100%; height: 100%; object-fit: cover; }
.lx-row__media--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; aspect-ratio: 2 / 1; }
.lx-row__media--pair figure { margin: 0; position: relative; }
.lx-row__media--pair figcaption {
  position: absolute;
  top: .7rem;
  left: .7rem;
  font-size: var(--lx-s-1);
  padding: .2rem .6rem;
  border-radius: 999px;
  background: rgba(245, 247, 250, .85);
}
.lx-row__title { font-size: var(--lx-s2); }
.lx-row__text { margin: 1.1rem 0 1.6rem; color: var(--lx-graphite); }
.lx-models { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.lx-models li {
  font-size: var(--lx-s-1);
  padding: .3rem .8rem;
  border: 1px solid var(--lx-thread);
  border-radius: 999px;
  color: var(--lx-graphite);
}
.lx-models li.is-premium { border-color: var(--lx-signal); color: var(--lx-signal); }
.lx-from { margin: 1.2rem 0 0; font-size: var(--lx-s-1); color: var(--lx-graphite); }

/* ── Capítulos de "Lo que puedes crear hoy" ─────────────────────────────── */

.lx-chapter + .lx-chapter { margin-top: clamp(5rem, 10vw, 9rem); }
.lx-chapter:first-of-type {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.lx-chapter__head { max-width: 44rem; margin-bottom: 2.4rem; }
.lx-chapter__head .lx-row__text { margin-bottom: 0; }

/* Ficha técnica */
.lx-spec { width: 100%; border-collapse: collapse; font-size: var(--lx-s-1); margin-top: .6rem; }
.lx-spec th, .lx-spec td { text-align: left; vertical-align: top; padding: .9rem .9rem .9rem 0; border-top: 1px solid var(--lx-thread); }
.lx-spec thead th { font-weight: 500; color: var(--lx-graphite); border-top: 0; padding-top: 0; font-size: .78rem; }
.lx-spec tbody th { font-weight: 600; white-space: nowrap; }
.lx-spec tbody th span { display: block; font-weight: 400; color: var(--lx-graphite); font-size: .78rem; }
.lx-spec td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--lx-ink); font-weight: 500; }
.lx-spec tr.is-premium th::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lx-signal); margin-right: .45rem; vertical-align: middle; }
.lx-spec--wide { margin-top: 2.4rem; }
.lx-spec--wide td:last-child { white-space: normal; }

/* Mosaico de imágenes */
.lx-bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 190px 190px 170px;
  gap: 8px;
}
.lx-bento figure { position: relative; margin: 0; overflow: hidden; border-radius: 4px; background: var(--lx-night); }
.lx-bento img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--lx-ease); }
.lx-bento figure:hover img { transform: scale(1.04); }
.lx-bento figcaption {
  position: absolute; left: .6rem; bottom: .6rem;
  padding: .2rem .6rem; border-radius: 999px;
  background: rgba(245, 247, 250, .9); color: var(--lx-ink); font-size: .72rem;
}
.lx-bento__a { grid-row: span 2; }
.lx-bento__a img { object-position: 68% center; }
.lx-bento__b { grid-column: span 2; }
.lx-bento__e { grid-column: span 3; }

/* Laboratorio de edición */
.lx-lab {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.6fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.lx-lab__tabs { display: grid; gap: .3rem; border-left: 1px solid var(--lx-thread); }
.lx-lab__tab {
  display: grid;
  gap: .2rem;
  text-align: left;
  padding: .95rem 1rem .95rem 1.2rem;
  margin-left: -1px;
  border: 0;
  border-left: 2px solid transparent;
  background: none;
  font: inherit;
  color: var(--lx-graphite);
  cursor: pointer;
  transition: color .25s, border-color .25s, background-color .25s;
}
.lx-lab__tab:hover { color: var(--lx-ink); }
.lx-lab__tab.is-active { color: var(--lx-ink); border-left-color: var(--lx-signal); background: var(--lx-paper); }
.lx-lab__tab-title { font: 300 1.12rem/1.25 var(--lx-display); }
.lx-lab__tab-text { font-size: var(--lx-s-1); }
.lx-lab__stage { display: grid; gap: 1.2rem; }
.lx-lab__frame { width: 100%; aspect-ratio: var(--ratio, 1 / 1); max-height: 72vh; margin: 0 auto; }
.lx-lab__frame img { transition: opacity .35s var(--lx-ease); }
.lx-lab__frame.is-swapping img { opacity: 0; }
.lx-lab__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.lx-lab__model { font-size: var(--lx-s-1); padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--lx-signal); color: var(--lx-signal); white-space: nowrap; }
.lx-chapter--lab .lx-models { margin-top: 2rem; }

/* Video */
.lx-vids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 14px; }
.lx-vid { position: relative; margin: 0; }
.lx-vid video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--lx-night); }
.lx-vid figcaption { display: grid; margin-top: .8rem; font-size: var(--lx-s-1); }
.lx-vid figcaption strong { font: 300 1.1rem/1.3 var(--lx-display); }
.lx-vid figcaption span { color: var(--lx-graphite); }
.lx-sound {
  position: absolute;
  top: .7rem;
  right: .7rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  border: 0;
  background: rgba(245, 247, 250, .92);
  color: var(--lx-ink);
  font: 500 .75rem/1 var(--lx-text);
  cursor: pointer;
}
.lx-sound[aria-pressed="true"] { background: var(--lx-signal); color: #fff; }

/* Próximamente */
.lx-soon {
  margin-top: clamp(4.5rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--lx-thread);
}
.lx-soon__item { padding: 1.8rem 1.8rem 0 0; }
.lx-soon__item + .lx-soon__item { padding-left: 1.8rem; border-left: 1px solid var(--lx-thread); }
.lx-soon__name { font: 300 var(--lx-s1)/1.2 var(--lx-display); margin: 0; }
.lx-soon__text { margin: .6rem 0 0; font-size: var(--lx-s-1); color: var(--lx-graphite); }
.lx-soon__tag { display: inline-block; margin-top: .9rem; font-size: .78rem; color: var(--lx-signal); }

/* Ideas para empezar: galería con el prompt de cada imagen */
.lx-ideas { padding-top: 0; }
.lx-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(200px, 19vw, 280px);
  gap: 10px;
}
.lx-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--lx-night);
}
.lx-shot--tall { grid-row: span 2; }
.lx-shot--wide { grid-column: span 2; }
.lx-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--lx-ease); }
.lx-shot__cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: .7rem;
  padding: 1.2rem;
  color: var(--lx-paper);
  background: linear-gradient(0deg, rgba(19, 24, 38, .88) 0%, rgba(19, 24, 38, .35) 55%, rgba(19, 24, 38, 0) 100%);
  opacity: 0;
  transition: opacity .35s var(--lx-ease);
}
.lx-shot:hover .lx-shot__cap,
.lx-shot:focus-within .lx-shot__cap { opacity: 1; }
.lx-shot:hover img { transform: scale(1.05); }
.lx-shot__tag { font-size: .75rem; color: #b8c5ff; }
.lx-shot__prompt {
  margin: 0;
  font-size: var(--lx-s-1);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cómo funciona: secuencia real de 3 pasos */
.lx-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}
.lx-step {
  counter-increment: paso;
  position: relative;
  padding: 2.4rem 2rem 0 0;
  border-top: 1px solid var(--lx-ink);
}
.lx-step::before {
  content: counter(paso);
  position: absolute;
  top: -.8rem;
  left: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lx-mist);
  border: 1px solid var(--lx-ink);
  font: 400 .78rem/1 var(--lx-display);
}
.lx-step__title { font: 300 var(--lx-s1)/1.25 var(--lx-display); margin: 0; }
.lx-step__text { margin: .7rem 0 0; color: var(--lx-graphite); max-width: 22rem; }

/* Precios */
.lx-prices-band { background: var(--lx-paper); }
.lx-packs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--lx-thread);
  border-radius: 4px;
  overflow: hidden;
}
.lx-pack {
  padding: 2rem 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--lx-paper);
}
.lx-pack + .lx-pack { border-left: 1px solid var(--lx-thread); }
.lx-pack.is-featured { background: var(--lx-ink); color: var(--lx-paper); }
.lx-pack__credits { font: 300 var(--lx-s3)/1 var(--lx-display); letter-spacing: -0.03em; }
.lx-pack__unit { font-size: var(--lx-s-1); color: var(--lx-graphite); }
.lx-pack.is-featured .lx-pack__unit,
.lx-pack.is-featured .lx-pack__yield { color: rgba(245, 247, 250, .72); }
.lx-pack__price { font-size: var(--lx-s1); font-weight: 600; }
.lx-pack__save { font-size: var(--lx-s-1); color: var(--lx-signal); font-weight: 500; }
.lx-pack.is-featured .lx-pack__save { color: #9fb1ff; }
.lx-pack__yield { margin: 0; font-size: var(--lx-s-1); color: var(--lx-graphite); line-height: 1.55; flex: 1; }
.lx-pack .lx-btn { justify-content: center; }
.lx-pack.is-featured .lx-btn--line { color: var(--lx-paper); }
.lx-prices-note { margin: 1.6rem 0 0; font-size: var(--lx-s-1); color: var(--lx-graphite); max-width: 46rem; }

.lx-rates { margin-top: 2.6rem; border-top: 1px solid var(--lx-thread); }
.lx-rates summary {
  cursor: pointer;
  padding: 1.2rem 0;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lx-rates summary::-webkit-details-marker { display: none; }
.lx-rates summary::after { content: "+"; font: 300 1.4rem/1 var(--lx-display); }
.lx-rates[open] summary::after { content: "–"; }
.lx-rates table { width: 100%; border-collapse: collapse; font-size: var(--lx-s-1); }
.lx-rates td { padding: .75rem 0; border-top: 1px solid rgba(174, 184, 198, .5); }
.lx-rates td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Cierre */
.lx-final {
  background: var(--lx-night) url('/assets/media/landing/final-farolillos.jpg') 72% center / cover no-repeat;
  color: var(--lx-paper);
  position: relative;
  overflow: hidden;
  min-height: min(82vh, 760px);
  display: flex;
  align-items: center;
}
/* Velado a la izquierda para que el texto blanco se lea sobre la ilustración */
.lx-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 24, 38, .78) 0%, rgba(19, 24, 38, .45) 38%, rgba(19, 24, 38, 0) 65%);
}
.lx-final__inner {
  width: 100%;
  max-width: var(--lx-max);
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 10rem) var(--lx-gutter);
  position: relative;
  z-index: 1;
}
.lx-final__title { font-size: var(--lx-hero); max-width: 11ch; }
.lx-final__text { margin: 1.4rem 0 2.2rem; font-size: var(--lx-s1); color: rgba(245, 247, 250, .75); max-width: 30rem; }
.lx-final__lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .45; }
.lx-final__lines path { fill: none; stroke: #6f86ff; stroke-width: 1; vector-effect: non-scaling-stroke; }

.lx-foot {
  max-width: var(--lx-max);
  margin: 0 auto;
  padding: 2.2rem var(--lx-gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--lx-s-1);
  color: var(--lx-graphite);
}
.lx-foot nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.lx .lx-foot a.lx-foot__lab { text-decoration: underline; text-underline-offset: 3px; }
.lx-foot a { text-decoration: none; }
.lx .lx-foot a:hover { color: var(--lx-ink); }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .lx-packs { grid-template-columns: repeat(2, 1fr); }
  .lx-pack + .lx-pack { border-left: 0; }
  .lx-pack { border-top: 1px solid var(--lx-thread); }
  .lx-pack:nth-child(-n+2) { border-top: 0; }
  .lx-pack:nth-child(even) { border-left: 1px solid var(--lx-thread); }
}

@media (max-width: 820px) {
  .lx a.lx-nav__link { display: none; }
  .lx-nav__links { padding: 0; background: none; box-shadow: none; backdrop-filter: none; }
  .lx[data-scene="dark"] .lx-nav:not(.is-scrolled) .lx-nav__links { background: none; box-shadow: none; }
  .lx-nav { background: color-mix(in srgb, var(--lx-mist) 70%, transparent); backdrop-filter: blur(10px); }
  .lx[data-scene="dark"] .lx-nav:not(.is-scrolled) { background: rgba(19, 24, 38, .45); }
  .lx-slide__veil--mist  { background: linear-gradient(0deg, rgba(233,237,242,.97) 0%, rgba(233,237,242,.88) 50%, rgba(233,237,242,.55) 68%, rgba(233,237,242,0) 85%); }
  .lx-slide__veil--night { background: linear-gradient(0deg, rgba(19,24,38,.92) 0%, rgba(19,24,38,.5) 50%, rgba(19,24,38,.15) 100%); }
  .lx-slide__copy { justify-content: flex-end; padding-bottom: 8rem; }
  .lx-slide__media--right { object-position: 78% center; }
  .lx-trace { display: none; }
  .lx-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); }
  .lx-mosaic figure:first-child { grid-row: span 1; grid-column: span 2; }
  .lx-compare { left: 0; place-items: start center; padding: 5.2rem 1.25rem 0; }
  .lx-compare .lx-compare__frame { width: min(100%, 38svh); }
  .lx-slide--compare .lx-slide__copy { padding-bottom: 7rem; gap: 1rem; }
  .lx-slide--compare .lx-slide__title { font-size: 1.9rem; }
  .lx-ind__label { display: none; }
  .lx-row, .lx-row--flip { grid-template-columns: 1fr; }
  .lx-chapter:first-of-type, .lx-lab, .lx-vids { grid-template-columns: 1fr; }
  .lx-bento { grid-template-rows: 150px 150px 130px; }
  .lx-lab__tabs { grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--lx-thread); scroll-snap-type: x mandatory; }
  .lx-lab__tab { border-left: 0; border-bottom: 2px solid transparent; margin: 0; scroll-snap-align: start; }
  .lx-lab__tab.is-active { border-bottom-color: var(--lx-signal); }
  .lx-spec--wide thead { display: none; }
  .lx-spec--wide tr { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--lx-thread); padding: .6rem 0; }
  .lx-spec--wide th, .lx-spec--wide td { border: 0; padding: .3rem .6rem .3rem 0; }
  .lx-spec--wide tbody th { grid-column: span 2; }
  .lx-row--flip .lx-row__media { order: 0; }
  .lx-soon, .lx-steps { grid-template-columns: 1fr; }
  .lx-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .lx-shot--wide { grid-column: span 2; }
  .lx-shot__cap { opacity: 1; background: linear-gradient(0deg, rgba(19,24,38,.85) 0%, rgba(19,24,38,0) 70%); }
  .lx-shot__prompt { display: none; }
  .lx-soon__item + .lx-soon__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--lx-thread); margin-top: 1.8rem; }
  .lx-step + .lx-step { margin-top: 2.8rem; }
  .lx-packs { grid-template-columns: 1fr; }
  .lx-final { background-position: 80% center; align-items: flex-end; }
  .lx-final::before { background: linear-gradient(0deg, rgba(19, 24, 38, .9) 0%, rgba(19, 24, 38, .45) 55%, rgba(19, 24, 38, .1) 100%); }
  .lx-pack:nth-child(even) { border-left: 0; }
  .lx-pack:nth-child(2) { border-top: 1px solid var(--lx-thread); }
}

/* Móvil estrecho: el menú se queda con los dos botones; el nombre se acorta a "Crea". */
@media (max-width: 480px) {
  .lx-nav { gap: .75rem; }
  .lx-nav__links { gap: .5rem; }
  .lx-logo__name { font-size: 0; }
  .lx-logo__name strong { font-size: 1.05rem; }
  .lx-btn--small { padding: .55rem .9rem; }
}

/* Movimiento reducido: sin autoplay, sin trazos animados, transiciones cortas */
@media (prefers-reduced-motion: reduce) {
  .lx-slide, .lx-slide.is-active { transition: opacity .01s; }
  .lx-slide__copy > *, .lx-slide.is-active .lx-slide__copy > * { opacity: 1; transform: none; transition: none; }
  .lx-slide.is-active .lx-trace path { animation: none; stroke-dashoffset: 0; }
  .lx-slide.is-active .lx-trace circle { animation: none; opacity: 1; }
  .lx-ind__btn.is-active .lx-ind__fill { animation: none; transform: scaleX(1); }
  .lx-slide--kenburns.is-active .lx-slide__media { animation: none; }
  .lx-shot img, .lx-shot:hover img { transition: none; transform: none; }
}
