/**
 * Vista rápida 2026 (2.1). Mismo lenguaje que la ventana de combos (combos-2026.css): velo negro,
 * caja blanca con borde rojo arriba, títulos en mayúscula, botón rojo; en el teléfono, hoja inferior.
 * Selectores con .mps-2026 donde el tema viejo le mete estilos propios a button, h3 y enlaces.
 */

html.mpsv-lock, html.mpsv-lock body { overflow: hidden; }
html.mpsv-lock .wpsr-fm-chat-wrapper { display: none !important; }
/* z-index 1300: por encima del carrito lateral (1200), que abre la vista rápida desde "Completa tu pedido". */

.mpsv { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1300; display: flex; flex-direction: row; align-items: center; justify-content: center; padding: 20px; }
.mpsv[hidden] { display: none; }
.mpsv-velo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(11,11,11,0.64); animation: mpsv-fade .2s ease both; }
.mpsv-caja {
	position: relative; width: 100%; max-width: 860px; max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain;
	background: #FFFFFF; color: #111111; border-top: 3px solid #C73D2C; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,0.35);
	animation: mpsv-sube .28s cubic-bezier(.2,.7,.25,1) both;
}
.mpsv-caja:focus { outline: none; }
@keyframes mpsv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mpsv-sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.mps-2026 .mpsv-x {
	-webkit-appearance: none; appearance: none; position: absolute; top: 12px; right: 12px; z-index: 2;
	display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-width: 0; min-height: 0; margin: 0; padding: 0;
	background: #F5F4F2; border: 0; border-radius: 2px; box-shadow: none; cursor: pointer; color: #111111; font-size: 20px; font-weight: 700; line-height: 1;
}
.mps-2026 .mpsv-x:hover { background: #E4E2E0; color: #111111; }

.mpsv-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
/* Mientras llegan los datos (casi nunca: la página los pide antes): tres puntos. */
.mpsv-cargando { display: flex; flex-direction: row; gap: 6px; padding: 18px 0; }
.mpsv-cargando span { width: 8px; height: 8px; border-radius: 50%; background: #C9C6C1; animation: mpsv-punto 1s ease-in-out infinite; }
.mpsv-cargando span:nth-child(2) { animation-delay: .15s; }
.mpsv-cargando span:nth-child(3) { animation-delay: .3s; }
@keyframes mpsv-punto { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.mpsv-bruma { display: block; width: 90px; height: 12px; background: #F0EFED; border-radius: 2px; }

/* Galería: tira deslizable (dedo) + miniaturas. Fondo gris claro como las fotos de la ficha. */
.mpsv-galeria { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #F5F4F2; border-radius: 6px 0 0 6px; min-width: 0; }
.mpsv-fotos { display: flex; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 4px; }
.mpsv-fotos::-webkit-scrollbar { display: none; }
.mpsv-foto { flex: 0 0 100%; aspect-ratio: 1 / 1; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; background: #FFFFFF; }
.mps-2026 .mpsv-foto img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 18px; }
/* Tabla, modo de uso y beneficios son imágenes diseñadas a sangre: sin margen. */
.mps-2026 .mpsv-foto-tabla img, .mps-2026 .mpsv-foto-uso img, .mps-2026 .mpsv-foto-beneficios img { padding: 0; object-fit: cover; }
.mpsv-minis { display: flex; flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.mps-2026 .mpsv-mini {
	-webkit-appearance: none; appearance: none; flex: none; width: 54px; height: 54px; min-width: 0; margin: 0; padding: 0;
	background: #FFFFFF; border: 1.5px solid transparent; border-radius: 3px; box-shadow: none; cursor: pointer; overflow: hidden;
}
.mps-2026 .mpsv-mini img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 3px; }
.mps-2026 .mpsv-mini.mpsv-mini-activa { border-color: #111111; }

.mpsv-info { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 30px 28px 24px; min-width: 0; }
.mpsv-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #C73D2C; margin-right: 44px; }
.mps-2026 .mpsv-titulo { margin: -6px 44px 0 0; font-size: 26px; line-height: 1.02; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; color: #111111; }
.mpsv-precio { display: flex; flex-direction: row; align-items: baseline; gap: 10px; }
.mpsv-precio b { font-size: 22px; font-weight: 800; color: #111111; letter-spacing: -0.01em; }
.mpsv-precio del { font-size: 14px; color: #8A8782; }
.mpsv-resumen { margin: 0; font-size: 13.5px; line-height: 1.55; color: #4A4744; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.mpsv-bloque { display: flex; flex-direction: column; gap: 8px; }
.mpsv-rotulo { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #6B6762; }

/* Presentaciones: chips como los de la ficha. */
.mpsv-ops { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.mps-2026 .mpsv-op {
	-webkit-appearance: none; appearance: none; min-width: 0; min-height: 40px; margin: 0; padding: 8px 14px;
	background: #FFFFFF; color: #111111; border: 1.5px solid #E4E2E0; border-radius: 2px; box-shadow: none; cursor: pointer;
	font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; text-align: left;
}
.mps-2026 .mpsv-op:hover { border-color: #111111; background: #FFFFFF; color: #111111; }
.mps-2026 .mpsv-op.mpsv-op-activa { border-color: #111111; background: #111111; color: #FFFFFF; }
.mps-2026 .mpsv-op[disabled] { color: #B5B2AD; border-style: dashed; cursor: not-allowed; background: #FFFFFF; }
.mpsv-op em { font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-left: 4px; }

/* Escala por cantidad: tres casillas (1 · 2 · 3 o más) con el precio por unidad y el %. */
.mpsv-tramos { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.mps-2026 .mpsv-tramo {
	-webkit-appearance: none; appearance: none; position: relative; min-width: 0; margin: 0; padding: 10px 10px 9px;
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
	background: #FFFFFF; color: #111111; border: 1.5px solid #E4E2E0; border-radius: 2px; box-shadow: none; cursor: pointer; font-family: inherit; text-align: left;
}
.mps-2026 .mpsv-tramo:hover { border-color: #111111; background: #FFFFFF; color: #111111; }
.mps-2026 .mpsv-tramo.mpsv-tramo-activo { border-color: #C73D2C; background: #FDF3F1; }
.mpsv-tramo span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #6B6762; }
.mpsv-tramo b { font-size: 14px; font-weight: 800; color: #111111; }
.mpsv-tramo i { position: absolute; top: -8px; right: 4px; padding: 1px 5px; font-style: normal; font-size: 9.5px; font-weight: 800; color: #FFFFFF; background: #C73D2C; border-radius: 2px; }

.mpsv-pie { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 4px; }
.mpsv-fila { display: flex; flex-direction: row; gap: 10px; align-items: stretch; }
.mpsv-stepper { display: flex; flex-direction: row; align-items: center; border: 1.5px solid #111111; border-radius: 2px; height: 52px; flex: none; }
.mps-2026 .mpsv-stepper button {
	-webkit-appearance: none; appearance: none; width: 40px; height: 100%; min-width: 0; margin: 0; padding: 0;
	border: 0; background: none; box-shadow: none; border-radius: 0; cursor: pointer; color: #111111; font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1;
}
.mpsv-stepper b { min-width: 24px; text-align: center; font-size: 15px; font-weight: 800; }
.mps-2026 .mpsv-agregar {
	-webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 52px; margin: 0; padding: 0 14px;
	display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px;
	background: #C73D2C; color: #FFFFFF; border: 0; border-radius: 2px; box-shadow: none; cursor: pointer;
	font-family: inherit; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; transition: background-color .15s ease;
}
.mps-2026 .mpsv-agregar:hover { background: #B23425; color: #FFFFFF; }
/* 2.1 (Francisco, 23-10): los números del botón se leen bien: blancos y gruesos; lo de antes, tachado y más suave. */
.mpsv-agregar span { font-weight: 800; font-size: 14px; color: #FFFFFF; text-transform: none; white-space: nowrap; }
.mpsv-agregar s { font-weight: 500; opacity: .72; font-size: 12px; }
.mps-2026 .mpsv-agregar.mpsv-agregar-off { background: #E4E2E0; color: #8A8782; cursor: not-allowed; }
.mpsv-agregar-off span { display: none; }
.mpsv-ocupado .mpsv-agregar { cursor: progress; }
.mps-2026 .mpsv-wa {
	-webkit-appearance: none; appearance: none; width: 100%; min-width: 0; height: 46px; margin: 0; padding: 0 14px;
	display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px;
	background: #25D366; color: #FFFFFF; border: 0; border-radius: 2px; box-shadow: none; cursor: pointer;
	font-family: inherit; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
}
.mps-2026 .mpsv-wa:hover { background: #1EBE5A; color: #FFFFFF; }
.mpsv-aviso { margin: 0; font-size: 12.5px; line-height: 1.45; color: #B23425; font-weight: 600; }
.mpsv-aviso:empty { display: none; }
.mps-2026 .mpsv-ficha { align-self: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #111111; text-decoration: underline; text-underline-offset: 3px; }
.mps-2026 .mpsv-ficha:hover { color: #C73D2C; }

.mps-2026 .mpsv button:focus-visible, .mps-2026 .mpsv a:focus-visible { outline: 2px solid #C73D2C !important; outline-offset: 2px; }

/* Teléfono: hoja inferior, una sola columna, galería más baja. */
@media (max-width: 760px) {
	.mpsv { align-items: flex-end; padding: 0; }
	.mpsv-caja { max-width: none; max-height: 92vh; border-radius: 12px 12px 0 0; animation-name: mpsv-hoja; }
	@keyframes mpsv-hoja { from { transform: translateY(100%); } to { transform: none; } }
	.mpsv-cuerpo { grid-template-columns: minmax(0, 1fr); }
	.mpsv-galeria { padding: 14px 18px 10px; border-radius: 12px 12px 0 0; }
	.mpsv-foto { aspect-ratio: 4 / 3; }
	.mps-2026 .mpsv-foto img { padding: 10px; }
	.mpsv-foto { aspect-ratio: 1 / 1; }
	.mps-2026 .mpsv-foto-tabla img, .mps-2026 .mpsv-foto-uso img, .mps-2026 .mpsv-foto-beneficios img { padding: 0; object-fit: contain; }
	.mps-2026 .mpsv-mini { width: 44px; height: 44px; }
	.mpsv-info { padding: 18px 18px 18px; gap: 12px; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
	.mpsv-eyebrow { margin-right: 0; }
	.mps-2026 .mpsv-titulo { font-size: 21px; margin-right: 0; }
	.mpsv-resumen { -webkit-line-clamp: 2; }
	.mpsv-stepper { height: 48px; }
	.mps-2026 .mpsv-agregar { height: 48px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
	.mpsv-velo, .mpsv-caja, .mpsv-cargando span { animation: none; }
}

/* 2.1 (Francisco, 23-10-26): franja de compra fija abajo de la ventana, sin tener que bajar a buscarla. */
.mpsv-pie {
	position: sticky; bottom: 0; z-index: 3; margin: 4px -28px -24px; padding: 12px 28px calc(12px + env(safe-area-inset-bottom, 0px));
	background: #FFFFFF; border-top: 1px solid #F0EFED; box-shadow: 0 -10px 24px rgba(17,17,17,0.06);
}
.mps-2026 .mpsv-wa.mpsv-wa-ico { flex: none; width: 52px; height: 52px; padding: 0; }
.mps-2026 .mpsv-ficha { align-self: flex-start; }
@media (max-width: 760px) {
	.mpsv-info { padding-bottom: 0; }
	.mpsv-pie { margin: 4px -18px 0; padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px)); }
	.mps-2026 .mpsv-wa.mpsv-wa-ico { width: 48px; height: 48px; }
}
