/*
 * SMK Mayorista — componentes del flujo mayorista.
 * Los colores y fuentes salen de variables --smk-*; el tema SMK las define y cualquier
 * otro tema hereda estos valores por defecto.
 */

:root {
  --smk-bg: #0b0f12;
  --smk-surface: #121a1e;
  --smk-surface-2: #18232a;
  --smk-line: rgba(255, 255, 255, 0.09);
  --smk-line-strong: rgba(255, 255, 255, 0.18);
  --smk-text: #e7edf0;
  --smk-muted: #8d9ca5;
  --smk-red: #e8262b;
  --smk-red-hi: #ff4b3e;
  --smk-ok: #3ddc97;
  --smk-warn: #ffb547;
  --smk-radius: 14px;
  --smk-font: inherit;
  --smk-font-display: inherit;
  --smk-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --smk-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --smk-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

.smk-oculto { position: absolute !important; left: -9999px !important; }

/* ---------- Botones ---------- */

.smk-btn {
  --b: var(--smk-red);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--b);
  color: #fff;
  font: 600 15px/1 var(--smk-font);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px -10px rgba(232, 38, 43, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 160ms var(--smk-ease-out), background-color 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.smk-btn:active:not(:disabled) { transform: scale(0.97); }
.smk-btn:focus-visible { outline: 2px solid var(--smk-red-hi); outline-offset: 3px; }
.smk-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.smk-btn--full { width: 100%; }
.smk-btn--fantasma {
  background: transparent;
  border-color: var(--smk-line-strong);
  color: var(--smk-text);
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  .smk-btn:hover:not(:disabled) { background: var(--smk-red-hi); box-shadow: 0 10px 30px -10px rgba(255, 75, 62, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
  .smk-btn--fantasma:hover:not(:disabled) { background: rgba(255, 255, 255, 0.05); box-shadow: none; }
}
.smk-btn__txt { transition: opacity 200ms ease, filter 200ms ease; }
.smk-btn.is-cargando .smk-btn__txt { opacity: 0.35; filter: blur(2px); }
.smk-btn.is-cargando::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: smk-giro 600ms linear infinite;
}
.smk-btn.is-ok { --b: #1fae6f; background: #1fae6f; box-shadow: 0 8px 24px -10px rgba(31, 174, 111, 0.7); }
@keyframes smk-giro { to { transform: rotate(360deg); } }

/* ---------- Precio y candado ---------- */

.smk-candado {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px dashed var(--smk-line-strong);
  border-radius: 999px;
  color: var(--smk-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 200ms ease, border-color 200ms ease;
}
a.smk-candado { color: var(--smk-text); }
@media (hover: hover) and (pointer: fine) {
  a.smk-candado:hover { border-color: var(--smk-red); color: #fff; }
}
.smk-candado.is-revision { color: var(--smk-warn); border-color: rgba(255, 181, 71, 0.35); }

.smk-pulso {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--smk-warn);
  flex: none;
}
.smk-pulso::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: smk-pulso 1.8s var(--smk-ease-out) infinite;
}
@keyframes smk-pulso { from { transform: scale(1); opacity: 0.6; } to { transform: scale(3); opacity: 0; } }

.smk-precio { display: inline-flex; flex-direction: column; gap: 2px; }
.smk-precio__fila { display: inline-flex; align-items: baseline; gap: 6px; }
.smk-precio__monto { font: 700 1.05em/1.1 var(--smk-font-display); color: var(--smk-text); font-variant-numeric: tabular-nums; }
.smk-precio__por { font-size: 12px; color: var(--smk-muted); }
.smk-precio__fila.is-display .smk-precio__monto { color: var(--smk-red-hi); }
.smk-precio__lista { font-size: 11px; color: var(--smk-ok); letter-spacing: 0.02em; }

.smk-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--smk-muted);
  font-size: 12px;
  font-weight: 500;
}
.smk-chip.is-display { background: rgba(232, 38, 43, 0.14); color: #ff8a80; }

/* Selector de presentación en la ficha */
.smk-presentacion { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 16px; padding: 0; border: 0; width: 100%; }
.smk-presentacion legend { margin-bottom: 8px; font-size: 13px; color: var(--smk-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.smk-presentacion__op { position: relative; cursor: pointer; }
.smk-presentacion__op input { position: absolute; opacity: 0; }
.smk-presentacion__op > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--smk-line-strong);
  border-radius: 12px;
  background: var(--smk-surface);
  transition: border-color 200ms ease, background-color 200ms ease, transform 160ms var(--smk-ease-out);
}
.smk-presentacion__op strong { color: var(--smk-text); font-size: 14px; }
.smk-presentacion__op em { font-style: normal; color: var(--smk-muted); font-variant-numeric: tabular-nums; }
.smk-presentacion__op input:checked + span { border-color: var(--smk-red); background: linear-gradient(180deg, rgba(232, 38, 43, 0.14), rgba(232, 38, 43, 0.04)); }
.smk-presentacion__op input:checked + span em { color: #fff; }
.smk-presentacion__op input:focus-visible + span { outline: 2px solid var(--smk-red-hi); outline-offset: 2px; }
.smk-presentacion__op:active > span { transform: scale(0.98); }

/* ---------- Registro ---------- */

.smk-registro { max-width: 560px; margin: 0 auto; scroll-margin-top: 96px; }

.smk-pasos { display: none; }
.smk-registro.is-js .smk-pasos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}
.smk-pasos__item { display: flex; align-items: center; gap: 10px; white-space: nowrap; position: relative; padding-top: 14px; color: var(--smk-muted); font-size: 13px; font-weight: 500; }
.smk-pasos__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--smk-line);
}
.smk-pasos__item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--smk-red), var(--smk-red-hi));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--smk-ease-out);
  box-shadow: 0 0 12px rgba(255, 75, 62, 0.6);
}
.smk-pasos__item.is-activo::after,
.smk-pasos__item.is-hecho::after { transform: scaleX(1); }
.smk-pasos__item.is-activo,
.smk-pasos__item.is-hecho { color: var(--smk-text); }
.smk-pasos__num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--smk-line-strong);
  font: 600 12px/1 var(--smk-font-display);
  transition: background-color 200ms ease, border-color 200ms ease;
}
.smk-pasos__item.is-activo .smk-pasos__num { border-color: var(--smk-red); background: var(--smk-red); color: #fff; }
.smk-pasos__item.is-hecho .smk-pasos__num { border-color: var(--smk-ok); color: var(--smk-ok); }

.smk-form { margin: 0; }
.smk-paso { margin: 0 0 32px; padding: 0; border: 0; min-width: 0; }
.smk-registro.is-js .smk-paso { display: none; margin: 0; }
.smk-registro.is-js .smk-paso.is-activo { display: block; }
.smk-paso__titulo { margin: 0 0 18px; padding: 0; font: 700 clamp(22px, 4vw, 28px)/1.15 var(--smk-font-display); color: var(--smk-text); letter-spacing: -0.01em; }
.smk-paso__ayuda { margin: -8px 0 18px; color: var(--smk-muted); font-size: 13.5px; }
.smk-paso__acciones { display: flex; gap: 10px; margin-top: 24px; }
.smk-paso__acciones .smk-btn { flex: 1; }
.smk-paso__acciones .smk-btn--fantasma { flex: 0 0 auto; }

.smk-perfiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.smk-perfil { position: relative; cursor: pointer; }
.smk-perfil input { position: absolute; opacity: 0; }
.smk-perfil__caja {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--smk-line-strong);
  border-radius: var(--smk-radius);
  background: var(--smk-surface);
  transition: border-color 200ms ease, background-color 200ms ease, transform 160ms var(--smk-ease-out);
}
.smk-perfil__caja svg { width: 26px; height: 26px; margin-bottom: 6px; color: var(--smk-muted); transition: color 200ms ease; }
.smk-perfil__caja strong { color: var(--smk-text); font-size: 15px; }
.smk-perfil__caja em { font-style: normal; color: var(--smk-muted); font-size: 12.5px; line-height: 1.35; }
.smk-perfil input:checked + .smk-perfil__caja { border-color: var(--smk-red); background: radial-gradient(120% 120% at 0% 0%, rgba(232, 38, 43, 0.18), transparent 60%), var(--smk-surface); }
.smk-perfil input:checked + .smk-perfil__caja svg { color: var(--smk-red-hi); }
.smk-perfil input:focus-visible + .smk-perfil__caja { outline: 2px solid var(--smk-red-hi); outline-offset: 2px; }
.smk-perfil:active .smk-perfil__caja { transform: scale(0.98); }

