/* =========================================================================
   WormShop — Capa de refinamiento visual  (ws-polish.css)   [v2]
   -------------------------------------------------------------------------
   Se carga LA ÚLTIMA en todas las páginas.
   Solo estética: no toca HTML, IDs, clases, eventos ni lógica de negocio.

   Reglas de rendimiento (no romper al editar):
     · Animar únicamente transform / opacity.
     · Sin backdrop-filter nuevo, sin blur en bucle, sin box-shadow animado.
     · Sin will-change fuera del hero (ya gestionado en ws-motion-ux.css).
     · Respeta prefers-reduced-motion.
   ========================================================================= */

:root {
  --wsp-red: #a855f7;
  --wsp-red-soft: #c084fc;
  --wsp-red-deep: #b00d22;
  --wsp-line: rgba(255, 255, 255, 0.08);
  --wsp-line-hot: rgba(168, 85, 247, 0.32);
  --wsp-surface: rgba(255, 255, 255, 0.028);
  --wsp-surface-2: rgba(255, 255, 255, 0.05);
  --wsp-text-dim: rgba(255, 255, 255, 0.62);
  --wsp-text-faint: rgba(255, 255, 255, 0.42);
  --wsp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wsp-t: 180ms;
}

/* -------------------------------------------------------------------------
   1. Legibilidad y jerarquía global
   ------------------------------------------------------------------------- */
body { line-height: 1.55; }

h1, h2, h3, h4,
.dash-title, .blocktitle, .a-title, .ws-archive-section-title {
  text-wrap: balance;
}
h2, .blocktitle, .ws-archive-section-title { letter-spacing: -0.015em; }

.sub, .dash-sub, .blocksub, .muted, small {
  color: var(--wsp-text-dim);
  line-height: 1.6;
}

/* Kickers / eyebrows: acento rojo sutil, no fluorescente */
.eyebrow, .ws-archive-section-kicker, .admin-nav-label, .dash-nav-header {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 11px;
  font-weight: 700;
}

/* Números y saldos siempre alineados */
.mono, .ws-archive-wallet-balance-card strong, td, th {
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------
   2. Botones — estados completos y consistentes
   ------------------------------------------------------------------------- */
.btn, .round-btn, button, [role="button"] {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn { font-weight: 650; }

/* Secundarios: dejan de verse "vacíos" */
.btn:not(.btn-primary):not(.btn-brand):not(.btn-google):not(:disabled) {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}
.btn:not(.btn-primary):not(.btn-brand):not(.btn-google):hover:not(:disabled) {
  border-color: var(--wsp-line-hot);
  color: #fff;
}

/* Disabled legible (no un borrón gris) */
.btn:disabled, .btn[disabled], .btn.disabled,
button:disabled, input:disabled, select:disabled, textarea:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

/* Botón de bloque con altura cómoda */
.btn-block { width: 100%; justify-content: center; }
.btn-small { font-size: 12.5px; }

/* -------------------------------------------------------------------------
   3. Superficies: paneles, tarjetas y secciones
   ------------------------------------------------------------------------- */
.panel-box,
.dash-section,
.a-plain-card,
.ws-archive-account-section,
.ws-archive-tickets-card,
.ws-archive-user-card,
.ws-archive-wallet-balance-card,
.benefit,
.card {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
  border-radius: 16px;
}

/* Cabeceras de sección: línea roja fina que ordena la lectura */
.ws-archive-account-header,
.dash-section > h2:first-child,
.panel-box > h2:first-child,
.panel-box > h3:first-child {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.ws-archive-account-header::after,
.dash-section > h2:first-child::after,
.panel-box > h2:first-child::after,
.panel-box > h3:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--wsp-red), rgba(168, 85, 247, 0));
}

/* Separadores más discretos */
.divider, hr { border-color: var(--wsp-line); opacity: 1; }

/* -------------------------------------------------------------------------
   4. Formularios
   ------------------------------------------------------------------------- */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  background-color: rgba(255, 255, 255, 0.035);
  border-radius: 12px;
  color: #fff;
}
input:not([type="checkbox"]):not([type="radio"]):hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.18);
}
label { color: var(--wsp-text-dim); font-size: 13px; font-weight: 600; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--wsp-red); }

