/* =========================================================
   Luna Marsella · Página "Sobre mí"
   ========================================================= */
.lm-about-page {
  --lm-red: #ff2e00;
  --lm-blue: #485cb9;
  --lm-blue-hi: #7086ee;
  --lm-bg: #17130f;
  --lm-ink: #f4efe9;

  position: relative;
  color: var(--lm-ink);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: clip;
}
/* ancho completo y sin huecos dentro del contenido de la página */
.lm-about-page.lm-about-page { max-width: none; margin-block-start: 0; margin-block-end: 0; }
.lm-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.lm-ab { position: relative; padding: clamp(28px, 4vw, 60px) clamp(16px, 5vw, 80px); }
.lm-ab p { margin: 0 0 1em; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.7; font-weight: 300; color: rgba(244, 239, 233, .85); }

/* Títulos de sección: como en la home (naranja, mayúsculas, algo transparentes) */
.lm-ab__title {
  margin: 0 0 .8em;
  font-family: Prata, Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--lm-red);
  opacity: .8;
}
.lm-ab__title--center { text-align: center; }
.lm-ab__kicker {
  font-family: Prata, Georgia, serif !important;
  font-size: clamp(34px, 4vw, 60px) !important;
  line-height: 1 !important;
  color: var(--lm-red) !important;
  opacity: .8;
  margin-bottom: .25em !important;
}

