/* Quiz en Vivo
   Para adaptar a la marca de cada cliente, cambia solo las variables de .qv */

.qv,
.qv-marco {
	--qv-fondo: #0F1E4D;
	--qv-superficie: #1A2C6B;
	--qv-elegida: #24398A;
	--qv-borde: rgba(255, 255, 255, .16);
	--qv-tinta: #F5F7FF;
	--qv-tenue: #AEB8DB;
	--qv-acento: #FFC531;
	--qv-acento-tinta: #1F1600;
	--qv-ok: #2BD48A;
	--qv-error: #FF6B5E;
	--qv-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
	--qv-texto: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.qv {
	position: relative;
	box-sizing: border-box;
	max-width: 640px;
	margin: 0 auto;
	padding: clamp(16px, 4vw, 28px);
	background: var(--qv-fondo);
	color: var(--qv-tinta);
	font-family: var(--qv-texto);
	font-size: 17px;
	line-height: 1.45;
	border-radius: 20px;
}
.qv *, .qv *::before, .qv *::after { box-sizing: inherit; }
.qv p { margin: 0; }
.qv.is-offline::before {
	content: "Reconectando…";
	display: block;
	margin-bottom: 12px;
	color: var(--qv-error);
	font-size: 14px;
}

/* ---------- Logo ---------- */

.qv .qv-logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 45%;
	max-height: 44px;
	margin: 0 0 16px auto;
	object-fit: contain;
}
.qv.qv-logo-izq .qv-logo { margin: 0 auto 16px 0; }

/* ---------- Barra superior ---------- */

.qv .qv-barra {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	color: var(--qv-tenue);
	font-size: 15px;
}
.qv .qv-link {
	appearance: none;
	background: none;
	border: 0;
	padding: 4px 0;
	color: var(--qv-tenue);
	font: inherit;
	text-decoration: underline;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
}

/* ---------- Tipografía ---------- */

.qv .qv-titulo {
	margin: 0 0 20px;
	color: var(--qv-acento);
	font-family: var(--qv-display);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
}
.qv .qv-pregunta {
	font-family: var(--qv-display);
	font-size: clamp(26px, 6.5vw, 36px);
	font-weight: 700;
	line-height: 1.08;
}
.qv .qv-grande {
	font-family: var(--qv-display);
	font-size: 34px;
	font-weight: 700;
	line-height: 1.05;
	margin-bottom: 8px;
}
.qv .qv-sub { color: var(--qv-tenue); }
.qv .qv-instruccion { margin-top: 16px; font-size: 15px; }
.qv .qv-detalle {
	margin-top: 14px;
	color: var(--qv-error);
	font-size: 14px;
	word-break: break-word;
}

/* ---------- Formulario de nombre (forzado contra estilos del tema) ---------- */

.qv .qv-label {
	display: block;
	margin-bottom: 10px;
	font-family: var(--qv-display);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.1;
}
.qv input.qv-input {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 14px 16px !important;
	background: var(--qv-superficie) !important;
	border: 2px solid var(--qv-borde) !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	color: var(--qv-tinta) !important;
	font: 500 20px/1.2 var(--qv-texto) !important;
	outline: none !important;
}
.qv input.qv-input:focus { border-color: var(--qv-acento) !important; }
.qv .qv-btn {
	appearance: none;
	display: block;
	width: 100%;
	margin-top: 16px;
	padding: 16px;
	background: var(--qv-acento);
	border: 0;
	border-radius: 12px;
	color: var(--qv-acento-tinta);
	font: 700 22px/1 var(--qv-display);
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
}
.qv .qv-btn:focus-visible,
.qv .qv-link:focus-visible,
.qv .qv-opcion:focus-visible {
	outline: 3px solid var(--qv-acento);
	outline-offset: 3px;
}
.qv .qv-error {
	margin-top: 12px;
	color: var(--qv-error);
	font-weight: 600;
}

/* ---------- Cuenta regresiva (celular) ---------- */