/* Error / éxito si el markup ya usa estas clases */
.error, .is-error, .field-error, [aria-invalid="true"] {
  border-color: rgba(255, 70, 70, 0.6);
}
.success, .is-success { border-color: rgba(64, 214, 138, 0.45); }

/* -------------------------------------------------------------------------
   5. Modales y overlays — aparición limpia, sin parpadeos
   ------------------------------------------------------------------------- */
.overlay,
.ws-archive-phase-i-overlay,
.ws-archive-phase-h-overlay,
.ws-archive-auth-overlay,
.ws-archive-vip-overlay,
.ws-archive-ticket-overlay,
.ws-archive-seller-overlay {
  background-color: rgba(3, 3, 5, 0.72);
}
.modal,
.ws-archive-phase-h-modal,
.ws-archive-auth-modal {
  border-radius: 18px;
  background-image: linear-gradient(180deg, rgba(168, 85, 247, 0.05), rgba(255, 255, 255, 0) 180px);
}

/* -------------------------------------------------------------------------
   6. Navegación (dashboard / admin / seller)
   ------------------------------------------------------------------------- */
.dash-nav-item, .admin-nav-item {
  border-radius: 10px;
  font-weight: 600;
}
.dash-nav-group + .dash-nav-group,
.admin-nav-section + .admin-nav-section {
  margin-top: 14px;
}
.admin-nav-item.active, .dash-nav-item.active { color: #fff; }

/* Pestañas */
.tab, .activity-tab { border-radius: 999px; font-weight: 600; }
.tab:hover:not(.active), .activity-tab:hover:not(.active) {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* -------------------------------------------------------------------------
   7. Tablas y listas
   ------------------------------------------------------------------------- */
table { border-collapse: separate; border-spacing: 0; }
table td, table th { padding: 11px 12px; }
table tbody tr + tr td { border-top: 1px solid var(--wsp-line); }

/* -------------------------------------------------------------------------
   8. Estados vacíos, carga y error — nada se ve "pobre"
   ------------------------------------------------------------------------- */
.empty, .empty-state, .ws-empty {
  padding: 26px 18px;
  text-align: center;
  color: var(--wsp-text-dim);
  font-size: 14px;
}
.empty::before, .empty-state::before, .ws-empty::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 1px dashed var(--wsp-line-hot);
}

/* -------------------------------------------------------------------------
   9. Badges y píldoras de estado
   ------------------------------------------------------------------------- */
.status-pill, .badge, .role-badges > * {
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 10px;
}

/* -------------------------------------------------------------------------
   10. Responsive y confort táctil
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .panel-box, .dash-section, .ws-archive-account-section { padding: 16px; }
  .prod-grid { gap: 14px; }
}
@media (max-width: 768px) {
  h1 { line-height: 1.12; }
  .btn, .round-btn, .dash-nav-item, .admin-nav-item { min-height: 44px; }
  .btn { padding-inline: 14px; }
  .modal, .ws-archive-phase-h-modal, .ws-archive-auth-modal {
    border-radius: 16px;
    max-height: 88vh;
    overflow-y: auto;
  }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ws-cat-rail { scroll-snap-type: x proximity; }
  .ws-cat-rail .cat-chip { scroll-snap-align: center; }
}
@media (max-width: 480px) {
  .panel-box, .dash-section, .ws-archive-account-section { padding: 14px; border-radius: 14px; }
  .btn-small { min-height: 38px; }
}

/* -------------------------------------------------------------------------
   11. Preferencias del usuario
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * , *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* -------------------------------------------------------------------------
   12. Páginas legales (términos, privacidad, reclamaciones)
   Solo tienen .container + estilos inline: les damos tarjeta y jerarquía.
   ------------------------------------------------------------------------- */
body > .container {
  max-width: 760px;
  padding: 28px clamp(18px, 4vw, 34px) 34px;
  border: 1px solid var(--wsp-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(168, 85, 247, 0.05), rgba(255, 255, 255, 0) 200px),
    rgba(255, 255, 255, 0.022);
}
body > .container h1 {
  font-size: clamp(24px, 3.4vw, 30px);
  letter-spacing: -0.02em;
}
body > .container h2 {
  position: relative;
  padding-left: 12px;
  margin-top: 30px;
  font-size: 16.5px;
}
body > .container h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--wsp-red), rgba(168, 85, 247, 0.15));
}
body > .container p, body > .container li { font-size: 14.5px; }
body > .container a {
  color: var(--wsp-red-soft);
  text-decoration-color: rgba(168, 85, 247, 0.4);
  text-underline-offset: 3px;
  transition: color var(--wsp-t) var(--wsp-ease);
}
body > .container a:hover { color: #fff; text-decoration-color: var(--wsp-red); }

/* -------------------------------------------------------------------------
   13. WormShop Stores: el footer no debe quedar flotando a media pantalla
   ------------------------------------------------------------------------- */
.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.shell > .footer { margin-top: auto; padding: 20px 0; }
.shell .loading, .shell .empty { padding: 44px 20px; }

/* =========================================================================
   14. PAGOS Y COMPRAS — recarga, voucher, procesando y resultado de carrito
   Solo estética. Los IDs, clases originales y el flujo siguen intactos.
   ========================================================================= */

/* --- 14.1 Recuadro del voucher (#recharge-voucher-amount) ---------------- */
#recharge-voucher-amount {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 18px;
  border-radius: 16px;
  border: 1px solid var(--wsp-line);
  background:
    radial-gradient(120% 130% at 50% -20%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 60%),
    rgba(255, 255, 255, 0.03);
  font-size: 17px;
  line-height: 1.5;
  animation: wsp-pop 260ms var(--wsp-ease) both;
}
#recharge-voucher-amount b { font-size: 21px; letter-spacing: -0.01em; }
/* Cinta superior que identifica el estado de un vistazo */
#recharge-voucher-amount::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0), var(--wsp-red), rgba(168, 85, 247, 0));
}

