/* ============================================================
   MiraLaCarta — Landing de marketing (miralacarta.com.ar sin local)
   Se apoya en las variables de /css/theme.css. Mobile-first, con
   layout de escritorio a partir de 860px.
   ============================================================ */

#landing-screen { display: none; }
#landing-screen.show { display: block; }

.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ── Nav ──────────────────────────────────────────────────── */
.lp-nav { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 30; }
.lp-nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.lp-brand { display: flex; align-items: center; gap: 9px; font-family: 'Newsreader', serif; font-size: 17px; font-weight: 600; }
.lp-brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-size: 13px; flex: 0 0 auto; }
.lp-nav-links { display: none; align-items: center; gap: 28px; font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }
.lp-nav-cta { background: var(--accent); color: var(--accent-ink); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 12.5px; white-space: nowrap; box-shadow: 0 10px 20px -10px oklch(58% 0.16 35 / 0.5); }

/* ── Hero ─────────────────────────────────────────────────── */
.lp-hero { padding: 44px 0 52px; background: linear-gradient(180deg, var(--bg-deep), var(--bg) 78%); position: relative; overflow: hidden; }
.lp-hero-grid { display: flex; flex-direction: column; gap: 36px; position: relative; z-index: 2; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--olive); background: oklch(93% 0.035 140); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; white-space: nowrap; }
.lp-eyebrow-rotator { position: relative; display: inline-block; height: 1.1em; min-width: 92px; }
.lp-eyebrow-word { position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; animation: lpCyclePhase 8s infinite; }
.lp-eyebrow-word:nth-child(1) { animation-delay: 0s; }
.lp-eyebrow-word:nth-child(2) { animation-delay: 2s; }
.lp-eyebrow-word:nth-child(3) { animation-delay: 4s; }
.lp-eyebrow-word:nth-child(4) { animation-delay: 6s; }
/* Compartida entre la palabra del badge y el contenido del teléfono, mismos
   tiempos y mismo orden de delay, para que cambien juntos. */
@keyframes lpCyclePhase {
  0% { opacity: 0; }
  2% { opacity: 1; }
  23% { opacity: 1; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}
.lp-hero h1 { font-family: 'Newsreader', serif; font-size: 32px; line-height: 1.12; font-weight: 600; margin: 0 0 16px; letter-spacing: -0.01em; }
.lp-hero h1 em { font-style: italic; color: var(--accent); }
.lp-hero p.lp-lead { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 26px; }
.lp-hero-ctas { display: flex; flex-direction: column; gap: 12px; }
.lp-btn-primary { text-align: center; background: var(--accent); color: var(--accent-ink); padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: 0 16px 30px -14px oklch(58% 0.16 35 / 0.55); }
.lp-btn-ghost { text-align: center; padding: 14px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink); border: 1px solid var(--line); background: var(--surface); }

/* Columna visual del hero: forma orgánica + tarjetitas flotantes + teléfono.
   Oculta en mobile (igual que antes lo estaba .lp-phone). */
.lp-hero-visual { display: none; }
.lp-hero-blob { position: absolute; left: 0; right: -16%; top: -9%; bottom: -9%; z-index: 0; }
.lp-hero-blob svg { width: 100%; height: 100%; display: block; }
.lp-float-chip { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; z-index: 3; }
.lp-float-chip .ic { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex: 0 0 auto; }
.lp-float-chip.wa { top: 18px; right: 40px; }
.lp-float-chip.wa .ic { background: oklch(93% 0.05 155); color: oklch(40% 0.11 155); }
.lp-float-chip.qr { bottom: 70px; right: 8px; }
.lp-float-chip.qr .ic { background: oklch(93% 0.05 45); color: var(--accent); }

