/* Teleprompter · tono quintral (grabar) */
.tp-taller { grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr); }
.tp-guion { min-height: 380px; font-size: 18px; line-height: 1.65; }
.tp-duracion { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--ap-quintral-fondo); }
.tp-duracion > div { display: flex; align-items: baseline; gap: 10px; }
.tp-duracion__cifra { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tp-duracion__txt { font-size: 15px; color: var(--texto-2); }
.tp-duracion p { margin: 0; font-size: 14px; color: var(--texto-2); max-width: 34ch; }
.tp-opciones { display: grid; gap: 2px; }
.ap-panel > .ob-btn { width: 100%; }
.tp-atajos { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--texto-3); }
kbd { font: 600 12px var(--font-mono); padding: 2px 6px; border-radius: 5px; background: var(--fondo-2); box-shadow: inset 0 -1px 0 var(--linea), inset 0 0 0 1px var(--linea); color: var(--texto-2); }

/* Escena del teleprompter: siempre en negro, pase lo que pase con el tema */
.tp-escena { position: fixed; inset: 0; z-index: 200; background: #050403; color: #f4ede2; overflow: hidden; font-family: var(--font-sans); --tp-guia: 32%; }
.tp-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); opacity: 0; }
.tp-escena[data-camara] .tp-video { opacity: 1; }
.tp-ventana { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.tp-escena[data-camara] .tp-ventana { bottom: 50%; background: linear-gradient(rgba(5, 4, 3, .82), rgba(5, 4, 3, .7) 80%, rgba(5, 4, 3, 0)); }
.tp-escena[data-camara] { --tp-guia: 19%; }
.tp-ventana::before, .tp-ventana::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.tp-ventana::before { top: 0; height: 14%; background: linear-gradient(#050403, transparent); }
.tp-escena[data-camara] .tp-ventana::before { background: linear-gradient(rgba(5, 4, 3, .9), transparent); }
.tp-rollo { will-change: transform; }
.tp-texto { max-width: 1000px; margin-inline: auto; padding: 0 clamp(20px, 6vw, 80px); font-size: var(--tp-tam, 56px); font-weight: 700; line-height: 1.4; letter-spacing: -.01em; text-wrap: pretty; }
.tp-texto p { margin: 0 0 .9em; }
.tp-texto .tp-nota { font-weight: 400; font-style: italic; font-size: .62em; color: #ffc933; letter-spacing: 0; }
.tp-escena[data-espejo] .tp-texto { transform: scaleX(-1); }
.tp-guia { position: absolute; left: 0; right: 0; top: var(--tp-guia); height: calc(var(--tp-tam, 56px) * 1.4); transform: translateY(-50%); pointer-events: none; border-block: 1px solid rgba(255, 122, 41, .5); background: rgba(255, 122, 41, .08); }
.tp-guia::before, .tp-guia::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border-block: 12px solid transparent; transform: translateY(-50%); }
.tp-guia::before { left: 10px; border-left: 16px solid #ff7a29; }
.tp-guia::after { right: 10px; border-right: 16px solid #ff7a29; }
.tp-progreso { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: rgba(244, 237, 226, .12); z-index: 3; }
.tp-progreso i { display: block; height: 100%; width: 0; background: linear-gradient(100deg, #e51735, #ff7a29 55%, #ffc933); }
.tp-estado { position: absolute; top: 14px; right: 18px; z-index: 3; display: flex; align-items: center; gap: 14px; font: 600 15px var(--font-mono); color: rgba(244, 237, 226, .75); }
.tp-rec { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: #e51735; color: #fff; }
.tp-rec i { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: ap-parpadeo 1.2s steps(2, jump-none) infinite; }
.tp-numero { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; font-size: min(40vw, 320px); font-weight: 800; letter-spacing: -.05em; pointer-events: none; background: transparent; color: #ffc933; }
.tp-numero:empty { display: none; }

.tp-controles { position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 3; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 16px; background: rgba(27, 23, 21, .92); box-shadow: 0 0 0 1px rgba(244, 237, 226, .14), 0 20px 40px -16px #000; transition: opacity var(--dur-base), transform var(--dur-base); max-width: calc(100vw - 24px); flex-wrap: wrap; justify-content: center; }
.tp-escena[data-quieto] .tp-controles { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.tp-escena[data-quieto] { cursor: none; }
.tp-c { min-width: 48px; height: 48px; padding: 0 12px; border: 0; border-radius: 11px; background: rgba(244, 237, 226, .1); color: #f4ede2; font: 700 20px/1 var(--font-sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.tp-c:hover { background: rgba(244, 237, 226, .2); }
.tp-c:focus-visible { outline: 2px solid #ffc933; outline-offset: 2px; }
.tp-c[aria-pressed="true"] { background: #f4ede2; color: #141211; }
.tp-c--grande { min-width: 64px; background: #f4ede2; color: #141211; font-size: 18px; }
.tp-c--grande:hover { background: #fff; }
.tp-c--rec { background: #e51735; font-size: 16px; }
.tp-c--rec:hover { background: #c4122f; }
.tp-c--rec i { width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.tp-c--rec[data-grabando] i { border-radius: 2px; }
.tp-c__vel { min-width: 76px; text-align: center; font: 600 14px var(--font-mono); color: rgba(244, 237, 226, .8); }

.tp-listo { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 16px; background: rgba(5, 4, 3, .8); }
.tp-listo__caja { width: min(720px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.tp-listo__video { width: 100%; max-height: 60vh; border-radius: var(--radius-sm); background: #000; }
.ca-ayuda { margin: 0; font-size: 14px; line-height: 1.5; color: var(--texto-2); }

@media (max-width: 980px) { .tp-taller { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tp-c { min-width: 44px; height: 44px; padding: 0 8px; } .tp-c__vel { display: none; } }
