/* ==========================================================================
   TUTORIAL de bienvenida y MENÚ «MÁS» (móvil)
   ========================================================================== */
.tutorial { place-items: center; padding: var(--space-4); z-index: 300; }
.tutorial-card {
  position: relative;
  width: min(880px, 100%);
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: min(540px, 88dvh);
  max-height: 92dvh;
  border-radius: calc(var(--radius-lg) * 1.3);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  animation: pop var(--dur-3) var(--ease-out);
}
.tutorial-close { position: absolute; top: 12px; right: 12px; z-index: 3; }
.tutorial-track { position: relative; overflow: hidden; }
.tut-slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  animation: tut-in var(--dur-3) var(--ease-out);
}
.tut-slide.from-left { animation-name: tut-in-left; }
@keyframes tut-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes tut-in-left { from { opacity: 0; transform: translateX(-28px); } }

.tut-art {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-4);
  min-height: 260px;
  padding: var(--space-6);
  overflow: hidden;
  background:
    radial-gradient(70% 70% at 50% 45%, color-mix(in oklab, var(--accent) 18%, var(--surface)) 0%, transparent 70%),
    var(--sunk);
  border-right: 1px solid var(--line);
}
.tut-orbit {
  position: absolute;
  width: 230px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed var(--accent-line);
  animation: spin 40s linear infinite;
}
.tut-orbit::before, .tut-orbit::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  top: -5px;
  left: calc(50% - 5px);
}
.tut-orbit::after { top: auto; bottom: 20%; left: -5px; width: 6px; height: 6px; opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
.tut-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border-radius: 36px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-3);
  animation: float-soft 5s ease-in-out infinite;
}
.tut-icon .icon { width: 56px; height: 56px; stroke-width: 1.2; }
@keyframes float-soft { 50% { transform: translateY(-8px) rotate(-2deg); } }

/* Demostraciones */
.demo-verse {
  max-width: 300px;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  font-family: var(--font-reading);
  font-size: 1.05rem;
  line-height: 1.6;
}
.demo-verse sup { font-family: var(--font-ui); font-size: .6em; color: var(--accent); font-weight: 700; }
.demo-verse mark {
  color: inherit;
  background: linear-gradient(transparent 14%, var(--hl-yellow-bg) 14%, var(--hl-yellow-bg) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  animation: marker 2.4s var(--ease-out) .4s infinite;
  text-decoration: underline dotted var(--accent) 2px;
  text-underline-offset: .3em;
}
@keyframes marker { 40%, 100% { background-size: 100% 100%; } }
.demo-dock { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-2); }
.demo-dock i { width: 18px; height: 18px; border-radius: 50%; background: var(--sw); }
.demo-dock .icon { width: 18px; height: 18px; opacity: .8; }
.demo-search { display: flex; align-items: center; gap: 10px; min-width: 240px; padding: 14px 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--accent); box-shadow: var(--shadow-2); font-family: var(--font-display); font-size: 1.5rem; }
.demo-search .icon { color: var(--accent); }
.demo-typing { overflow: hidden; white-space: nowrap; border-right: 2px solid var(--accent); width: 0; animation: typing 3s steps(7) infinite; }
@keyframes typing { 50%, 90% { width: 7ch; } }
.demo-bars { display: flex; align-items: flex-end; gap: 3px; width: 260px; height: 60px; }
.demo-bars i { flex: 1; height: var(--h); background: var(--accent); border-radius: 2px 2px 0 0; opacity: .8; transform-origin: bottom; animation: grow var(--dur-3) var(--ease-out) both; }
.demo-cover { width: 190px; transform: rotate(-4deg); animation: float-soft 5s ease-in-out infinite; }

.tut-text { display: grid; align-content: center; gap: var(--space-4); padding: var(--space-7) var(--space-7) var(--space-5); }
.tut-title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 400; line-height: 1.04; letter-spacing: -.02em; }
.tut-body { color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.6; max-width: 38ch; }

.tutorial-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-top: 1px solid var(--line); flex-wrap: wrap; }
.tut-dots { display: flex; gap: 6px; }
.tut-dots button { width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); transition: width var(--dur-2) var(--ease-out), background-color var(--dur-2); }
.tut-dots button.is-active { width: 26px; background: var(--accent); }
.tut-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 760px) {
  .tutorial { padding: 0; place-items: stretch; }
  .tutorial-card { width: 100%; min-height: 100dvh; max-height: none; border-radius: 0; border: 0; }
  .tut-slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .tut-art { min-height: 38dvh; border-right: 0; border-bottom: 1px solid var(--line); }
  .tut-text { align-content: start; padding: var(--space-5) var(--gutter); }
  .tut-body { font-size: var(--fs-md); }
  .tutorial-foot { padding: var(--space-3) var(--gutter) calc(var(--space-3) + var(--safe-b)); }
  .tut-dots { width: 100%; justify-content: center; }
  .tut-actions { width: 100%; }
  .tut-actions .btn-accent { flex: 1; }
}

/* ---------- Menú «Más» ---------- */
.more-menu { z-index: 210; }
.more-card { padding: var(--space-2) var(--space-3) calc(var(--space-4) + var(--safe-b)); }
.more-card .sheet-grip { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 6px auto 10px; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; overflow-y: auto; }
.more-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius);
  text-align: left;
  background: var(--sunk);
}
.more-link:hover, .more-link.is-active { background: var(--accent-soft); }
.more-link b { display: block; font-size: var(--fs-md); font-weight: 600; }
.more-link small { display: block; font-size: .72rem; color: var(--ink-3); line-height: 1.3; }
.more-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--accent); flex: none; box-shadow: var(--shadow-1); }