.lp-phone { position: relative; z-index: 2; }
.lp-phone-frame { width: 260px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: 14px; box-shadow: var(--shadow-lg); }
.lp-phone-inner { position: relative; border-radius: 18px; background: var(--bg); height: 336px; overflow: hidden; }
.lp-phone-variant { position: absolute; inset: 0; padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; opacity: 0; animation: lpCyclePhase 8s infinite; }
.lp-phone-variant:nth-child(1) { animation-delay: 0s; }
.lp-phone-variant:nth-child(2) { animation-delay: 2s; }
.lp-phone-variant:nth-child(3) { animation-delay: 4s; }
.lp-phone-variant:nth-child(4) { animation-delay: 6s; }
.lp-phone-hdr { font-family: 'Newsreader', serif; font-size: 16px; font-weight: 600; }
.lp-phone-sub { font-size: 11px; color: var(--ink-soft); margin-top: -8px; }
.lp-phone-chip-row { display: flex; gap: 6px; }
.lp-phone-chip { padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 600; }
.lp-phone-chip.o { background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); }
.lp-phone-card { display: flex; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.lp-phone-photo { width: 44px; height: 44px; border-radius: 9px; flex: 0 0 auto; }
.lp-phone-card-info { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.lp-phone-card-info b { font-family: 'Newsreader', serif; font-size: 12px; }
.lp-phone-card-info span { font-size: 10.5px; color: var(--ink-soft); }

/* ── Secciones compartidas ────────────────────────────────── */
.lp-section { padding: 48px 0; }
.lp-section-head { max-width: 560px; margin: 0 0 30px; }
.lp-section-head h2 { font-family: 'Newsreader', serif; font-size: 24px; font-weight: 600; margin: 0 0 10px; }
.lp-section-head p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* ── Cómo funciona ────────────────────────────────────────── */
.lp-steps { display: flex; flex-direction: column; gap: 24px; }
.lp-step-num { font-family: 'Newsreader', serif; font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.lp-step h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.lp-step p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* ── Features ─────────────────────────────────────────────── */
.lp-features-band { background: var(--surface-2); }
.lp-feature-grid { display: flex; flex-direction: column; gap: 14px; }
.lp-feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.lp-feature-icon { width: 34px; height: 34px; border-radius: 9px; background: oklch(93% 0.03 45); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 13px; }
.lp-feature-card h3 { font-size: 14.5px; font-weight: 600; margin: 0 0 6px; }
.lp-feature-card p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; margin: 0; }

/* ── Planes ───────────────────────────────────────────────── */
.lp-plans { display: flex; flex-direction: column; gap: 18px; }
.lp-plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; display: flex; flex-direction: column; position: relative; }
.lp-plan-card.featured { border-color: var(--accent); box-shadow: 0 20px 40px -24px oklch(55% 0.14 35 / 0.35); }
.lp-plan-badge { position: absolute; top: -12px; left: 22px; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.lp-plan-name { font-family: 'Newsreader', serif; font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.lp-plan-price { font-size: 24px; font-weight: 700; margin: 6px 0 18px; }
.lp-plan-price span { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }
.lp-plan-feats { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lp-plan-feats li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.lp-plan-feats li svg { flex: 0 0 auto; margin-top: 2px; color: var(--accent); }
.lp-plan-btn { text-align: center; padding: 11px; border-radius: 10px; font-weight: 600; font-size: 13px; border: 1px solid var(--line); color: var(--ink); }
.lp-plan-btn.solid { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* ── CTA final ────────────────────────────────────────────── */
.lp-final { padding: 50px 0 56px; }
.lp-final-box { background: var(--ink); color: oklch(96% 0.01 70); border-radius: 22px; padding: 36px 26px; display: flex; flex-direction: column; gap: 22px; }
.lp-final-box h2 { font-family: 'Newsreader', serif; font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.lp-final-box p { margin: 0; font-size: 13.5px; color: oklch(78% 0.015 60); }
.lp-final-cta { text-align: center; background: var(--accent); color: var(--accent-ink); padding: 14px 22px; border-radius: 12px; font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ── Footer ───────────────────────────────────────────────── */
.lp-footer { border-top: 1px solid var(--line); padding: 24px 0; display: flex; flex-direction: column; gap: 12px; font-size: 12px; color: var(--ink-soft); }
.lp-footer-links { display: flex; gap: 18px; }

/* ── Desktop (≥860px) ─────────────────────────────────────── */
@media (min-width: 860px) {
  .lp-nav-links { display: flex; }
  .lp-hero { padding: 76px 0 88px; }
  .lp-hero-grid { flex-direction: row; align-items: center; gap: 60px; }
  .lp-hero-grid > div:first-child { flex: 1.1; }
  .lp-hero h1 { font-size: 46px; }
  .lp-hero p.lp-lead { font-size: 16.5px; max-width: 460px; }
  .lp-hero-ctas { flex-direction: row; }
  .lp-btn-primary, .lp-btn-ghost { padding: 15px 24px; }
  .lp-hero-visual { display: block; position: relative; flex: 0.8; height: 480px; }
  .lp-section { padding: 76px 0; }
  .lp-section-head h2 { font-size: 30px; }
  .lp-steps { flex-direction: row; gap: 26px; }
  .lp-step { flex: 1; }
  .lp-feature-grid { flex-direction: row; flex-wrap: wrap; }
  .lp-feature-card { flex: 1 1 calc(33.333% - 10px); min-width: 220px; }
  .lp-plans { flex-direction: row; align-items: stretch; }
  .lp-plan-card { flex: 1; }
  .lp-final-box { flex-direction: row; align-items: center; justify-content: space-between; padding: 50px 54px; }
  .lp-final-box h2 { font-size: 28px; max-width: 400px; }
  .lp-final-box p { max-width: 400px; }
  .lp-footer { flex-direction: row; align-items: center; justify-content: space-between; }
}