.qv .qv-timer {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}
.qv .qv-timer-num {
	min-width: 2ch;
	color: var(--qv-acento);
	font: 700 40px/1 var(--qv-display);
	font-variant-numeric: tabular-nums;
}
.qv .qv-timer-bar {
	display: block;
	flex: 1;
	height: 8px;
	overflow: hidden;
	background: var(--qv-superficie);
	border-radius: 8px;
}
.qv .qv-timer-fill {
	display: block;
	height: 100%;
	background: var(--qv-acento);
	transform-origin: left center;
	transition: transform .2s linear;
}
.qv .qv-timer.is-urgente .qv-timer-num,
.qv .qv-reloj.is-urgente .qv-reloj-num { color: var(--qv-error); }
.qv .qv-timer.is-urgente .qv-timer-fill { background: var(--qv-error); }

/* ---------- Alternativas ---------- */

.qv .qv-opciones {
	display: grid;
	gap: 10px;
	margin-top: 22px;
}
.qv .qv-opcion {
	appearance: none;
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 64px;
	margin: 0;
	padding: 10px 14px 10px 10px;
	overflow: hidden;
	background: var(--qv-superficie);
	border: 2px solid var(--qv-borde);
	border-radius: 14px;
	color: var(--qv-tinta);
	font: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
	transition: border-color .15s ease, transform .1s ease, opacity .2s ease;
}
.qv button.qv-opcion:hover:not(:disabled) { border-color: var(--qv-acento); }
.qv button.qv-opcion:active:not(:disabled) { transform: scale(.98); }
.qv button.qv-opcion:disabled { cursor: default; }
.qv button.qv-opcion:disabled:not(.is-elegida):not(.is-correcta) { opacity: .45; }
.qv .qv-opcion.is-enviando { opacity: .7; }
.qv .qv-opcion.is-elegida { background: var(--qv-elegida); border-color: var(--qv-acento); }

.qv .qv-letra {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	background: var(--qv-acento);
	border-radius: 10px;
	color: var(--qv-acento-tinta);
	font: 700 26px/1 var(--qv-display);
}
.qv .qv-texto {
	flex: 1;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.25;
}
.qv .qv-opcion.is-correcta { border-color: var(--qv-ok); }
.qv .qv-opcion.is-correcta .qv-letra { background: var(--qv-ok); }
.qv .qv-opcion.is-incorrecta { border-color: var(--qv-error); }
.qv .qv-opcion.is-incorrecta .qv-letra { background: var(--qv-error); }

/* ---------- Mensajes de resultado (celular) ---------- */

.qv .qv-feedback {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 18px;
	padding: 14px 16px;
	background: var(--qv-superficie);
	border-left: 4px solid var(--qv-tenue);
	border-radius: 10px;
}
.qv .qv-feedback span { color: var(--qv-tenue); }
.qv .qv-feedback.is-enviada { border-left-color: var(--qv-acento); }
.qv .qv-feedback.is-ok { border-left-color: var(--qv-ok); }
.qv .qv-feedback.is-error { border-left-color: var(--qv-error); }
.qv .qv-feedback.is-tiempo { border-left-color: var(--qv-error); }
.qv .qv-feedback.is-tiempo strong { font: 700 28px/1.05 var(--qv-display); }
.qv .qv-feedback.is-ganador {
	padding: 20px;
	background: var(--qv-acento);
	border-left: 0;
	color: var(--qv-acento-tinta);
	animation: qv-celebra .6s cubic-bezier(.2, .9, .3, 1.3) both;
}
.qv .qv-feedback.is-ganador strong { font: 700 40px/1 var(--qv-display); }
.qv .qv-feedback.is-ganador span { color: var(--qv-acento-tinta); }

@keyframes qv-celebra {
	0%   { transform: scale(.8); opacity: 0; }
	60%  { transform: scale(1.04); opacity: 1; }
	100% { transform: scale(1); }
}
@keyframes qv-entra {
	from { transform: translateY(12px); opacity: 0; }
	to   { transform: none; opacity: 1; }
}

/* =================== Pantalla del escenario ===================
   Escenario fijo de 1920×1080 escalado con JS para calzar en el contenedor (16:9). */

.qv.qv-pantalla {
	position: relative;
	width: 100%;
	max-width: none;
	aspect-ratio: 16 / 9;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 0;
}
.qv.qv-pantalla.is-full,
.qv.qv-pantalla:fullscreen {
	width: 100vw;
	height: 100vh;
	aspect-ratio: auto;
}
.qv.qv-pantalla.is-full.is-idle { cursor: none; }