/* Esperando pago: monto exacto destacado en rojo de marca */
#recharge-voucher-amount[data-state="await"] b { color: var(--wsp-red-soft); }

/* Pendiente de revisión: ámbar sobrio */
#recharge-voucher-amount[data-state="pending"]::before {
  background: linear-gradient(90deg, rgba(245, 175, 60, 0), #f5af3c, rgba(245, 175, 60, 0));
}
#recharge-voucher-amount[data-state="pending"] { border-color: rgba(245, 175, 60, 0.3); }

/* Rechazado */
#recharge-voucher-amount[data-state="error"] {
  border-color: rgba(255, 70, 90, 0.38);
  background:
    radial-gradient(120% 130% at 50% -20%, rgba(255, 70, 90, 0.14), rgba(255, 255, 255, 0) 62%),
    rgba(255, 255, 255, 0.03);
}

/* ACREDITADO — momento premium del flujo */
#recharge-voucher-amount[data-state="success"] {
  border-color: rgba(64, 214, 138, 0.4);
  background:
    radial-gradient(130% 140% at 50% -25%, rgba(64, 214, 138, 0.2), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: 0 14px 40px -22px rgba(64, 214, 138, 0.75);
}
#recharge-voucher-amount[data-state="success"]::before {
  background: linear-gradient(90deg, rgba(64, 214, 138, 0), #40d68a, rgba(64, 214, 138, 0));
}
/* Destello diagonal que cruza una sola vez (transform, sin repaint) */
#recharge-voucher-amount[data-state="success"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: -55%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  animation: wsp-sweep 900ms var(--wsp-ease) 120ms 1 both;
  pointer-events: none;
}
#recharge-voucher-amount[data-state="success"] b { color: #6fe6ab; }

