/* voicesimple.css -- pantalla simple "Canta con tu propia voz" (ver voicesimple.js).
   Mismo estilo del video de Estudio: un circulo grande con el microfono, un anillo de avance y pasos que se van marcando.
   Usa las variables de color de la app (--accent, --accent-2, --accent-3...), asi sigue el tema de temporada. */

/* Modo facil: se esconden los controles de siempre (siguen en la pagina y funcionan: la pantalla simple los maneja).
   "Mas ajustes" (clase cv-open) o el modo avanzado los vuelven a mostrar. */
.is-easy #cloneVoicePanel:not(.cv-open) > :not(summary):not(.cv-box):not(.vw-wizard):not(.feature-lock-card) { display: none !important; }
html:not(.is-easy) .cv-box { display: none; }

.cv-box {
  --cv-size: min(52vw, 190px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px; padding: 18px 12px 8px;
}
.cv-stage { position: relative; width: calc(var(--cv-size) + 56px); height: calc(var(--cv-size) + 56px); display: grid; place-items: center; }
.cv-ring { position: absolute; border-radius: 50%; border: 2px solid rgba(var(--accent-rgb, 232 119 31) / .35); pointer-events: none; }
.cv-ring-a { inset: 0; }
.cv-ring-b { inset: 14px; border-color: rgba(var(--accent-3-rgb, 240 189 74) / .55); }
.cv-arc-svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); transform: rotate(-90deg); pointer-events: none; }
.cv-arc-track { fill: none; stroke: rgba(var(--text-rgb, 248 239 228) / .10); stroke-width: 3; }
.cv-arc { fill: none; stroke: var(--accent-3, #f0bd4a); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; transition: stroke-dashoffset .7s ease; opacity: 0; }
.cv-box.is-working .cv-arc, .cv-box.is-done .cv-arc { opacity: 1; }

.cv-mic {
  position: relative; width: var(--cv-size); height: var(--cv-size); border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--accent, #e8771f), var(--accent-2, #d4503f));
  box-shadow: 0 10px 40px rgba(var(--accent-rgb, 232 119 31) / .45), inset 0 2px 0 rgba(255,255,255,.18);
  display: grid; place-items: center; color: #fff; -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.cv-mic:active { transform: scale(.96); }
.cv-mic svg { width: 44%; height: 44%; fill: currentColor; }
.cv-mic:disabled { cursor: default; }
.cv-box.is-working .cv-mic { filter: saturate(.85) brightness(.95); }
.cv-box.is-done .cv-mic { background: linear-gradient(135deg, var(--accent-3, #f0bd4a), var(--accent, #e8771f)); }
.cv-box.is-error .cv-mic { background: linear-gradient(135deg, #8a3a32, var(--accent-2, #d4503f)); }
.cv-pct { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); min-width: 64px; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 15px; background: var(--panel, #1d130b); color: var(--accent-3, #f0bd4a); border: 2px solid rgba(var(--accent-3-rgb, 240 189 74) / .55); display: none; }
.cv-box.is-working .cv-pct, .cv-box.is-done .cv-pct { display: block; }

.cv-title { margin: 2px 0 0; font-size: 1.45rem; font-weight: 800; line-height: 1.15; color: var(--text, #f8efe4); }
.cv-title b { background: linear-gradient(90deg, var(--accent-2, #d4503f), var(--accent, #e8771f) 45%, var(--accent-3, #f0bd4a)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cv-sub { margin: 0; max-width: 32ch; font-size: .98rem; line-height: 1.4; color: var(--muted, #b3a291); }

/* onda: quieta cuando no se hace nada, se mueve mientras trabaja (como la del video) */
.cv-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 54px; width: min(100%, 340px); }
.cv-wave i { flex: 1; max-width: 8px; border-radius: 4px; min-height: 6px; background: rgba(var(--text-rgb, 248 239 228) / .35); height: var(--h, 20px); transform-origin: center; }
.cv-box.is-working .cv-wave i { background: linear-gradient(180deg, var(--accent-3, #f0bd4a), var(--accent, #e8771f)); animation: cv-bounce 1.1s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.07s); }
.cv-box.is-done .cv-wave i { background: linear-gradient(180deg, var(--accent-3, #f0bd4a), var(--accent, #e8771f)); }
@keyframes cv-bounce { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1.25); } }

/* pasos */
.cv-steps { list-style: none; margin: 0; padding: 0; width: min(100%, 340px); display: none; flex-direction: column; gap: 8px; text-align: left; }
.cv-box.is-working .cv-steps, .cv-box.is-done .cv-steps, .cv-box.is-error .cv-steps { display: flex; }
.cv-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; font-weight: 700; font-size: .98rem; color: var(--muted, #b3a291); background: rgba(var(--text-rgb, 248 239 228) / .05); border: 1px solid rgba(var(--text-rgb, 248 239 228) / .08); transition: all .3s ease; }
.cv-steps .cv-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; border: 2px solid rgba(var(--text-rgb, 248 239 228) / .25); }
.cv-steps li.on { color: var(--text, #f8efe4); background: rgba(var(--accent-rgb, 232 119 31) / .16); border-color: rgba(var(--accent-rgb, 232 119 31) / .5); }
.cv-steps li.on .cv-dot { border-color: var(--accent, #e8771f); border-top-color: transparent; animation: cv-spin 0.9s linear infinite; }
.cv-steps li.ok { color: var(--text, #f8efe4); }
.cv-steps li.ok .cv-dot { background: var(--accent-3, #f0bd4a); border-color: var(--accent-3, #f0bd4a); color: #1d130b; }
.cv-steps li.ok .cv-dot::before { content: "\2713"; font-weight: 900; }
@keyframes cv-spin { to { transform: rotate(360deg); } }
.cv-time { font-size: .85rem; color: var(--muted, #b3a291); }

/* fichas (chips) */
.cv-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.cv-chip { font: inherit; font-weight: 700; font-size: .95rem; padding: 12px 18px; min-height: 46px; border-radius: 999px; cursor: pointer; color: var(--text, #f8efe4); background: rgba(var(--text-rgb, 248 239 228) / .08); border: 2px solid rgba(var(--text-rgb, 248 239 228) / .18); transition: all .2s ease; -webkit-tap-highlight-color: transparent; }
.cv-chip[aria-pressed="true"] { background: rgba(var(--accent-rgb, 232 119 31) / .22); border-color: var(--accent, #e8771f); }
.cv-chip.cv-consent[aria-pressed="true"]::before { content: "\2713  "; color: var(--accent-3, #f0bd4a); }
.cv-chip.cv-shake { animation: cv-shake .45s ease; border-color: var(--accent-2, #d4503f); }
@keyframes cv-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.cv-voices { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 2px 2px 6px; -webkit-overflow-scrolling: touch; }
.cv-voices .cv-chip { flex: none; padding: 9px 16px; min-height: 40px; font-size: .9rem; }
.cv-more { font: inherit; background: none; border: 0; color: var(--muted, #b3a291); text-decoration: underline; cursor: pointer; padding: 10px; min-height: 44px; }
.cv-status { margin: 0; min-height: 1.3em; font-weight: 700; font-size: .98rem; color: var(--text, #f8efe4); max-width: 36ch; line-height: 1.35; }
.cv-box.is-error .cv-status { color: #ffb4a6; }
.cv-box.is-done .cv-status { color: var(--accent-3, #f0bd4a); }
.cv-note { margin: 0; font-size: .9rem; color: var(--muted, #b3a291); max-width: 34ch; line-height: 1.35; }

/* anillos que laten solo mientras trabaja */
.cv-box.is-working .cv-ring-a { animation: cv-pulse 2.2s ease-in-out infinite; }
.cv-box.is-working .cv-ring-b { animation: cv-pulse 2.2s ease-in-out .5s infinite; }
@keyframes cv-pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.05); opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
  .cv-box *, .cv-box *::before { animation: none !important; transition: none !important; }
}
.cv-box.is-indeterminate .cv-arc-svg { animation: cv-rot 1.6s linear infinite; }
@keyframes cv-rot { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }

/* mientras trabaja solo se ve el avance: sin chips ni voces que distraigan */
.cv-box.is-working .cv-chips,
.cv-box.is-working .cv-voices { display: none; }