.smk-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.smk-campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.smk-campo[hidden] { display: none; }
.smk-campo label { font-size: 13px; font-weight: 500; color: var(--smk-muted); }
.smk-campo label small { opacity: 0.7; }
.smk-campo input,
.smk-campo select,
.smk-rapido input[type="search"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--smk-line-strong);
  border-radius: 12px;
  background: var(--smk-bg);
  color: var(--smk-text);
  font: 400 16px/1.2 var(--smk-font);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.smk-campo select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%238d9ca5' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.smk-campo input::placeholder { color: rgba(141, 156, 165, 0.6); }
.smk-campo input:focus,
.smk-campo select:focus,
.smk-rapido input[type="search"]:focus { outline: none; border-color: var(--smk-red); box-shadow: 0 0 0 4px rgba(232, 38, 43, 0.16); }
.smk-campo.is-error input,
.smk-campo.is-error select { border-color: #ff6b5e; }
.smk-campo__error { color: #ff8a80; font-size: 12.5px; }
.smk-campo__ayuda { color: var(--smk-muted); font-size: 12px; }
.smk-campo__con-boton,
.smk-campo__con-icono { position: relative; }
.smk-ver-clave {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--smk-muted);
  font-size: 12px;
  cursor: pointer;
}
.smk-check {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  color: var(--smk-ok);
  pointer-events: none;
}
.smk-check path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 280ms var(--smk-ease-out); }
.is-valido .smk-check path { stroke-dashoffset: 0; }
.is-valido input { border-color: rgba(61, 220, 151, 0.5); }

