/* ============================================================
   landing.css — página pública de presentación (pre-login)
   Se muestra SIEMPRE en claro: los tokens de tema se fijan en body.landing-screen.
============================================================ */

/* La landing SIEMPRE se ve en claro, sin importar el tema guardado del usuario.
   Los tokens se redefinen en el body (no en .lp) para que el fondo del propio
   body y del área de scroll también queden claros. */
body.landing-screen {
  --bg: #faf8f3;
  --surface: #ffffff;
  --surface-2: #f1ede4;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --text: #1a1a1a;
  --text-2: #5a5650;
  --text-3: #8a8580;
  --accent: #7fb83a;
  --accent-dark: #689a2c;
  --accent-text: #ffffff;
  --danger: #ff6b6b;
  --warning: #ffd166;
  --success: #06d6a0;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  background: var(--bg);
  color: var(--text);
  /* Sin transición: si el usuario tiene tema oscuro guardado, la landing no
     debe verse oscura un instante antes de aclararse. */
  transition: none;
}

/* #app sigue siendo flex de alto viewport: el scroll vive en .main, que es el
   contenedor que la landing observa para la sombra del nav y el scroll suave. */
body.landing-screen .sidebar { display: none !important; }

body.landing-screen .main {
  max-width: none;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

.lp {
  --lp-max: 1120px;
  --lp-ink: var(--text);
  --lp-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  padding-bottom: 0;
}

.lp *:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- barra superior ---------- */

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.lp-nav.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.lp-nav-inner {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.lp-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #0f0f0f;
  color: #c8f064;
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.lp-brand-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
}

.lp-nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.lp-nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

.lp-nav-links a:hover { color: var(--text); }

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-lp {
  padding: 13px 26px;
  font-size: 1rem;
}

/* ---------- estructura de secciones ---------- */

.lp-main { display: block; }

.lp-section {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 24px;
}

.lp-section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.lp-kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.lp-section h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.12;
  margin-bottom: 16px;
}

.lp-section-sub {
  color: var(--text-2);
  font-size: 1.06rem;
  max-width: 62ch;
}

/* ---------- hero ---------- */

.lp-hero {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 76px) 24px clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.lp-h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.04;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.lp-h1 em {
  font-style: normal;
  color: var(--accent-dark);
  position: relative;
  white-space: nowrap;
}

.lp-h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.16em;
  background: color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 4px;
  z-index: -1;
}

.lp-lead {
  font-size: clamp(1.04rem, 1.6vw, 1.2rem);
  color: var(--text-2);
  max-width: 54ch;
  margin-bottom: 30px;
}

.lp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.lp-hero-cta--center { justify-content: center; margin-bottom: 0; }

.lp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.lp-stats dt {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  line-height: 1.1;
  margin-bottom: 4px;
}

.lp-stats dd {
  font-size: 0.86rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* ---------- arte del hero (mock del producto) ---------- */

.lp-hero-art {
  position: relative;
  min-height: 440px;
}

/* Sin bleed lateral: un inset negativo genera scroll horizontal en anchos
   intermedios. El difuminado ya se derrama visualmente sin afectar al layout. */
.lp-glow {
  position: absolute;
  inset: 4% 0 16% 0;
  background: radial-gradient(circle at 58% 34%, color-mix(in srgb, var(--accent) 36%, transparent), transparent 70%);
  filter: blur(52px);
  z-index: 0;
}

.lp-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.lp-card-plan {
  max-width: 400px;
  margin-left: auto;
}

/* El solape solo debe morder el padding inferior de la tarjeta de plan:
   con -34px tapaba el total de kcal. */
.lp-card-workout {
  max-width: 330px;
  margin-top: -14px;
  margin-left: 0;
  transform: rotate(-1.4deg);
  z-index: 2;
}

.lp-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.lp-card-kicker {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
}

.lp-card-title {
  font-size: 1.22rem;
  margin-top: 2px;
}

.lp-badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  white-space: nowrap;
}

.lp-badge-ok {
  background: var(--lp-soft);
  color: var(--accent-dark);
}

