/**
 * MIHA Paz y Salvo — estilos públicos (mosaico, franja, tarjeta, ventana de consulta).
 *
 * 1.1.0 · Unidad gráfica MIHA UI. Colores, tipografía y curvas salen de los
 * tokens --mui-* (con la paleta MIHA como respaldo): el mosaico del home es
 * un vidrio con el tinte del acento, y la ventana de consulta es una hoja
 * blanca que en celulares sube desde abajo. Estado «Paz y Salvo» en verde y
 * «En deuda» en rojo. Los !important blindan los controles frente a
 * Elementor y al tema. Sin modo oscuro.
 *
 * Contenido: 1 Tokens · 2 Mosaico, tarjeta y franja · 3 Acceso del panel ·
 * 4 Ventana de consulta · 5 Adaptación y movimiento reducido.
 */

/* ============================================================ 1 · Tokens */
.miha-pysw, .miha-pys-guard, .miha-pysq-modal, .miha-pysq--preview,
.miha-pys-wrap, .miha-pys-toast, .miha-pys-ask, .miha-pys-toasts {
	--mp-acento: var(--mui-acento, #372677);
	--mp-acento-rgb: var(--mui-acento-rgb, 55, 38, 119);
	--mp-acento-claro: var(--mui-acento-claro, #b5addb);
	--mp-acento-suave: var(--mui-acento-suave, rgba(55, 38, 119, .12));
	--mp-acento-oscuro: var(--mui-acento-oscuro, #2b1f62);
	--mp-tinta: var(--mui-tinta, #1e1838);
	--mp-texto: var(--mui-texto-2, #3a3456);
	--mp-tenue: var(--mui-tenue, #6e6886);
	--mp-crema: var(--mui-crema, #f3ede6);
	--mp-ok: var(--mui-ok, #1f7a47);
	--mp-ambar: var(--mui-ambar, #b8690e);
	--mp-error: var(--mui-error, #c2372c);
	--mp-fuente: var(--mui-fuente, "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	--mp-display: var(--mui-display, "Urbanist", "Plus Jakarta Sans", system-ui, sans-serif);
	--mp-curva: var(--mui-curva, cubic-bezier(.2, .8, .2, 1));
	--mp-sombra: 0 1px 2px rgba(30, 22, 60, .05), 0 22px 46px -30px rgba(30, 22, 60, .5);
	--mp-linea: rgba(30, 24, 56, .08);
	--mp-blanco: linear-gradient(160deg, #fff, rgba(252, 250, 255, .96));
	--mp-hero: radial-gradient(700px 300px at 0% 0%, rgba(255, 255, 255, .2), transparent 60%), linear-gradient(150deg, var(--mp-acento), var(--mp-acento-oscuro) 65%, var(--mp-tinta));
	--mp-vidrio: linear-gradient(150deg, rgba(var(--mp-acento-rgb), .8), color-mix(in srgb, var(--mp-acento-oscuro) 88%, transparent));
}

.miha-pysw, .miha-pysw *, .miha-pysw *::before, .miha-pysw *::after,
.miha-pys-guard, .miha-pys-guard *,
.miha-pysq-modal, .miha-pysq-modal *, .miha-pysq-modal *::before, .miha-pysq-modal *::after,
.miha-pysq--preview, .miha-pysq--preview *, .miha-pysq--preview *::before, .miha-pysq--preview *::after { box-sizing: border-box; }

@keyframes mp-sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mp-entra { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes mp-gira { to { transform: rotate(360deg); } }
@keyframes mp-late { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.3); } 70% { transform: scale(.95); } }
@keyframes mp-onda { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }

/* Botón «ir» de MIHA: píldora de tinta con círculo y flecha */
.miha-pysw__go, .miha-pys-go {
	display: inline-flex !important;
	align-items: center;
	gap: 0;
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: var(--mp-fuente) !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	white-space: nowrap;
	cursor: pointer;
}
.miha-pysw__go { font-size: 1em !important; }
.miha-pysw__go > span, .miha-pys-go > span { display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-right: -8px; padding: 0 22px 0 20px; border-radius: 999px 0 0 999px; background: var(--mp-tinta); color: #fff; transition: background-color .3s ease, color .3s ease; }
.miha-pysw__go > i, .miha-pys-go > i { width: 44px; height: 44px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--mp-tinta); color: #fff; font-style: normal; box-shadow: 0 0 0 4px rgba(255, 255, 255, .92), 0 14px 26px -12px rgba(30, 24, 56, .85); transition: transform .5s var(--mp-curva), background-color .3s ease, color .3s ease; }
.miha-pysw__go:hover > span, .miha-pysw__go:hover > i, .miha-pysw__go:focus-visible > span, .miha-pysw__go:focus-visible > i,
.miha-pys-go:hover > span, .miha-pys-go:hover > i, .miha-pys-go:focus-visible > span, .miha-pys-go:focus-visible > i { background: var(--mp-acento); }
.miha-pysw__go:hover > i, .miha-pys-go:hover > i { transform: translateX(3px) rotate(-8deg); }
.miha-pysw__go:focus-visible, .miha-pys-go:focus-visible { outline: 3px solid rgba(var(--mp-acento-rgb), .3); outline-offset: 4px; }
.miha-pys-go:disabled { opacity: .5; cursor: not-allowed; }
.miha-pys-go:disabled:hover > span, .miha-pys-go:disabled:hover > i { background: var(--mp-tinta); }
.miha-pys-go:disabled:hover > i { transform: none; }
.miha-pys-go--sm > span { height: 36px; padding: 0 16px 0 15px; font-size: 12.5px; }
.miha-pys-go--sm > i { width: 36px; height: 36px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 10px 20px -12px rgba(30, 24, 56, .85); }
.miha-pys-go--block { display: flex !important; width: 100% !important; }
.miha-pys-go--block > span { flex: 1; justify-content: center; }
.miha-pys-go.is-busy > i svg { animation: mp-gira .8s linear infinite; }
/* Sobre vidrio: píldora blanca */
.miha-pysw__go > span, .miha-pysw__go > i { background: #fff; color: var(--mp-tinta); }
.miha-pysw__go > i { box-shadow: 0 0 0 4px rgba(255, 255, 255, .26), 0 14px 26px -12px rgba(10, 6, 30, .7); }
.miha-pysw__go:hover > span, .miha-pysw__go:hover > i, .miha-pysw__go:focus-visible > span, .miha-pysw__go:focus-visible > i { background: var(--mp-tinta); color: #fff; }
.miha-pysw__go svg, .miha-pys-go svg { flex: none; }
.miha-pysw__bico, .miha-pysw__hbico { width: 1.05em; height: 1.05em; }
.miha-pys-go svg:not([width]) { width: 16px; height: 16px; }

/* ================================================ 2 · Mosaico, tarjeta y franja */
.miha-pysw {
	--mpw-scale: 1;
	container-type: inline-size;
	display: block;
	width: 100%;
	margin: 0 auto;
	font-family: var(--mp-fuente);
	line-height: 1.2;
	color: #fff;
}
.miha-pysw__in {
	position: relative;
	overflow: hidden;
	font-size: clamp(10px, calc(4.3cqw * var(--mpw-scale)), 17px);
	padding: 1.4em 1.25em 1.5em;
	border-radius: 2em;
	background: var(--mp-vidrio);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 30px 60px -34px rgba(var(--mp-acento-rgb), .95);
	color: #fff;
	animation: mp-sube .6s var(--mp-curva) both;
}
.miha-pysw__in::after { content: ""; position: absolute; right: -4em; top: -5em; width: 14em; height: 14em; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%); pointer-events: none; }
.miha-pysw--plain .miha-pysw__in { padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--mp-tinta); overflow: visible; }
.miha-pysw--plain .miha-pysw__in::after { display: none; }
.miha-pysw--plain { color: var(--mp-tinta); }

/* Ícono, mes y fecha (comunes) */
.miha-pysw__hicon, .miha-pysw__icon { display: flex; align-items: center; justify-content: center; flex: none; width: 3.3em; height: 3.3em; border-radius: 1.1em; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); color: #fff; }
.miha-pysw__hsvg, .miha-pysw__svg { width: 1.35em; height: 1.7em; }
.miha-pysw__hchip, .miha-pysw__chip { display: inline-flex; align-items: center; padding: .42em 1em; border-radius: 999px; background: #fff; color: var(--mp-acento); font-size: .9em; font-weight: 700; line-height: 1; white-space: nowrap; }
.miha-pysw__hck, .miha-pysw__check { width: 1.1em; height: 1.1em; flex: none; }

/* Mosaico del home */
.miha-pysw__hhead { position: relative; z-index: 1; display: flex; align-items: center; gap: .9em; }
.miha-pysw__htext { display: flex; flex-direction: column; align-items: flex-start; gap: .5em; min-width: 0; }
.miha-pysw__htext > strong { font-family: var(--mp-display); font-size: 1.7em; font-weight: 400; letter-spacing: -.03em; line-height: 1.02; color: #fff; }
.miha-pysw__hsub { display: inline-flex; }
.miha-pysw__hdate { position: relative; z-index: 1; display: flex; align-items: center; gap: .7em; margin: 1.1em 0 0; padding: .75em .95em; border-radius: 1.2em; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); font-size: 1em; line-height: 1.25; color: rgba(255, 255, 255, .9); }
.miha-pysw__hdate > svg { width: 1.8em; height: 1.8em; flex: none; padding: .45em; border-radius: 50%; background: #fff; color: var(--mp-ok); }
.miha-pysw__hdate strong { display: block; font-family: var(--mp-display); font-size: 1.28em; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.miha-pysw__hdate--empty { font-weight: 600; }
.miha-pysw__hbtns { position: relative; z-index: 1; display: flex; margin-top: 1.2em; }
.miha-pysw--home .miha-pysw__go { font-size: 1em !important; }
.miha-pysw--home .miha-pysw__go > span { height: 3em; padding: 0 1.4em 0 1.3em; font-size: 1em; }
.miha-pysw--home .miha-pysw__go > i { width: 3em; height: 3em; }
.miha-pysw--home .miha-pysw__go { width: 100% !important; display: flex !important; }
.miha-pysw--home .miha-pysw__go > span { flex: 1; justify-content: center; }

/* Tarjeta y franja */
.miha-pysw__head { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .9em; margin: 0 0 1.1em; }
.miha-pysw__title { display: flex; flex-direction: column; font-family: var(--mp-display); font-weight: 300; }
.miha-pysw__t1, .miha-pysw__t2 { font-size: 2em; letter-spacing: -.035em; line-height: 1; color: #fff; }
.miha-pysw__line { display: block; height: 1px; margin-top: 1em; background: rgba(255, 255, 255, .4); }
.miha-pysw__body { position: relative; z-index: 1; display: flex; align-items: center; gap: 1em; }
.miha-pysw__info { display: flex; flex-direction: column; align-items: flex-start; gap: .55em; min-width: 0; }
.miha-pysw__status { display: flex; align-items: center; gap: .55em; margin: 0; font-size: 1.05em; line-height: 1.3; color: rgba(255, 255, 255, .9); }
.miha-pysw__status strong { font-weight: 700; color: #fff; }
.miha-pysw__actions { position: relative; z-index: 1; display: flex; margin-top: 1.2em; }
.miha-pysw__actions .miha-pysw__go { width: 100% !important; display: flex !important; }
.miha-pysw__actions .miha-pysw__go > span { flex: 1; justify-content: center; height: 3em; padding: 0 1.4em; font-size: 1em; }
.miha-pysw__actions .miha-pysw__go > i { width: 3em; height: 3em; }

.miha-pysw--compacto .miha-pysw__in { display: flex; align-items: center; flex-wrap: wrap; gap: 1em 1.4em; padding: 1em 1.2em; border-radius: 1.8em; }
.miha-pysw--compacto .miha-pysw__head { flex: 0 0 auto; margin: 0; grid-template-columns: auto; }
.miha-pysw--compacto .miha-pysw__t1, .miha-pysw--compacto .miha-pysw__t2 { font-size: 1.5em; }
.miha-pysw--compacto .miha-pysw__t2::before { content: " "; }
.miha-pysw--compacto .miha-pysw__title { flex-direction: row; gap: .3em; }
.miha-pysw--compacto .miha-pysw__line { display: none; }
.miha-pysw--compacto .miha-pysw__body { flex: 1 1 14em; min-width: 0; }
.miha-pysw--compacto .miha-pysw__icon { width: 2.8em; height: 2.8em; border-radius: .95em; }
.miha-pysw--compacto .miha-pysw__info { flex-direction: row; align-items: center; flex-wrap: wrap; gap: .6em 1em; }
.miha-pysw--compacto .miha-pysw__actions { flex: 0 0 auto; margin: 0; }
.miha-pysw--compacto .miha-pysw__actions .miha-pysw__go { width: auto !important; display: inline-flex !important; }
.miha-pysw--compacto .miha-pysw__actions .miha-pysw__go > span { flex: none; }
.miha-pysw--plain .miha-pysw__t1, .miha-pysw--plain .miha-pysw__t2, .miha-pysw--plain .miha-pysw__htext > strong, .miha-pysw--plain .miha-pysw__status strong, .miha-pysw--plain .miha-pysw__hdate strong { color: var(--mp-tinta); }
.miha-pysw--plain .miha-pysw__status, .miha-pysw--plain .miha-pysw__hdate { color: var(--mp-texto); }
.miha-pysw--plain .miha-pysw__hicon, .miha-pysw--plain .miha-pysw__icon { background: var(--mp-acento-suave); box-shadow: none; color: var(--mp-acento); }
.miha-pysw--plain .miha-pysw__hchip, .miha-pysw--plain .miha-pysw__chip { background: var(--mp-acento); color: #fff; }
.miha-pysw--plain .miha-pysw__hdate { background: rgba(30, 24, 56, .05); box-shadow: none; }
.miha-pysw--plain .miha-pysw__line { background: var(--mp-linea); }
.miha-pysw--plain .miha-pysw__go > span, .miha-pysw--plain .miha-pysw__go > i { background: var(--mp-tinta); color: #fff; }
.miha-pysw--plain .miha-pysw__go:hover > span, .miha-pysw--plain .miha-pysw__go:hover > i { background: var(--mp-acento); }
.miha-pysw--plain .miha-pysw__go > i { box-shadow: 0 0 0 4px rgba(255, 255, 255, .92), 0 14px 26px -12px rgba(30, 24, 56, .85); }
.miha-pysw--empty .miha-pysw__go { opacity: .9; }

/* ====================================================== 3 · Acceso del panel */
.miha-pys-guard { max-width: 520px; margin: 0 auto 24px; padding: 34px 26px; border-radius: 32px; background: var(--mp-blanco); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), var(--mp-sombra); color: var(--mp-tinta); font-family: var(--mp-fuente); text-align: center; animation: mp-sube .6s var(--mp-curva) both; }
.miha-pys-guard__icon { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin-bottom: 12px; border-radius: 24px; background: var(--mp-hero); color: #fff; box-shadow: 0 22px 40px -24px rgba(var(--mp-acento-rgb), .95); }
.miha-pys-guard__svg { width: 24px; height: 32px; }
.miha-pys-guard h3 { margin: 0 0 8px !important; font-family: var(--mp-display) !important; font-size: 26px !important; font-weight: 400 !important; letter-spacing: -.03em !important; line-height: 1.1 !important; color: var(--mp-tinta) !important; }
.miha-pys-guard p { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--mp-tenue); }
.miha-pys-guard .miha-pys-guard__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 24px; border-radius: 999px; background: var(--mp-tinta); color: #fff !important; font-size: 13.5px; font-weight: 700; text-decoration: none !important; transition: background-color .3s ease; }
.miha-pys-guard .miha-pys-guard__btn:hover { background: var(--mp-acento); }

/* ============================================== 4 · Ventana de consulta */
html.miha-pysq-lock { overflow: hidden; }
.miha-pysq-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(20, 14, 44, .5);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-family: var(--mp-fuente);
	font-size: 14px;
	line-height: 1.5;
	color: var(--mp-tinta);
	animation: mp-entra .3s ease both;
}
.miha-pysq-modal.is-closing { opacity: 0; transition: opacity .2s ease; }

.miha-pysq {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow: hidden;
	border-radius: 32px;
	background: #fff;
	color: var(--mp-tinta);
	box-shadow: 0 50px 100px -40px rgba(10, 6, 30, .8);
	transition: max-width .45s var(--mp-curva);
	animation: mp-entra .5s var(--mp-curva) both;
}
.miha-pysq.is-wide { max-width: 1040px; height: calc(100vh - 40px); height: calc(100dvh - 40px); }
.miha-pysq.is-mid { max-width: 520px; }

.miha-pysq__head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 24px 6px 28px; background: none; color: var(--mp-tinta); }
.miha-pysq .miha-pysq__head h2 { display: flex; align-items: center; gap: 14px; margin: 0 !important; padding: 0; font-family: var(--mp-display) !important; font-size: 24px !important; font-weight: 400 !important; letter-spacing: -.03em !important; line-height: 1.15 !important; color: var(--mp-tinta) !important; text-transform: none !important; }
.miha-pysq__hico { box-sizing: content-box; width: 17px; height: 22px; flex: none; padding: 12px 14px; border-radius: 16px; background: var(--mp-hero); color: #fff; box-shadow: 0 16px 28px -18px rgba(var(--mp-acento-rgb), .95); }
.miha-pysq .miha-pysq__close, .miha-pysq--preview .miha-pysq__close { appearance: none; display: flex !important; align-items: center; justify-content: center; width: 40px !important; height: 40px !important; min-height: 0 !important; flex: none; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: rgba(30, 24, 56, .06) !important; box-shadow: none !important; color: var(--mp-tinta) !important; font-size: 22px; line-height: 1; cursor: pointer; transition: background-color .25s ease, color .25s ease, transform .4s var(--mp-curva); }
.miha-pysq .miha-pysq__close:hover { background: var(--mp-tinta) !important; color: #fff !important; transform: rotate(90deg); }
.miha-pysq__body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; padding: 14px 28px 28px; overflow: auto; overscroll-behavior: contain; }
.miha-pysq__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.miha-pysq__hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

/* Formulario */
.miha-pysq__form { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin: 0; text-align: left; }
.miha-pysq__help { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--mp-tenue); }
.miha-pysq__form .miha-pysq__input, .miha-pysq--preview .miha-pysq__input--fake {
	display: block;
	width: 100%;
	max-width: none;
	min-height: 58px !important;
	height: 58px;
	margin: 0 !important;
	padding: 0 22px !important;
	border: 1px solid rgba(30, 24, 56, .16) !important;
	border-radius: 999px !important;
	background: #fff !important;
	box-shadow: inset 0 1px 2px rgba(30, 20, 60, .04) !important;
	color: var(--mp-tinta) !important;
	font-family: var(--mp-fuente) !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	letter-spacing: .14em;
	line-height: 1.2 !important;
	text-align: center;
	outline: none;
	transition: border-color .25s ease, box-shadow .25s ease;
}
.miha-pysq__form .miha-pysq__input::placeholder { color: rgba(110, 104, 134, .75); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.miha-pysq__form .miha-pysq__input:focus { border-color: var(--mp-acento) !important; box-shadow: 0 0 0 4px rgba(var(--mp-acento-rgb), .14) !important; }
.miha-pysq--preview .miha-pysq__input--fake { display: flex; align-items: center; justify-content: center; font-size: 15px !important; font-weight: 500 !important; letter-spacing: 0; color: rgba(110, 104, 134, .85) !important; }
.miha-pysq .miha-pysq__submit { width: 100% !important; }
.miha-pysq__msg { min-height: 1.2em; margin: 0; color: var(--mp-error); font-size: 13.5px; font-weight: 600; text-align: center; }
.miha-pysq__msg:empty { min-height: 0; }
.miha-pysq__ico { width: 16px; height: 16px; flex: none; }

/* Nota PQRS bajo el formulario */
.miha-pysq__pqrsnote, .miha-pysq__pqrs { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0; padding: 14px 16px; border-radius: 20px; background: rgba(30, 24, 56, .04); box-shadow: inset 0 0 0 1px var(--mp-linea); color: var(--mp-texto); font-size: 13px; line-height: 1.5; }
.miha-pysq__pqrs { margin: 0; }
.miha-pysq__pqrsnote .miha-pysq__btn--pqrs, .miha-pysq__pqrs .miha-pysq__btn--pqrs { width: 100%; }

/* Botones de la ventana */
.miha-pysq .miha-pysq__btn, .miha-pysq--preview .miha-pysq__btn {
	appearance: none;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1 1 auto;
	width: auto;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 0 20px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #fff !important;
	box-shadow: inset 0 0 0 1px rgba(30, 24, 56, .16) !important;
	color: var(--mp-tinta) !important;
	font-family: var(--mp-fuente) !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	line-height: 1.15 !important;
	letter-spacing: 0 !important;
	text-align: center;
	text-decoration: none !important;
	text-transform: none !important;
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .3s var(--mp-curva);
}
.miha-pysq .miha-pysq__btn:hover { color: var(--mp-acento) !important; box-shadow: inset 0 0 0 1px rgba(var(--mp-acento-rgb), .45) !important; transform: translateY(-1px); }
.miha-pysq .miha-pysq__btn--primary { background: var(--mp-tinta) !important; color: #fff !important; box-shadow: 0 14px 28px -16px rgba(30, 24, 56, .85) !important; }
.miha-pysq .miha-pysq__btn--primary:hover { background: var(--mp-acento) !important; color: #fff !important; box-shadow: 0 14px 28px -16px rgba(30, 24, 56, .85) !important; }
.miha-pysq .miha-pysq__btn--ghost { flex: 0 0 auto; background: transparent !important; box-shadow: none !important; color: var(--mp-texto) !important; }
.miha-pysq .miha-pysq__btn--ghost:hover { background: rgba(30, 24, 56, .06) !important; box-shadow: none !important; color: var(--mp-tinta) !important; }
.miha-pysq .miha-pysq__btn--pqrs, .miha-pysq--preview .miha-pysq__btn--pqrs { flex: 0 1 auto; background: var(--mp-acento-suave) !important; box-shadow: none !important; color: var(--mp-acento) !important; }
.miha-pysq .miha-pysq__btn--pqrs:hover { background: var(--mp-acento) !important; color: #fff !important; box-shadow: none !important; }
.miha-pysq__bar { display: flex; flex-wrap: wrap; gap: 8px; }

/* Resultado */
.miha-pysq__result { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; flex: 1 1 auto; min-height: 0; }
.miha-pysq.is-wide .miha-pysq__result { grid-template-columns: minmax(290px, 350px) minmax(0, 1fr); }
.miha-pysq__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.miha-pysq .miha-pysq__side > * { flex: 0 0 auto; }
.miha-pysq .miha-pysq__side > .miha-pysq__btn--ghost { align-self: center; }
.miha-pysq__status {
	--st: var(--mp-ok);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 24px 18px 20px;
	border-radius: 28px;
	background: radial-gradient(260px 160px at 50% 0%, color-mix(in srgb, var(--st) 22%, transparent), transparent 70%), color-mix(in srgb, var(--st) 8%, #fff);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st) 28%, transparent);
	text-align: center;
	animation: mp-entra .55s var(--mp-curva) both;
}
.miha-pysq__status--deuda { --st: var(--mp-error); }
.miha-pysq__stico { box-sizing: content-box; width: 30px; height: 30px; padding: 14px; border-radius: 50%; background: var(--st); color: #fff; box-shadow: 0 18px 30px -18px var(--st); animation: mp-late .8s .15s var(--mp-curva) both; }
.miha-pysq__sttitle { margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mp-tenue); }
.miha-pysq .miha-pysq__stlabel { margin: 0; font-family: var(--mp-display); font-size: 30px; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; color: var(--st); }
.miha-pysq__stmeta { margin: 6px 0 0; font-size: 13.5px; color: var(--mp-texto); }
.miha-pysq__stmeta strong { font-weight: 700; color: var(--mp-tinta); }
.miha-pysq__balance { display: inline-flex; margin-top: 8px; padding: 6px 14px; border-radius: 999px; background: var(--st); color: #fff; font-size: 13.5px; font-weight: 700; }
.miha-pysq__facts { margin: 0; padding: 0; list-style: none; overflow: hidden; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--mp-linea); font-size: 13px; }
.miha-pysq__facts li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--mp-linea); }
.miha-pysq__facts li:first-child { border-top: 0; }
.miha-pysq__facts span { color: var(--mp-tenue); }
.miha-pysq__facts strong { color: var(--mp-tinta); text-align: right; word-break: break-word; }
.miha-pysq__viewer { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: 22px; background: #525659; box-shadow: inset 0 0 0 1px var(--mp-linea); }
.miha-pysq .miha-pysq__open { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; border: 2px dashed rgba(var(--mp-acento-rgb), .3); border-radius: 22px; background: rgba(var(--mp-acento-rgb), .04); color: var(--mp-acento); text-align: center; text-decoration: none; }
.miha-pysq__open span { color: var(--mp-tenue); font-size: 13px; }
.miha-pysq__bigico { width: 30px; height: 40px; }
.miha-pysq__note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--mp-tenue); }

/* Vista previa en Configuración */
.miha-pysq--preview { display: flex; flex-direction: column; width: 100%; max-width: 420px; margin: 0 auto; overflow: hidden; border-radius: 30px; background: #fff; box-shadow: inset 0 0 0 1px var(--mp-linea), var(--mp-sombra); font-family: var(--mp-fuente); color: var(--mp-tinta); animation: none; }
.miha-pysq--preview .miha-pysq__head { padding: 18px 18px 4px 20px; }
.miha-pysq--preview .miha-pysq__head h2 { display: flex; align-items: center; gap: 12px; margin: 0 !important; font-family: var(--mp-display) !important; font-size: 20px !important; font-weight: 400 !important; letter-spacing: -.03em !important; color: var(--mp-tinta) !important; }
.miha-pysq--preview .miha-pysq__body { padding: 10px 20px 20px; overflow: visible; }
.miha-pysq--preview .miha-pysq__submit { display: flex; align-items: center; justify-content: center; gap: 9px; height: 48px; border-radius: 999px; background: var(--mp-tinta); color: #fff; font-size: 14px; font-weight: 700; }

/* ===================================== 5 · Adaptación y movimiento reducido */
@container (max-width: 190px) {
	.miha-pysw__hdate { padding: .6em .7em; }
}
@media (max-width: 760px) {
	.miha-pysq.is-wide { height: auto; }
	.miha-pysq.is-wide .miha-pysq__result { grid-template-columns: minmax(0, 1fr); }
	.miha-pysq__viewer { min-height: 60vh; }
}
@media (max-width: 640px) {
	.miha-pysq-modal { align-items: flex-end; padding: 0; }
	.miha-pysq { max-width: none !important; max-height: 92vh; max-height: 92dvh; border-radius: 30px 30px 0 0; animation: mp-hoja .5s var(--mp-curva) both; }
	.miha-pysq.is-wide { height: auto; }
	.miha-pysq__head { padding: 22px 18px 4px 20px; }
	.miha-pysq__head::before { content: ""; position: absolute; left: 50%; top: 8px; width: 44px; height: 4px; margin-left: -22px; border-radius: 999px; background: rgba(30, 24, 56, .16); }
	.miha-pysq .miha-pysq__head h2 { font-size: 21px !important; }
	.miha-pysq__body { padding: 12px 20px 26px; }
	.miha-pysq .miha-pysq__btn { flex: 1 1 100%; }
	.miha-pysq__stlabel { font-size: 26px !important; }
}
@keyframes mp-hoja { from { transform: translateY(60px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.miha-pysw *, .miha-pysw, .miha-pys-guard, .miha-pysq-modal, .miha-pysq-modal * { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
}