.qv-pantalla .qv-stage {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 1920px;
	height: 1080px;
	padding: 90px 120px;
	overflow: hidden;
	background: var(--qv-fondo);
	transform: translate(-50%, -50%) scale(.5);
	transform-origin: center center;
}
.qv-pantalla.qv-con-logo .qv-stage { padding-top: 170px; }
.qv-pantalla .qv-logo {
	position: absolute;
	top: 52px;
	right: 80px;
	max-width: 420px;
	max-height: 104px;
	margin: 0;
}
.qv-pantalla.qv-logo-izq .qv-logo { right: auto; left: 80px; }

/* Espera con QR: título arriba, QR grande al centro, logo en la esquina. */
.qv-pantalla .qv-stage.has-qr { justify-content: center; padding-top: 60px; padding-bottom: 60px; }
.qv-pantalla .qv-stage.is-wait.has-qr .qv-logo,
.qv-pantalla.qv-logo-izq .qv-stage.is-wait.has-qr .qv-logo {
	position: absolute;
	top: 44px;
	right: 48px;
	left: auto;
	max-width: 300px;
	max-height: 300px;
	margin: 0;
}
.qv-pantalla.qv-logo-izq .qv-stage.is-wait.has-qr .qv-logo { right: auto; left: 48px; }
.qv-pantalla .qv-espera-qr .qv-pantalla-titulo {
	max-width: 1200px;
	margin: 0 auto 56px;
	font-size: 128px;
	line-height: 1;
}
.qv-pantalla .qv-qr {
	width: 580px;
	height: 580px;
	margin: 0 auto;
	padding: 0;
	overflow: hidden;
	background: #fff;
	border-radius: 28px;
}
.qv-pantalla .qv-qr svg { display: block; width: 100%; height: 100%; }
.qv-pantalla .qv-qr--imagen { display: grid; place-items: center; background: none; }
.qv-pantalla .qv-qr--imagen img { max-width: 100%; max-height: 100%; }

/* En la espera sin QR el logo pasa al centro, grande, sobre el título. */
.qv-pantalla.qv-con-logo .qv-stage.is-wait { padding-top: 90px; }
.qv-pantalla .qv-stage.is-wait .qv-logo,
.qv-pantalla.qv-logo-izq .qv-stage.is-wait .qv-logo {
	position: static;
	align-self: center;
	width: auto;
	max-width: 480px;
	max-height: 240px;
	margin: 0 auto 64px;
}
.qv-pantalla .qv-app { width: 100%; }

.qv-pantalla .qv-fs-btn {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 5;
	padding: 10px 16px;
	background: rgba(0, 0, 0, .55);
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 10px;
	color: #fff;
	font: 600 14px/1 var(--qv-texto);
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
	transition: opacity .3s ease;
}
.qv-pantalla.is-idle .qv-fs-btn { opacity: 0; pointer-events: none; }

.qv-pantalla .qv-cabecera {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 48px;
}
.qv-pantalla .qv-pregunta {
	max-width: 1380px;
	font-size: 92px;
	line-height: 1.02;
}
.qv-pantalla .qv-pregunta.qv-largo-1 { font-size: 78px; }
.qv-pantalla .qv-pregunta.qv-largo-2 { font-size: 66px; }
.qv-pantalla .qv-pregunta.qv-largo-3 { font-size: 54px; line-height: 1.08; }
.qv-pantalla .qv-pregunta--chica {
	max-width: none;
	color: var(--qv-tenue);
	font-size: 42px;
}

/* Reloj */
.qv-pantalla .qv-reloj {
	flex: none;
	display: grid;
	place-items: center;
	width: 190px;
	height: 190px;
	border: 9px solid var(--qv-acento);
	border-radius: 50%;
}
.qv-pantalla .qv-reloj.is-urgente { border-color: var(--qv-error); }
.qv-pantalla .qv-reloj-num {
	color: var(--qv-acento);
	font: 700 100px/1 var(--qv-display);
	font-variant-numeric: tabular-nums;
}
.qv-pantalla .qv-timer-bar {
	display: block;
	height: 12px;
	margin-top: 36px;
	overflow: hidden;
	background: var(--qv-superficie);
	border-radius: 12px;
}
.qv-pantalla .qv-timer-fill { background: var(--qv-acento); }
.qv-pantalla .qv-app.is-urgente .qv-timer-fill { background: var(--qv-error); }