/* Aparición suave al hacer scroll (la activa sobre-mi.js) */
.lm-about-page.is-ready .lm-reveal {
  opacity: 0;
  transform: translateY(36px);
}
.lm-reveal { transition: opacity 1.2s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.lm-about-page.is-ready .lm-reveal.is-in { opacity: 1; transform: none; }

/* ---------- 1 · El viaje ---------- */
.lm-ab-map { max-width: 1400px; margin: 0 auto; padding-top: clamp(16px, 3vw, 40px); }
.lm-ab-map__map { position: relative; }
.lm-map__svg { display: block; width: 100%; height: auto; overflow: visible; }
.lm-map__land { fill: var(--lm-red); opacity: .3; } /* 70 % translúcido */
.lm-map__arg  { fill: var(--lm-red); opacity: .5; }
.lm-map__esp  { fill: var(--lm-red); opacity: .5; transition: opacity .8s ease, filter .8s ease; }
.lm-map__esp.is-lit {
  opacity: 1;
  filter: drop-shadow(0 0 4px #ffb37a) drop-shadow(0 0 12px var(--lm-red));
}
.lm-map__route { fill: none; stroke: rgba(244, 239, 233, .45); stroke-width: 1.3; stroke-dasharray: 2 6; stroke-linecap: round; }
.lm-map__trail { fill: none; stroke: #ffe1b3; stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 3px #ff7a1a); }
.lm-map__city { fill: var(--lm-ink); }
.lm-map__city--to { transition: r .6s ease; }
.lm-map__esp.is-lit ~ .lm-map__city--to { r: 6; fill: #fff3e0; }
.lm-map__label { font: 500 11px Inter, system-ui, sans-serif; letter-spacing: .16em; fill: rgba(244, 239, 233, .7); }
.lm-map__head { overflow: visible; }

.lm-ab-map__text { position: absolute; z-index: 2; max-width: min(320px, 22%); }
.lm-ab-map__text h2 {
  margin: 0 0 .4em;
  font-family: Prata, Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.1;
  color: var(--lm-ink);
}
.lm-ab-map__text--from { left: clamp(16px, 5vw, 80px); top: 56%; }
.lm-ab-map__text--to   { right: clamp(16px, 5vw, 80px); top: 58%; text-align: left; }
/* degradado oscuro detrás de los textos para que no se pierdan sobre el mapa (Australia) */
.lm-ab-map__text::before {
  content: "";
  position: absolute;
  inset: -50px -70px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(23, 19, 15, .95) 55%, rgba(23, 19, 15, 0));
  pointer-events: none;
}

/* ---------- 2 · Escalada y música ---------- */
.lm-ab-story { max-width: 920px; margin: 0 auto; display: grid; gap: clamp(28px, 4vw, 52px); }
.lm-ab-story__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.lm-ab-story__row--reverse { grid-template-columns: minmax(0, 1fr) auto; }
.lm-ab-story__row--reverse .lm-ab-story__photo { order: 2; }
.lm-ab-story__row--reverse .lm-ab-story__text { justify-self: end; }
/* fotos pequeñas y redondas: acompañan al texto, no lo protagonizan */
.lm-ab-story__photo { margin: 0; justify-self: center; width: clamp(140px, 15vw, 210px); }
.lm-ab-story__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(72, 92, 185, .95), 0 0 45px rgba(72, 92, 185, .55), 0 0 110px rgba(72, 92, 185, .25);
  animation: lm-ab-float 10s ease-in-out infinite;
}
.lm-ab-story__row--reverse .lm-ab-story__photo img { animation-duration: 12s; animation-delay: -4s; }
.lm-ab-story__photo figcaption { margin-top: 14px; text-align: center; font-size: 11px; letter-spacing: .08em; color: rgba(244, 239, 233, .45); }
.lm-ab-story__text { max-width: 560px; }

/* ---------- 3 · Trayectoria ---------- */
.lm-ab-tl { max-width: 1250px; margin: 0 auto; }
.lm-ab-tl .lm-ab__title { margin-bottom: .35em; }
.lm-ab-tl__hint { text-align: center; font-size: 13px !important; letter-spacing: .12em; text-transform: uppercase; color: var(--lm-blue-hi) !important; }
.lm-ab-tl__hint span { display: inline-block; animation: lm-ab-nudge 1.6s ease-in-out infinite; }

.lm-tl {
  --node: clamp(62px, 6vw, 84px);
  --p: 0;
  position: relative;
  padding: 24px 0 190px; /* descripciones siempre debajo del eje (sobre-mi.js ajusta el de abajo) */
  transition: padding-bottom .6s ease;
}
.lm-tl__list { position: relative; display: flex; margin: 0; padding: 0; list-style: none; }
/* eje azul y tramo recorrido */
.lm-tl__list::before,
.lm-tl__list::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% / (var(--n) + 1));
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
}
.lm-tl__list::before { right: calc(50% / (var(--n) + 1)); background: rgba(72, 92, 185, .35); }
.lm-tl__list::after {
  width: calc((100% - 100% / (var(--n) + 1)) * var(--p));
  background: var(--lm-blue-hi);
  box-shadow: 0 0 12px rgba(112, 134, 238, .7);
}
.lm-tl__item { position: relative; flex: 1; display: flex; justify-content: center; align-items: center; min-height: var(--node); }

