/* public/slides.js -- pantallas por pasos (slides) en el celular. Todo cuelga de html.sl-on: sin esa clase no cambia nada. */
.sl-bar, .sl-nav { display: none; }
html.sl-on .sl-hide { display: none !important; }
html.sl-on .sl-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin: 0 0 4px; min-width: 0; }
.sl-dot { display: grid; justify-items: center; gap: 4px; padding: 4px 0 2px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; min-width: 0; opacity: .62; -webkit-tap-highlight-color: transparent; }
.sl-dot i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .92rem; background: rgba(255, 255, 255, .16); transition: transform .2s, background .2s; }
.sl-dot span { font-size: 11px; font-weight: 700; line-height: 1.1; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-dot.is-done { opacity: .9; }
.sl-dot.is-done i { background: #2fbf71; color: #07210f; }
.sl-dot.is-cur { opacity: 1; }
.sl-dot.is-cur i { background: linear-gradient(135deg, var(--accent, #e8771f), var(--accent-2, #d4503f)); color: #fff; transform: scale(1.18); box-shadow: 0 0 0 3px rgba(255, 255, 255, .22); }
.sl-bar.is-locked { opacity: .55; pointer-events: none; }
.sl-bar.sl-shake { animation: sl-shake .35s; }
@keyframes sl-shake { 20% { transform: translateX(-6px); } 60% { transform: translateX(6px); } }
html.sl-on .sl-nav { display: grid; gap: 8px; position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); z-index: 5; margin-top: 6px; padding: 10px 0 2px; background: linear-gradient(to top, rgba(10, 8, 14, .92) 70%, rgba(10, 8, 14, 0)); }
.sl-msg { margin: 0; min-height: 1.1em; text-align: center; font-size: 14px; font-weight: 700; color: #ffd37a; }
.sl-msg:empty { display: none; }
.sl-btns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; padding: 0 46px; } /* deja libres los lados: ahí flotan las burbujas ? y piano */
.sl-btns button { min-height: 56px; border-radius: 999px; border: 0; font: inherit; font-weight: 800; font-size: 1rem; color: #fff; cursor: pointer; padding: 0 14px; -webkit-tap-highlight-color: transparent; }
.sl-back { background: rgba(255, 255, 255, .14); }
.sl-next { background: linear-gradient(135deg, var(--accent, #e8771f), var(--accent-2, #d4503f)); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.sl-next.is-wait { filter: saturate(.45) brightness(.9); }
.sl-btns button:disabled { opacity: .45; }
.sl-btns button[hidden] { display: none; }
/* con "Atrás" oculto, "Siguiente" ocupa todo el ancho */
html.sl-on .sl-in { animation: sl-in .38s ease both; }
@keyframes sl-in { from { opacity: 0; transform: translateX(calc(var(--sl-dir, 1) * 36px)); } to { opacity: 1; transform: none; } }
.sl-fxstep .fx-title { display: none; }
@media (prefers-reduced-motion: reduce) { html.sl-on .sl-in, .sl-bar.sl-shake { animation: none; } .sl-dot i { transition: none; } }

/* ---- "¿Cómo lo quieres hacer?" (Grabar mi voz) ---- */
html:not(.sl-on) .gp-how { display: none; }
.gp-cards { display: grid; gap: 12px; }
.gp-card { position: relative; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-align: left; min-height: 96px; padding: 14px 16px; border: 0; border-radius: 22px; color: #fff; cursor: pointer; background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: 0 10px 26px rgba(0,0,0,.32); }
.gp-card i { grid-row: 1 / 3; font-style: normal; font-size: 2.4rem; text-align: center; }
.gp-card strong { font-size: 1.15rem; font-weight: 900; align-self: end; }
.gp-card small { font-size: .9rem; opacity: .92; line-height: 1.25; align-self: start; }
.gp-card:active { transform: scale(.98); }
.gp-card.is-on { outline: 3px solid #fff; }
.gp-more { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: .95rem; }
.gp-more input { width: 22px; height: 22px; flex: none; }
html.sl-on .pp-tiles { display: none; }
.pp-up { margin-top: 10px; min-height: 48px; width: 100%; }
.pp-up[hidden] { display: none; }
/* modo simple: lo avanzado del paso de grabar solo sale si marcas "Quiero más opciones" */
html.sl-on:not(.gp-extras) .rg-step[data-k="rec"] .rm-more,
html.sl-on:not(.gp-extras) .rg-step[data-k="rec"] .cg-opts { display: none; }