.smk-acepta { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 4px; color: var(--smk-muted); font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.smk-acepta input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--smk-red); }
.smk-acepta a { color: var(--smk-text); }
.smk-acepta strong { color: var(--smk-text); }

.smk-alerta { padding: 12px 14px; border-radius: 12px; background: rgba(255, 107, 94, 0.1); border: 1px solid rgba(255, 107, 94, 0.3); color: #ffb4ac; }
.smk-registro__nota { margin-top: 22px; color: var(--smk-muted); font-size: 13.5px; text-align: center; }
.smk-registro__nota a { color: var(--smk-text); }
.smk-invitar { margin-top: 18px; color: var(--smk-muted); }

/* ---------- Estado de la cuenta ---------- */

.smk-estado {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--smk-line);
  border-radius: 20px;
  background: radial-gradient(100% 80% at 50% 0%, rgba(232, 38, 43, 0.12), transparent 70%), var(--smk-surface);
  text-align: center;
}
.smk-estado h2 { margin: 14px 0 10px; font: 700 clamp(22px, 4vw, 28px)/1.15 var(--smk-font-display); color: var(--smk-text); }
.smk-estado p { color: var(--smk-muted); line-height: 1.6; }
.smk-estado__acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.smk-estado__icono { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); color: var(--smk-text); }
.smk-estado__icono svg { width: 28px; height: 28px; }
.smk-radar { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--smk-warn); }
.smk-radar::before,
.smk-radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--smk-warn); animation: smk-pulso 2.4s var(--smk-ease-out) infinite; }
.smk-radar::after { animation-delay: 1.2s; }
.smk-linea { display: flex; justify-content: center; gap: 6px; margin: 22px 0 6px; padding: 0; list-style: none; flex-wrap: wrap; }
.smk-linea li { padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); color: var(--smk-muted); font-size: 12.5px; }
.smk-linea li.is-hecho { color: var(--smk-ok); }
.smk-linea li.is-activo { color: var(--smk-warn); background: rgba(255, 181, 71, 0.1); }