@keyframes wsp-pop {
  from { opacity: 0; transform: translateY(6px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes wsp-sweep {
  from { transform: translateX(0) skewX(-18deg); }
  to   { transform: translateX(340%) skewX(-18deg); }
}

/* --- 14.2 Pantalla de procesamiento (#payment-processing-overlay) -------- */
#payment-processing-overlay .processing-message {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.01em;
}
#payment-processing-overlay .processing-subtext {
  max-width: 380px;
  margin-inline: auto;
  color: var(--wsp-text-dim);
  line-height: 1.6;
}
#payment-processing-icon {
  font-size: 46px;
  line-height: 1;
  animation: wsp-icon-in 380ms var(--wsp-ease) both;
}
@keyframes wsp-icon-in {
  0%   { opacity: 0; transform: scale(0.6); }
  60%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

/* Halo detrás del ícono: un solo elemento, sin animación en bucle */
#payment-processing-overlay[data-state="success"] #payment-processing-icon,
#payment-processing-overlay[data-state="error"] #payment-processing-icon {
  display: inline-grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 6px;
  border-radius: 50%;
  border: 1px solid var(--wsp-line);
}
#payment-processing-overlay[data-state="success"] #payment-processing-icon {
  border-color: rgba(64, 214, 138, 0.4);
  background: radial-gradient(circle at 50% 40%, rgba(64, 214, 138, 0.22), rgba(64, 214, 138, 0) 70%);
  box-shadow: 0 18px 50px -24px rgba(64, 214, 138, 0.8);
}
#payment-processing-overlay[data-state="error"] #payment-processing-icon {
  border-color: rgba(255, 70, 90, 0.4);
  background: radial-gradient(circle at 50% 40%, rgba(255, 70, 90, 0.2), rgba(255, 70, 90, 0) 70%);
}
#payment-processing-overlay[data-state="success"] .processing-message { color: #6fe6ab; }
#payment-processing-overlay[data-state="error"] .processing-message { color: #ff8092; }
#payment-processing-bg-btn { opacity: 0.9; }
#payment-processing-bg-btn:hover { opacity: 1; }

/* --- 14.3 Resultado del checkout del carrito ----------------------------- */
.ws-result-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--wsp-line);
  border-left-width: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  font-size: 13.5px;
  line-height: 1.5;
  animation: wsp-pop 240ms var(--wsp-ease) both;
}
.ws-result-row:nth-child(2) { animation-delay: 50ms; }
.ws-result-row:nth-child(3) { animation-delay: 100ms; }
.ws-result-row:nth-child(n + 4) { animation-delay: 140ms; }
.ws-result-ico { font-size: 15px; line-height: 1.35; }
.ws-result-row.is-ok {
  border-left-color: #40d68a;
  background: linear-gradient(90deg, rgba(64, 214, 138, 0.09), rgba(255, 255, 255, 0.02) 60%);
}
.ws-result-row.is-partial { border-left-color: #f5af3c; }
.ws-result-row.is-fail {
  border-left-color: #ff465a;
  background: linear-gradient(90deg, rgba(255, 70, 90, 0.08), rgba(255, 255, 255, 0.02) 60%);
}

/* --- 14.4 Botones de los modales de pago --------------------------------- */
#recharge-main-btn,
#cart-checkout-confirm-btn,
.modal .btn-primary {
  font-weight: 700;
  letter-spacing: 0.005em;
}
#recharge-main-btn:disabled,
#cart-checkout-confirm-btn:disabled { opacity: 0.55; }
#recharge-cur-usd.active, #recharge-cur-pen.active { color: #fff; }

/* --- 14.5 Toast --------------------------------------------------------- */
#toast.toast {
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  box-shadow: 0 20px 50px -26px rgba(0, 0, 0, 0.9);
}
#toast.toast .a-icon { flex: 0 0 auto; }

/* =========================================================================
   15. FIX UX — La barrita del carrusel de categorías ya NO se lee como
   "categoría seleccionada".
   Bug reportado: al entrar a la web parecía que Netflix (la primera
   categoría) estaba seleccionada, pero se veían TODOS los productos; al
   tocar otra categoría y volver, "se arreglaba". No era un bug de filtro:
   #cat-grid arranca sin filtro (activeFilter = null, correcto), pero la
   barra de progreso del carrusel se pintaba en ROJO, arrancaba a la
   izquierda y con un ancho mínimo del 8% — justo debajo del primer chip —
   así que se veía idéntica al subrayado rojo del estado activo.
   Solución 100% visual: la barra de progreso pasa a un gris neutro y el
   rojo queda reservado EXCLUSIVAMENTE para la categoría realmente activa.
   ========================================================================= */