.lm-tl__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--node);
  aspect-ratio: 1;
  padding: calc(var(--node) * .12);
  box-sizing: border-box;
  border: 2px solid var(--lm-blue);
  border-radius: 50%;
  background: #1a1c2b;
  color: var(--lm-ink);
  font-family: Prata, Georgia, serif;
  font-size: clamp(13px, 1.3vw, 18px);
  cursor: pointer;
  transition: transform .5s, box-shadow .5s, border-color .5s, background-color .5s;
}
.lm-tl__node img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.lm-tl__node.lm-tl__node--logo { padding: calc(var(--node) * .15); background: var(--fondo, #fff); }
.lm-tl__node--logo img { border-radius: 0; }
.lm-tl__item.is-open .lm-tl__node.lm-tl__node--logo { background: var(--fondo, #fff); }
.lm-tl__item.is-open .lm-tl__node {
  border-color: var(--lm-blue-hi);
  background: #232846;
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(72, 92, 185, .25), 0 0 34px rgba(112, 134, 238, .55);
}
.lm-tl__node:focus-visible { outline: 2px solid var(--lm-ink); outline-offset: 4px; }

/* descripciones: abajo en los pares, arriba en los impares */
.lm-tl__card {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--node) / 2 + 28px);
  width: clamp(130px, 13vw, 190px);
  translate: -50% 0;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
  text-align: center;
}
.lm-tl__item--up .lm-tl__card { top: auto; bottom: calc(50% + var(--node) / 2 + 28px); transform: translateY(12px); }
.lm-tl__card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -22px;
  width: 1px;
  height: 16px;
  background: var(--lm-blue-hi);
}
.lm-tl__item--up .lm-tl__card::before { top: auto; bottom: -22px; }
.lm-tl__item.is-open .lm-tl__card { opacity: 1; transform: none; }
.lm-tl__card h3 { margin: 0 0 .3em; font-family: Prata, Georgia, serif; font-weight: 400; font-size: clamp(16px, 1.4vw, 20px); color: var(--lm-ink); }
.lm-tl__card p { margin: 0; font-size: 14px !important; line-height: 1.5 !important; }
.lm-tl__year { display: block; margin-bottom: .3em !important; font-size: 12px !important; font-weight: 500 !important; letter-spacing: .14em; text-transform: uppercase; color: var(--lm-blue-hi) !important; }

/* final: flecha + "¿Darás conmigo el siguiente paso?" (enlace a contacto) */
.lm-tl__next { position: relative; display: flex; justify-content: center; align-items: center; width: 100%; min-height: var(--node); color: var(--lm-ink); text-decoration: none; }
.lm-tl__arrow {
  position: relative;
  z-index: 1;
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 30px solid var(--lm-blue);
  filter: drop-shadow(0 0 0 transparent);
  transition: border-color .5s, filter .5s;
}
.lm-tl__item--end.is-open .lm-tl__arrow { border-left-color: var(--lm-blue-hi); filter: drop-shadow(0 0 12px rgba(112, 134, 238, .8)); }
.lm-tl__item--end .lm-tl__card { pointer-events: auto; }
/* punto de inicio del eje: de aquí sale el cursor */
.lm-tl__start {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lm-blue);
  box-shadow: 0 0 0 5px rgba(72, 92, 185, .25), 0 0 16px rgba(112, 134, 238, .6);
}
.lm-tl__q { display: block; font-family: Prata, Georgia, serif; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.25; transition: color .3s; }
.lm-tl__next:hover .lm-tl__q, .lm-tl__next:focus-visible .lm-tl__q { color: var(--lm-red); }

/* cursor arrastrable (input range: solo la bolita recibe el ratón) */
.lm-tl__range {
  --thumb: 24px; /* punto naranja que recorre el eje */
  position: absolute;
  z-index: 3;
  top: calc(24px + var(--node) / 2); /* justo sobre la línea del eje */
  left: calc(50% / (var(--n) + 1) - var(--thumb) / 2);
  width: calc(100% - 100% / (var(--n) + 1) + var(--thumb));
  height: var(--thumb);
  margin: calc(var(--thumb) / -2) 0 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  cursor: grab;
}
/* el tema hijo da fondo y borde (con !important) a todos los input: este selector es más específico que el suyo */
.lm-about-page .lm-tl input.lm-tl__range[type="range"][type="range"] {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.lm-tl__range::-webkit-slider-runnable-track { background: transparent; height: var(--thumb); }
.lm-tl__range::-moz-range-track { background: transparent; }
.lm-tl__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--thumb);
  height: var(--thumb);
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--lm-red);
  animation: lm-ab-blink 1.1s ease-in-out infinite; /* titila en naranja */
  pointer-events: auto;
  cursor: grab;
}
.lm-tl__range::-moz-range-thumb {
  width: var(--thumb);
  height: var(--thumb);
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--lm-red);
  animation: lm-ab-blink 1.1s ease-in-out infinite;
  pointer-events: auto;
  cursor: grab;
}
.lm-tl__range:active::-webkit-slider-thumb { cursor: grabbing; }
.lm-tl__range:focus-visible { outline: none; }
.lm-tl__range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--lm-ink); outline-offset: 4px; }