.lp-badge-cut { background: color-mix(in srgb, #ff9f68 22%, transparent); color: #b4561d; }
.lp-badge-bulk { background: color-mix(in srgb, #5aa9ff 22%, transparent); color: #1b5fa8; }

.lp-meals {
  list-style: none;
  display: grid;
  gap: 2px;
}

.lp-meals li {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.lp-meals li:last-child { border-bottom: 0; }

.lp-time {
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
  font-size: 0.82rem;
}

.lp-meal { color: var(--text); line-height: 1.35; }

.lp-kcal {
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.85rem;
}

.lp-card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
  flex-wrap: wrap;
}

.lp-total {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
}

.lp-macros {
  font-size: 0.8rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.lp-exercises {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
}

.lp-exercises li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}

.lp-exercises span {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lp-sync {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--lp-soft);
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--text-2);
}

.lp-sync strong { color: var(--text); }

/* ---------- comparación ---------- */

.lp-section-diff {
  background: var(--surface);
  max-width: none;
  border-block: 1px solid var(--border);
}

.lp-section-diff > * {
  max-width: var(--lp-max);
  margin-inline: auto;
}

.lp-compare {
  list-style: none;
  display: grid;
  gap: 14px;
}

.lp-compare-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
}

.lp-compare-other,
.lp-compare-us {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.98rem;
}

.lp-compare-other { color: var(--text-3); }
.lp-compare-other span { text-decoration: line-through solid color-mix(in srgb, var(--text-3) 55%, transparent); }
.lp-compare-us { color: var(--text); }

.lp-compare-other svg,
.lp-compare-us svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.lp-compare-other svg { color: var(--text-3); }
.lp-compare-us svg { color: var(--accent-dark); }

/* ---------- features ---------- */

.lp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 18px;
}

.lp-feature {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.lp-feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
}

.lp-feature-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--lp-soft);
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.lp-icon { width: 22px; height: 22px; }

.lp-feature h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.lp-feature p {
  color: var(--text-2);
  font-size: 0.95rem;
}

/* ---------- dieta ↔ entreno ---------- */

.lp-section-sync {
  background: var(--surface);
  max-width: none;
  border-block: 1px solid var(--border);
}

.lp-section-sync > * {
  max-width: var(--lp-max);
  margin-inline: auto;
}

.lp-sync-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.lp-sync-card {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.lp-sync-card .lp-badge { margin-bottom: 16px; display: inline-block; }

.lp-sync-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.lp-sync-card li {
  position: relative;
  padding-left: 20px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.lp-sync-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.lp-sync-arrow {
  color: var(--text-3);
  display: grid;
  place-items: center;
}

.lp-sync-arrow svg { width: 34px; height: 34px; }

/* ---------- cómo funciona ---------- */

.lp-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(264px, 1fr));
  gap: 20px;
}

.lp-steps li {
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.lp-step-n {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  margin-bottom: 15px;
}

.lp-steps h3 { font-size: 1.16rem; margin-bottom: 8px; }
.lp-steps p { color: var(--text-2); font-size: 0.95rem; }

.lp-extras {
  margin-top: 40px;
  padding: 26px;
  border-radius: 18px;
  background: var(--lp-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}

.lp-extras-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.lp-extras ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 12px 24px;
}

.lp-extras li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.95rem;
  color: var(--text);
}

.lp-extras .lp-icon {
  flex-shrink: 0;
  color: var(--accent-dark);
}

/* ---------- FAQ ---------- */

.lp-faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.lp-faq details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}

.lp-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.03rem;
  list-style: none;
}

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

.lp-faq summary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform var(--transition);
}

.lp-faq details[open] summary svg { transform: rotate(180deg); }

.lp-faq p {
  padding: 0 22px 20px;
  color: var(--text-2);
  font-size: 0.97rem;
  max-width: 72ch;
}

/* ---------- CTA final ---------- */

.lp-cta {
  padding: clamp(56px, 8vw, 96px) 24px;
  background: var(--text);
  color: var(--bg);
}

.lp-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.lp-cta h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--bg);
}

.lp-cta p {
  color: color-mix(in srgb, var(--bg) 78%, var(--text));
  margin-bottom: 30px;
  font-size: 1.05rem;
}

/* En el CTA oscuro los botones se invierten para mantener contraste. */
.lp-cta .btn-secondary {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--bg) 42%, transparent);
  color: var(--bg);
}

