/* chamuyo · tutorial.css
   Onboarding de 5 pantallas en formato celular */

:root {
  --bg: #0a0a0a;
  --surface: #161616;
  --surface-2: #1f1f1f;
  --border: #2a2a2a;
  --border-2: #353535;
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --muted-2: #5a5a5a;
  --accent: #ff2d92;
  --accent-2: #b026ff;
  --accent-soft: rgba(255, 45, 146, 0.12);

  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255,45,146,0.10), transparent 70%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(176, 38, 255, 0.06), transparent 70%),
    #000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  color: var(--text);
  padding: 20px;
  -webkit-font-smoothing: antialiased;
}

.tutorial-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 380px;
}

.phone-frame {
  width: 100%;
  max-width: 380px;
  height: min(820px, 92vh);
  background: var(--bg);
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 30px 100px rgba(255, 45, 146, 0.18),
    0 0 0 8px #1a1a1a,
    0 0 0 9px #2a2a2a;
}

.label {
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ──── Top bar ──── */
.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 22px 24px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}
.progress-bar {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 20%;
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.skip-btn {
  pointer-events: auto;
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s;
}
.skip-btn:hover { color: var(--text); }
.skip-btn.hidden { visibility: hidden; }

/* ──── Screens ──── */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 60px 28px 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(32px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.screen.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.screen-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.screen-body.center {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.screen-footer {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ──── Typography ──── */
.big-h {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-top: 16px;
  line-height: 1;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  margin-top: 10px;
  max-width: 280px;
  line-height: 1.4;
}
.lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.lead strong { color: var(--text); font-weight: 600; }
.lead em { font-style: italic; color: var(--text); }
.lead-small {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.45;
}

/* ──── Logo / Emoji ──── */
.logo-tile {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 20px 60px rgba(255, 45, 146, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.logo-emoji {
  font-size: 58px;
  line-height: 1;
}
.big-emoji {
  font-size: 72px;
  margin-bottom: 18px;
  display: block;
}

/* ──── Pulse dot (welcome) ──── */
.pulse-dot-wrap {
  margin-top: 32px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pulse-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ──── Chamu greet pill ──── */
.chamu-greet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  align-self: flex-start;
}
.chamu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.chamu-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ──── Step cards (screen 3) ──── */
.step-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  position: relative;
}
.step-num {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  font-family: var(--font-display);
}
.step-icon {
  font-size: 30px;
  flex-shrink: 0;
  line-height: 1;
}
.step-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.step-title {
  font-size: 15px;
  font-weight: 700;
}
.step-desc {
  font-size: 13px;
  color: var(--muted);
}

/* ──── Option cards (screen 4) ──── */
.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.option-card:hover {
  border-color: var(--accent);
  background: rgba(255, 45, 146, 0.04);
}
.option-card.selected {
  border-color: var(--accent);
  background: rgba(255, 45, 146, 0.08);
}
.option-card.selected .option-check {
  opacity: 1;
  transform: scale(1);
}
.option-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.option-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.option-title {
  font-size: 15px;
  font-weight: 700;
}
.option-desc {
  font-size: 13px;
  color: var(--muted);
}
.option-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}

/* ──── Trust list (screen 5) ──── */
.trust-list {
  list-style: none;
  margin: 4px 0 20px;
  text-align: left;
  width: 100%;
  max-width: 280px;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  font-size: 14.5px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.trust-list li:last-child { border-bottom: none; }
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.divider {
  width: 60%;
  height: 1px;
  background: var(--border);
  margin: 6px 0 18px;
}

.prelaunch {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.55;
  max-width: 290px;
}
.prelaunch strong { color: var(--accent); font-weight: 700; }

.waitlist-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.waitlist-form input {
  background: var(--surface);
  border: 1px solid var(--border);
  outline: none;
  color: var(--text);
  font: inherit;
  padding: 14px 18px;
  border-radius: 100px;
  font-size: 15px;
  transition: border-color 0.15s;
  text-align: center;
}
.waitlist-form input:focus { border-color: var(--accent); }
.waitlist-form input::placeholder { color: var(--muted); }

/* ──── Buttons ──── */
.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  padding: 16px;
  border-radius: 100px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(255, 45, 146, 0.35);
}
.primary-btn:active {
  transform: scale(0.98);
}
.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ghost-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  margin-top: 16px;
  display: inline-block;
  transition: color 0.15s;
}
.ghost-link:hover { color: var(--text); }

.legal {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.05em;
  text-align: center;
  margin-top: 4px;
}

/* ──── Upload (screen 7) ──── */
.upload-zone {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: 22px;
  padding: 38px 24px;
  text-align: center;
  cursor: pointer;
  margin: 18px 0;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.upload-zone:hover {
  border-color: var(--accent);
  background: rgba(255, 45, 146, 0.04);
}
.upload-icon { font-size: 38px; }
.upload-cta { font-weight: 700; font-size: 15px; }
.upload-hint { font-size: 13px; color: var(--muted); }

.link-btn {
  background: transparent;
  color: var(--accent);
  border: none;
  padding: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  width: 100%;
}
.ghost-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 100px;
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
}
.ghost-btn:hover { color: var(--text); border-color: var(--border-2); }

/* ──── Loading (screen 8) ──── */
.loading-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.loading-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-bounce 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.loading-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-8px); opacity: 1; }
}
.loading-text {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 24px;
}
.loading-step {
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 8px;
  opacity: 0.5;
  transition: opacity 0.3s, color 0.3s;
}
.loading-step.active {
  opacity: 1;
  color: var(--text);
}