/* ---------- 4 · En qué puedo ayudarte ---------- */
/* Personajes a medio cuerpo que salen cada uno por su extremo del escenario,
   en orden de izquierda a derecha; después, su bocadillo se escribe solo. */
.lm-ab-help { padding-left: 0; padding-right: 0; }
.lm-help {
  --h: clamp(240px, 23vw, 360px); /* alto del medio cuerpo: toda la escena escala con él */
  position: relative;
  height: calc(var(--h) * 1.75 + 150px);
  overflow: hidden;
}
.lm-help__buddy {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lm-help__figure {
  position: absolute;
  width: calc(var(--h) * 120 / 166);
  height: var(--h);
  transition: transform 1.3s cubic-bezier(.2, .8, .2, 1), opacity .6s ease;
  transition-delay: calc(var(--i) * .6s);
}
.lm-help__figure svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  /* medio cuerpo: solo se recorta por abajo (cintura); brazos y manos nunca se cortan */
  clip-path: inset(-60% -90% 0 -90%);
}

/* izquierda: sale en horizontal desde el borde izquierdo (cabeza hacia dentro) */
.lm-help__buddy--izquierda .lm-help__figure { left: 0; top: 36px; transform-origin: 0 0; transform: translateX(calc(var(--h) * .96)) rotate(90deg); }
.lm-about-page.is-ready .lm-help:not(.is-in) .lm-help__buddy--izquierda .lm-help__figure { transform: translateX(0) rotate(90deg); }
/* brazos: sube desde abajo con los brazos en alto */
.lm-help__buddy--brazos .lm-help__figure { left: 22%; bottom: 0; transform: none; }
.lm-about-page.is-ready .lm-help:not(.is-in) .lm-help__buddy--brazos .lm-help__figure { transform: translateY(105%); }
/* colgada: baja desde arriba, boca abajo */
.lm-help__buddy--colgada .lm-help__figure { left: 64%; top: 0; transform-origin: 50% 0; transform: translateY(100%) rotate(180deg); animation: lm-ab-swing 4.5s ease-in-out infinite; }
.lm-about-page.is-ready .lm-help:not(.is-in) .lm-help__buddy--colgada .lm-help__figure { transform: translateY(-5%) rotate(180deg); }
/* derecha: sale en horizontal desde el borde derecho (cabeza hacia dentro) */
.lm-help__buddy--derecha .lm-help__figure { right: 0; top: calc(var(--h) + 136px); transform-origin: 100% 0; transform: translateX(calc(var(--h) * -.96)) rotate(-90deg); }
.lm-about-page.is-ready .lm-help:not(.is-in) .lm-help__buddy--derecha .lm-help__figure { transform: translateX(0) rotate(-90deg); }

/* bocadillos translúcidos; el texto se escribe como a máquina (sobre-mi.js) */
.lm-help__bubble {
  position: absolute;
  z-index: 2;
  width: clamp(200px, 18vw, 270px);
  margin: 0 !important;
  padding: 16px 20px;
  border-radius: 22px;
  background: rgba(244, 239, 233, .12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(112, 134, 238, .6);
  color: var(--lm-ink) !important;
  font-size: clamp(14px, 1.1vw, 17px) !important;
  font-weight: 300 !important;
  line-height: 1.5 !important;
  box-shadow: 0 0 40px rgba(72, 92, 185, .25);
  transition: opacity .5s ease, transform .6s cubic-bezier(.3, 1.5, .5, 1);
  transition-delay: calc(var(--i) * .6s + 1.2s);
}
.lm-help__bubble strong { font-weight: 600; color: #fff; }
.lm-about-page.is-ready .lm-help:not(.is-in) .lm-help__bubble { opacity: 0; transform: scale(.6); }
.lm-help__bubble::after { /* colita */
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: rgba(244, 239, 233, .12);
  border: solid rgba(112, 134, 238, .6);
  border-width: 0 1px 1px 0;
}
/* letras del efecto máquina de escribir */
.lm-ch { opacity: 0; }
.lm-ch.is-on { opacity: 1; }
.lm-help__bubble.is-typing .lm-ch.is-last::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--lm-red);
  animation: lm-ab-caret .7s steps(1) infinite;
}