.smk-barra-estado {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 181, 71, 0.1);
  border-bottom: 1px solid rgba(255, 181, 71, 0.25);
  color: #ffd08a;
  font-size: 13.5px;
  text-align: center;
}

.smk-bienvenida { margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(61, 220, 151, 0.35); background: rgba(61, 220, 151, 0.08); color: #b6f5d8; }
.smk-ficha { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; margin-bottom: 28px; }
.smk-ficha__dato { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; background: var(--smk-surface); border: 1px solid var(--smk-line); }
.smk-ficha__dato span { color: var(--smk-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.smk-ficha__dato strong { color: var(--smk-text); font-size: 16px; }
.smk-ficha__dato strong.is-ok { color: var(--smk-ok); }

/* ---------- Pedido rápido ---------- */

.smk-rapido { position: relative; padding-bottom: 120px; }
.smk-rapido__herramientas { position: sticky; top: var(--smk-header-h, 0px); z-index: 5; display: flex; flex-direction: column; gap: 12px; padding: 12px 0; background: linear-gradient(var(--smk-bg) 80%, transparent); }
.smk-buscar { position: relative; display: block; }
.smk-buscar svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--smk-muted); pointer-events: none; }
.smk-rapido input[type="search"] { padding-left: 42px; }
.smk-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; scroll-snap-type: x proximity; }
.smk-chips::-webkit-scrollbar { display: none; }
.smk-chip-btn {
  flex: none;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--smk-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--smk-muted);
  font: 500 14px/1 var(--smk-font);
  cursor: pointer;
  scroll-snap-align: start;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 160ms var(--smk-ease-out);
}
.smk-chip-btn:active { transform: scale(0.96); }
.smk-chip-btn.is-activo { background: var(--smk-text); border-color: var(--smk-text); color: var(--smk-bg); }
@media (hover: hover) and (pointer: fine) {
  .smk-chip-btn:not(.is-activo):hover { color: var(--smk-text); border-color: var(--smk-muted); }
}
.smk-rapido__lista { margin: 0; color: var(--smk-ok); font-size: 13px; }

.smk-rapido__lista-productos { display: flex; flex-direction: column; gap: 10px; }
.smk-fila-prod {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--smk-line);
  border-radius: 16px;
  background: var(--smk-surface);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.smk-fila-prod[hidden] { display: none; }
.is-cargado > .smk-fila-prod { animation: smk-entra 320ms var(--smk-ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes smk-entra { from { opacity: 0; transform: translateY(8px); } }
.smk-fila-prod.is-seleccionado { border-color: rgba(232, 38, 43, 0.55); background: linear-gradient(90deg, rgba(232, 38, 43, 0.08), transparent 50%), var(--smk-surface); }
.smk-fila-prod__img { display: block; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--smk-surface-2); }
.smk-fila-prod__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.smk-fila-prod__info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.smk-fila-prod__nombre { color: var(--smk-text); font-weight: 600; font-size: 15px; line-height: 1.3; text-decoration: none; }
.smk-fila-prod__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--smk-muted); }
.smk-sku { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; }
.smk-stock { color: var(--smk-ok); }
.smk-stock::before { content: "● "; }
.smk-stock.is-bajo { color: var(--smk-warn); }
.smk-stock.is-agotado { color: #ff8a80; }
.smk-fila-prod__ops { display: flex; gap: 10px; }
.smk-op { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; background: var(--smk-bg); border: 1px solid transparent; transition: border-color 200ms ease; }
.smk-op.is-activo { border-color: rgba(232, 38, 43, 0.5); }
.smk-op__info { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px; }
.smk-op__etq { color: var(--smk-muted); font-size: 12px; white-space: nowrap; }
.smk-op__precio { color: var(--smk-text); font: 700 14px/1 var(--smk-font-display); font-variant-numeric: tabular-nums; }
.smk-stepper { display: grid; grid-template-columns: 40px 56px 40px; align-items: center; }
.smk-stepper__btn {
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--smk-surface-2);
  color: var(--smk-text);
  font: 500 20px/1 var(--smk-font);
  cursor: pointer;
  transition: background-color 150ms ease, transform 120ms var(--smk-ease-out);
  -webkit-tap-highlight-color: transparent;
}
.smk-stepper__btn:active:not(:disabled) { transform: scale(0.92); background: var(--smk-red); }
.smk-stepper__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.smk-stepper__input {
  width: 100%;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--smk-text);
  font: 700 16px/1 var(--smk-font-display);
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.smk-stepper__input::-webkit-outer-spin-button,
.smk-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.smk-stepper__input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--smk-red); }
.smk-rapido__vacio { padding: 40px 0; text-align: center; color: var(--smk-muted); }