.ws-cat-rail-progress {
  height: 4px !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
.ws-cat-rail-progress-fill {
  background: rgba(255, 255, 255, 0.26) !important;
  box-shadow: none !important;
}
.ws-cat-rail-progress:hover .ws-cat-rail-progress-fill {
  background: rgba(255, 255, 255, 0.42);
}
/* El subrayado rojo del chip activo se refuerza para que sea el único
   indicador de selección posible. */
#storefront .ws-cat-rail .cat-chip.active > span:last-child::after,
#storefront #categorias .cat-chip.active > span:last-child::after {
  height: 3px;
  box-shadow: 0 2px 10px -2px rgba(var(--ws-brand-rgb), 0.7);
}

/* =========================================================================
   16. MODALES DE PAGO — misma piel para "Comprar" y "Recargar saldo"
   (mismo sistema, misma jerarquía, mismos estados). Solo presentación:
   ningún id, función, endpoint ni flujo cambia.
   ========================================================================= */
#buy-overlay .modal,
#recharge-overlay .modal {
  max-width: 470px;
  padding: 26px 24px 0 !important;
  max-height: min(92vh, 900px);
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(var(--ws-brand-rgb), 0.13), rgba(255, 255, 255, 0) 62%),
    var(--m-bg);
  scrollbar-width: thin;
}
#buy-overlay .modal h3,
#recharge-overlay .modal h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
}
#buy-overlay .modal > div > .sub,
#recharge-overlay .modal .sub { margin-bottom: 18px; }

/* Etiquetas y campos consistentes en los dos modales */
#buy-overlay label,
#recharge-overlay label {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--m-muted);
  margin: 14px 0 6px;
  font-weight: 700;
}
#buy-overlay input,
#buy-overlay select,
#buy-overlay textarea,
#recharge-overlay input,
#recharge-overlay select,
#recharge-overlay textarea {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  transition: border-color 140ms var(--wsp-ease), box-shadow 140ms var(--wsp-ease);
}
#buy-overlay input:focus,
#buy-overlay select:focus,
#buy-overlay textarea:focus,
#recharge-overlay input:focus,
#recharge-overlay select:focus,
#recharge-overlay textarea:focus {
  border-color: rgba(var(--ws-brand-rgb), 0.65);
  box-shadow: 0 0 0 3px rgba(var(--ws-brand-rgb), 0.16);
  outline: none;
}

/* Bloque del QR — idéntico en compra directa y en recarga */
#buy-qr-box > div,
#recharge-qr-box > div {
  border-radius: 16px;
  border: 1px solid rgba(var(--ws-brand-rgb), 0.22);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(var(--ws-brand-rgb), 0.09), rgba(255, 255, 255, 0) 60%),
    rgba(255, 255, 255, 0.028);
  padding: 18px 16px;
}
#buy-qr-box img,
#recharge-qr-box img {
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}
#buy-qr-box a[download],
#recharge-qr-box a[download] {
  transition: transform 140ms var(--wsp-ease), border-color 140ms var(--wsp-ease), background 140ms var(--wsp-ease);
}
#buy-qr-box a[download]:hover,
#recharge-qr-box a[download]:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--ws-brand-rgb), 0.5);
  background: rgba(var(--ws-brand-rgb), 0.1);
}

/* Caja de saldo del checkout: estado claro (alcanza / no alcanza) */
#buy-wallet-info {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

/* Barra de acciones siempre visible (antes los botones quedaban cortados
   abajo cuando el checkout mostraba el QR + los campos del método). */
#buy-overlay .ws-modal-actions,
#recharge-overlay .ws-modal-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 12px;
  margin: 18px -24px 0;
  padding: 14px 24px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(10, 10, 12, 0), var(--m-bg) 34%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 2;
}
#buy-overlay .ws-modal-actions .btn,
#recharge-overlay .ws-modal-actions .btn {
  flex: 1;
  min-height: 46px;
  font-weight: 700;
}
#buy-overlay .ws-modal-actions .btn-primary,
#recharge-overlay .ws-modal-actions .btn-primary {
  box-shadow: 0 14px 34px -20px rgba(var(--ws-brand-rgb), 0.95);
}
#buy-overlay .ws-modal-actions .btn-primary:disabled {
  box-shadow: none;
  opacity: 0.5;
  cursor: not-allowed;
}

/* Resultado de compra — mismo "momento premium" que el voucher acreditado */
#buy-result-step > div:first-child > div:first-child {
  box-shadow: 0 0 0 6px rgba(64, 214, 138, 0.1), 0 16px 40px -22px rgba(64, 214, 138, 0.85);
  animation: wsp-pop 320ms var(--wsp-ease) both;
}

