/* public/voicecoach.css -- Instructor de voz (voicecoach.js). Usa las variables de la skin activa. */
.vc-launch { position: fixed; right: 16px; bottom: 266px; z-index: 9984; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--accent-3); background: linear-gradient(135deg, rgb(var(--accent-3-rgb) / 30%), var(--panel)); color: var(--text); font-size: 24px; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.vc-launch:hover { transform: scale(1.06); }
@media (max-width: 640px) { .vc-launch { bottom: 276px; right: 12px; } }
html.vc-open .vc-launch, html.vc-open .sc-launch, html.vc-open .pr-launch, html.vc-open .howto-fab, html.vc-open .va-fab, html.vc-open .pn-launch { display: none !important; }
.vc-drawer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9996; max-height: 92vh; overflow: auto; background: var(--panel); color: var(--text); border-top: 2px solid var(--accent-3); box-shadow: 0 -14px 44px rgba(0, 0, 0, .5); padding: 10px 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.vc-drawer[hidden] { display: none; }
@media (min-width: 900px) { html:not(.is-phone) .vc-drawer { left: 236px; } }
.vc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vc-title { font-family: var(--font-display); font-size: calc(1.05 * var(--u)); }
.vc-tabs { display: flex; gap: 6px; overflow-x: auto; flex: 1; padding: 2px; scrollbar-width: thin; }
.vc-tab, .vc-btn, .vc-x { appearance: none; font: inherit; cursor: pointer; white-space: nowrap; border-radius: 999px; padding: 9px 13px; min-height: 40px; color: var(--text); background: rgb(var(--panel-2-rgb) / 70%); border: 1px solid var(--border); font-size: calc(0.9 * var(--u)); }
.vc-btn { border-radius: 12px; }
.vc-tab:hover, .vc-btn:hover { border-color: var(--accent-3); }
.vc-tab.is-on, .vc-btn.is-on { background: rgb(var(--accent-3-rgb) / 24%); border-color: var(--accent-3); font-weight: 700; }
.vc-btn.vc-big { background: rgb(var(--accent-rgb) / 28%); border-color: var(--accent); font-weight: 700; min-height: 48px; font-size: calc(1 * var(--u)); }
.vc-btn.vc-ghost { background: transparent; }
.vc-btn:disabled { opacity: .5; cursor: default; }
.vc-x { width: 40px; padding: 0; border-radius: 50%; }
.vc-tab:focus-visible, .vc-btn:focus-visible, .vc-x:focus-visible, .vc-sel:focus-visible { outline: 2px solid var(--ring, var(--accent)); outline-offset: 2px; }
.vc-live { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--border); border-radius: 14px; background: rgb(var(--panel-2-rgb) / 60%); }
.vc-live[hidden] { display: none; }
.vc-note { text-align: center; }
.vc-note b { display: block; font-family: var(--font-display); font-size: calc(2.1 * var(--u)); line-height: 1.1; min-height: 2.3rem; }
.vc-note small { color: var(--muted); font-size: calc(0.82 * var(--u)); }
.vc-gauge { position: relative; height: 14px; border-radius: 99px; background: linear-gradient(90deg, #ff5a5a, #ffd23f 30%, #3ddc84 50%, #ffd23f 70%, #ff5a5a); }
.vc-gauge::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--text); transform: translateX(-50%); }
.vc-needle { position: absolute; left: 50%; top: -5px; width: 8px; height: 24px; border-radius: 4px; background: var(--text); border: 2px solid var(--bg); transform: translateX(-50%); transition: left .08s; z-index: 1; }
.vc-needle.is-ok { background: #3ddc84; }
.vc-gl { display: flex; justify-content: space-between; font-size: calc(0.82 * var(--u)); color: var(--muted); padding: 2px 2px 0; }
.vc-level { height: 6px; border-radius: 99px; background: rgb(var(--border-rgb) / 70%); overflow: hidden; margin-top: 4px; }
.vc-level i { display: block; height: 100%; width: 0; background: var(--accent-2); transition: width .06s; }
.vc-coach { min-height: 1.4em; margin: 0; font-weight: 700; color: var(--text); border-left: 5px solid var(--accent-3); padding-left: 10px; }
.vc-coach:empty { border-left-color: transparent; }
.vc-coach[data-k="ok"] { border-left-color: #2ecc71; } .vc-coach[data-k="warn"] { border-left-color: #ffb347; }
.vc-body { display: grid; gap: 10px; min-width: 0; }
.vc-p { margin: 0; color: var(--text); font-size: calc(0.95 * var(--u)); line-height: 1.45; }
.vc-p.vc-big { font-size: calc(1.1 * var(--u)); font-weight: 700; min-height: 1.4em; }
.vc-warn { color: var(--text); font-size: calc(0.88 * var(--u)); border-left: 4px solid #ffb347; padding-left: 8px; }
.vc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vc-card { border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: rgb(var(--panel-2-rgb) / 50%); display: grid; gap: 8px; }
.vc-card[hidden] { display: none; }
.vc-h { margin: 0; font-family: var(--font-display); font-size: calc(1.1 * var(--u)); }
.vc-strip { display: flex; height: 44px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--panel-2); }
.vc-strip .k { flex: 1 1 0; border-right: 1px solid rgb(var(--border-rgb) / 40%); }
.vc-strip .k.b { background: rgb(0 0 0 / 25%); }
.vc-strip .k.in { background: rgb(var(--accent-3-rgb) / 55%); }
.vc-strip .k.mark { background: var(--accent); }
.vc-steps { display: flex; gap: 6px; }
.vc-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); font-size: calc(0.85 * var(--u)); color: var(--muted); }
.vc-dot.is-on { border-color: var(--accent-3); color: var(--text); background: rgb(var(--accent-3-rgb) / 25%); font-weight: 800; }
.vc-dot.is-done { background: #3ddc84; color: #111; border-color: #3ddc84; }
.vc-vis { min-height: 150px; display: grid; place-items: center; position: relative; }
.vc-vis:empty { min-height: 0; }
.vc-orb { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--accent-2), var(--accent)); box-shadow: 0 0 40px rgb(var(--accent-rgb) / 45%); transform: scale(.45); transition: transform .1s linear; }
.vc-orb.static { transform: none; animation: vc-pulse 2.4s ease-in-out infinite alternate; }
@keyframes vc-pulse { from { transform: scale(.85); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .vc-orb.static { animation: none; } }
.vc-phase { position: absolute; bottom: 4px; font-size: calc(1.1 * var(--u)); }
.vc-letter { font-family: var(--font-display); font-size: calc(5 * var(--u)); line-height: 1; color: var(--accent-3); }
.vc-time { text-align: center; color: var(--muted); }
.vc-bar { height: 8px; border-radius: 99px; background: rgb(var(--border-rgb) / 70%); overflow: hidden; }
.vc-bar i { display: block; height: 100%; width: 0; background: var(--accent-3); transition: width .2s; }
.vc-target { text-align: center; font-family: var(--font-display); font-size: calc(4 * var(--u)); font-weight: 800; line-height: 1.1; padding: 12px; border: 2px solid var(--border); border-radius: 18px; background: rgb(var(--panel-2-rgb) / 60%); }
.vc-target[data-s="ok"] { border-color: #3ddc84; box-shadow: 0 0 24px rgb(61 220 132 / 40%); }
.vc-target[data-s="done"] { border-color: var(--accent-3); font-size: calc(3 * var(--u)); }
.vc-sel { min-height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); font: inherit; padding: 0 10px; max-width: 100%; }
.vc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vc-chip { padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); font-weight: 700; min-width: 40px; text-align: center; color: var(--muted); }
.vc-chip.now { background: var(--accent-3); color: #111; border-color: var(--accent-3); transform: scale(1.12); }
.vc-chip.done { background: rgb(61 220 132 / 25%); color: var(--text); border-color: #3ddc84; }
.vc-chk { display: inline-flex; align-items: center; gap: 6px; font-size: calc(0.88 * var(--u)); cursor: pointer; }
.vc-chk input { width: 20px; height: 20px; accent-color: var(--accent); }
.vc-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.vc-tip { border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: rgb(var(--panel-2-rgb) / 50%); }
.vc-tip b { display: block; margin-bottom: 4px; }
.vc-tip p { margin: 0; font-size: calc(0.9 * var(--u)); color: var(--muted); line-height: 1.4; }
.vc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.vc-stat { border: 1px solid var(--border); border-radius: 14px; padding: 10px; text-align: center; background: rgb(var(--panel-2-rgb) / 50%); display: grid; gap: 2px; }
.vc-si { font-size: calc(1.4 * var(--u)); } .vc-stat small { color: var(--muted); } .vc-stat b { font-size: calc(1.1 * var(--u)); }
.vc-chart { display: flex; align-items: flex-end; gap: 4px; height: 100px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; }
.vc-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.vc-col i { display: block; width: 100%; background: var(--accent-3); border-radius: 4px 4px 0 0; }
.vc-col small { font-size: calc(0.82 * var(--u)); color: var(--muted); }
.vc-foot { margin: 0; font-size: calc(0.82 * var(--u)); color: var(--text); opacity: .85; line-height: 1.4; }
:root[data-ui="kids"] .vc-btn, :root[data-ui="kids"] .vc-tab { min-height: 48px; font-size: calc(1 * var(--u)); }
:root[data-ui="kids"] .vc-target { font-size: calc(5 * var(--u)); }
@media (max-width: 640px) {
  .vc-drawer { padding: 8px 10px 14px; gap: 6px; } .vc-title { display: none; }
  .vc-live { grid-template-columns: 96px 1fr; gap: 8px; } .vc-note b { font-size: calc(1.6 * var(--u)); }
  .vc-vis { min-height: 120px; } .vc-orb { width: 96px; height: 96px; } .vc-target { font-size: calc(3 * var(--u)); }
}

.vc-drawer > *, .vc-body > * { min-width: 0; }

/* Legibilidad: tamaños en px (no dependen del tamaño de letra del sitio, que en modo compacto es chico) y más grandes en pantalla ancha */
.vc-drawer { --u: 16px; }
@media (min-width: 900px) { .vc-drawer { --u: clamp(16px, 1.05vw, 19px); } }
html.bub-full .vc-drawer { --u: clamp(17px, 1.3vw, 23px); }
