/* =========================================================
   Lessonify — styles.css
   Acabado Apple + simplicidad Google. Verde acento = #1ed760.
   FIX (Bob/Ana): se agregan --text-2 y --bg-elev, usadas en
   .paywall-card/.lock-card/.faq .answer pero nunca definidas
   en el original (rompía esos bloques en free/pro).
   ========================================================= */

:root {
  --bg:            #0a0a0a;
  --bg-elevated:   #121212;
  --bg-elev:       #121212; /* alias de --bg-elevated (FIX) */
  --bg-card:       #181818;
  --bg-card-hover: #282828;
  --bg-inset:      #1f1f1f;

  --text:          #ffffff;
  --text-muted:    #b3b3b3;
  --text-2:        #b3b3b3; /* alias de --text-muted (FIX) */
  --text-faint:    #6a6a6a;

  --accent:        #1ed760;
  --accent-press:  #1abc54;
  --accent-deep:   #0a8043;
  --accent-on:     #001a08;
  --accent-soft:   rgba(30, 215, 96, 0.12);
  --accent-ring:   rgba(30, 215, 96, 0.35);
  --warn-soft:     rgba(241, 196, 15, 0.15);
  --danger-soft:   rgba(231, 76, 60, 0.15);

  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --warn:   #f1c40f;
  --danger: #e74c3c;
  --info:   #38bdf8;

  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-cta:  0 2px 8px rgba(30, 215, 96, 0.25), 0 8px 24px rgba(30, 215, 96, 0.3);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --ease-apple: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --motion-fast: 200ms;
}

:root[data-theme="light"] {
  --bg:            #fafafa;
  --bg-elevated:   #ffffff;
  --bg-elev:       #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #f2f2f2;
  --bg-inset:      #efefef;

  --text:       #0a0a0a;
  --text-muted: #5a5a5a;
  --text-2:     #5a5a5a;
  --text-faint: #8a8a8a;

  --accent:      #1ed760;
  --accent-press:#1abc54;
  --accent-deep: #0a8043;
  --accent-on:   #001a08;
  --accent-soft: rgba(30, 215, 96, 0.14);
  --accent-ring: rgba(30, 215, 96, 0.4);
  --warn-soft:   rgba(241, 196, 15, 0.18);
  --danger-soft: rgba(231, 76, 60, 0.18);

  --border:        rgba(0, 0, 0, 0.10);
  --border-strong: rgba(0, 0, 0, 0.20);

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-cta:  0 2px 8px rgba(30, 215, 96, 0.30), 0 8px 24px rgba(30, 215, 96, 0.35);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: contain;
}
body { min-height: 100vh; }
button { font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

/* APP SHELL */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: calc(72px + var(--safe-bottom));
}

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-faint);
}

.screen-header { padding: 20px 20px 4px; }
.screen-header .eyebrow { font-size: 12px; letter-spacing: 0.08em; }
.screen-header h2 { margin: 4px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }

.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15px; line-height: 1; border: 0; cursor: pointer;
  transition: background var(--motion-fast) var(--ease-apple), transform var(--motion-fast) var(--ease-apple);
}
.btn-primary { background: var(--accent); color: #000; box-shadow: var(--shadow-cta); }
.btn-primary:hover  { background: var(--accent-press); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn-secondary:hover  { background: var(--bg-card-hover); }
.btn-secondary:active { transform: scale(0.98); }

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 10, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  padding: 12px 16px 8px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.topbar .back { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: background var(--motion-fast) var(--ease-apple); }
.topbar .back:hover  { background: var(--bg-card-hover); }
.topbar .back:active { background: var(--bg-inset); }
.topbar h1 {
  margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topbar .icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text-muted); transition: background var(--motion-fast) var(--ease-apple), color var(--motion-fast) var(--ease-apple); }
.topbar .icon-btn:hover { background: var(--bg-card-hover); color: var(--text); }

.loadbar { height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 30% 100%; background-repeat: no-repeat; animation: load 1.2s ease-in-out infinite; }
@keyframes load { 0% { background-position: -30% 0; } 100% { background-position: 130% 0; } }
.loadbar.is-hidden { display: none; }

.source-pill {
  position: fixed; top: 60px; right: 12px; z-index: 11;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 8px; border-radius: var(--radius-pill);
  background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border);
  pointer-events: none;
}
.source-pill.fetch    { color: var(--accent); border-color: var(--accent); }
.source-pill.embedded { color: var(--warn); border-color: var(--warn); }

.screen { display: none; }
.screen.is-active { display: block; }
.screen-body { padding: 16px; }

/* HOME */
.home-hero { padding: 32px 20px 24px; background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 70%); }
.home-hero .eyebrow { font-size: 12px; letter-spacing: 2px; color: var(--accent); margin-bottom: 12px; }
.home-hero h1 { font-size: 36px; font-weight: 800; line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.5px; }
.home-hero h1 span { color: var(--accent); }
.home-hero .subtitle { font-size: 15px; line-height: 1.5; color: var(--text-muted); margin: 0 0 20px; }
.home-hero .btn-primary { min-height: 48px; padding: 0 24px; font-size: 16px; color: var(--accent-on); box-shadow: none; }

.home-social { margin: 24px 16px 16px; padding: 20px; border-radius: var(--radius-lg); background: var(--accent-soft); border: 1px solid var(--accent-ring); display: flex; gap: 16px; }
.home-stat { flex: 1; min-width: 0; }
.home-stat .big { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--text); }
.home-stat .label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.resume-card { margin: 0 16px 20px; padding: 14px; border-radius: var(--radius); background: var(--bg-card); display: flex; align-items: center; gap: 12px; cursor: pointer; transition: background var(--motion-fast) var(--ease-apple); }
.resume-card:hover  { background: var(--bg-card-hover); }
.resume-card:active { background: var(--bg-inset); }
.resume-cover { width: 56px; height: 56px; flex: 0 0 auto; border-radius: var(--radius-sm); display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%); color: #001a08; }
.resume-info { flex: 1; min-width: 0; }
.resume-info .eyebrow { font-size: 10px; letter-spacing: 0.08em; color: var(--accent); }
.resume-info .title { font-size: 15px; font-weight: 700; margin: 2px 0 2px; }
.resume-info .sub   { font-size: 12px; color: var(--text-muted); }
.resume-play { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); color: #000; display: grid; place-items: center; transition: transform var(--motion-fast) var(--ease-apple), background var(--motion-fast) var(--ease-apple); }
.resume-play:hover  { transform: scale(1.06); }
.resume-play:active { transform: scale(0.96); }
.resume-play svg { width: 18px; height: 18px; }

.section-title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin: 8px 20px 4px; }
.section-sub { font-size: 12px; color: var(--text-muted); margin: 0 20px 12px; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 16px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }

.rec-card { flex: 0 0 160px; min-width: 0; background: var(--bg-card); border-radius: var(--radius); padding: 10px; cursor: pointer; transition: background var(--motion-fast) var(--ease-apple); }
.rec-card:hover  { background: var(--bg-card-hover); }
.rec-card:active { background: var(--bg-inset); }
.rec-card .cover { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); margin-bottom: 8px; display: grid; place-items: center; font-size: 36px; color: rgba(0,0,0,0.8); }
.rec-card .ttl { font-size: 13px; font-weight: 700; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-card .sub { font-size: 11px; color: var(--text-muted); }

/* CATÁLOGO */
.catalog-header { padding: 20px 20px 8px; }
.catalog-header .eyebrow { font-size: 12px; letter-spacing: 0.08em; margin-bottom: 6px; }
.catalog-header h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.catalog-header p { margin: 0; color: var(--text-muted); font-size: 14px; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--bg-card); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background var(--motion-fast) var(--ease-apple), color var(--motion-fast) var(--ease-apple); }
.chip:hover { background: var(--bg-card-hover); }
.chip.is-active { background: var(--accent); color: #000; }

.lesson-grid { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 12px 20px 24px; }
@media (min-width: 560px) { .lesson-grid { grid-template-columns: 1fr 1fr; } }
.lesson-card { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--bg-card); border-radius: var(--radius); transition: background var(--motion-fast) var(--ease-apple); cursor: pointer; text-align: left; width: 100%; min-width: 0; }
.lesson-card:hover, .lesson-card:focus-visible { background: var(--bg-card-hover); outline: none; }
.lesson-cover { width: 64px; height: 64px; flex: 0 0 auto; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%); display: grid; place-items: center; font-size: 26px; color: #001a08; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
.lesson-cover.cover-2 { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); color: #1f1300; }
.lesson-cover.cover-3 { background: linear-gradient(135deg, #ec4899 0%, #831843 100%); color: #2a0010; }
.lesson-cover.cover-4 { background: linear-gradient(135deg, #38bdf8 0%, #0c4a6e 100%); color: #001a2a; }
.lesson-cover.cover-5 { background: linear-gradient(135deg, #a78bfa 0%, #4c1d95 100%); color: #10001f; }
.lesson-meta { flex: 1; min-width: 0; }
.lesson-meta .title { font-size: 15px; font-weight: 700; margin: 0 0 2px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson-meta .sub { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.lesson-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); display: inline-block; }
.lesson-progress { width: 36px; flex: 0 0 auto; display: grid; place-items: center; }
.progress-ring { --p: 0; width: 36px; height: 36px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--bg-inset) 0); display: grid; place-items: center; }
.progress-ring::after { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-card); }
.progress-ring > span { position: relative; z-index: 1; font-size: 10px; font-weight: 700; color: var(--text); }
.lesson-card:hover .progress-ring::after { background: var(--bg-card-hover); }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 40px 20px; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty-state .t { font-size: 15px; font-weight: 700; color: var(--text); }
.empty-state .s { font-size: 13px; color: var(--text-muted); }
.empty-state button { margin-top: 12px; background: var(--bg-card); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 13px; cursor: pointer; }
.empty-state button:hover { background: var(--bg-card-hover); }

/* DETALLE LECCIÓN */
.lesson-hero { padding: 24px 16px 16px; display: flex; gap: 16px; align-items: flex-end; }
.lesson-hero .cover { width: 120px; height: 120px; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,0.6); flex: 0 0 auto; display: grid; place-items: center; font-size: 52px; }
.lesson-hero .info { min-width: 0; }
.lesson-hero .eyebrow { margin-bottom: 4px; }
.lesson-hero h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.lesson-hero .sub { font-size: 13px; color: var(--text-muted); }

.lesson-actions { display: flex; align-items: center; gap: 16px; padding: 8px 16px 20px; }
.btn-play-primary { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #000; display: grid; place-items: center; box-shadow: 0 6px 20px var(--accent-ring); transition: transform var(--motion-fast) var(--ease-apple), background var(--motion-fast) var(--ease-apple); }
.btn-play-primary:hover  { background: var(--accent-press); transform: scale(1.04); }
.btn-play-primary:active { transform: scale(0.98); }
.btn-play-primary svg { width: 22px; height: 22px; }
.icon-action { color: var(--text-muted); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: color var(--motion-fast) var(--ease-apple), background var(--motion-fast) var(--ease-apple); }
.icon-action:hover { color: var(--text); background: var(--bg-card-hover); }

.phrase-list { list-style: none; margin: 0; padding: 0 8px 24px; }
.phrase-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--motion-fast) var(--ease-apple); }
.phrase-row:hover  { background: var(--bg-card-hover); }
.phrase-row:active { background: var(--bg-inset); }
.phrase-index { width: 28px; flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--text-faint); text-align: center; font-variant-numeric: tabular-nums; }
.phrase-text { flex: 1; min-width: 0; }
.phrase-text .en { font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phrase-text .es { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phrase-status { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); }
.status-mastered    { color: var(--accent); }
.status-mastered    .status-dot { background: var(--accent); }
.status-inprogress  { color: var(--warn); }
.status-inprogress  .status-dot { background: var(--warn); }
.status-weak        { color: var(--danger); }
.status-weak        .status-dot { background: var(--danger); }

/* PRÁCTICA */
.practice-screen { padding-bottom: 120px; position: relative; }
.practice-es { padding: 28px 20px 4px; }
.practice-es .eyebrow { margin-bottom: 4px; }
.practice-es h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--text-muted); }
.practice-en { padding: 12px 20px 8px; }
.practice-en .eyebrow { color: var(--accent); margin-bottom: 8px; }
.word-row { display: flex; flex-wrap: wrap; gap: 6px; line-height: 1.6; }
.word { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; padding: 4px 8px; border-radius: 6px; transition: background var(--motion-fast) var(--ease-apple), color var(--motion-fast) var(--ease-apple); cursor: pointer; }
.word:hover { background: var(--bg-card-hover); }
.word.is-speaking { background: var(--accent); color: #000; }
.practice-ipa { padding: 4px 20px 0; font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }

.practice-controls { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 28px 20px 16px; }
.btn-circle { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--bg-card); color: var(--text); display: grid; place-items: center; transition: background var(--motion-fast) var(--ease-apple), transform var(--motion-fast) var(--ease-apple); }
.btn-circle:hover  { background: var(--bg-card-hover); }
.btn-circle:active { transform: scale(0.96); }
.btn-circle svg { width: 22px; height: 22px; }
.btn-circle .dot { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); pointer-events: none; display: none; }
.btn-circle.has-user-audio .dot { display: block; }
.btn-circle.is-replaying { background: var(--accent); color: #000; transform: scale(1.05); }
.btn-circle.is-replaying:hover { background: var(--accent); }
.btn-circle.is-replaying svg { filter: drop-shadow(0 0 4px rgba(0,0,0,0.3)); }
.btn-circle.is-recording { opacity: 0.5; cursor: not-allowed; }
.btn-mic { width: 80px; height: 80px; background: var(--accent); color: #000; box-shadow: var(--shadow-cta); -webkit-tap-highlight-color: transparent; }
.btn-mic:hover { background: var(--accent-press); }
.btn-mic svg { width: 32px; height: 32px; }
.btn-mic.is-recording { background: var(--danger); color: #fff; box-shadow: 0 8px 28px rgba(231, 76, 60, 0.4); animation: pulse 1.4s ease-in-out infinite; }
.btn-mic.is-locked { background: var(--bg-card); color: var(--text-muted); box-shadow: none; cursor: not-allowed; }
.btn-mic.is-locked:hover { background: var(--bg-card-hover); }
.btn-mic.is-locked::before { content: "🔒"; position: absolute; bottom: -6px; right: -6px; width: 24px; height: 24px; background: var(--warn); color: #1f1500; border-radius: 50%; display: grid; place-items: center; font-size: 13px; box-shadow: 0 2px 6px rgba(0,0,0,0.4); }

/* Paywall in-place: un solo lenguaje de bloqueo (Ana). El overlay explica;
   el mic solo se atenúa (sin badge propio) para no duplicar el mensaje. */
.paywall-overlay { position: absolute; inset: auto 0 0 0; z-index: 5; display: flex; align-items: flex-end; justify-content: center; padding: 16px; pointer-events: none; }
.paywall-overlay[hidden] { display: none; }
.paywall-overlay::before { content: ""; position: absolute; inset: -160px 0 0 0; background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.78) 38%, rgba(10,10,10,0.92) 100%); pointer-events: auto; }
:root[data-theme="light"] .paywall-overlay::before { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 38%, rgba(255,255,255,0.96) 100%); }
.paywall-card { position: relative; pointer-events: auto; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 20px 18px; box-shadow: var(--shadow-card); max-width: 420px; width: 100%; text-align: center; }
.paywall-emoji { font-size: 28px; line-height: 1; margin-bottom: 8px; }
.paywall-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 6px; }
.paywall-body { font-size: 14px; color: var(--text-2); margin: 0 0 14px; line-height: 1.4; }
.paywall-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.paywall-actions .btn-link { background: transparent; border: 0; color: var(--text-2); font-size: 14px; padding: 8px; min-height: 36px; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.paywall-actions .btn-link:active { color: var(--text); }
.btn-mic { position: relative; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

.mic-meter { display: flex; align-items: center; gap: 10px; padding: 0 20px 8px; max-width: 240px; margin: 0 auto; }
.mic-meter .label { font-size: 11px; color: var(--text-faint); font-weight: 700; letter-spacing: 0.08em; }
.mic-meter .bar { flex: 1; height: 4px; background: var(--bg-inset); border-radius: 2px; overflow: hidden; }
.mic-meter .bar > div { height: 100%; background: var(--accent); width: 30%; transition: width 80ms linear; }

.live-caption { margin: 8px 20px; padding: 12px 14px; background: var(--bg-card); border-radius: var(--radius); color: var(--text-muted); font-size: 14px; min-height: 44px; transition: border var(--motion-fast) var(--ease-apple); }
.live-caption.is-listening { border: 1px solid var(--accent); color: var(--text); }
.live-caption.is-error { border: 1px solid var(--danger); color: var(--danger); background: rgba(231, 76, 60, 0.08); }
.live-caption .placeholder { color: var(--text-faint); font-style: italic; }
.live-caption .interim { color: var(--text-faint); font-style: italic; }

.diff-card { margin: 12px 20px 0; padding: 14px 16px; background: var(--bg-card); border-radius: var(--radius); }
.diff-card .row { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; }
.diff-card .row + .row { border-top: 1px solid var(--border); }
.diff-card .lbl { flex: 0 0 70px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.diff-card .text { flex: 1; font-size: 14px; line-height: 1.5; }
.diff-match { color: var(--accent); }
.diff-miss  { color: var(--danger); }
.diff-extra { color: var(--warn); }

.score-line { margin: 14px 20px 0; padding: 14px 16px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; gap: 14px; }
.score-line .big { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.score-line .big.good { color: var(--accent); }
.score-line .big.mid  { color: var(--warn); }
.score-line .big.bad  { color: var(--danger); }
.score-line .meta { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.score-line .meta b { color: var(--text); font-weight: 700; }

.next-cta-wrap { position: fixed; left: 0; right: 0; bottom: calc(72px + var(--safe-bottom)); padding: 12px 16px; background: linear-gradient(to top, var(--bg) 60%, rgba(10,10,10,0)); z-index: 8; display: flex; justify-content: center; pointer-events: none; }
.btn-next { pointer-events: auto; background: var(--accent); color: #000; font-weight: 700; font-size: 15px; padding: 14px 24px; border-radius: var(--radius-pill); box-shadow: var(--shadow-cta); transition: transform var(--motion-fast) var(--ease-apple), background var(--motion-fast) var(--ease-apple); }
.btn-next:hover  { background: var(--accent-press); }
.btn-next:active { transform: scale(0.98); }
.is-hidden { display: none !important; }

/* PROGRESO */
.progress-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 20px 8px; }
.stat-tile { background: var(--bg-card); border-radius: var(--radius); padding: 14px; }
.stat-tile .value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.stat-tile .label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin-top: 4px; }
.stat-tile.accent .value { color: var(--accent); }

.heatmap-wrap { padding: 0 20px 16px; }
.heatmap { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 14px); grid-auto-columns: 14px; gap: 3px; overflow-x: auto; padding: 8px 0 4px; scrollbar-width: none; }
.heatmap::-webkit-scrollbar { display: none; }
.heatmap .cell { width: 14px; height: 14px; border-radius: 3px; background: var(--bg-inset); transition: transform 80ms ease; }
.heatmap .cell:hover { transform: scale(1.25); }
.heatmap .cell.l1 { background: rgba(30, 215, 96, 0.25); }
.heatmap .cell.l2 { background: rgba(30, 215, 96, 0.50); }
.heatmap .cell.l3 { background: rgba(30, 215, 96, 0.75); }
.heatmap .cell.l4 { background: var(--accent); }
.heatmap-legend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-faint); padding-top: 8px; }
.heatmap-legend .cell { width: 10px; height: 10px; border-radius: 2px; }

.progress-lessons { padding: 0 20px 24px; }
.progress-lesson-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius); cursor: pointer; transition: background var(--motion-fast) var(--ease-apple); }
.progress-lesson-row:hover  { background: var(--bg-card-hover); }
.progress-lesson-row:active { background: var(--bg-inset); }
.progress-lesson-row .cover { width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; font-size: 20px; flex: 0 0 auto; }
.progress-lesson-row .info { flex: 1; min-width: 0; }
.progress-lesson-row .ttl { font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.progress-lesson-row .bar-track { width: 100%; height: 4px; background: var(--bg-inset); border-radius: 2px; overflow: hidden; }
.progress-lesson-row .bar-track > div { height: 100%; background: var(--accent); }
.progress-lesson-row .pct { font-size: 12px; font-weight: 700; color: var(--text-muted); flex: 0 0 auto; font-variant-numeric: tabular-nums; }

.progress-pro, .progress-locked { padding: 0 20px 24px; }
.progress-pro[hidden], .progress-locked[hidden] { display: none; }
.chart-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 14px 10px; margin-bottom: 12px; box-shadow: var(--shadow-card); }
.chart-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); font-weight: 700; margin-bottom: 6px; }
.chart-card canvas { width: 100%; height: 200px; display: block; }
.export-row { display: flex; gap: 8px; }
.export-row .btn-secondary { flex: 1; }
.lock-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 20px; text-align: center; box-shadow: var(--shadow-card); }
.lock-emoji { font-size: 28px; line-height: 1; margin-bottom: 8px; }
.lock-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 6px; }
.lock-body { font-size: 14px; color: var(--text-2); margin: 0 0 14px; line-height: 1.4; }