.lp-cta .btn-secondary:hover {
  background: color-mix(in srgb, var(--bg) 12%, transparent);
  border-color: color-mix(in srgb, var(--bg) 62%, transparent);
}

/* ---------- footer ---------- */

.lp-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 24px 32px;
}

.lp-footer-inner {
  max-width: var(--lp-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  align-items: center;
}

.lp-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-footer-brand strong {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
}

.lp-footer-brand p {
  color: var(--text-3);
  font-size: 0.88rem;
}

.lp-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.lp-footer-legal button,
.lp-footer-legal a {
  color: var(--text-2);
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

.lp-footer-legal button:hover,
.lp-footer-legal a:hover { color: var(--text); }

.lp-footer-note {
  max-width: var(--lp-max);
  margin: 26px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.83rem;
  line-height: 1.55;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .lp-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 32px;
  }

  .lp-hero-art {
    min-height: 0;
    display: grid;
    gap: 0;
  }

  .lp-card-plan { margin-inline: auto; }

  .lp-card-workout {
    margin: -26px auto 0;
    transform: none;
  }

  .lp-nav-links { display: none; }

  .lp-compare-row,
  .lp-sync-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-sync-arrow { transform: rotate(90deg); }

}

@media (max-width: 560px) {
  .lp-nav-inner { padding: 12px 16px; gap: 10px; }
  .lp-nav-login { display: none; }
  .lp-brand-name { display: none; }
  .lp-section,
  .lp-hero { padding-inline: 16px; }
  .lp-stats { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lp-hero-cta .btn-lp { width: 100%; }
  .lp-card-workout { margin-top: -18px; }
  .lp-footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-feature { transition: none; }
  .lp-feature:hover { transform: none; }
}

/* ---------- galería "por dentro" (mockups de pantallas reales) ---------- */

.lp-section-inside {
  background: var(--surface);
  max-width: none;
  border-block: 1px solid var(--border);
}

.lp-section-inside > * {
  max-width: var(--lp-max);
  margin-inline: auto;
}

/* 2×2: con 4 mockups, tres columnas dejan el último huérfano y muy estrecho. */
.lp-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* En móvil, apilar 4 mockups hacía la página larguísima. Se deslizan en
   horizontal (como una galería de capturas) y el siguiente asoma para que se
   note que hay más. El scroll vertical de la página no se ve afectado. */
@media (max-width: 860px) {
  .lp-shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    gap: 16px;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .lp-shots::-webkit-scrollbar { display: none; }

  .lp-shot {
    scroll-snap-align: start;
    min-width: 0;
  }
}

.lp-shot h3 {
  font-size: 1.16rem;
  margin: 18px 0 6px;
}

.lp-shot p {
  color: var(--text-2);
  font-size: 0.95rem;
}

.lp-shot-frame {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  font-size: 0.88rem;
}

.lp-shot-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.lp-shot-kicker {
  font-family: 'DM Serif Display', serif;
  font-size: 1.06rem;
  color: var(--text);
}

.lp-shot-meta {
  font-size: 0.78rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* registro diario */

.lp-mock-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 14px;
}

.lp-mock-label { color: var(--text-3); font-size: 0.82rem; }

.lp-mock-input {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
}

.lp-mock-q {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.lp-mock-meals {
  list-style: none;
  display: grid;
  gap: 6px;
}

.lp-mock-meals li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}

.lp-mock-meals li:last-child { border-bottom: 0; }

.lp-pills { display: inline-flex; gap: 4px; flex-shrink: 0; }

.lp-pills b {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-3);
}

.lp-pills b.on { background: var(--accent); color: var(--accent-text); }

.lp-pills b.on.off {
  background: var(--surface-2);
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

/* sesión de entreno */

.lp-mock-ex {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.lp-mock-sets-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.lp-mock-sets-title span { color: var(--text-3); font-weight: 400; font-size: 0.84rem; }

.lp-mock-sets {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.lp-mock-sets li {
  display: grid;
  grid-template-columns: 30px 1fr 1fr 24px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.lp-mock-sets li.pending { opacity: 0.6; }

.lp-set-n { color: var(--text-3); font-size: 0.78rem; font-weight: 600; }
.lp-set-v { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 0.84rem; }

.lp-set-ok {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.76rem;
  font-weight: 700;
}

.lp-set-todo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px dashed var(--border-strong);
}

.lp-mock-rest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--lp-soft);
  color: var(--text-2);
  font-size: 0.84rem;
}

.lp-mock-rest strong {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
}

/* progreso */

.lp-mock-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  margin-bottom: 14px;
}

.lp-mock-tabs b {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: 999px;
  color: var(--text-3);
}

.lp-mock-tabs b.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.lp-mock-goal { color: var(--text-3); font-size: 0.84rem; margin-bottom: 12px; }
.lp-mock-goal strong { color: var(--text-2); }

.lp-mock-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.lp-mock-status div {
  padding: 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 5px;
}

.lp-mock-status span { color: var(--text-3); font-size: 0.78rem; }

.lp-mock-status b {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  justify-self: start;
}

.lp-mock-status b.ok { background: var(--lp-soft); color: var(--accent-dark); }

.lp-spark {
  display: block;
  width: 100%;
  height: 56px;
  color: var(--accent);
}

.lp-mock-trend {
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

/* lista de compras */

.lp-mock-shop { list-style: none; display: grid; }

.lp-mock-shop li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}

.lp-mock-shop li:last-child { border-bottom: 0; }
.lp-mock-shop li span:last-child { color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---------- web + móvil ---------- */

.lp-hero-platforms {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: -22px 0 32px;
  color: var(--text-3);
  font-size: 0.92rem;
}

.lp-hero-platforms .lp-icon { width: 18px; height: 18px; }

.lp-devices-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.lp-device-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.lp-device-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: var(--text-2);
  font-size: 0.92rem;
}

.lp-device-ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--lp-soft);
  color: var(--accent-dark);
  flex-shrink: 0;
}