@media (max-width: 520px) {
  #buy-overlay .modal,
  #recharge-overlay .modal { padding: 22px 16px 0 !important; }
  #buy-overlay .ws-modal-actions,
  #recharge-overlay .ws-modal-actions { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  #recharge-overlay #recharge-form-step > div:first-child { flex-direction: column; gap: 0; }
}

/* -------------------------------------------------------------------------
   16. Interacción Neon ligera — solo transform/opacity/border-color
   ------------------------------------------------------------------------- */
.m-card, .prod-card, .benefit, .card {
  transition: transform 180ms var(--wsp-ease), border-color 180ms ease, background-color 180ms ease;
}
.m-card:hover, .prod-card:hover, .benefit:hover, .card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.28);
}
.m-card:focus-within, .prod-card:focus-within, .benefit:focus-within, .card:focus-within {
  border-color: rgba(168, 85, 247, 0.42);
}

/* El texto clicable debe sentirse interactivo sin añadir glow permanente. */
.m-card a, .prod-card a, .product-name, .m-product-name {
  transition: color 160ms ease;
}
.m-card a:hover, .prod-card a:hover, .product-name:hover, .m-product-name:hover {
  color: var(--wsp-red-soft);
}

/* CTA principal: presencia Neon sobria, sin filter ni animación continua. */
.btn-brand, .m-buy-btn, .orbit-primary {
  transition: transform 180ms var(--wsp-ease), box-shadow 220ms ease, background-color 180ms ease, border-color 180ms ease;
}
.btn-brand:hover:not(:disabled), .m-buy-btn:hover:not(:disabled), .orbit-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(168, 85, 247, 0.20);
}
.btn-brand:active:not(:disabled), .m-buy-btn:active:not(:disabled), .orbit-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

/* Categoría activa: el rojo identifica selección; los demás quedan neutros. */
.cat-chip.active, .category-chip.active, .ws-cat-chip.active {
  color: #fff;
  border-color: rgba(168, 85, 247, 0.48);
  background: rgba(168, 85, 247, 0.10);
}

@media (prefers-reduced-motion: reduce) {
  .m-card, .prod-card, .benefit, .card, .btn-brand, .m-buy-btn, .orbit-primary {
    transition: none !important;
  }
}


/* =========================================================================
   FASE 4 — NEON UX refinement
   Visual-only layer. No HTML/JS/API/business logic changes.
   Performance rule: no infinite effects, no blur/backdrop-filter, no JS.
   ========================================================================= */

/* Interactive typography: clear hierarchy without layout jumps. */
.m-card-title,
.m-card-seller,
.orbit-trust span,
.ws-cat-rail .cat-chip > span:last-child {
  transition: color var(--wsp-t) var(--wsp-ease), opacity var(--wsp-t) var(--wsp-ease);
}

.m-card:hover .m-card-title {
  color: #fff;
}
.m-card:hover .m-card-seller {
  color: rgba(255,255,255,.82);
}

.m-card-title {
  text-decoration: none;
  text-decoration-color: rgba(168, 85, 247,.55);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Product cards: premium lift, but deliberately restrained. */
.m-card {
  transition:
    transform 180ms var(--wsp-ease),
    border-color 180ms ease,
    box-shadow 180ms ease;
}
.m-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--ws-brand-rgb), .28);
  box-shadow:
    0 18px 42px rgba(0,0,0,.28),
    0 0 22px rgba(var(--ws-brand-rgb),.045);
}
.m-card:focus-within {
  border-color: rgba(var(--ws-brand-rgb), .36);
}

/* Image area reacts independently, avoiding a heavy filter/blur effect. */
.m-card-media img {
  transition: transform 260ms var(--wsp-ease), opacity 180ms ease;
}
.m-card:hover .m-card-media img {
  transform: scale(1.018);
}

/* Favorite button: obvious interactive state without permanent animation. */
.fav-btn {
  transition:
    transform 160ms var(--wsp-ease),
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
  border: 1px solid rgba(255,255,255,.08);
}
.fav-btn:hover {
  transform: scale(1.06);
  background: rgba(0,0,0,.72);
  border-color: rgba(var(--ws-brand-rgb),.38);
  color: var(--ws-brand-strong);
}
.fav-btn:active {
  transform: scale(.96);
}