/* ──── Results (screen 9) ──── */
.result-image-wrap {
  margin-bottom: 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  text-align: center;
}
.result-image {
  max-width: 100%;
  max-height: 460px;
  height: auto;
  width: auto;
  display: block;
  margin: 0 auto;
}
.chamu-result { margin-top: 4px; }
.chamu-greet.small {
  padding: 6px 12px;
  margin-bottom: 14px;
}
.result-intro {
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.5;
}
.result-intro strong { color: var(--accent); }
.result-option {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.option-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
  align-self: flex-start;
}
.result-option p {
  font-size: 13.5px;
  line-height: 1.45;
}

/* ──── Chat fake ──── */
.chat-fake {
  max-height: none;
  padding: 0;
  background: #000;
}
.chat-mini { padding: 14px; }
.chat-mini-header {
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 10px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-mini-name { color: white; font-weight: 600; font-size: 14px; }
.chat-mini-status { color: #888; font-size: 11px; }
.chat-mini-body { display: flex; flex-direction: column; gap: 6px; }
.chat-bubble {
  max-width: 78%;
  padding: 7px 11px;
  border-radius: 16px;
  font-size: 13px;
  color: white;
  line-height: 1.35;
}
.chat-bubble.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-bottom-right-radius: 5px;
}
.chat-bubble.received {
  align-self: flex-start;
  background: #262626;
  border-bottom-left-radius: 5px;
}
.chat-divider {
  align-self: center;
  font-size: 10.5px;
  color: #666;
  margin: 8px 0;
  font-style: italic;
}

/* ──── Staggered enter animation ──── */
.animate-in {
  opacity: 0;
  transform: translateY(14px);
}
.screen.active .animate-in {
  animation: enter-up 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.screen.active .animate-in.delay-1 { animation-delay: 0.08s; }
.screen.active .animate-in.delay-2 { animation-delay: 0.20s; }
.screen.active .animate-in.delay-3 { animation-delay: 0.32s; }
.screen.active .animate-in.delay-4 { animation-delay: 0.44s; }
.screen.active .animate-in.delay-5 { animation-delay: 0.56s; }
.screen.active .animate-in.delay-6 { animation-delay: 0.68s; }

@keyframes enter-up {
  to { opacity: 1; transform: translateY(0); }
}


/* ════════ CONSULTS BADGE (límite diario) ════════ */
.consults-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  align-self: flex-start;
  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);
}

/* ════════ PANTALLA "LÍMITE ALCANZADO" ════════ */
.limit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 40px 24px;
}
.limit-card .big-emoji {
  font-size: 64px;
  margin-bottom: 8px;
}
.limit-card .big-h {
  font-size: 32px;
  margin-bottom: 4px;
}
.limit-card .lead {
  font-size: 17px;
  color: #f0f0f0;
}
.limit-card .lead strong {
  color: #ff2d92;
  font-weight: 800;
}
.limit-card .lead-small {
  font-size: 14px;
  color: #8a8a8a;
}
.limit-card .legal {
  font-size: 12px;
  color: #5a5a5a;
  max-width: 280px;
}
