/* =============================================================================
   Siruki · landing v3 (inicio). Va encima de styles.css y usa sus tokens.
   Pensada para el tráfico de TikTok e Instagram: móvil primero, la descarga siempre a
   mano y nada que distraiga (sin menú ni enlaces de salida en la portada).
   ========================================================================== */

/* ---------- Cabecera ligera ---------- */
.lp-header .site-header__in { min-height: 60px; }
.lp-header__nav { display: none; margin-left: auto; gap: 28px; font-weight: 800; }
.lp-header__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-text); text-decoration: none; }
.lp-header__nav a:hover { color: var(--c-primary-ink); }
.lp-header__cta { margin-left: auto; --btn-h: 44px; padding-inline: 18px; font-size: 1rem; }
@media (min-width: 900px) {
  .lp-header__nav { display: flex; }
  .lp-header__cta { margin-left: 12px; }
}

/* ---------- Portada ---------- */
.lp-hero { position: relative; padding-block: 22px 40px; overflow: hidden; }
.lp-hero::before {                       /* el círculo crema de la app, detrás de Siro */
  content: "";
  position: absolute;
  z-index: -1;
  right: -40vw;
  top: 300px;
  width: 110vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c-cream);
  opacity: .7;
}
.lp-hero__grid { display: grid; gap: 28px; }
.lp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--c-secondary-soft);
  color: var(--c-secondary-text);
  font-weight: 900;
  font-size: var(--fs-small);
}
.lp-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 1.7rem + 3.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--c-text);
  text-wrap: balance;
}
.lp-hero__title span { color: var(--c-primary-ink); }
.lp-hero__lead {
  margin: 14px 0 0;
  max-width: 34em;
  font-size: var(--fs-lead);
  line-height: 1.45;
  font-weight: 600;
  color: var(--c-text-2);
}

/* Bloque de descarga */
.lp-get { margin-top: 22px; display: grid; justify-items: start; gap: 10px; }
.lp-get__meta { margin: 0; font-size: var(--fs-caption); font-weight: 700; color: var(--c-text-2); }
.lp-facts {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-weight: 800;
  font-size: var(--fs-small);
  color: var(--c-text-2);
}
.lp-facts li { display: inline-flex; align-items: center; gap: 6px; }
.lp-hero__try {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 6px;
  font-weight: 800;
  color: var(--c-primary-ink);
  text-decoration: none;
}
.lp-hero__try:hover { text-decoration: underline; text-underline-offset: .2em; }

/* Android y ordenador (lo rellena landing.js) */
.lp-alt { margin-top: 20px; }
.lp-alt[hidden] { display: none; }
.lp-alt__box {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-divider);
  box-shadow: var(--sh-card);
}
.lp-alt__qr { flex: none; width: 112px; height: 112px; padding: 6px; border-radius: 12px; background: #FFFFFF; }
.lp-alt__qr svg { display: block; width: 100%; height: 100%; }
.lp-alt__title { margin: 0 0 4px; font-weight: 900; color: var(--c-text); }
.lp-alt__text { margin: 0; font-size: var(--fs-small); color: var(--c-text-2); }
.lp-alt__share { margin-top: 10px; }
.lp-alt--light .lp-alt__box { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); box-shadow: none; }
.lp-alt--light .lp-alt__title { color: #FFFFFF; }
.lp-alt--light .lp-alt__text { color: rgba(255, 255, 255, .84); }

/* Composición: teléfono, aviso y Siro */
.lp-hero__visual {
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  aspect-ratio: 100 / 132;
}
.lp-hero__device { --phone-w: 56cqi; position: absolute; right: 6cqi; top: 0; }
.lp-hero__notice { position: absolute; z-index: 2; left: 0; top: 16cqi; width: 66cqi; }
.lp-hero__siro { position: absolute; z-index: 3; left: 0; bottom: 0; width: 34cqi; height: auto; }
@media (min-width: 960px) {
  .lp-hero { padding-block: 56px 80px; }
  .lp-hero::before { right: -12vw; top: 40px; width: 52vw; }
  .lp-hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
  .lp-get { margin-top: 30px; }
}

/* ---------- El reto de Siro (minirreto) ---------- */
.lp-try__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .lp-try__grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }

.mr {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  min-height: 520px;
  padding: 24px 20px;
  border-radius: var(--r-2xl);
  background: var(--c-surface);
  box-shadow: 0 24px 50px -24px rgba(80, 12, 34, .35), 0 0 0 1px rgba(142, 27, 58, .06);
  color: var(--c-text);
  text-align: center;
  display: grid;
}
.mr__screen { display: flex; flex-direction: column; align-items: center; gap: 14px; animation: mr-in .35s var(--ease) both; }
.mr__screen[hidden] { display: none; }
@keyframes mr-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .mr__screen { animation: none; } }
.mr__siro { width: 120px; height: auto; }
.mr__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1.05; }
.mr__sub { margin: -6px 0 0; color: var(--c-text-2); font-weight: 700; }
.mr__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; text-align: left; font-weight: 800; }
.mr__steps li { display: flex; align-items: center; gap: 12px; }
.mr__steps .num { --num: 30px; }
.mr__go { width: 100%; margin-top: auto; }
.mr__nojs { margin: 0; font-size: var(--fs-small); color: var(--c-text-2); }
.no-js [data-needs-js] { display: none; }
.js [data-no-js] { display: none; }

.mr__pill {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--c-level-bg);
  color: var(--c-secondary-text);
  font-weight: 900;
  font-size: var(--fs-caption);
}
.mr__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-top: 4px; }
.mr__item {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 6px 12px;
  border-radius: var(--r-lg);
  background: var(--c-bg-alt);
  font-weight: 800;
  font-size: var(--fs-small);
}
.mr__emoji { font-size: 3.2rem; line-height: 1; }
.mr__bar { width: 100%; height: 14px; border-radius: var(--r-pill); background: var(--c-track); overflow: hidden; }
.mr__bar span { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--g-progress); transform-origin: left; }
.mr__hint { margin: 0; font-weight: 800; color: var(--c-text-2); }