/* Category rail: active state is unmistakable, hover remains lightweight. */
.ws-cat-rail .cat-chip {
  transition: transform 160ms var(--wsp-ease), color 160ms ease, opacity 160ms ease;
}
.ws-cat-rail .cat-chip:hover {
  transform: translateY(-3px);
}
.ws-cat-rail .cat-chip.active .cat-chip-icon,
.ws-cat-rail .cat-chip[aria-selected="true"] .cat-chip-icon {
  border-color: rgba(var(--ws-brand-rgb),.72);
  box-shadow: 0 0 0 3px rgba(var(--ws-brand-rgb),.09);
}
.ws-cat-rail .cat-chip.active,
.ws-cat-rail .cat-chip[aria-selected="true"] {
  color: #fff;
}

/* Primary CTA: stronger hierarchy, no animated glow. */
#storefront .orbit-primary,
.m-buy-btn,
.btn-primary,
.btn-brand {
  transition:
    transform 160ms var(--wsp-ease),
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}
#storefront .orbit-primary:hover:not(:disabled),
.m-buy-btn:hover:not(:disabled),
.btn-primary:hover:not(:disabled),
.btn-brand:hover:not(:disabled) {
  transform: translateY(-2px);
}

/* Form UX: focus is visible but never causes the field to move. */
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: rgba(var(--ws-brand-rgb),.62);
  box-shadow: 0 0 0 3px rgba(var(--ws-brand-rgb),.09);
}

/* Links get a small directional cue without pseudo-elements or layout shifts. */
a:not(.btn):not(.orbit-primary):not(.orbit-secondary) {
  transition: color 150ms ease, text-decoration-color 150ms ease;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}
a:not(.btn):not(.orbit-primary):not(.orbit-secondary):hover {
  text-decoration-line: underline;
  text-decoration-color: rgba(var(--ws-brand-rgb),.55);
}

/* Keep touch devices free of hover-only motion. */
@media (hover: none) {
  .m-card:hover,
  .ws-cat-rail .cat-chip:hover,
  .fav-btn:hover,
  #storefront .orbit-primary:hover:not(:disabled),
  .m-buy-btn:hover:not(:disabled) {
    transform: none;
  }
  .m-card:hover .m-card-media img {
    transform: none;
  }
}

/* Reduced motion: disable the micro-interaction transforms too. */
@media (prefers-reduced-motion: reduce) {
  .m-card,
  .m-card-media img,
  .fav-btn,
  .ws-cat-rail .cat-chip,
  #storefront .orbit-primary,
  .m-buy-btn,
  .btn-primary,
  .btn-brand {
    transition: none !important;
  }
  .m-card:hover,
  .m-card:hover .m-card-media img,
  .fav-btn:hover,
  .ws-cat-rail .cat-chip:hover,
  #storefront .orbit-primary:hover:not(:disabled),
  .m-buy-btn:hover:not(:disabled),
  .btn-primary:hover:not(:disabled),
  .btn-brand:hover:not(:disabled) {
    transform: none !important;
  }
}


/* =========================================================================
   15. FASE 6 — UX INTERACTIVA / MICROINTERACCIONES
   -------------------------------------------------------------------------
   Solo CSS. Sin nuevas peticiones, sin JS, sin blur/backdrop-filter y sin
   animaciones infinitas. El objetivo es que cada interacción tenga una
   respuesta clara sin alterar el layout.
   ========================================================================= */