/* AJUSTES */
.settings-group { margin: 0 0 8px; }
.settings-group .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); font-weight: 700; padding: 12px 20px 6px; }
.settings-list { margin: 0 20px; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; }
.settings-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; text-align: left; transition: background var(--motion-fast) var(--ease-apple); border-bottom: 1px solid var(--border); }
.settings-item:last-child { border-bottom: 0; }
.settings-item:hover  { background: var(--bg-card-hover); }
.settings-item:active { background: var(--bg-inset); }
.settings-item .icon { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; flex: 0 0 auto; color: #000; font-size: 16px; }
.settings-item .icon.theme   { background: linear-gradient(135deg, #a78bfa, #4c1d95); color: #fff; }
.settings-item .icon.voice   { background: linear-gradient(135deg, #38bdf8, #0c4a6e); color: #fff; }
.settings-item .icon.account { background: linear-gradient(135deg, #1ed760, #0a8043); color: #001a08; }
.settings-item .icon.shortcut{ background: linear-gradient(135deg, #f59e0b, #b45309); color: #1f1300; }
.settings-item .icon.data    { background: linear-gradient(135deg, #ec4899, #831843); color: #fff; }
.settings-item .icon.lang    { background: linear-gradient(135deg, #f1c40f, #8a6a00); color: #1f1500; }
.settings-item .label-text { flex: 1; min-width: 0; }
.settings-item .label-text .t { font-size: 14px; font-weight: 600; color: var(--text); }
.settings-item .label-text .s { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.settings-item .chev { color: var(--text-faint); flex: 0 0 auto; }
.settings-item .value { font-size: 13px; color: var(--text-muted); flex: 0 0 auto; margin-right: 6px; }

.sub-content { padding: 16px; }
.sub-section { margin: 0 0 8px; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; }
.sub-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--border); }
.sub-row:last-child { border-bottom: 0; }
.sub-row .lbl { flex: 1; }
.sub-row .lbl .t { font-size: 14px; font-weight: 600; }
.sub-row .lbl .s { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.switch { position: relative; width: 42px; height: 24px; background: var(--bg-inset); border-radius: 12px; flex: 0 0 auto; transition: background var(--motion-fast) var(--ease-apple); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 140ms ease; }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(18px); }

.styled-select { background: var(--bg-inset); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 13px; font-family: inherit; flex: 0 0 auto; }

.slider-row { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.slider-row .top { display: flex; align-items: baseline; justify-content: space-between; }
.slider-row .top .t { font-size: 14px; font-weight: 600; }
.slider-row .top .v { font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; width: 100%; height: 4px; background: var(--bg-inset); border-radius: 2px; outline: 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; background: var(--accent); border-radius: 50%; cursor: pointer; box-shadow: 0 2px 6px var(--accent-ring); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; background: var(--accent); border-radius: 50%; cursor: pointer; border: 0; }

.voice-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--motion-fast) var(--ease-apple); }
.voice-row:last-child { border-bottom: 0; }
.voice-row:hover { background: var(--bg-card-hover); }
.voice-row .v-info { flex: 1; min-width: 0; }
.voice-row .v-name { font-size: 14px; font-weight: 600; }
.voice-row .v-meta { font-size: 11px; color: var(--text-muted); }
.voice-row .check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--text-faint); flex: 0 0 auto; }
.voice-row.selected .check { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px var(--bg-card); }
.voice-row.is-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.voice-row .v-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); background: var(--bg-card); border-radius: 8px; }
#voiceResolvedHint { margin: 0 14px 12px; font-size: 12px; color: var(--text-muted); }
#voiceResolvedHint b { color: var(--text); font-weight: 600; }
.sub-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); font-weight: 700; margin: 0 0 8px; }

.shortcut-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.shortcut-row:last-child { border-bottom: 0; }
.shortcut-row .lbl { flex: 1; font-size: 14px; font-weight: 600; }
.kbd { display: inline-block; padding: 4px 8px; background: var(--bg-inset); border: 1px solid var(--border-strong); border-radius: 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text); min-width: 28px; text-align: center; }

.btn-danger { display: block; width: calc(100% - 32px); margin: 16px; padding: 14px; background: rgba(231, 76, 60, 0.1); color: var(--danger); border: 1px solid rgba(231, 76, 60, 0.3); border-radius: var(--radius); font-weight: 700; font-size: 14px; transition: background var(--motion-fast) var(--ease-apple); }
.btn-danger:hover  { background: rgba(231, 76, 60, 0.18); }
.btn-danger:active { background: rgba(231, 76, 60, 0.25); }

.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-bottom)); transform: translateX(-50%); background: var(--bg-elevated); color: var(--text); padding: 12px 18px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); font-size: 13px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; z-index: 30; }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* CREAR LECCIÓN */
.create-card { margin: 0 16px 8px; padding: 16px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(30, 215, 96, 0.04) 100%); border: 1.5px dashed var(--accent); display: flex; align-items: center; gap: 14px; cursor: pointer; transition: background 150ms ease, transform 150ms ease; text-align: left; width: calc(100% - 32px); }
.create-card:hover  { background: var(--accent-soft); transform: translateY(-1px); }
.create-card:active { transform: scale(0.99); }
.create-card .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #000; display: grid; place-items: center; font-size: 22px; font-weight: 700; flex: 0 0 auto; }
.create-card .info { flex: 1; min-width: 0; }
.create-card .info .t { font-size: 14px; font-weight: 700; color: var(--text); }
.create-card .info .s { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.create-card .arrow { color: var(--accent); flex: 0 0 auto; }

.create-card.is-locked, .rec-card.is-locked { position: relative; }
.create-card.is-locked::after, .rec-card.is-locked::after { content: "🔒 Pro"; position: absolute; top: 10px; right: 10px; padding: 2px 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #001a08; background: var(--accent); border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,0.25); pointer-events: none; }
.create-card.is-locked .ic, .rec-card.is-locked .cover { filter: grayscale(0.4) opacity(0.85); }

.pro-paywall { margin: 0 16px 16px; padding: 14px 16px; background: linear-gradient(135deg, var(--accent-soft), rgba(30, 215, 96, 0.04)); border: 1px solid var(--accent-ring); border-radius: 12px; color: var(--text); font-size: 13px; line-height: 1.4; }
.pro-paywall .t { font-weight: 700; margin-bottom: 4px; display: block; }
.pro-paywall .s { color: var(--text-muted); }
.pro-paywall button { margin-top: 10px; padding: 8px 14px; background: var(--accent); color: #000; border: 0; border-radius: 999px; font-weight: 700; cursor: pointer; }

.auth-pill .plan-tag { margin-left: 6px; padding: 1px 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #001a08; background: var(--accent); border-radius: 999px; }

.create-form-group { margin-bottom: 20px; }
.create-form-group .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); font-weight: 700; margin-bottom: 8px; }
.create-form-group textarea { width: 100%; min-height: 130px; padding: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 14px; line-height: 1.5; resize: vertical; outline: 0; transition: border-color var(--motion-fast) var(--ease-apple); }
.create-form-group textarea:focus { border-color: var(--accent); }
.create-form-group textarea::placeholder { color: var(--text-faint); }
.create-form-group .hint { font-size: 11px; color: var(--text-faint); margin-top: 6px; line-height: 1.4; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

.create-submit { position: fixed; left: 0; right: 0; bottom: calc(72px + var(--safe-bottom)); padding: 12px 16px; background: linear-gradient(to top, var(--bg) 60%, rgba(10,10,10,0)); display: flex; justify-content: center; z-index: 8; }
.create-submit button { width: 100%; max-width: 360px; background: var(--accent); color: #000; font-weight: 700; font-size: 15px; padding: 14px 24px; border-radius: var(--radius-pill); box-shadow: var(--shadow-cta); transition: background var(--motion-fast) var(--ease-apple), transform var(--motion-fast) var(--ease-apple); }
.create-submit button:hover:not(:disabled)  { background: var(--accent-press); }
.create-submit button:active                { transform: scale(0.98); }
.create-submit button:disabled { background: var(--bg-inset); color: var(--text-faint); box-shadow: none; cursor: not-allowed; }

.creating-wrap { padding: 32px 20px; text-align: center; }
.creating-icon { width: 88px; height: 88px; margin: 8px auto 16px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, rgba(30,215,96,0.15) 70%, transparent 100%); display: grid; place-items: center; font-size: 40px; animation: creating-pulse 1.8s ease-in-out infinite; }
@keyframes creating-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--accent-ring); } 50% { transform: scale(1.05); box-shadow: 0 0 0 16px transparent; } }
.creating-wrap h2 { margin: 8px 0 4px; font-size: 20px; font-weight: 800; }
.creating-wrap .sub { color: var(--text-muted); font-size: 13px; margin: 0 0 28px; }
.creating-steps { list-style: none; margin: 0 auto; padding: 0; text-align: left; max-width: 340px; }
.creating-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg-card); border-radius: var(--radius); margin-bottom: 8px; font-size: 13px; color: var(--text-muted); transition: background 200ms ease, color 200ms ease, opacity 200ms ease; opacity: 0.5; }
.creating-steps li.is-done { background: var(--accent-soft); color: var(--text); opacity: 1; }
.creating-steps li.is-active { background: var(--bg-card-hover); color: var(--text); opacity: 1; }
.creating-steps li .ic { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--bg-inset); color: var(--text-faint); }
.creating-steps li.is-done .ic { background: var(--accent); color: #000; }
.creating-steps li.is-active .ic { background: var(--text-muted); color: var(--bg); }
.creating-steps li .lbl { flex: 1; }
.creating-steps li .bar { flex: 0 0 50px; height: 3px; background: var(--bg-inset); border-radius: 2px; overflow: hidden; }
.creating-steps li .bar > div { height: 100%; background: var(--accent); width: 0%; transition: width 100ms linear; }

.preview-banner { margin: 12px 16px 0; padding: 12px 14px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); font-size: 12px; color: var(--text); display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.preview-banner .ic { font-size: 18px; flex: 0 0 auto; line-height: 1; margin-top: 1px; }
.preview-actions { display: flex; gap: 10px; padding: 16px; margin-top: 4px; }
.preview-actions .btn-secondary { flex: 1; font-size: 14px; }
.preview-actions .btn-primary   { flex: 2; font-size: 14px; }
.preview-actions button:active  { transform: scale(0.99); }

/* BOTTOM NAV */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; padding-bottom: var(--safe-bottom); height: calc(56px + var(--safe-bottom)); background: var(--bg-elevated); border-top: 1px solid var(--border); display: flex; z-index: 9; }
.bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-muted); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; transition: color var(--motion-fast) var(--ease-apple); }
.bottom-nav button:hover { color: var(--text); }
.bottom-nav button.is-active { color: var(--text); }
.bottom-nav button svg { width: 22px; height: 22px; }