.qv-pantalla .qv-opciones {
	grid-template-columns: 1fr 1fr;
	gap: 26px;
	margin-top: 48px;
}
.qv-pantalla .qv-opcion {
	min-height: 140px;
	padding: 18px 28px 18px 18px;
	gap: 26px;
	border-radius: 20px;
	cursor: default;
}
.qv-pantalla .qv-letra {
	width: 92px;
	height: 92px;
	border-radius: 16px;
	font-size: 56px;
}
.qv-pantalla .qv-texto {
	font-size: 42px;
	font-weight: 600;
}
.qv-pantalla .qv-pie {
	margin-top: 40px;
	color: var(--qv-tenue);
	font-size: 32px;
}

/* Se acabó el tiempo */
.qv-pantalla .qv-fin-tiempo {
	margin-top: 60px;
	text-align: center;
	animation: qv-celebra .5s cubic-bezier(.2, .9, .3, 1.3) both;
}
.qv-pantalla .qv-fin-titulo {
	margin-bottom: 20px;
	color: var(--qv-acento);
	font: 700 180px/.95 var(--qv-display);
}
.qv-pantalla .qv-fin-tiempo .qv-sub { font-size: 38px; }

/* Resultados */
.qv-pantalla .qv-correcta-linea {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 18px;
	font: 700 56px/1.1 var(--qv-display);
}
.qv-pantalla .qv-correcta-linea .qv-letra {
	width: 76px;
	height: 76px;
	font-size: 46px;
	background: var(--qv-ok);
}
.qv-pantalla .qv-resultados {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 56px;
	align-items: start;
	margin-top: 48px;
}
.qv-pantalla .qv-resultados--doble { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 44px; }
.qv-pantalla .qv-podio {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 48px;
	background: var(--qv-acento);
	border-radius: 28px;
	color: var(--qv-acento-tinta);
	animation: qv-celebra .7s cubic-bezier(.2, .9, .3, 1.3) both;
}
.qv-pantalla .qv-podio-etiqueta { font: 600 30px/1.2 var(--qv-texto); }
.qv-pantalla .qv-podio-nombre {
	font: 700 120px/.95 var(--qv-display);
	overflow-wrap: anywhere;
}
.qv-pantalla .qv-resultados--doble .qv-podio-nombre { font-size: 100px; }
.qv-pantalla .qv-podio-tiempo {
	font: 700 52px/1 var(--qv-display);
	opacity: .75;
}
.qv-pantalla .qv-ranking {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.qv-pantalla .qv-ranking--doble {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(5, auto);
	grid-auto-flow: column;
	column-gap: 32px;
}
.qv-pantalla .qv-ranking li {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
	margin: 0;
	padding: 18px 26px;
	background: var(--qv-superficie);
	border-radius: 16px;
	font-size: 36px;
	animation: qv-entra .4s ease both;
}
.qv-pantalla .qv-resultados--doble .qv-ranking li { font-size: 31px; padding: 16px 22px; }
.qv-pantalla .qv-rank-pos {
	flex: none;
	min-width: 1.3em;
	color: var(--qv-acento);
	font: 700 1.2em/1 var(--qv-display);
}
.qv-pantalla .qv-rank-nombre {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.qv-pantalla .qv-rank-tiempo {
	color: var(--qv-tenue);
	font-variant-numeric: tabular-nums;
}

/* Espera */
.qv-pantalla-espera { text-align: center; }
.qv-pantalla .qv-pantalla-titulo {
	margin-bottom: 20px;
	color: var(--qv-acento);
	font: 700 150px/.95 var(--qv-display);
}
.qv-pantalla-espera .qv-sub { font-size: 38px; }
.qv-pantalla .qv-detalle { font-size: 28px; }

/* =================== Control del operador (celular) =================== */

.qv.qv-control {
	max-width: 560px;
	padding: 16px 16px 96px;
	border-radius: 16px;
}
.qv-control .qvc-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}
.qv-control .qvc-trivia {
	color: var(--qv-acento);
	font: 700 24px/1.1 var(--qv-display);
}
.qv-control .qvc-conn {
	flex: none;
	padding: 4px 10px;
	background: rgba(43, 212, 138, .15);
	border-radius: 20px;
	color: var(--qv-ok);
	font-size: 13px;
	font-weight: 600;
}
.qv-control .qvc-conn.is-off { background: rgba(255, 107, 94, .15); color: var(--qv-error); }

.qv-control .qvc-h1 { margin: 6px 0 10px; font: 700 34px/1.05 var(--qv-display); color: var(--qv-tinta); }
.qv-control .qvc-h2 { margin: 0; font: 700 26px/1.1 var(--qv-display); color: var(--qv-tinta); }
.qv-control .qvc-h3 { margin: 18px 0 8px; font: 600 15px/1.2 var(--qv-texto); color: var(--qv-tenue); }
.qv-control .qvc-clave .qv-input { margin-top: 16px !important; }

/* Inscritos */
.qv-control .qvc-inscritos {
	display: flex;
	align-items: flex-end;
	gap: 22px;
	margin-bottom: 14px;
}
.qv-control .qvc-cifra { display: flex; flex-direction: column; }
.qv-control .qvc-cifra strong {
	color: var(--qv-tinta);
	font: 700 40px/1 var(--qv-display);
	font-variant-numeric: tabular-nums;
}
.qv-control .qvc-cifra span { color: var(--qv-tenue); font-size: 14px; }
.qv-control .qvc-reiniciar {
	appearance: none;
	margin-left: auto;
	padding: 6px 0;
	background: none;
	border: 0;
	color: var(--qv-tenue);
	font: 500 13px/1.2 var(--qv-texto);
	text-decoration: underline;
	box-shadow: none;
	cursor: pointer;
}

/* Tarjeta en vivo */
.qv-control .qvc-live {
	padding: 16px;
	background: var(--qv-superficie);
	border: 2px solid var(--qv-borde);
	border-radius: 16px;
}
.qv-control .qvc-live-cab {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.qv-control .qvc-chip {
	display: inline-block;
	white-space: nowrap;
	padding: 5px 12px;
	background: rgba(255, 255, 255, .1);
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
}
.qv-control .qvc-chip.is-answering { background: rgba(43, 212, 138, .18); color: var(--qv-ok); }
.qv-control .qvc-chip.is-timeup { background: rgba(255, 107, 94, .18); color: var(--qv-error); }
.qv-control .qvc-chip.is-results { background: var(--qv-acento); color: var(--qv-acento-tinta); }
.qv-control .qvc-reloj {
	flex: none;
	white-space: nowrap;
	color: var(--qv-acento);
	font: 700 44px/1 var(--qv-display);
	font-variant-numeric: tabular-nums;
}
.qv-control .qvc-reloj.is-urgente { color: var(--qv-error); }
.qv-control .qvc-barra {
	height: 6px;
	margin-top: 10px;
	overflow: hidden;
	background: rgba(255, 255, 255, .1);
	border-radius: 6px;
}
.qv-control .qvc-barra span {
	display: block;
	height: 100%;
	background: var(--qv-acento);
	transform-origin: left center;
	transition: transform .25s linear;
}
.qv-control .qvc-pregunta { margin-top: 12px; font: 700 26px/1.1 var(--qv-display); }
.qv-control .qvc-correcta { margin-top: 6px; color: var(--qv-tenue); font-size: 15px; }
.qv-control .qvc-correcta strong { color: var(--qv-ok); }
.qv-control .qvc-vacio { margin-top: 10px; color: var(--qv-tenue); }

.qv-control .qvc-total { margin-top: 16px; color: var(--qv-tenue); }
.qv-control .qvc-total strong { color: var(--qv-tinta); font: 700 30px/1 var(--qv-display); }
.qv-control .qvc-dist { display: grid; gap: 6px; margin-top: 8px; }
.qv-control .qvc-dist-fila { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.qv-control .qvc-dist-letra { width: 18px; font-weight: 700; }
.qv-control .qvc-dist-barra { flex: 1; height: 10px; overflow: hidden; background: rgba(255, 255, 255, .08); border-radius: 6px; }
.qv-control .qvc-dist-barra span { display: block; height: 100%; background: var(--qv-tenue); }
.qv-control .qvc-dist-fila.is-ok .qvc-dist-barra span { background: var(--qv-ok); }
.qv-control .qvc-dist-n { min-width: 3ch; text-align: right; color: var(--qv-tenue); font-variant-numeric: tabular-nums; }

.qv-control .qvc-top-lista { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.qv-control .qvc-top-lista li {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 8px 10px;
	background: rgba(255, 255, 255, .05);
	border-radius: 8px;
	font-size: 15px;
}
.qv-control .qvc-top-lista li span:first-child { width: 2ch; color: var(--qv-acento); font-weight: 700; }
.qv-control .qvc-top-lista li span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qv-control .qvc-top-lista li span:last-child { color: var(--qv-tenue); font-variant-numeric: tabular-nums; }
.qv-control .qvc-top-lista li.is-primero { background: var(--qv-acento); color: var(--qv-acento-tinta); font-weight: 700; }
.qv-control .qvc-top-lista li.is-primero span { color: inherit !important; }

/* Botones */
.qv-control .qvc-acciones { display: grid; gap: 8px; margin-top: 16px; }
.qv-control .qvc-acciones--fila { display: flex; flex-wrap: wrap; margin-top: 12px; }
.qv-control .qvc-btn {
	appearance: none;
	min-height: 48px;
	padding: 10px 16px;
	background: rgba(255, 255, 255, .08);
	border: 2px solid var(--qv-borde);
	border-radius: 12px;
	color: var(--qv-tinta);
	font: 600 16px/1.1 var(--qv-texto);
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
}
.qv-control .qvc-acciones > .qvc-btn { width: 100%; }
.qv-control .qvc-acciones--fila > .qvc-btn { width: auto; flex: 1 1 0; min-width: 0; padding: 10px 8px; }
.qv-control .qvc-btn.is-primario {
	min-height: 58px;
	background: var(--qv-acento);
	border-color: var(--qv-acento);
	color: var(--qv-acento-tinta);
	font: 700 22px/1 var(--qv-display);
}
.qv-control .qvc-acciones--fila > .qvc-btn.is-primario { flex: 1 1 100%; }
.qv-control .qvc-btn.is-suave { min-height: 42px; background: none; border-color: transparent; color: var(--qv-tenue); text-decoration: underline; }
.qv-control .qvc-btn.is-peligro { color: var(--qv-error); border-color: rgba(255, 107, 94, .35); }
.qv-control .qvc-btn:disabled { opacity: .5; cursor: default; }
.qv-control .qvc-btn:focus-visible { outline: 3px solid var(--qv-acento); outline-offset: 2px; }

/* Lista de preguntas */
.qv-control .qvc-lista { margin-top: 26px; }
.qv-control .qvc-lista .qvc-h2 { margin-bottom: 10px; }
.qv-control .qvc-item {
	margin-bottom: 10px;
	padding: 14px;
	background: var(--qv-superficie);
	border: 2px solid transparent;
	border-radius: 14px;
}
.qv-control .qvc-item.is-actual { border-color: var(--qv-acento); }
.qv-control .qvc-item-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.qv-control .qvc-num { color: var(--qv-acento); font: 700 22px/1 var(--qv-display); margin-right: 2px; }
.qv-control .qvc-estado { padding: 3px 9px; background: rgba(255, 255, 255, .1); border-radius: 20px; font-weight: 600; }
.qv-control .qvc-estado.is-open { background: rgba(43, 212, 138, .18); color: var(--qv-ok); }
.qv-control .qvc-estado.is-results,
.qv-control .qvc-estado.is-closed { color: var(--qv-tenue); }
.qv-control .qvc-item.is-actual .qvc-estado { background: var(--qv-acento); color: var(--qv-acento-tinta); }
.qv-control .qvc-meta { color: var(--qv-tenue); }
.qv-control .qvc-item-q { margin-top: 8px; font-weight: 600; line-height: 1.3; }
.qv-control .qvc-item-ok { margin-top: 4px; color: var(--qv-ok); font-size: 14px; }

/* Botón flotante y hoja del editor */
.qv-control .qvc-fab {
	position: fixed;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	left: 16px;
	z-index: 20;
	max-width: 528px;
	margin: 0 auto;
	min-height: 56px;
	background: var(--qv-acento);
	border: 0;
	border-radius: 14px;
	color: var(--qv-acento-tinta);
	font: 700 22px/1 var(--qv-display);
	text-transform: none;
	letter-spacing: normal;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
	cursor: pointer;
}
.qv-control .qvc-sheet {
	position: fixed;
	inset: 0;
	z-index: 100000;
	overflow-y: auto;
	background: var(--qv-fondo);
	-webkit-overflow-scrolling: touch;
}
.qv-control .qvc-sheet[hidden] { display: none; }
.qvc-sin-scroll, .qvc-sin-scroll body { overflow: hidden; }
.qv-control .qvc-editor {
	max-width: 560px;
	margin: 0 auto;
	padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(32px + env(safe-area-inset-bottom, 0px));
}
.qv-control .qvc-editor-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.qv-control .qvc-cerrar {
	appearance: none;
	padding: 8px 4px;
	background: none;
	border: 0;
	color: var(--qv-tenue);
	font: 600 16px/1 var(--qv-texto);
	text-decoration: underline;
	box-shadow: none;
	cursor: pointer;
}
.qv-control .qvc-aviso { margin: 8px 0; padding: 10px 12px; background: rgba(255, 197, 49, .12); border-radius: 10px; color: var(--qv-acento); font-size: 14px; }
.qv-control .qvc-label { display: block; margin: 18px 0 8px; font-weight: 600; }
.qv-control .qvc-label--fino { margin-top: 12px; font-weight: 400; color: var(--qv-tenue); font-size: 14px; }
.qv-control .qvc-campo {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 12px 14px !important;
	background: var(--qv-superficie) !important;
	border: 2px solid var(--qv-borde) !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	color: var(--qv-tinta) !important;
	font: 500 17px/1.3 var(--qv-texto) !important;
}
.qv-control .qvc-campo:focus { border-color: var(--qv-acento) !important; outline: none; }
.qv-control .qvc-campo--corto { max-width: 120px; }
.qv-control .qvc-alt { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.qv-control .qvc-alt .qvc-campo { flex: 1; }
.qv-control .qvc-alt-letra {
	flex: none;
	width: 50px;
	height: 50px;
	padding: 0;
	background: rgba(255, 255, 255, .08);
	border: 2px solid var(--qv-borde);
	border-radius: 12px;
	color: var(--qv-tinta);
	font: 700 26px/1 var(--qv-display);
	box-shadow: none;
	cursor: pointer;
}
.qv-control .qvc-alt-letra.is-on { background: var(--qv-ok); border-color: var(--qv-ok); color: #052b19; }
.qv-control .qvc-tiempos { display: flex; flex-wrap: wrap; gap: 8px; }
.qv-control .qvc-tiempo {
	min-height: 44px;
	padding: 8px 14px;
	background: rgba(255, 255, 255, .08);
	border: 2px solid var(--qv-borde);
	border-radius: 22px;
	color: var(--qv-tinta);
	font: 600 15px/1 var(--qv-texto);
	box-shadow: none;
	cursor: pointer;
}
.qv-control .qvc-tiempo.is-on { background: var(--qv-acento); border-color: var(--qv-acento); color: var(--qv-acento-tinta); }
.qv-control .qvc-editor .qv-btn { margin-top: 22px; }

.qv-control .qvc-toast {
	position: fixed;
	left: 50%;
	bottom: calc(86px + env(safe-area-inset-bottom, 0px));
	z-index: 100001;
	max-width: calc(100% - 32px);
	padding: 12px 18px;
	background: var(--qv-ok);
	border-radius: 12px;
	color: #052b19;
	font-weight: 600;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 10px);
	transition: opacity .2s ease, transform .2s ease;
}
.qv-control .qvc-toast.is-error { background: var(--qv-error); color: #2b0703; }
.qv-control .qvc-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.qv-aviso { padding: 16px; background: #fff3cd; color: #5c4400; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
	.qv *, .qv *::before, .qv *::after {
		animation: none !important;
		transition: none !important;
	}
}