.mr__slots { display: flex; justify-content: center; gap: 8px; }
.mr__slot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px dashed color-mix(in srgb, var(--c-primary) 45%, transparent);
  color: var(--c-primary-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
}
.mr__sum { margin: 6px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--c-primary-ink); }
.mr__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.mr__opt {
  min-height: 60px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--c-cream);
  color: var(--c-text);
  font: 800 1.5rem/1 var(--font-display);
  cursor: pointer;
}
.mr__opt:hover { background: var(--c-cream-hover); }
.mr__opt.is-ok { background: #E3F1D2; color: #2F5A0C; }
.mr__opt.is-ko { background: #FBE0E0; color: #A31515; }
.mr__count { margin: 0; font-size: var(--fs-small); font-weight: 800; color: var(--c-text-2); }

.mr__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.mr__pick {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 3px solid transparent;
  border-radius: var(--r-lg);
  background: var(--c-bg-alt);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}
.mr__pick[aria-pressed="true"] { border-color: var(--c-primary); background: var(--c-cream); }
.mr__pick[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #FFFFFF;
  font: 900 .9rem/1 var(--font-text);
}
.mr__check { width: 100%; }
.mr__check:disabled { opacity: .45; cursor: default; box-shadow: none; }

.mr__score { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-num); line-height: 1; color: var(--c-primary-ink); }
.mr__were { display: flex; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mr__were li { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--c-bg-alt); font-size: 2.2rem; position: relative; }
.mr__were li.is-ok::after, .mr__were li.is-ko::after {
  position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; color: #FFFFFF; font: 900 .8rem/1 var(--font-text);
}
.mr__were li.is-ok::after { content: "✓"; background: #4F7F1A; }
.mr__were li.is-ko::after { content: "✕"; background: #C62828; }
.mr__note { margin: 0; color: var(--c-text-2); font-size: var(--fs-small); font-weight: 600; }
.mr__again { border: 0; background: none; color: var(--c-primary-ink); font: 800 1rem var(--font-text); min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Cómo funciona (reutiliza .how-step de la v2) ---------- */
@media (min-width: 900px) { .lp-how .how__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Un motivo para volver mañana ---------- */
.lp-why__grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .lp-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-card { display: flex; flex-direction: column; gap: 10px; padding: var(--card-pad); scroll-margin-top: 80px; }
.lp-card p { margin: 0; color: var(--c-text-2); }
.lp-card__title { margin: 4px 0 0; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3); line-height: 1.1; color: var(--c-text); }
.lp-card__img { width: 100%; height: auto; border-radius: var(--r-card); }
.lp-card__note { font-size: var(--fs-caption); }
.lp-flames { list-style: none; margin: 0; padding: 8px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; align-items: end; }
.lp-flames li { display: grid; justify-items: center; gap: 4px; font-weight: 900; font-size: var(--fs-caption); color: var(--c-text-2); }
.lp-flames img { width: 100%; max-width: 46px; height: auto; }
@media (min-width: 760px) { .lp-flames img { max-width: 60px; } .lp-flames { padding-top: 24px; } }
.lp-games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lp-games li { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: var(--fs-small); color: var(--c-text); }
.lp-games .game__tile { width: 44px; height: 44px; border-radius: 14px; flex: none; }
.lp-games .game__tile svg { width: 22px; height: 22px; }
.lp-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-rank li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-md); background: var(--c-bg-alt); font-weight: 800; color: var(--c-text); }
.lp-rank li.is-me { background: var(--c-cream); outline: 2px solid var(--c-primary); }
.lp-rank__pos { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--g-gold); color: var(--c-on-secondary); font-size: .9rem; }
.lp-rank__name { flex: 1; }
.lp-rank__pts { color: var(--c-text-2); }

/* ---------- Gratis ---------- */
.lp-free__card { display: grid; gap: 18px; padding: clamp(22px, 4vw, 44px); align-items: center; }
.lp-free__siro { width: 110px; height: auto; }
.lp-free__copy p { margin: 10px 0 0; color: var(--c-text-2); }
.lp-free__copy .t-h2 { margin: 6px 0 0; }
.lp-free__plus { padding: 14px 16px; border-radius: var(--r-lg); background: var(--c-secondary-soft); color: var(--c-text) !important; }
@media (min-width: 760px) { .lp-free__card { grid-template-columns: 160px 1fr; } .lp-free__siro { width: 150px; } }

/* ---------- Preguntas ---------- */
.lp-faq { max-width: 820px; }

/* ---------- Cierre ---------- */
.lp-end__panel { display: grid; gap: 18px; justify-items: center; text-align: center; }
.lp-end__siro { width: 140px; height: auto; }
.lp-end__copy p { margin: 8px 0 0; }
.lp-end__get { margin-top: 20px; display: flex; justify-content: center; }
/* Insignia oficial de Apple, sin tocar (mínimo 40 px de alto y margen libre de 1/4 de su altura) */
.lp-badge { display: inline-block; flex: none; border-radius: 10px; }
.lp-badge img { display: block; width: auto; height: 56px; }
.lp-badge:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 4px; }
.panel-brand .lp-badge:focus-visible { outline-color: #FFFFFF; }
.lp-badge--hero img { height: 64px; }
.lp-badge--mr { margin-top: 2px; }
.lp-badge--mr img { height: 58px; }
.dl-bar__badge img { height: 44px; }
.lp-get__free, .mr__free { margin: 0; font-weight: 900; font-size: var(--fs-small); color: var(--c-primary-ink); }
.mr__free { margin-top: 4px; }
@media (min-width: 900px) {
  .lp-end__panel { grid-template-columns: 220px 1fr; justify-items: start; text-align: left; }
  .lp-end__siro { width: 200px; }
  .lp-end__get { justify-content: flex-start; }
}

/* ---------- Pie ---------- */
.lp-footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-bottom: 20px; }
.lp-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 700; }
.lp-footer__links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--c-text-2); }
.lp-footer__links a:hover { color: var(--c-primary-ink); }

/* ---------- Barra fija de descarga (solo móvil) ---------- */
.dl-bar {
  position: fixed;
  z-index: 50;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--c-surface) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 16px 34px -12px rgba(80, 12, 34, .45), 0 0 0 1px var(--c-hairline);
  transform: translateY(0);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.dl-bar[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; }
.dl-bar__icon { width: 44px; height: 44px; border-radius: 22.37%; box-shadow: var(--sh-avatar); }
.dl-bar__text { margin: 0; flex: 1; display: grid; line-height: 1.2; }
.dl-bar__text strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--c-text); }
.dl-bar__text span { font-size: var(--fs-caption); font-weight: 800; color: var(--c-text-2); }
@media (prefers-reduced-motion: reduce) { .dl-bar { transition: none; } }
@media (min-width: 900px) { .dl-bar { display: none !important; } }
/* que la barra no tape el final del pie */
@media (max-width: 899px) { .lp .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