.lp-device-list strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 1px;
}

.lp-browser {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 980px) {
  .lp-devices-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-hero-platforms { margin-top: -14px; }
}

@media (max-width: 560px) {
  .lp-mock-status { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- maquetas de dispositivo v2: navegador y móvil con UI real ---------- */

.lp-devices-art {
  position: relative;
  padding: 0 0 30px 0;
}

/* --- navegador --- */

.lp-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.lp-browser-url {
  margin-left: 8px;
  flex: 1;
  max-width: 190px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.66rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-browser-body { display: flex; min-height: 210px; }

.lp-browser-side {
  width: 62px;
  padding: 12px 10px;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  display: grid;
  gap: 8px;
  align-content: start;
}

.lp-side-logo {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #0f0f0f;
  color: #c8f064;
  font-family: 'DM Serif Display', serif;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.lp-side-item {
  height: 7px;
  border-radius: 999px;
  background: var(--border-strong);
  opacity: 0.35;
}

.lp-side-item.on { background: var(--accent); opacity: 1; }

.lp-browser-main {
  flex: 1;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

/* --- UI compartida (navegador y teléfono) --- */

.lp-ui-kicker {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.lp-ui-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 2px;
}

.lp-ui-rows { display: grid; }

.lp-ui-rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.66rem;
  color: var(--text-2);
  min-width: 0;
}

.lp-ui-rows > div:last-child { border-bottom: 0; }

.lp-ui-rows > div span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-ui-rows > div b {
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
  flex-shrink: 0;
}

.lp-ui-chip {
  justify-self: start;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lp-soft);
  color: var(--accent-dark);
  font-size: 0.64rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* --- teléfono --- */

.lp-phone {
  position: absolute;
  right: -4px;
  bottom: 0;
  width: 152px;
  background: #0f0f0f;
  border-radius: 24px;
  padding: 7px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}

.lp-phone-screen {
  background: var(--bg);
  border-radius: 18px;
  padding: 8px 10px 6px;
  display: grid;
  gap: 5px;
  align-content: start;
}

.lp-phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.56rem;
  font-weight: 600;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

.lp-phone-bars { display: inline-flex; align-items: flex-end; gap: 2px; }

.lp-phone-bars i {
  width: 2.5px;
  border-radius: 1px;
  background: var(--text-3);
}

.lp-phone-bars i:nth-child(1) { height: 4px; }
.lp-phone-bars i:nth-child(2) { height: 6px; }
.lp-phone-bars i:nth-child(3) { height: 8px; }

.lp-phone .lp-ui-title { font-size: 0.92rem; }
.lp-phone .lp-ui-rows > div { font-size: 0.6rem; padding: 6px 0; }
.lp-phone .lp-ui-chip { font-size: 0.58rem; }

.lp-phone-tabbar {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--border);
}

.lp-phone-tabbar span {
  flex: 1;
  display: grid;
  place-items: center;
  color: var(--text-3);
  opacity: 0.5;
}

.lp-phone-tabbar span.on { color: var(--accent-dark); opacity: 1; }
.lp-phone-tabbar .lp-icon { width: 13px; height: 13px; }

@media (max-width: 980px) {
  .lp-devices-art { max-width: 500px; }
}

/* En pantallas chicas el teléfono deja de ir encima del navegador: apilarlos
   permite tamaños de texto legibles (superpuestos obligaban a 9-10px). */
@media (max-width: 620px) {
  .lp-devices-art { padding-bottom: 0; }

  .lp-phone {
    position: static;
    width: 210px;
    margin: 18px auto 0;
  }

  .lp-browser-side { width: 52px; padding: 10px 9px; }
  .lp-browser-main { padding: 13px; }
  .lp-browser-url { font-size: 0.72rem; max-width: none; }

  .lp-ui-kicker { font-size: 0.7rem; }
  .lp-browser .lp-ui-rows > div { font-size: 0.76rem; }
  .lp-browser .lp-ui-chip { font-size: 0.72rem; }

  .lp-phone .lp-ui-title { font-size: 1.02rem; }
  .lp-phone .lp-ui-rows > div { font-size: 0.76rem; padding: 7px 0; }
  .lp-phone .lp-ui-chip { font-size: 0.72rem; }
  .lp-phone-status { font-size: 0.66rem; }
  .lp-phone-tabbar .lp-icon { width: 15px; height: 15px; }
}

/* ---------- menú móvil ---------- */

.lp-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.lp-burger span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-2);
  transition: transform var(--transition), opacity var(--transition);
}

.lp-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.lp-burger.is-open span:nth-child(2) { opacity: 0; }
.lp-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.lp-menu {
  position: sticky;
  top: 68px;
  z-index: 19;
  margin: 0 16px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.lp-menu[hidden] { display: none; }

.lp-menu-links {
  display: grid;
  margin-bottom: 12px;
}

.lp-menu-links a {
  padding: 11px 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.lp-menu-links a:last-child { border-bottom: 0; }

.lp-menu-actions {
  display: grid;
  gap: 8px;
}

@media (max-width: 980px) {
  .lp-burger { display: flex; }

  /* Con los enlaces ocultos nadie empuja las acciones: el margin-left:auto
     vive en .lp-nav-links. Sin esto, "Crear cuenta" y la hamburguesa quedan
     junto al logo y sobra hueco a la derecha. */
  .lp-nav-actions { margin-left: auto; }
}

@media (min-width: 981px) {
  /* En escritorio los enlaces viven en la barra: el menú nunca se muestra. */
  .lp-menu { display: none !important; }
}

/* ============================================================
   Descarga directa: QR para quien mira desde computadora, y la
   tarjeta entera es enlace para quien ya está en el teléfono.
   ============================================================ */

.lp-qr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.lp-qr {
  flex: 1 1 168px;
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 16px 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--lp-soft);
  text-decoration: none;
  color: var(--text-2);
  transition: border-color 150ms, transform 150ms;
}

.lp-qr:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* El QR conserva su fondo blanco propio: sin él no se escanea en tema oscuro. */
.lp-qr-img {
  width: 132px;
  height: 132px;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
}

.lp-qr-cap {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 0.92rem;
}

.lp-qr-cap svg {
  width: 17px;
  height: 17px;
}

.lp-qr-hint {
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.35;
}

/* En pantallas chicas el QR sobra —nadie escanea su propio teléfono—, así que
   la tarjeta se vuelve un botón de instalar. */
@media (max-width: 620px) {
  .lp-qr-img {
    display: none;
  }

  .lp-qr {
    flex-direction: row;
    padding: 14px 16px;
  }
}