.empty { padding: 40px 24px; text-align: center; color: var(--text-muted); }
.empty .icon { font-size: 40px; margin-bottom: 8px; opacity: 0.6; }

/* AUTH PILL */
.auth-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; transition: background var(--motion-fast) var(--ease-apple), border-color var(--motion-fast) var(--ease-apple); flex: 0 0 auto; }
.auth-pill.visitor { background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border); }
.auth-pill.visitor:hover { background: var(--bg-card-hover); color: var(--text); }
.auth-pill.registered { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); }
.auth-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.dev-toggle { position: fixed; right: 12px; bottom: calc(80px + var(--safe-bottom)); z-index: 20; background: rgba(241, 196, 15, 0.12); color: var(--warn); border: 1px solid rgba(241, 196, 15, 0.4); border-radius: var(--radius-pill); padding: 6px 10px; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; transition: background var(--motion-fast) var(--ease-apple); }
.dev-toggle:hover { background: rgba(241, 196, 15, 0.2); }
.dev-toggle.is-hidden { display: none; }

/* MODAL REGISTRO */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); display: none; align-items: flex-end; justify-content: center; z-index: 50; backdrop-filter: blur(4px); }
.modal-backdrop.is-on { display: flex; }
.modal-card { width: 100%; max-width: 480px; background: var(--bg-elevated); border-top-left-radius: 24px; border-top-right-radius: 24px; border-top: 1px solid var(--border-strong); padding: 24px 20px calc(24px + var(--safe-bottom)); animation: modalSlide 200ms ease-out; }
@keyframes modalSlide { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-card .close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; color: var(--text-muted); display: grid; place-items: center; }
.modal-card .close:hover { background: var(--bg-card-hover); color: var(--text); }
.modal-card .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 28px; margin-bottom: 12px; }
.modal-card h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.modal-card p { margin: 0 0 16px; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.modal-card .actions { display: flex; flex-direction: column; gap: 10px; }
.modal-card .btn-primary, .modal-card .btn-secondary { width: 100%; font-size: 14px; }
.modal-card .divider { display: flex; align-items: center; gap: 10px; color: var(--text-faint); font-size: 11px; margin: 6px 0; }
.modal-card .divider::before, .modal-card .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* LANDING SCREEN */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); display: none; align-items: flex-end; justify-content: center; z-index: 50; backdrop-filter: blur(4px); padding: 16px; }
.modal-overlay.is-on { display: flex; }
.modal-card.lesson-complete { max-width: 420px; text-align: center; padding: 28px 24px 20px; }
.lesson-complete .lc-emoji { font-size: 56px; margin: 4px 0 8px; line-height: 1; }
.lesson-complete h2 { font-size: 22px; font-weight: 800; margin: 4px 0 6px; letter-spacing: -0.01em; }
.lesson-complete .lc-sub { color: var(--text-muted); font-size: 14px; margin: 0 0 18px; }
.lesson-complete .lc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.lesson-complete .lc-stat { background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 8px; }
.lesson-complete .lc-stat-value { font-size: 22px; font-weight: 800; color: var(--accent); }
.lesson-complete .lc-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.lesson-complete .btn-primary, .lesson-complete .btn-secondary { width: 100%; margin: 6px 0; }
.lesson-complete .btn-tertiary { width: 100%; background: transparent; color: var(--text-muted); border: none; padding: 10px; font-size: 13px; cursor: pointer; margin-top: 4px; }
.lesson-complete .btn-tertiary:hover { color: var(--text); }