/* --- 15.1 Tarjetas de producto ----------------------------------------- */
.m-card {
  transition:
    transform var(--wsp-t-base) var(--wsp-ease),
    border-color var(--wsp-t-base) var(--wsp-ease),
    background-color var(--wsp-t-base) var(--wsp-ease);
}
.m-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.28);
  background-color: rgba(255, 255, 255, 0.035);
}
.m-card:focus-within {
  border-color: rgba(168, 85, 247, 0.42);
}
.m-card .m-title,
.m-card .m-price,
.m-card .m-buy-btn,
.m-card .fav-btn {
  transition:
    color var(--wsp-t-fast) var(--wsp-ease),
    transform var(--wsp-t-fast) var(--wsp-ease),
    border-color var(--wsp-t-fast) var(--wsp-ease),
    opacity var(--wsp-t-fast) var(--wsp-ease);
}
.m-card:hover .m-title { color: #fff; }
.m-card:hover .m-price { color: var(--wsp-red-soft); }
.m-card .m-buy-btn:hover:not(:disabled) { transform: translateY(-1px); }
.m-card .m-buy-btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.m-card .fav-btn:hover { transform: scale(1.06); }
.m-card .fav-btn:active { transform: scale(.96); }

/* --- 15.2 Categorías --------------------------------------------------- */
.cat-chip {
  transition:
    color var(--wsp-t-fast) var(--wsp-ease),
    background-color var(--wsp-t-fast) var(--wsp-ease),
    border-color var(--wsp-t-fast) var(--wsp-ease),
    transform var(--wsp-t-fast) var(--wsp-ease);
}
.cat-chip:hover {
  color: #fff;
  border-color: rgba(168, 85, 247, 0.34);
}
.cat-chip:active { transform: scale(.98); }
.cat-chip[aria-selected="true"],
.cat-chip.active {
  color: #fff;
  border-color: rgba(168, 85, 247, 0.58);
  background: rgba(168, 85, 247, 0.10);
}

/* --- 15.3 Enlaces y elementos accionables ------------------------------ */
a:not(.btn):not(.cat-chip) {
  text-underline-offset: 3px;
  transition: color var(--wsp-t-fast) var(--wsp-ease),
              opacity var(--wsp-t-fast) var(--wsp-ease);
}
a:not(.btn):not(.cat-chip):hover { color: var(--wsp-red-soft); }

[role="button"],
button,
.btn,
.round-btn,
.cat-chip {
  transition:
    color var(--wsp-t-fast) var(--wsp-ease),
    background-color var(--wsp-t-fast) var(--wsp-ease),
    border-color var(--wsp-t-fast) var(--wsp-ease),
    transform var(--wsp-t-fast) var(--wsp-ease),
    opacity var(--wsp-t-fast) var(--wsp-ease);
}

/* --- 15.4 Foco de teclado: visible sin brillo pesado ------------------ */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid rgba(168, 85, 247, 0.72);
  outline-offset: 2px;
}
:where(button, .btn, .cat-chip):focus:not(:focus-visible) { outline: none; }

/* --- 15.5 Inputs: feedback claro de interacción ----------------------- */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  transition:
    border-color var(--wsp-t-fast) var(--wsp-ease),
    background-color var(--wsp-t-fast) var(--wsp-ease);
}
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: rgba(168, 85, 247, 0.62);
  background-color: rgba(255, 255, 255, 0.045);
}

/* --- 15.6 Navegación: estado activo más fácil de identificar ---------- */
.dash-nav-item,
.admin-nav-item {
  transition:
    color var(--wsp-t-fast) var(--wsp-ease),
    background-color var(--wsp-t-fast) var(--wsp-ease),
    border-color var(--wsp-t-fast) var(--wsp-ease);
}
.dash-nav-item:hover,
.admin-nav-item:hover {
  color: #fff;
  background-color: rgba(168, 85, 247, 0.055);
}
.dash-nav-item.active,
.admin-nav-item.active {
  background-color: rgba(168, 85, 247, 0.09);
}

/* --- 15.7 Touch: no fingir hover en dispositivos táctiles ------------- */
@media (hover: none), (pointer: coarse) {
  .m-card:hover {
    transform: none;
    border-color: inherit;
    background-color: inherit;
  }
  .m-card:hover .m-price { color: inherit; }
  .m-card .m-buy-btn:hover:not(:disabled),
  .m-card .fav-btn:hover { transform: none; }
}

/* --- 15.8 Menos movimiento: respeta la preferencia del sistema -------- */
@media (prefers-reduced-motion: reduce) {
  .m-card,
  .m-card .m-title,
  .m-card .m-price,
  .m-card .m-buy-btn,
  .m-card .fav-btn,
  .cat-chip,
  a,
  button,
  .btn,
  .round-btn,
  input,
  select,
  textarea {
    transition: none !important;
  }
}
