/* Portal mayorista. Va sin los CSS base de la tienda. */
:root { --pm-verde: #00823F; --pm-verde-osc: #006b33; --pm-tinta: #1d1d1b; --pm-gris: #666; --pm-linea: #e6e6e6; --pm-fondo: #f5f5f3; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--pm-fondo); color: var(--pm-tinta); font: 15px/1.5 Poppins, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; }
a { color: var(--pm-verde-osc); font-size: inherit; }
h1 { font-size: 24px; margin: 0 0 12px; line-height: 1.25; }
[hidden] { display: none !important; }
.pm-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--pm-linea); position: sticky; top: 0; z-index: 5; }
.pm-logo img { display: block; height: 40px; width: auto; }
.pm-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.pm-nav a { color: var(--pm-tinta); text-decoration: none; padding: 7px 11px; border-radius: 8px; white-space: nowrap; }
.pm-nav a:hover { background: var(--pm-fondo); }
.pm-nav a.on { background: var(--pm-tinta); color: #fff; }
.pm-count { background: var(--pm-verde); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; }
.pm-salir button { background: none; border: 0; color: var(--pm-gris); cursor: pointer; font: inherit; text-decoration: underline; padding: 6px; }
.pm-main { max-width: 1180px; margin: 0 auto; padding: 18px 16px 90px; }
.pm-card { background: #fff; border: 1px solid var(--pm-linea); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.pm-chica { max-width: 440px; margin: 40px auto; }
.pm-sub { color: var(--pm-gris); font-size: 14px; margin: 4px 0 12px; }
.pm-mt { margin-top: 16px; }
.pm-texto { margin: 0 0 14px; }
.pm-label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 4px; }
.pm-input { width: 100%; padding: 9px 11px; border: 1px solid #bbb; border-radius: 8px; font: inherit; background: #fff; color: var(--pm-tinta); }
.pm-input:focus, .pm-btn:focus-visible, .pm-btn-sec:focus-visible { outline: 2px solid var(--pm-verde); outline-offset: 1px; }
.pm-btn, a.pm-btn { display: inline-block; background: var(--pm-verde); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.pm-btn:hover { background: var(--pm-verde-osc); }
.pm-btn:disabled { opacity: .5; cursor: not-allowed; }
.pm-btn-sec, a.pm-btn-sec { display: inline-block; background: #fff; color: var(--pm-tinta); border: 1px solid #bbb; border-radius: 8px; padding: 9px 14px; font: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; }
.pm-btn-sec:disabled { opacity: .5; cursor: default; }
.pm-chica form .pm-btn { width: 100%; margin-top: 12px; }
.pm-fila { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.pm-h2 { font-size: 17px; margin: 18px 0 4px; }
.pm-ayuda { color: var(--pm-gris); font-size: 13px; margin-top: 3px; }
.pm-mb { margin-bottom: 16px; }
.pm-err { color: #b3261e; font-size: 13px; margin-top: 3px; }
.pm-aviso { background: #eef4ff; border: 1px solid #c9dafb; border-radius: 8px; padding: 9px 12px; margin-bottom: 10px; font-size: 14px; }
.pm-aviso-ok { background: #e8f5ec; border-color: #bfe3cb; }
.pm-aviso-mal { background: #fdf0e6; border-color: #f4d3b5; }
.pm-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.pm-tabs a { padding: 7px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--pm-linea); color: var(--pm-tinta); text-decoration: none; }
.pm-tabs a.on { background: var(--pm-tinta); color: #fff; border-color: var(--pm-tinta); }
.pm-filtros { display: grid; grid-template-columns: 1fr 200px 180px auto; gap: 8px; margin-bottom: 14px; }
.pm-grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pm-prod { background: #fff; border: 1px solid var(--pm-linea); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.pm-prod.en-carrito { border-color: var(--pm-verde); box-shadow: 0 0 0 1px var(--pm-verde); }
.pm-prod-img { position: relative; }
.pm-prod img, .pm-sinfoto { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #eee; display: block; }
.pm-nuevo { position: absolute; top: 6px; left: 6px; background: #ffd400; color: var(--pm-tinta); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border-radius: 4px; padding: 2px 7px; }
.pm-prod-txt { flex: 1; min-width: 0; }
.pm-prod-cat { font-size: 12px; color: var(--pm-gris); }
.pm-prod-nom { font-size: 14px; line-height: 1.3; font-weight: 500; }
.pm-prod-precio { font-size: 12px; color: var(--pm-verde-osc); font-weight: 600; margin-top: 2px; }
.pm-agregar { width: 100%; min-height: 38px; background: var(--pm-verde); color: #fff; border: 0; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.pm-agregar:hover { background: var(--pm-verde-osc); }
.pm-step { display: flex; align-items: stretch; height: 38px; border: 1px solid var(--pm-verde); border-radius: 8px; overflow: hidden; background: #fff; }
.pm-step button { flex: none; width: 38px; background: #e8f5ec; color: var(--pm-verde-osc); border: 0; font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer; }
.pm-step button:hover { background: #d3ecdc; }
.pm-step .pm-cant { flex: 1; min-width: 0; width: 100%; border: 0; background: #fff; text-align: center; font: inherit; font-weight: 600; color: var(--pm-tinta); -moz-appearance: textfield; }
.pm-step .pm-cant::-webkit-outer-spin-button, .pm-step .pm-cant::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pm-agregar:focus-visible, .pm-step button:focus-visible, .pm-step .pm-cant:focus { outline: 2px solid var(--pm-verde); outline-offset: -2px; }
.pm-tabla .pm-ctrl { width: 132px; }
.pm-linea-prod { display: flex; align-items: center; gap: 12px; }
.pm-linea-prod img, .pm-linea-prod .pm-sinfoto { flex: none; width: 56px; height: 56px; aspect-ratio: auto; object-fit: cover; border-radius: 6px; background: #eee; }
@media (max-width: 640px) { .pm-linea-prod img, .pm-linea-prod .pm-sinfoto { width: 44px; height: 44px; } }
.pm-lista { grid-template-columns: 1fr; gap: 0; background: #fff; border: 1px solid var(--pm-linea); border-radius: 10px; }
.pm-lista .pm-prod { flex-direction: row; align-items: center; border: 0; border-bottom: 1px solid var(--pm-linea); border-radius: 0; padding: 6px 10px; }
.pm-lista .pm-prod-img { flex: none; }
.pm-lista .pm-prod img, .pm-lista .pm-sinfoto { width: 44px; }
.pm-lista .pm-nuevo { top: auto; bottom: -2px; left: -2px; font-size: 9px; padding: 1px 4px; }
.pm-lista .pm-prod.en-carrito { box-shadow: inset 3px 0 0 var(--pm-verde); }
.pm-lista .pm-ctrl { flex: none; width: 132px; }
.pm-vacio { grid-column: 1 / -1; }
.pm-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; }
.pm-barra { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--pm-linea); padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; }
.pm-tabla-wrap { padding: 0; overflow-x: auto; }
.pm-tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.pm-tabla th { text-align: left; color: var(--pm-gris); font-weight: 600; }
.pm-tabla th, .pm-tabla td { padding: 9px 12px; border-bottom: 1px solid var(--pm-linea); }
.pm-tabla .pm-sub { margin: 0; font-size: 12px; }
.pm-tabla-precios th:not(:first-child), .pm-tabla-precios td:not(:first-child) { text-align: right; white-space: nowrap; }
.pm-tabla-precios td:first-child { font-weight: 600; }
.pm-total td { font-weight: 700; border-bottom: 0; }
.pm-quitar { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: var(--pm-gris); padding: 4px 8px; }
.pm-radios { border: 0; padding: 0; margin: 0 0 12px; }
.pm-radios legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 4px; }
.pm-radios label { display: block; padding: 3px 0; }
.pm-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.pm-acciones { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
    .pm-fila, .pm-filtros { grid-template-columns: 1fr; }
    .pm-grilla:not(.pm-lista) { grid-template-columns: repeat(2, 1fr); }
    .pm-nav { order: 3; flex-basis: 100%; }
    .pm-salir { margin-left: auto; }
    .pm-card { padding: 14px; }
    .pm-tabla-wrap { padding: 0; }
}
@media print {
    .pm-top, .pm-acciones, .pm-barra { display: none !important; }
    body { background: #fff; }
    .pm-card { border: 0; }
}

/* solicitud paso a paso */
.pm-pasos { max-width: 620px; margin: 0 auto; }
.pm-progreso { margin: 8px 0 26px; }
.pm-progreso-txt { font-size: 13px; color: var(--pm-gris); margin-bottom: 6px; }
.pm-barra-prog { height: 8px; background: #e2e2de; border-radius: 8px; overflow: hidden; }
.pm-barra-prog span { display: block; height: 100%; background: var(--pm-verde); border-radius: 8px; transition: width .25s ease; }
.pm-paso h1 { font-family: 'Russo One', Poppins, sans-serif; font-weight: 400; font-size: 30px; outline: none; }
.pm-paso > .pm-sub { font-size: 16px; margin-bottom: 20px; }
.pm-opciones { display: grid; gap: 10px; }
.pm-opcion { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 58px; padding: 12px 18px; background: #fff; border: 2px solid var(--pm-linea); border-radius: 12px; font: inherit; font-size: 16px; font-weight: 500; color: var(--pm-tinta); text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.pm-opcion:hover { border-color: var(--pm-verde); transform: translateY(-1px); }
.pm-opcion:focus-visible { outline: 2px solid var(--pm-verde); outline-offset: 2px; }
.pm-opcion.on { border-color: var(--pm-verde); background: #e8f5ec; }
.pm-opcion em { flex: none; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--pm-verde); border-radius: 20px; padding: 3px 10px; }
.pm-paso .pm-campo { margin-bottom: 14px; }
.pm-paso .pm-input { padding: 12px; font-size: 16px; }
.pm-input[aria-invalid] { border-color: #b3261e; }
.pm-btn-grande { width: 100%; padding: 14px; font-size: 17px; margin-top: 6px; }
.pm-paso-pie { display: flex; justify-content: space-between; margin-top: 18px; }
.pm-link { background: none; border: 0; padding: 8px 0; font: inherit; color: var(--pm-gris); text-decoration: underline; cursor: pointer; }
.pm-trampa { position: absolute; left: -9999px; }
.pm-listo { text-align: center; padding-top: 30px; }
.pm-listo .pm-btn { margin: 8px 0; }
.pm-listo-ico { width: 72px; height: 72px; line-height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--pm-verde); color: #fff; font-size: 38px; }
@media (max-width: 640px) { .pm-paso h1 { font-size: 25px; } .pm-opcion em { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .pm-opcion, .pm-barra-prog span { transition: none; } }