.smk-fila-prod.is-esqueleto { min-height: 98px; grid-template-columns: 72px 1fr 200px; }
.smk-fila-prod.is-esqueleto span { height: 72px; border-radius: 12px; background: linear-gradient(90deg, var(--smk-surface-2) 30%, rgba(255, 255, 255, 0.08) 50%, var(--smk-surface-2) 70%) 0 0 / 300% 100%; animation: smk-brillo 1.3s linear infinite; }
.smk-fila-prod.is-esqueleto span:nth-child(2) { height: 18px; width: 60%; }
.smk-fila-prod.is-esqueleto span:nth-child(3) { height: 40px; }
@keyframes smk-brillo { from { background-position: 100% 0; } to { background-position: 0 0; } }

.smk-rapido__barra {
  position: fixed;
  left: 50%;
  bottom: calc(16px + var(--smk-tabbar-h, 0px) + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(760px, calc(100% - 24px));
  padding: 12px 12px 12px 20px;
  border: 1px solid var(--smk-line-strong);
  border-radius: 18px;
  background: rgba(18, 26, 30, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  transform: translateX(-50%);
  transition: border-color 200ms ease, box-shadow 300ms ease;
}
.smk-rapido__barra.is-con-items { border-color: rgba(232, 38, 43, 0.5); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(232, 38, 43, 0.2), 0 0 40px -10px rgba(232, 38, 43, 0.45); }
.smk-rapido__resumen { flex: 1; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; row-gap: 6px; min-width: 0; }
.smk-rapido__conteo { color: var(--smk-muted); font-size: 12.5px; }
.smk-rapido__total { justify-self: end; color: var(--smk-text); font: 700 20px/1 var(--smk-font-display); font-variant-numeric: tabular-nums; }
.smk-rapido__resumen .smk-progreso { grid-column: 1 / -1; }
.smk-rapido__barra .smk-btn { flex: none; }

/* ---------- Avance hacia mínimos ---------- */

.smk-avance { display: flex; flex-direction: column; gap: 14px; margin: 0 0 20px; padding: 16px; border: 1px solid var(--smk-line); border-radius: 14px; background: var(--smk-surface); }
.smk-avance__max { margin: 0; color: var(--smk-ok); font-size: 13.5px; }
.smk-progreso { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.smk-progreso__titulo { color: var(--smk-text); font-size: 13px; font-weight: 600; }
.smk-progreso__barra { grid-column: 1 / -1; order: 3; position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.smk-progreso__relleno {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--smk-red), var(--smk-red-hi));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--smk-ease-out), background 300ms ease;
}
.smk-progreso.is-completo .smk-progreso__relleno { background: linear-gradient(90deg, #1fae6f, var(--smk-ok)); }
.smk-progreso.is-volumen .smk-progreso__relleno { background: linear-gradient(90deg, #6b5cff, #a08bff); }
.smk-progreso__txt { color: var(--smk-muted); font-size: 12.5px; text-align: right; }
.smk-progreso__txt strong { color: var(--smk-text); }
.smk-rapido__barra .smk-progreso { grid-template-columns: 1fr; }
.smk-rapido__barra .smk-progreso__txt { text-align: left; order: 4; }

/* ---------- Avisos ---------- */

.smk-avisos {
  position: fixed;
  left: 50%;
  bottom: calc(110px + var(--smk-tabbar-h, 0px) + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(440px, calc(100% - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}
.smk-aviso {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--smk-line-strong);
  background: rgba(24, 35, 42, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--smk-text);
  font-size: 14px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8);
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 300ms var(--smk-ease-out);
}
@starting-style {
  .smk-aviso { opacity: 0; transform: translateY(100%); }
}
.smk-aviso.is-saliendo { opacity: 0; transform: translateY(40%); transition-duration: 180ms; }
.smk-aviso.is-ok { border-color: rgba(61, 220, 151, 0.35); }
.smk-aviso.is-error { border-color: rgba(255, 107, 94, 0.45); }
.smk-aviso__txt { flex: 1; }
.smk-aviso__accion { color: #fff; font-weight: 600; text-decoration: none; padding: 6px 10px; border-radius: 8px; background: var(--smk-red); }

/* ---------- Pantallas chicas ---------- */

@media (max-width: 720px) {
  .smk-fila-prod { grid-template-columns: 56px 1fr; gap: 12px; }
  .smk-fila-prod__img { width: 56px; height: 56px; }
  .smk-fila-prod__ops { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .smk-stepper { grid-template-columns: 44px 1fr 44px; }
  .smk-stepper__btn { height: 44px; }
  .smk-rapido__barra { padding: 10px 10px 10px 14px; gap: 10px; }
  .smk-rapido__total { font-size: 17px; }
  .smk-rapido__barra .smk-btn { padding: 0 16px; }
  .smk-fila-prod.is-esqueleto { grid-template-columns: 56px 1fr; }
  .smk-fila-prod.is-esqueleto span:nth-child(3) { display: none; }
}
@media (max-width: 480px) {
  .smk-fila { grid-template-columns: 1fr; gap: 0; }
  .smk-perfil__caja { padding: 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .smk-pulso::after,
  .smk-radar::before,
  .smk-radar::after,
  .smk-fila-prod.is-esqueleto span { animation: none; }
  .is-cargado > .smk-fila-prod { animation: smk-aparece 200ms ease both; animation-delay: 0ms; }
  .smk-aviso { transition: opacity 200ms ease; transform: none; }
  @starting-style { .smk-aviso { opacity: 0; transform: none; } }
  .smk-progreso__relleno,
  .smk-pasos__item::after { transition-duration: 0ms; }
}
@keyframes smk-aparece { from { opacity: 0; } }

/* ---------- Aviso de mayoría de edad ---------- */

html.smk-edad-abierta { overflow: hidden; }
.smk-edad {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 10, 12, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  opacity: 1;
  transition: opacity 240ms ease;
}
@starting-style { .smk-edad { opacity: 0; } }
.smk-edad.is-saliendo { opacity: 0; pointer-events: none; transition-duration: 200ms; }
.smk-edad__caja {
  width: min(440px, 100%);
  padding: clamp(24px, 6vw, 40px);
  border: 1px solid var(--smk-line-strong);
  border-radius: 24px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(232, 38, 43, 0.2), transparent 65%), var(--smk-surface);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  text-align: center;
  transform: none;
  transition: transform 300ms var(--smk-ease-out);
}
@starting-style { .smk-edad__caja { transform: scale(0.96) translateY(8px); } }
.smk-edad.is-saliendo .smk-edad__caja { transform: scale(0.98); }
.smk-edad__marca {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border: 2px solid var(--smk-red);
  border-radius: 50%;
  color: #fff;
  font: 700 20px/1 var(--smk-font-display);
  box-shadow: 0 0 30px rgba(232, 38, 43, 0.45), inset 0 0 18px rgba(232, 38, 43, 0.25);
}
.smk-edad__titulo { margin: 0 0 10px; color: #fff; font: 700 clamp(22px, 5vw, 28px)/1.15 var(--smk-font-display); letter-spacing: -0.01em; }
.smk-edad__txt { margin: 0 0 24px; color: var(--smk-muted); font-size: 15px; line-height: 1.55; }
.smk-edad__acciones { display: flex; flex-direction: column; gap: 10px; }
.smk-edad__acciones .smk-btn { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .smk-edad__caja { transition: none; }
  @starting-style { .smk-edad__caja { transform: none; } }
}