.lm-help__buddy--izquierda .lm-help__bubble { left: calc(var(--h) - 20px); top: calc(36px + var(--h) * .27 - 38px); transform-origin: 0 50%; }
.lm-help__buddy--izquierda .lm-help__bubble::after { left: -9px; top: calc(50% - 8px); transform: rotate(135deg); }
.lm-help__buddy--brazos .lm-help__bubble { left: calc(22% + var(--h) * .5); top: calc(var(--h) * .75 - 25px); transform-origin: 0 100%; }
.lm-help__buddy--brazos .lm-help__bubble::after { left: 22px; bottom: -9px; transform: rotate(45deg); }
.lm-help__buddy--colgada .lm-help__bubble { left: 62%; top: calc(var(--h) + 24px); transform-origin: 20% 0; }
.lm-help__buddy--colgada .lm-help__bubble::after { left: 40px; top: -9px; transform: rotate(225deg); }
.lm-help__buddy--derecha .lm-help__bubble { right: calc(var(--h) - 20px); top: calc(var(--h) * 1.45 + 136px - 80px); transform-origin: 100% 50%; }
.lm-help__buddy--derecha .lm-help__bubble::after { right: -9px; top: calc(50% - 8px); transform: rotate(-45deg); }

/* poses de los brazos (mismo dibujo que el personaje de la home) */
.lm-help .arm { transform-box: view-box; }
.lm-help .arm--l { transform-origin: 38px 68px; }
.lm-help .arm--r { transform-origin: 82px 68px; }
.lm-help .visor { filter: url(#lm-glow); }
.lm-help__buddy--brazos .arm--l { animation: lm-ab-arm-up-l 2.4s ease-in-out infinite; }
.lm-help__buddy--brazos .arm--r { animation: lm-ab-arm-up-r 2.4s ease-in-out infinite; }
.lm-help__buddy--izquierda .arm--r { animation: lm-ab-wave-r 1.8s ease-in-out infinite; }
.lm-help__buddy--derecha .arm--l { animation: lm-ab-wave-l 1.8s ease-in-out infinite .4s; }
.lm-help__buddy--colgada .arm--l { transform: rotate(168deg); }
.lm-help__buddy--colgada .arm--r { transform: rotate(-168deg); }
/* con el brazo girado la mano se da la vuelta: se refleja para que el pulgar mire hacia dentro */
.lm-help__buddy--brazos .hand,
.lm-help__buddy--colgada .hand,
.lm-help__buddy--izquierda .arm--r .hand,
.lm-help__buddy--derecha .arm--l .hand { transform-box: fill-box; transform-origin: 50% 0; transform: scaleX(-1); }

/* ---------- 5 · CTA ---------- */
/* La chica queda en el centro; texto a la izquierda y botones a la derecha, sin taparla */
.lm-ab-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(440px, 34%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-height: min(76vh, 700px);
  background: var(--lm-bg);
  isolation: isolate;
}
/* La foto es una capa con su mismo tamaño (4:3), así el fundido se calcula sobre la propia
   foto: sus bordes quedan siempre transparentes, en cualquier ancho de pantalla */
.lm-ab-cta::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: -1;
  height: 84%;
  aspect-ratio: 4 / 3;
  transform: translateX(-50%);
  background: var(--bg) 50% 50% / cover no-repeat;
  /* elipse que llega a transparente justo en los bordes + fundido arriba y abajo */
  -webkit-mask-image:
    radial-gradient(closest-side, #000 55%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 30%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(closest-side, #000 55%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 30%, #000 70%, transparent 100%);
  mask-composite: intersect;
}
.lm-ab-cta__inner { grid-column: 1; max-width: 420px; }
.lm-ab-cta h2 {
  margin: 0 0 .5em;
  font-family: Prata, Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 50px);
  line-height: 1.1;
  color: var(--lm-ink);
}
.lm-ab-cta__buttons { grid-column: 3; justify-self: end; min-width: 240px; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.lm-about-page a.lm-ab-btn {
  display: inline-block;
  padding: 16px 30px;
  border: 1px solid rgba(244, 239, 233, .75);
  border-radius: 999px;
  color: var(--lm-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .3s, border-color .3s, transform .3s;
}
.lm-about-page a.lm-ab-btn--fill { background: var(--lm-red); border-color: var(--lm-red); }
.lm-about-page a.lm-ab-btn:hover,
.lm-about-page a.lm-ab-btn:focus-visible { transform: translateY(-2px); background: var(--lm-red); border-color: var(--lm-red); outline: none; }
.lm-about-page a.lm-ab-btn--fill:hover,
.lm-about-page a.lm-ab-btn--fill:focus-visible { background: transparent; border-color: var(--lm-ink); }

/* ---------- Animaciones ---------- */
@keyframes lm-ab-float { 0%, 100% { translate: 0 0; } 35% { translate: 5px -12px; } 70% { translate: -4px 7px; } }
@keyframes lm-ab-blink {
  0%, 100% { box-shadow: 0 0 0 5px rgba(255, 46, 0, .35), 0 0 28px rgba(255, 46, 0, .95); filter: brightness(1.15); }
  50%      { box-shadow: 0 0 0 2px rgba(255, 46, 0, .1), 0 0 6px rgba(255, 46, 0, .3); filter: brightness(.8); }
}
@keyframes lm-ab-caret { 50% { opacity: 0; } }
@keyframes lm-ab-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@keyframes lm-ab-swing { 0%, 100% { rotate: -5deg; } 50% { rotate: 5deg; } }
@keyframes lm-ab-arm-up-l { 0%, 100% { transform: rotate(150deg); } 50% { transform: rotate(168deg); } }
@keyframes lm-ab-arm-up-r { 0%, 100% { transform: rotate(-150deg); } 50% { transform: rotate(-168deg); } }
@keyframes lm-ab-wave-r { 0%, 100% { transform: rotate(-120deg); } 50% { transform: rotate(-150deg); } }
@keyframes lm-ab-wave-l { 0%, 100% { transform: rotate(120deg); } 50% { transform: rotate(150deg); } }

/* ---------- Tablet y móvil ---------- */
/* ayuda y CTA: apilados cuando no hay ancho para la escena */
@media (max-width: 1200px) {
  .lm-help { height: auto; display: grid; gap: 28px; max-width: 640px; margin: 0 auto; padding: 0 16px; overflow: visible; }
  .lm-help__buddy { position: relative; inset: auto; display: flex; align-items: center; gap: 14px; --h: 170px; }
  /* alternados: izquierda, derecha, izquierda, derecha */
  .lm-help__buddy--brazos, .lm-help__buddy--derecha { flex-direction: row-reverse; }
  .lm-help__figure { position: relative !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; flex: none; }
  .lm-help__buddy--izquierda .lm-help__figure { transform-origin: 50% 50%; transform: rotate(8deg); }
  .lm-help__buddy--derecha .lm-help__figure { transform-origin: 50% 50%; transform: rotate(-8deg); }
  .lm-help__buddy--colgada .lm-help__figure { transform-origin: 50% 50%; transform: rotate(180deg); }
  .lm-about-page.is-ready .lm-help:not(.is-in) .lm-help__buddy--izquierda .lm-help__figure { transform: translateX(-60px) rotate(8deg); opacity: 0; }
  .lm-about-page.is-ready .lm-help:not(.is-in) .lm-help__buddy--brazos .lm-help__figure { transform: translateY(40px); opacity: 0; }
  .lm-about-page.is-ready .lm-help:not(.is-in) .lm-help__buddy--colgada .lm-help__figure { transform: translateY(-40px) rotate(180deg); opacity: 0; }
  .lm-about-page.is-ready .lm-help:not(.is-in) .lm-help__buddy--derecha .lm-help__figure { transform: translateX(60px) rotate(-8deg); opacity: 0; }
  .lm-help__bubble { position: relative; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; }
  .lm-help__bubble::after { display: none; }

  .lm-ab-cta {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: min(92vw, 520px);
  }
  .lm-ab-cta::before { top: 0; bottom: auto; height: min(92vw, 520px); }
  .lm-ab-cta__inner, .lm-ab-cta__buttons { grid-column: 1; justify-self: start; }
  .lm-ab-cta__buttons { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 1024px) {
  .lm-ab-map__text { position: static; max-width: 560px; margin: 0 auto 24px; }
  .lm-ab-map__text::before { display: none; }
  .lm-ab-map__text--to { margin: 24px auto 0; }
}
@media (max-width: 900px) {
  .lm-ab-story__row { grid-template-columns: 1fr; text-align: center; }
  .lm-ab-story__row--reverse .lm-ab-story__photo { order: 0; }
  .lm-ab-story__photo { width: 170px; }
  .lm-ab-story__row--reverse { grid-template-columns: 1fr; }
  .lm-ab-story__row--reverse .lm-ab-story__text { justify-self: center; }
  .lm-ab-story__text { margin: 0 auto; }

  /* trayectoria en vertical: el eje se llena y las etapas aparecen con el scroll (sobre-mi.js) */
  .lm-tl { padding: 20px 0; }
  .lm-tl__range { display: none; }
  .lm-tl__list { flex-direction: column; gap: 34px; max-width: 460px; margin: 0 auto; }
  .lm-tl__start { margin-left: calc(var(--node) / 2 - 9px); }
  .lm-tl__list::before { left: calc(var(--node) / 2); right: auto; top: 0; bottom: 0; width: 3px; height: auto; margin: 0 0 0 -1.5px; }
  .lm-tl__list::after { display: block; left: calc(var(--node) / 2); top: 0; width: 3px; height: calc(100% * var(--p)); margin: 0 0 0 -1.5px; }
  .lm-tl__item { justify-content: flex-start; gap: 22px; }
  .lm-tl__node { flex: none; }
  .lm-tl__card { position: static; translate: none; width: auto; text-align: left; transform: translateY(14px); }
  .lm-tl__node, .lm-tl__start, .lm-tl__arrow { transition: opacity .6s ease, transform .5s, box-shadow .5s, border-color .5s; }
  .lm-tl__item:not(.is-open) .lm-tl__node,
  .lm-tl__item:not(.is-open) .lm-tl__start,
  .lm-tl__item:not(.is-open) .lm-tl__arrow { opacity: .35; }
  .lm-tl__card::before { display: none; }
  .lm-tl__next { justify-content: flex-start; gap: 22px; }
  /* en vertical la flecha apunta hacia abajo, centrada sobre el eje */
  .lm-tl__arrow { flex: none; margin-left: calc(var(--node) / 2 - 16px); border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 26px solid var(--lm-blue-hi); border-bottom: 0; filter: drop-shadow(0 0 10px rgba(112, 134, 238, .8)); }
  .lm-tl__item--end.is-open .lm-tl__arrow { border-left-color: transparent; }
  .lm-ab-tl__hint { display: none; }

}

@media (prefers-reduced-motion: reduce) {
  .lm-about-page *, .lm-about-page *::before, .lm-about-page *::after { animation: none !important; transition: none !important; }
}