.btn-share-score { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; background: transparent; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer; }
.btn-share-score:hover { background: var(--accent); color: #000; }
.btn-share-score.is-hidden { display: none; }

.pill-btn.whatsapp, .btn-secondary.whatsapp { background: #25D366; color: #fff; border-color: #25D366; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pill-btn.whatsapp svg { width: 16px; height: 16px; }
.pill-btn.whatsapp:hover, .btn-secondary.whatsapp:hover { background: #1da851; color: #fff; }

.landing-hero { padding: 16px 20px 24px; text-align: center; }
.landing-cover { width: 120px; height: 120px; margin: 4px auto 16px; border-radius: var(--radius-lg); box-shadow: 0 12px 40px rgba(0,0,0,0.6); display: grid; place-items: center; font-size: 52px; }
.landing-hero h1 { margin: 6px 0 8px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.landing-hero .tagline { margin: 0 0 18px; color: var(--text-muted); font-size: 14px; line-height: 1.5; max-width: 360px; margin-left: auto; margin-right: auto; }
.btn-play-all { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; background: var(--accent); color: #000; border-radius: var(--radius-pill); font-weight: 700; font-size: 15px; box-shadow: var(--shadow-cta); transition: background var(--motion-fast) var(--ease-apple), transform var(--motion-fast) var(--ease-apple); }
.btn-play-all:hover  { background: var(--accent-press); }
.btn-play-all:active { transform: scale(0.99); }
.btn-play-all.is-playing { background: var(--danger); color: #fff; box-shadow: 0 6px 20px rgba(231,76,60,0.4); }
.btn-play-all svg { width: 18px; height: 18px; }
.btn-play-all .meta { font-weight: 600; opacity: 0.75; font-size: 13px; }

.phrase-of-day { margin: 0 20px 16px; padding: 18px; background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(30,215,96,0.02) 100%); border: 1px solid var(--accent); border-radius: var(--radius-lg); }
.phrase-of-day .label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.phrase-of-day .en { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 6px; }
.phrase-of-day .es { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.phrase-of-day .ipa { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-bottom: 14px; }
.phrase-of-day .actions { display: flex; gap: 8px; }
.phrase-of-day .pill-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; background: var(--bg-card); color: var(--text); border-radius: var(--radius-pill); font-weight: 700; font-size: 13px; transition: background var(--motion-fast) var(--ease-apple); }
.phrase-of-day .pill-btn:hover { background: var(--bg-card-hover); }
.phrase-of-day .pill-btn.primary { background: var(--accent); color: #000; }
.phrase-of-day .pill-btn.primary:hover { background: var(--accent-press); }
.phrase-of-day .pill-btn svg { width: 16px; height: 16px; }

.social-proof { margin: 0 20px 20px; padding: 14px 16px; background: var(--bg-card); border-radius: var(--radius); display: flex; align-items: center; gap: 12px; }
.social-proof .avatars { display: flex; flex: 0 0 auto; }
.social-proof .avatars span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #000; }
.social-proof .avatars span:nth-child(1) { background: var(--accent); margin-left: 0; }
.social-proof .avatars span:nth-child(2) { background: #f59e0b; }
.social-proof .avatars span:nth-child(3) { background: #ec4899; }
.social-proof .avatars span:nth-child(4) { background: #38bdf8; }
.social-proof .text { flex: 1; min-width: 0; }
.social-proof .text .t { font-size: 13px; font-weight: 700; }
.social-proof .text .s { font-size: 11px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }

.landing-phrases { padding: 0 20px 24px; }
.landing-phrase-row { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-card); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; transition: background var(--motion-fast) var(--ease-apple); }
.landing-phrase-row:hover  { background: var(--bg-card-hover); }
.landing-phrase-row.is-speaking { background: var(--accent-soft); border: 1px solid var(--accent); }
.landing-phrase-row .idx { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: var(--bg-inset); color: var(--text-muted); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.landing-phrase-row.is-speaking .idx { background: var(--accent); color: #000; }
.landing-phrase-row .body { flex: 1; min-width: 0; }
.landing-phrase-row .body .en { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.landing-phrase-row .body .es { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.landing-phrase-row .play { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; background: var(--bg-inset); color: var(--text); border: none; display: grid; place-items: center; cursor: pointer; }
.landing-phrase-row .play:hover { background: var(--bg-card-hover); }
.landing-phrase-row .play svg { width: 16px; height: 16px; }
.landing-phrase-row .cta { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--accent); margin-left: 4px; }
@media (max-width: 360px) { .landing-phrase-row .cta { display: none; } }

/* SCREEN-LESSON (registrado) */
.lesson-hero.aligned { display: flex; align-items: flex-start; gap: 20px; padding: 24px 20px 16px; }
.lesson-hero .lesson-cover { width: 120px; height: 120px; flex: 0 0 auto; border-radius: var(--radius-lg); display: grid; place-items: center; font-size: 56px; line-height: 1; box-shadow: var(--shadow-card); }
.lesson-hero .lesson-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lesson-hero .lesson-info h1 { margin: 2px 0 4px; font-size: 24px; line-height: 1.15; font-weight: 700; }
.lesson-hero .lesson-info .lesson-tagline { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.4; }
@media (max-width: 360px) {
  .lesson-hero.aligned { flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 20px 16px 12px; }
  .lesson-hero .lesson-cover { width: 96px; height: 96px; font-size: 44px; }
  .lesson-hero .lesson-info { align-items: center; }
}

.lesson-progress-panel { display: flex; gap: 8px; margin-top: 10px; padding: 10px 12px; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); }
.lesson-progress-panel .lp-stat { flex: 1; min-width: 0; text-align: center; }
.lesson-progress-panel .lp-big { font-size: 18px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.lesson-progress-panel .lp-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; line-height: 1.25; }

.lesson-cta-row { display: flex; align-items: center; gap: 12px; padding: 4px 20px 16px; }
.lesson-cta-row .btn-primary { flex: 1; }
.lesson-cta-row .icon-action { flex: 0 0 auto; }

.lesson-featured { margin: 0 20px 16px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.lesson-featured .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 6px; }
.lesson-featured .en { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.lesson-featured .es { font-size: 14px; color: var(--text-muted); margin-bottom: 2px; }
.lesson-featured .ipa { font-size: 12px; color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin-bottom: 10px; }
.lesson-featured .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lesson-featured .pill-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bg-inset); color: var(--text); border: 1px solid var(--border); cursor: pointer; text-decoration: none; transition: background var(--motion-fast) var(--ease-apple); }
.lesson-featured .pill-btn:hover { background: var(--bg-card-hover); }
.lesson-featured .pill-btn.primary { background: var(--accent); color: #000; border-color: var(--accent); }
.lesson-featured .pill-btn.primary:hover { background: var(--accent-press); }
.lesson-featured .pill-btn.whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.lesson-featured .pill-btn.whatsapp:hover { background: #1ebe5a; }

.lesson-phrases { padding: 0 20px 24px; }
.lesson-phrase-row { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-card); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; transition: background var(--motion-fast) var(--ease-apple); border: 1px solid transparent; }
.lesson-phrase-row:hover  { background: var(--bg-card-hover); }
.lesson-phrase-row.is-speaking { background: var(--accent-soft); border: 1px solid var(--accent); }
.lesson-phrase-row .idx { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: var(--bg-inset); color: var(--text-muted); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.lesson-phrase-row.is-speaking .idx { background: var(--accent); color: #000; }
.lesson-phrase-row .body { flex: 1; min-width: 0; }
.lesson-phrase-row .body .en { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson-phrase-row .body .es { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson-phrase-row .status-badge { flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.lesson-phrase-row .status-badge.status-mastered  { background: var(--accent-soft); color: var(--accent); }
.lesson-phrase-row .status-badge.status-inprogress { background: var(--warn-soft); color: var(--warn); }
.lesson-phrase-row .status-badge.status-weak      { background: var(--danger-soft); color: var(--danger); }
.lesson-phrase-row .status-badge.status-pending   { background: var(--bg-inset); color: var(--text-muted); }

/* ACCESIBILIDAD VISUAL */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
:root[data-high-contrast] { --border: #ffffff; --text-muted: #d4d4d4; --text-faint: #b3b3b3; --shadow-card: 0 0 0 1px #ffffff, 0 4px 16px rgba(0,0,0,0.4); }
:root[data-high-contrast][data-theme="light"] { --border: #000000; --shadow-card: 0 0 0 1px #000000, 0 4px 16px rgba(0,0,0,0.15); }
.landing-phrase-row .play:active { transform: scale(0.94); }
.landing-phrase-row .play svg { width: 14px; height: 14px; }

.landing-cta { margin: 8px 20px 32px; padding: 20px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%); border-radius: var(--radius-lg); text-align: center; color: #001a08; }
.landing-cta h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.landing-cta p { margin: 0 0 14px; font-size: 13px; opacity: 0.85; }
.landing-cta button { display: inline-block; padding: 12px 24px; background: #000; color: var(--accent); border-radius: var(--radius-pill); font-weight: 700; font-size: 14px; margin: 0 4px 6px; }
.landing-cta button.alt { background: transparent; color: #001a08; border: 1.5px solid #001a08; }
.landing-cta .signin { display: block; margin-top: 10px; font-size: 12px; color: #001a08; text-decoration: underline; background: none; padding: 0; font-weight: 600; }

.landing-back-link { padding: 0 20px 32px; text-align: center; }
.landing-back-link button { background: transparent; border: none; color: var(--text-muted); font-size: 13px; font-weight: 600; padding: 8px 12px; cursor: pointer; }
.landing-back-link button:hover { color: var(--text); }

.visitor-banner { margin: 12px 16px 0; padding: 10px 14px; background: rgba(241, 196, 15, 0.1); border: 1px solid rgba(241, 196, 15, 0.4); border-radius: var(--radius); font-size: 12px; color: var(--warn); display: flex; align-items: center; gap: 8px; line-height: 1.4; }
.visitor-banner button { margin-left: auto; padding: 4px 10px; background: var(--warn); color: #1f1500; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; flex: 0 0 auto; }

body.is-visitor .bottom-nav { display: none; }
body.is-visitor .app { padding-bottom: 0; }

.load-error { padding: 32px 16px; text-align: center; }
.load-error .ic { font-size: 36px; margin-bottom: 8px; }
.load-error .t { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.load-error .s { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.load-error button { background: var(--bg-card); color: var(--text); padding: 10px 16px; border-radius: var(--radius); font-weight: 700; }

/* LANDING PÚBLICA */
.public-hero { padding: 32px 20px 24px; background: linear-gradient(180deg, rgba(30, 215, 96, 0.08) 0%, transparent 70%); }
.public-hero .eyebrow { font-size: 12px; letter-spacing: 2px; color: var(--accent); margin-bottom: 12px; }
.public-hero h1 { font-size: 36px; font-weight: 800; line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.5px; }
.public-hero h1 span { color: var(--accent); }
.public-hero .subtitle { font-size: 15px; line-height: 1.5; color: var(--text-muted); margin: 0 0 20px; }
.public-cta { display: flex; gap: 10px; margin-bottom: 12px; }
.public-cta .btn-primary, .public-cta .btn-secondary { flex: 1; padding: 14px 16px; box-shadow: none; }
.public-cta .btn-primary { color: var(--accent-on); }
.btn-share-ghost { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: none; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; padding: 8px 0; }
.btn-share-ghost svg { width: 16px; height: 16px; }
.btn-share-ghost:hover { color: var(--text); }

.public-social-mini {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px; padding: 6px 12px;
  background: var(--accent-soft); color: var(--text);
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; line-height: 1.3;
}
.public-social-mini .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 215, 96, 0.25);
  animation: pulse-dot 2s ease-in-out infinite;
}
.public-social-mini strong { color: var(--accent); font-weight: 800; }
@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

.demo-card { margin: 8px 16px 8px; padding: 18px 18px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; position: relative; overflow: hidden; }
.demo-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(30, 215, 96, 0.12), transparent 60%); pointer-events: none; }
.demo-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }
.demo-en { font-size: 22px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.demo-es { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.demo-actions { display: flex; align-items: center; gap: 12px; }
.btn-play { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #001a08; border: none; border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 14px; cursor: pointer; }
.btn-play svg { width: 16px; height: 16px; }
.demo-meta { font-size: 12px; color: var(--text-muted); }

.demo-mic-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.demo-mic-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  padding: 8px 14px 8px 8px; font-size: 13px; font-weight: 700;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background var(--motion-fast, 120ms) ease, transform var(--motion-fast, 120ms) ease;
}
.demo-mic-btn:hover  { background: var(--bg-card-hover); }
.demo-mic-btn:active { transform: scale(0.98); }
.demo-mic-btn svg { width: 18px; height: 18px; }
.demo-mic-btn .demo-mic-btn-label { white-space: nowrap; }
.demo-mic-btn.is-recording {
  background: var(--danger); color: #fff; border-color: var(--danger);
  animation: pulse 1.4s ease-in-out infinite;
}
.demo-mic-btn.is-locked { opacity: 0.5; cursor: not-allowed; }
.demo-mic-hint { font-size: 11px; color: var(--text-muted); }

.demo-score { margin-top: 12px; padding: 12px 14px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); }
.demo-score.is-hidden { display: none !important; }
.demo-score-line { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.demo-score-big { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.demo-score-big.good { color: var(--accent); }
.demo-score-big.mid  { color: var(--warn); }
.demo-score-big.bad  { color: var(--danger); }
.demo-score-meta { font-size: 12px; color: var(--text-muted); }
.demo-score-diff { font-size: 14px; line-height: 1.6; }

.how-grid { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 0 16px; }
@media (min-width: 520px) { .how-grid { grid-template-columns: 1fr 1fr 1fr; } }
.how-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.how-card .n { display: inline-block; font-size: 11px; font-weight: 800; color: var(--accent); background: rgba(30, 215, 96, 0.12); padding: 2px 8px; border-radius: 999px; margin-bottom: 8px; }
.how-card .ic { font-size: 26px; margin-bottom: 6px; }
.how-card .t { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.how-card .b { font-size: 13px; line-height: 1.45; color: var(--text-muted); }

.public-lessons { display: flex; gap: 12px; overflow-x: auto; padding: 4px 20px 12px; scrollbar-width: none; }
.public-lessons::-webkit-scrollbar { display: none; }
.public-lesson-card { flex: 0 0 160px; text-align: left; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 12px; cursor: pointer; color: var(--text); }
.public-lesson-card .ic { font-size: 28px; margin-bottom: 8px; }
.public-lesson-card .t { font-size: 13px; font-weight: 700; line-height: 1.3; margin-bottom: 2px; }
.public-lesson-card .s { font-size: 11px; color: var(--text-muted); }

.public-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 20px; margin: 4px 0 0; }
.public-social > div { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 12px; text-align: center; }
.public-social .big { font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1.1; margin-bottom: 4px; }
.public-social .label { font-size: 11px; line-height: 1.35; color: var(--text-muted); }

.testimonials { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.testimonial { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.testimonial .quote { font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
.testimonial .who { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.testimonial .who strong { color: var(--text); }

.faq-block { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 12px; -webkit-tap-highlight-color: transparent; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "›"; font-size: 22px; line-height: 1; color: var(--text-muted); transform: rotate(90deg); transition: transform var(--motion-fast) var(--ease-apple); }
.faq-item[open] > summary::after { transform: rotate(-90deg); }
.faq-item > .answer { padding: 0 16px 14px; font-size: 14px; line-height: 1.5; color: var(--text-2); }

.public-subnav { position: sticky; top: 56px; z-index: 9; display: flex; gap: 8px; padding: 8px 16px; overflow-x: auto; background: var(--bg); border-bottom: 1px solid var(--border); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease; }
.public-subnav.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.public-subnav::-webkit-scrollbar { display: none; }
.subnav-pill { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; background: var(--bg-card); color: var(--text); border: 1px solid var(--border); font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.subnav-pill.is-active { background: var(--accent); color: #000; border-color: var(--accent); }

[id^="anchor-"] { scroll-margin-top: 100px; }
html { scroll-behavior: smooth; }
.screen .section-title { margin-top: 28px; }
.public-block-divider { height: 1px; background: var(--border); margin: 8px 16px 0; opacity: 0.6; }

.public-footer { text-align: center; padding: 32px 16px 48px; font-size: 12px; color: var(--text-muted); }
.public-footer .muted { font-size: 11px; margin-top: 4px; opacity: 0.7; }

.landing-how { display: flex; flex-direction: column; gap: 8px; padding: 0 20px; }
.landing-how .how-card { display: flex; align-items: flex-start; gap: 12px; }
.landing-how .how-card .ic { font-size: 22px; margin: 0; }
.landing-how .how-card .t { font-size: 14px; }
.landing-how .how-card .b { font-size: 12px; }

/* SECCIÓN IA */
.ai-section { position: relative; padding: 0 16px; margin: 4px 0 0; }
.ai-section::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 215, 96, 0.06), transparent 80%); pointer-events: none; z-index: 0; }
.ai-section > * { position: relative; z-index: 1; }
.ai-pro-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: #001a08; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.ai-pro-badge .star { font-size: 11px; }
.ai-examples { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ai-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 12px; text-align: left; cursor: pointer; color: var(--text); transition: background var(--motion-fast) var(--ease-apple), transform var(--motion-fast) var(--ease-apple); }
.ai-card:hover  { background: var(--bg-card-hover); }
.ai-card:active { transform: scale(0.99); }
.ai-card .ic { font-size: 24px; margin-bottom: 6px; }
.ai-card .t { font-size: 13px; font-weight: 700; line-height: 1.25; margin-bottom: 2px; }
.ai-card .s { font-size: 11px; line-height: 1.3; color: var(--text-muted); }
.btn-secondary.full { display: block; width: 100%; padding: 12px 16px; font-size: 13px; margin-top: 4px; }

.modal-card .btn-pro { width: 100%; padding: 14px; border-radius: var(--radius-pill); font-weight: 700; font-size: 14px; background: transparent; color: var(--accent); border: 1px solid var(--accent); cursor: pointer; transition: background var(--motion-fast) var(--ease-apple); }
.modal-card .btn-pro:hover  { background: rgba(30, 215, 96, 0.08); }
.modal-card .btn-pro:active { transform: scale(0.99); }
