/* ════════════════════════════════════════
   APP SHELL · tabs, modales, layouts nuevos
   ════════════════════════════════════════ */

/* Ajustes generales para que el contenido no quede tapado por la tab bar */
.tutorial-shell { padding-bottom: 0; }
.phone-frame { padding-bottom: 80px; min-height: 100dvh; }

/* ──── Modal screens (fullscreen overlays sin tab bar) ──── */
.modal-screen.active {
  background: #0a0a0a;
}

/* ──── Back button (usado en modales) ──── */
.back-btn {
  background: none;
  border: none;
  color: #8a8a8a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
  margin-bottom: 20px;
  cursor: pointer;
  align-self: flex-start;
  letter-spacing: 0.01em;
}
.back-btn:hover { color: #f0f0f0; }

/* ──── Text input (onboarding name) ──── */
.text-input {
  width: 100%;
  background: #141414;
  border: 1.5px solid #262626;
  border-radius: 14px;
  color: #f0f0f0;
  font: inherit;
  font-size: 18px;
  padding: 16px 18px;
  outline: none;
  margin-top: 24px;
  transition: border-color 0.2s;
}
.text-input:focus { border-color: #ff2d92; }
.text-input::placeholder { color: #5a5a5a; }

/* ════════════════════════════════════════
   TAB BAR (bottom navigation)
   ════════════════════════════════════════ */

.tab-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #1c1c1c;
  padding: 8px 0 max(env(safe-area-inset-bottom), 8px);
}
.tab {
  background: none;
  border: none;
  color: #5a5a5a;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 600;
  transition: color 0.15s, transform 0.1s;
}
.tab-icon { font-size: 22px; line-height: 1; }
.tab-label { letter-spacing: 0.02em; }
.tab.active { color: #ff2d92; }
.tab:active { transform: scale(0.94); }

/* ════════════════════════════════════════
   APP BODY (las 4 tabs)
   ════════════════════════════════════════ */

.app-body {
  padding: 24px 22px 100px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.greet {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
.greet span { color: #ff2d92; }
.greet-sub {
  font-size: 14px;
  color: #8a8a8a;
  margin-top: 4px;
}

/* ──── Consults badge (sobre la home) ──── */
.consults-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-top: 8px;
  letter-spacing: 0.02em;
  background: rgba(255, 45, 146, 0.12);
  color: #ff2d92;
  border: 1px solid rgba(255, 45, 146, 0.35);
}
.consults-badge.full {
  background: rgba(80, 200, 120, 0.10);
  color: #5fd17e;
  border-color: rgba(80, 200, 120, 0.35);
}
.consults-badge.empty {
  background: rgba(140, 140, 140, 0.10);
  color: #8a8a8a;
  border-color: rgba(140, 140, 140, 0.30);
}

/* ──── Streak pill (chiquita arriba a la derecha) ──── */
.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 100, 30, 0.12);
  color: #ff8a3d;
  border: 1px solid rgba(255, 100, 30, 0.35);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 800;
}

/* ──── CTA gigante (Analizar nueva captura) ──── */
.cta-massive {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff2d92, #b026ff);
  color: white;
  border: none;
  border-radius: 28px;
  padding: 32px 24px;
  font-family: inherit;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(255, 45, 146, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  letter-spacing: -0.01em;
}
.cta-massive:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255, 45, 146, 0.5); }
.cta-massive:active { transform: translateY(0) scale(0.98); }
.cta-emoji { font-size: 38px; line-height: 1; }
.cta-label { font-size: 18px; }

/* ──── Quick modes (3 chips) ──── */
.quick-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.quick-mode {
  background: #141414;
  border: 1px solid #262626;
  border-radius: 16px;
  padding: 14px 8px;
  color: #f0f0f0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, transform 0.1s;
}
.quick-mode:hover { border-color: #ff2d92; }
.quick-mode:active { transform: scale(0.95); }
.qm-emoji { font-size: 22px; }

/* ──── Sección heading ──── */
.section-h {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #f0f0f0;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ──── History ──── */
.history-block { display: flex; flex-direction: column; gap: 12px; }
.history-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.history-list::-webkit-scrollbar { display: none; }
.history-item {
  flex-shrink: 0;
  width: 92px;
  background: #141414;
  border: 1px solid #262626;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.1s;
}
.history-item:hover { border-color: #ff2d92; }
.history-item:active { transform: scale(0.96); }
.history-thumb { width: 100%; height: 92px; object-fit: cover; display: block; }
.history-meta {
  display: flex;
  flex-direction: column;
  padding: 6px 8px 8px;
  gap: 2px;
  align-items: flex-start;
}
.history-mode { font-size: 11px; color: #ff2d92; font-weight: 700; }
.history-ago { font-size: 10px; color: #5a5a5a; }
.empty-state {
  color: #5a5a5a;
  font-size: 13px;
  padding: 16px 0;
  text-align: center;
}

/* ──── Tip card ──── */
.tip-card {
  background: linear-gradient(135deg, rgba(255, 45, 146, 0.08), rgba(176, 38, 255, 0.06));
  border: 1px solid rgba(255, 45, 146, 0.25);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tip-tag {
  font-size: 11px;
  color: #ff2d92;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tip-text { font-size: 14px; color: #f0f0f0; line-height: 1.5; margin: 0; }

/* ════════════════════════════════════════
   TAB TARGETS (locked / max-only)
   ════════════════════════════════════════ */

.locked-feature {
  background: linear-gradient(160deg, rgba(176, 38, 255, 0.10), rgba(255, 45, 146, 0.06));
  border: 1px solid rgba(176, 38, 255, 0.30);
  border-radius: 22px;
  padding: 32px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.locked-emoji { font-size: 48px; }
.locked-feature h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}
.locked-feature p {
  font-size: 14px;
  color: #c5c5c5;
  margin: 0;
  line-height: 1.5;
}
.locked-features {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  text-align: left;
}
.locked-features li {
  font-size: 13px;
  color: #c5c5c5;
}
.cta-primary {
  background: linear-gradient(135deg, #ff2d92, #b026ff);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 45, 146, 0.35);
  margin-top: 4px;
}
.cta-primary:hover { transform: translateY(-1px); }

/* ════════════════════════════════════════
   TAB APRENDER
   ════════════════════════════════════════ */

.lessons-grid {
  display: grid;
  gap: 10px;
}
.lesson-card {
  background: #141414;
  border: 1px solid #262626;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s, transform 0.1s;
}
.lesson-card:hover { border-color: #ff2d92; }
.lesson-card:active { transform: scale(0.98); }
.lesson-card.locked { opacity: 0.85; }
.lesson-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}
.lesson-tag {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  background: rgba(80, 200, 120, 0.10);
  color: #5fd17e;
  border: 1px solid rgba(80, 200, 120, 0.30);
}
.lesson-tag.pro {
  background: rgba(255, 45, 146, 0.10);
  color: #ff2d92;
  border-color: rgba(255, 45, 146, 0.35);
}
.lesson-tag.max {
  background: rgba(176, 38, 255, 0.10);
  color: #c468ff;
  border-color: rgba(176, 38, 255, 0.35);
}
.lesson-meta { font-size: 12px; color: #5a5a5a; margin: 0; }
.wins-placeholder {
  background: #141414;
  border: 1px dashed #262626;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

/* ════════════════════════════════════════
   TAB VOS
   ════════════════════════════════════════ */

.badge-tier {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(140, 140, 140, 0.15);
  color: #8a8a8a;
  border: 1px solid rgba(140, 140, 140, 0.30);
}
.badge-tier.pro {
  background: rgba(255, 45, 146, 0.15);
  color: #ff2d92;
  border-color: rgba(255, 45, 146, 0.40);
}
.badge-tier.max {
  background: linear-gradient(135deg, rgba(255, 45, 146, 0.15), rgba(176, 38, 255, 0.15));
  color: #c468ff;
  border-color: rgba(176, 38, 255, 0.40);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #141414;
  border: 1px solid #262626;
  border-radius: 18px;
  padding: 20px 12px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #f0f0f0;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: #8a8a8a;
  text-align: center;
}

.cta-upgrade {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(255, 45, 146, 0.10), rgba(176, 38, 255, 0.08));
  border: 1px solid rgba(255, 45, 146, 0.30);
  border-radius: 18px;
  padding: 16px 18px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: inherit;
  transition: border-color 0.15s, transform 0.1s;
}
.cta-upgrade:hover { border-color: #ff2d92; }
.cta-upgrade:active { transform: scale(0.98); }
.cta-upgrade-emoji { font-size: 28px; flex-shrink: 0; }
.cta-upgrade-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cta-upgrade-title { font-weight: 800; font-size: 15px; color: #f0f0f0; }
.cta-upgrade-sub { font-size: 12px; color: #8a8a8a; }
.cta-upgrade-arrow { color: #ff2d92; font-size: 20px; font-weight: 800; }

.settings-list {
  display: flex;
  flex-direction: column;
  background: #141414;
  border: 1px solid #262626;
  border-radius: 16px;
  overflow: hidden;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: none;
  border: none;
  border-bottom: 1px solid #1c1c1c;
  color: #f0f0f0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}
.setting-row:last-child { border-bottom: none; }
.setting-row:hover { background: #1c1c1c; }
.setting-value {
  color: #8a8a8a;
  font-size: 13px;
  font-weight: 600;
}

.app-footer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
}
.app-footer .micro { font-size: 11px; color: #5a5a5a; }
.socials { display: flex; gap: 10px; }
.socials a {
  color: #8a8a8a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.socials a:hover { color: #ff2d92; }

/* ════════════════════════════════════════
   PAYWALL
   ════════════════════════════════════════ */

.paywall-h {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  text-align: center;
}
.paywall-sub {
  font-size: 13px;
  color: #8a8a8a;
  text-align: center;
  margin: 0 0 22px;
}
.tier-card {
  background: #141414;
  border: 1.5px solid #262626;
  border-radius: 20px;
  padding: 22px 20px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.tier-card.featured {
  border-color: rgba(255, 45, 146, 0.45);
  background: linear-gradient(160deg, #141414, rgba(255, 45, 146, 0.04));
  box-shadow: 0 12px 32px rgba(255, 45, 146, 0.10);
}
.tier-tag {
  position: absolute;
  top: -10px;
  right: 18px;
  background: linear-gradient(135deg, #ff2d92, #b026ff);
  color: white;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  border-radius: 100px;
}
.tier-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #f0f0f0;
  letter-spacing: -0.01em;
}
.tier-price-row { display: flex; align-items: baseline; gap: 4px; }
.tier-price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #ff2d92;
  letter-spacing: -0.02em;
}
.tier-per { color: #8a8a8a; font-size: 13px; font-weight: 600; }
.tier-list {
  list-style: none;
  padding: 0;
  margin: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.tier-list li { font-size: 13px; color: #c5c5c5; }
.tier-cta {
  background: #1c1c1c;
  border: 1.5px solid #ff2d92;
  color: #ff2d92;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 13px;
  border-radius: 100px;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s;
}
.tier-cta:hover { background: rgba(255, 45, 146, 0.10); }
.tier-cta.featured {
  background: linear-gradient(135deg, #ff2d92, #b026ff);
  color: white;
  border: none;
}
.tier-cta.featured:hover { transform: translateY(-1px); }
.tier-skip {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: #5a5a5a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
  margin-top: 4px;
}
.tier-skip:hover { color: #8a8a8a; }

/* ════════════════════════════════════════
   MODE SWITCHER (en upload modal)
   ════════════════════════════════════════ */

.mode-switcher {
  display: flex;
  gap: 6px;
  margin-top: 18px;
  justify-content: center;
}
.mode-btn {
  background: #141414;
  border: 1px solid #262626;
  color: #8a8a8a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s;
}
.mode-btn.active {
  background: rgba(255, 45, 146, 0.10);
  color: #ff2d92;
  border-color: #ff2d92;
}

/* ════════════════════════════════════════
   COPY BUTTON (en cada respuesta)
   ════════════════════════════════════════ */

.opt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.copy-btn {
  background: none;
  border: 1px solid #262626;
  color: #8a8a8a;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s;
}
.copy-btn:hover { color: #ff2d92; border-color: #ff2d92; }

/* ════════════════════════════════════════
   CENTER HELPER
   ════════════════════════════════════════ */

.center { text-align: center; }
.micro.center { display: block; }


/* ════════════════════════════════════════
   RESPONSIVE FIX · cuando se abre desde celu / PWA standalone
   Sacamos el "marco de teléfono" del diseño desktop para usar viewport completo
   ════════════════════════════════════════ */

@media (max-width: 540px), (display-mode: standalone), (display-mode: fullscreen) {
  body {
    background: #0a0a0a;
  }
  .tutorial-shell {
    max-width: 100%;
    width: 100%;
    gap: 0;
    padding: 0;
    margin: 0;
    min-height: 100dvh;
  }
  .phone-frame {
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 100dvh;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: #0a0a0a;
  }
  .label {
    display: none;
  }
  /* Safe area iOS — respetar el notch */
  .top-bar {
    padding-top: max(22px, env(safe-area-inset-top));
  }
  .app-body {
    padding-top: max(24px, calc(env(safe-area-inset-top) + 12px));
  }
  .modal-screen .screen-body {
    padding-top: max(24px, calc(env(safe-area-inset-top) + 12px));
  }
}

/* Cuando se abre instalada (PWA standalone), nunca mostrar el marco de teléfono */
@media (display-mode: standalone) {
  body::before {
    display: none;
  }
}

/* ════════════════════════════════════════
   CHAMU-CAM (botón sacar foto)
   ════════════════════════════════════════ */

.cam-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #141414;
  border: 1.5px solid #ff2d92;
  color: #ff2d92;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: 16px;
  cursor: pointer;
  margin-top: 12px;
  width: 100%;
  transition: background 0.15s, transform 0.1s;
}
.cam-btn:hover { background: rgba(255, 45, 146, 0.10); }
.cam-btn:active { transform: scale(0.97); }
.cam-btn span:first-child { font-size: 22px; }

/* ════════════════════════════════════════
   POWER MODES (Doctor del chat + Mi storie)
   ════════════════════════════════════════ */

.power-modes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.power-mode {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(176, 38, 255, 0.10), rgba(255, 45, 146, 0.06));
  border: 1px solid rgba(176, 38, 255, 0.30);
  border-radius: 18px;
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: inherit;
  transition: border-color 0.15s, transform 0.1s;
}
.power-mode:hover { border-color: #c468ff; }
.power-mode:active { transform: scale(0.98); }
.pm-emoji { font-size: 28px; flex-shrink: 0; }
.pm-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pm-title { font-weight: 800; font-size: 14px; color: #f0f0f0; }
.pm-sub { font-size: 11px; color: #8a8a8a; line-height: 1.4; }
.pm-arrow { color: #c468ff; font-size: 20px; font-weight: 800; }

/* ════════════════════════════════════════
   DOCTOR DEL CHAT (result screen)
   ════════════════════════════════════════ */

.doctor-header, .mistorie-header {
  background: linear-gradient(160deg, rgba(176, 38, 255, 0.10), rgba(255, 45, 146, 0.06));
  border: 1px solid rgba(176, 38, 255, 0.30);
  border-radius: 22px;
  padding: 24px 20px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.mistorie-header .result-image-wrap {
  margin-top: 4px;
  max-width: 220px;
}
.doctor-badge, .mistorie-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(176, 38, 255, 0.15);
  color: #c468ff;
  border: 1px solid rgba(176, 38, 255, 0.40);
  text-transform: uppercase;
}
.doctor-score-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 4px 0;
}
.doctor-score {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 64px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff2d92, #b026ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
  line-height: 1;
}
.doctor-score-label {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  color: #8a8a8a;
  font-weight: 700;
}
.doctor-interes {
  font-size: 13px;
  color: #c5c5c5;
  margin: 0;
}
.doctor-interes strong { color: #ff2d92; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }

.doctor-section {
  background: #141414;
  border: 1px solid #262626;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.doctor-h {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #f0f0f0;
}
.doctor-section p { font-size: 14px; color: #c5c5c5; margin: 0; line-height: 1.55; }
.doctor-moves {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doctor-moves li {
  font-size: 14px;
  color: #f0f0f0;
  line-height: 1.5;
  display: flex;
  gap: 8px;
}
.move-num {
  color: #ff2d92;
  font-weight: 900;
  flex-shrink: 0;
}
.caption-why {
  font-size: 11px;
  color: #8a8a8a;
  font-style: italic;
  margin-top: 4px;
}

/* ════════════════════════════════════════
   STICKERS GRID
   ════════════════════════════════════════ */

.stickers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.sticker-item {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #141414;
  border: 1px solid #262626;
  border-radius: 14px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.1s, border-color 0.15s;
}
.sticker-item:hover { border-color: #ff2d92; }
.sticker-item:active { transform: scale(0.94); }
.sticker-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sticker-download {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

/* ════════════════════════════════════════
   LESSON CONTENT
   ════════════════════════════════════════ */

.lesson-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
  margin: 12px 0 6px;
  letter-spacing: -0.02em;
}
.lesson-content {
  margin-top: 18px;
}
.lesson-content p {
  font-size: 15px;
  color: #c5c5c5;
  line-height: 1.65;
  margin: 12px 0;
}
.lesson-content h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #ff2d92;
  margin: 22px 0 4px;
  letter-spacing: -0.01em;
}
.lesson-content ul {
  padding-left: 0;
  list-style: none;
  margin: 8px 0;
}
.lesson-content ul li {
  font-size: 14px;
  color: #c5c5c5;
  padding: 4px 0;
  line-height: 1.5;
}
.lesson-content strong { color: #f0f0f0; }
.lesson-content em { color: #ff2d92; font-style: normal; font-weight: 600; }
.lesson-content hr {
  border: none;
  border-top: 1px solid #262626;
  margin: 24px 0;
}
.lesson-content .lesson-conclusion {
  background: rgba(255, 45, 146, 0.06);
  border-left: 3px solid #ff2d92;
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 14px;
  color: #f0f0f0;
}

/* ════════════════════════════════════════
   AJUSTES UX (post-feedback usuaria 2026-05-24)
   ════════════════════════════════════════ */

.app-header.compact { margin-bottom: 0; }
.app-header.compact .greet-sub { font-size: 13px; margin-top: 2px; color: #8a8a8a; }

.cta-massive .cta-sub {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
  margin-top: -2px;
  letter-spacing: 0;
  text-transform: none;
}

.quick-modes.two {
  grid-template-columns: repeat(2, 1fr);
}

/* ════════════════════════════════════════
   TAB PERSONAS (preview de cómo se ve con MAX)
   ════════════════════════════════════════ */

.personas-intro {
  font-size: 14px;
  color: #c5c5c5;
  line-height: 1.55;
  margin: 0;
}
.personas-intro strong { color: #ff2d92; font-weight: 700; }

.persona-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  position: relative;
}
.persona-preview::after {
  content: 'vista previa · necesitás MAX para usarlo';
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #5a5a5a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.persona-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #141414;
  border: 1px solid #262626;
  border-radius: 16px;
  padding: 14px;
}
.persona-card.preview { opacity: 0.85; }
.persona-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #ff2d92, #b026ff);
  color: white;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}
.persona-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.persona-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #f0f0f0;
  letter-spacing: -0.01em;
}
.persona-meta {
  font-size: 11px;
  color: #8a8a8a;
  line-height: 1.4;
}
.persona-next {
  font-size: 12px;
  color: #ff2d92;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.4;
}

.locked-feature.compact {
  padding: 22px 20px;
  margin-top: 32px;
  text-align: left;
  align-items: stretch;
}
.locked-feature.compact h2 {
  font-size: 18px;
  text-align: center;
}
.locked-feature.compact .locked-features {
  width: 100%;
}

/* ════════════════════════════════════════
   AJUSTES UX 2 (post-feedback 2026-05-24)
   Home centrada · CTA violeta · labio SVG · tints en quick modes
   ════════════════════════════════════════ */

/* Header CENTRADO en la home */
.app-header.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-top: 12px;
  position: relative;
}
.app-header.centered .greet {
  font-size: 34px;
  letter-spacing: -0.025em;
}
.app-header.centered .greet-sub {
  font-size: 14px;
  color: #c5c5c5;
  margin-top: -2px;
}
.app-header.centered .consults-badge {
  margin-top: 6px;
}

/* Streak pill flotante arriba a la derecha (no en línea con el saludo) */
.streak-pill.floating {
  position: absolute;
  top: 0;
  right: 0;
}

/* CTA gigante con tonos más violeta (más cerca del power-mode/doctor) */
.cta-massive {
  background: linear-gradient(160deg, #9a30e8 0%, #6b15a8 100%);
  box-shadow:
    0 12px 32px rgba(154, 48, 232, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(196, 104, 255, 0.30);
  gap: 12px;
}
.cta-massive:hover {
  background: linear-gradient(160deg, #a83af0 0%, #7a1eb9 100%);
  box-shadow: 0 16px 40px rgba(154, 48, 232, 0.45);
}

/* Labio SVG dentro del CTA (reemplaza al emoji 🎞) */
.cta-lip {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

/* Quick modes con tinte de color distinto (responder chat azul · mi storie naranja-rosa) */
.quick-mode.chat-tint {
  background: linear-gradient(135deg, rgba(38, 132, 255, 0.10), rgba(80, 200, 255, 0.06));
  border-color: rgba(38, 132, 255, 0.30);
}
.quick-mode.chat-tint:hover { border-color: #4d9aff; }
.quick-mode.chat-tint .qm-emoji {
  filter: drop-shadow(0 0 8px rgba(38, 132, 255, 0.35));
}

.quick-mode.storie-tint {
  background: linear-gradient(135deg, rgba(255, 140, 60, 0.10), rgba(255, 45, 146, 0.08));
  border-color: rgba(255, 140, 60, 0.30);
}
.quick-mode.storie-tint:hover { border-color: #ff9d3d; }
.quick-mode.storie-tint .qm-emoji {
  filter: drop-shadow(0 0 8px rgba(255, 140, 60, 0.35));
}

/* ════════════════════════════════════════
   FIX 3 (post-feedback "jueguito trucho" 2026-05-24)
   Volver a magenta serio + sacar tints caricaturescos + fix overlap pill
   ════════════════════════════════════════ */

/* CTA gigante: vuelta al magenta-violeta original pero MÁS oscuro y profundo (premium feel) */
.cta-massive {
  background: linear-gradient(155deg, #d11873 0%, #8a1ec0 60%, #4a0e6e 110%) !important;
  box-shadow:
    0 18px 40px rgba(255, 45, 146, 0.22),
    0 0 60px rgba(176, 38, 255, 0.12) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 45, 146, 0.25) !important;
}
.cta-massive:hover {
  background: linear-gradient(155deg, #e51d80 0%, #9a25cf 60%, #5a1280 110%) !important;
}

/* Sacar los tints caricaturescos — todos los quick modes con el mismo magenta sutil */
.quick-mode.chat-tint,
.quick-mode.storie-tint,
.quick-mode {
  background: #141414 !important;
  border-color: #262626 !important;
}
.quick-mode.chat-tint .qm-emoji,
.quick-mode.storie-tint .qm-emoji,
.quick-mode .qm-emoji {
  filter: none !important;
}
.quick-mode:hover { border-color: #ff2d92 !important; }

/* Streak pill: que NO se pise con el saludo, lo bajo y achico */
.streak-pill.floating {
  top: 4px !important;
  right: 0;
  font-size: 12px;
  padding: 5px 10px;
}
.app-header.centered {
  margin-top: 30px;
}

/* El saludo no toca el borde derecho si el nombre es largo */
.app-header.centered .greet {
  max-width: calc(100% - 60px);
  margin-left: auto;
  margin-right: auto;
}

/* ════════════════════════════════════════
   PREMIUM iOS POLISH (post-feedback "extrema calidad" 2026-05-24)
   ════════════════════════════════════════ */

/* Font stack iOS-first: que use Apple Color Emoji nativo en iPhone */
body, button, input, textarea, select {
  font-family:
    -apple-system, BlinkMacSystemFont,
    'SF Pro Display', 'SF Pro Text',
    'Inter', system-ui,
    'Segoe UI', Roboto,
    'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01', 'ss03', 'liga';
}

/* Headings con letra-espacio premium */
.greet, .big-h, .lesson-title, .paywall-h, .tier-name {
  letter-spacing: -0.032em;
}

/* Labio nativo del CTA: emoji 🫦 con render nativo iOS */
.cta-lip-emoji {
  font-size: 56px;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
  /* En iOS este emoji va a usar Apple Color Emoji (alta calidad nativa) */
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
  -webkit-user-select: none;
  user-select: none;
}

/* Sombras más profundas y sutiles (estilo iOS) en cards y CTAs */
.cta-massive {
  box-shadow:
    0 20px 50px -10px rgba(255, 45, 146, 0.30),
    0 8px 20px -8px rgba(176, 38, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20) !important;
  border-radius: 26px;
}

.power-mode {
  box-shadow:
    0 8px 20px -10px rgba(176, 38, 255, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.quick-mode {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  border-radius: 18px;
}

/* Bordes más finos donde se note (estilo iOS 1px hairline) */
.settings-list,
.lesson-card,
.persona-card,
.tier-card {
  border-width: 1px;
}

/* Botones y tags con type rendering más fino */
.greet, .stat-num, .doctor-score, .tier-price {
  font-feature-settings: 'tnum', 'ss01';
}

/* Streak pill con look más sutil tipo iOS */
.streak-pill.floating {
  background: rgba(255, 100, 30, 0.10);
  border: 0.5px solid rgba(255, 140, 80, 0.30);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 12px rgba(255, 100, 30, 0.12);
}

/* Quick modes: hover/active más sutil tipo iOS */
.quick-mode {
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.quick-mode:active {
  transform: scale(0.96);
  background: #1c1c1c;
}

/* ════════════════════════════════════════
   MI-STORIE: mejor momento para subirla
   ════════════════════════════════════════ */

.doctor-section.best-moment {
  background: linear-gradient(140deg, rgba(255, 45, 146, 0.06), rgba(176, 38, 255, 0.04));
  border-color: rgba(255, 45, 146, 0.20);
}
.moment-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 12px;
}
.moment-pill {
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.moment-label {
  font-size: 10px;
  color: #8a8a8a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.moment-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #ff2d92;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}
.moment-why {
  font-size: 13px;
  color: #c5c5c5;
  line-height: 1.5;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid #1c1c1c;
}

/* ════════════════════════════════════════
   TAB PERSONAS · funcional
   ════════════════════════════════════════ */

/* Botón "+" en header */
.add-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2d92, #b026ff);
  color: white;
  font-size: 24px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 45, 146, 0.25);
  transition: transform 0.1s;
  flex-shrink: 0;
}
.add-btn:active { transform: scale(0.94); }

/* Estado vacío */
.personas-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 40px 20px;
  background: linear-gradient(160deg, rgba(176, 38, 255, 0.06), rgba(255, 45, 146, 0.04));
  border: 1px dashed rgba(176, 38, 255, 0.25);
  border-radius: 22px;
}
.personas-empty-emoji {
  font-size: 56px;
  opacity: 0.85;
}
.personas-empty h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}
.personas-empty p {
  font-size: 14px;
  color: #c5c5c5;
  line-height: 1.55;
  margin: 0;
  max-width: 320px;
}
.personas-empty strong { color: #ff2d92; }

/* Lista de personas */
.personas-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.persona-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  background: #141414;
  border: 1px solid #262626;
  border-radius: 18px;
  padding: 14px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: inherit;
  transition: border-color 0.15s, transform 0.1s;
}
.persona-card:hover { border-color: #ff2d92; }
.persona-card:active { transform: scale(0.98); }

/* Urgencias en próxima jugada */
.persona-next.urgencia-bajo { color: #5fd17e; }
.persona-next.urgencia-medio { color: #ff9d3d; }
.persona-next.urgencia-alto { color: #ff2d92; }
.persona-next.urgencia-critico { color: #ff4d4d; }
.persona-next.urgencia-esperar { color: #8a8a8a; }

/* ════════════════════════════════════════
   FORM PERSONA (crear/editar)
   ════════════════════════════════════════ */

.persona-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}
.form-label {
  font-size: 12px;
  color: #8a8a8a;
  font-weight: 700;
  margin-top: 14px;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}
.form-label:first-child { margin-top: 0; }

.persona-form textarea.text-input {
  resize: vertical;
  min-height: 70px;
  font-family: inherit;
}

/* Chips multi/single */
.chips-multi, .chips-single {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  background: #141414;
  border: 1px solid #262626;
  color: #c5c5c5;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: #444; color: #f0f0f0; }
.chip.active {
  background: rgba(255, 45, 146, 0.12);
  border-color: #ff2d92;
  color: #ff2d92;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

/* ════════════════════════════════════════
   DETALLE PERSONA
   ════════════════════════════════════════ */

.persona-header-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 22px 0 10px;
}
.persona-avatar.big {
  width: 80px; height: 80px;
  font-size: 36px;
  box-shadow: 0 12px 30px rgba(255, 45, 146, 0.25);
}
.persona-name.big {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin: 0;
}
.persona-meta.big {
  font-size: 13px;
  color: #8a8a8a;
  margin: 0;
}

/* Próxima jugada card */
.next-play-card {
  background: linear-gradient(140deg, rgba(255, 45, 146, 0.08), rgba(176, 38, 255, 0.05));
  border: 1px solid rgba(255, 45, 146, 0.25);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.next-play-tag {
  font-size: 11px;
  color: #ff2d92;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.next-play-text {
  font-size: 14px;
  color: #f0f0f0;
  line-height: 1.55;
  margin: 0;
}
.next-play-card.urgencia-bajo { border-color: rgba(80, 200, 120, 0.30); background: linear-gradient(140deg, rgba(80, 200, 120, 0.08), rgba(80, 200, 120, 0.03)); }
.next-play-card.urgencia-bajo .next-play-tag { color: #5fd17e; }
.next-play-card.urgencia-medio { border-color: rgba(255, 157, 61, 0.30); background: linear-gradient(140deg, rgba(255, 157, 61, 0.10), rgba(255, 157, 61, 0.04)); }
.next-play-card.urgencia-medio .next-play-tag { color: #ff9d3d; }
.next-play-card.urgencia-alto, .next-play-card.urgencia-critico { border-color: rgba(255, 77, 77, 0.32); background: linear-gradient(140deg, rgba(255, 77, 77, 0.10), rgba(255, 77, 77, 0.04)); }
.next-play-card.urgencia-alto .next-play-tag, .next-play-card.urgencia-critico .next-play-tag { color: #ff4d4d; }

/* Datos cargados (grid) */
.persona-data-grid { display: flex; flex-direction: column; gap: 10px; }
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #1c1c1c;
}
.data-row:last-child { border-bottom: none; }
.data-key {
  font-size: 11px;
  color: #8a8a8a;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  flex-shrink: 0;
}
.data-val {
  font-size: 14px;
  color: #f0f0f0;
  text-align: right;
  font-weight: 500;
}
.data-notes {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #1c1c1c;
}
.data-notes p {
  font-size: 13px;
  color: #c5c5c5;
  line-height: 1.55;
  margin: 6px 0 0;
  font-style: italic;
}

/* Acciones rápidas en detalle */
.persona-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}

/* Historial mini */
.persona-history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #1c1c1c;
}
.persona-history-item:last-child { border-bottom: none; }
.history-thumb-mini {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
}
.persona-history-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Banner de persona activa en upload */
.persona-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(176, 38, 255, 0.12), rgba(255, 45, 146, 0.08));
  border: 1px solid rgba(176, 38, 255, 0.35);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 18px;
}
.persona-banner-emoji { font-size: 18px; }
.persona-banner-text {
  flex: 1;
  font-size: 13px;
  color: #c5c5c5;
}
.persona-banner-text strong { color: #ff2d92; font-weight: 700; }
.persona-banner-close {
  background: none;
  border: none;
  color: #8a8a8a;
  font-size: 22px;
  font-weight: 300;
  width: 26px; height: 26px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all 0.15s;
}
.persona-banner-close:hover { background: rgba(255, 255, 255, 0.08); color: #f0f0f0; }

/* ════════════════════════════════════════
   PERSONAS LIST · ajustes 2026-05-24
   (saqué próxima jugada, sumé tags de personalidad + stats)
   ════════════════════════════════════════ */

.persona-tags {
  font-size: 11px;
  color: #c468ff;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 2px;
}
.persona-stats {
  font-size: 11px;
  color: #5fd17e;
  font-weight: 600;
  margin-top: 2px;
}
