/* Concepto: como las referencias de Díaz e Hidro. Banda oscura arriba, tarjetas blancas con borde fino, títulos fuertes y panel flotante de pedido, en el rojo y negro del logo. */
:root {
  color-scheme: light;
  --negro: #17130f; --tinta: #2a2523; --gris: #70686a; --linea: #e8e3e1; --fondo: #fafafa; --suave: #f4f1ef; --blanco: #fff;
  --rojo: #9a1014; --rojo-vivo: #b5181c; --rojo-osc: #5c0608; --rojo-suave: #fbeceb;
  --verde: #1b6e3f; --verde-suave: #e4f4ea; --ambar: #8a5a00; --ambar-suave: #fdf3dc; --wa: #128c4b; --demo: #ffd84d;
  --titulo: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --texto: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  --r-chico: 10px; --r-medio: 14px; --r-grande: 18px; --r-pill: 999px;
  --sombra: 0 1px 2px rgba(40, 20, 15, .05), 0 6px 18px rgba(40, 20, 15, .06);
  --sombra-alta: 0 4px 10px rgba(40, 20, 15, .08), 0 16px 34px rgba(40, 20, 15, .12);
}
[hidden]:not([hidden=until-found i]) { display: none !important; }
img { max-width: 100%; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font: 400 15px/1.5 var(--texto); }
body.fijo { overflow: hidden; }
a { color: var(--rojo); }
h1, h2, h3 { font-family: var(--titulo); margin: 0; text-wrap: balance; color: var(--negro); }
h1 { font-size: 27px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
h3 { font-size: 16px; font-weight: 600; }
code { font-size: .92em; background: var(--suave); padding: 1px 6px; border-radius: 6px; }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { background: var(--blanco); border: 1px solid #d9d3d1; border-radius: var(--r-chico); padding: 9px 12px; min-width: 0; max-width: 100%; }
input:disabled { background: var(--suave); color: var(--gris); }
:focus-visible { outline: 2px solid var(--rojo-vivo); outline-offset: 2px; }
.envoltura { max-width: 1360px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--gris); }
.centro { text-align: center; padding: 10px 0; }
.cod { font-size: 12px; color: var(--gris); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.num { font-weight: 700; font-size: 15px; color: var(--negro); font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 18px; border: 1px solid transparent; border-radius: var(--r-chico); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.rojo { background: var(--rojo); color: #fff; } .btn.rojo:hover { background: var(--rojo-vivo); }
.btn.negro { background: var(--negro); color: #fff; } .btn.negro:hover { background: #37302b; }
.btn.sec { background: var(--blanco); color: var(--negro); border-color: #cfc8c6; } .btn.sec:hover { border-color: var(--negro); }
.btn.lin { background: transparent; color: var(--negro); border-color: var(--linea); } .btn.lin:hover { background: var(--suave); }
.btn.fan { background: transparent; color: var(--negro); } .btn.fan:hover { background: var(--suave); }
.btn.wa, .btn.wa-claro { background: var(--wa); color: #fff; } .btn.wa:hover, .btn.wa-claro:hover { background: #0e7a40; }
.btn.blanco { background: #fff; color: var(--rojo-osc); } .btn.blanco:hover { background: #f8e9e8; }
.btn.ancho { width: 100%; }
.lnk { background: none; border: 0; padding: 4px 0; color: var(--tinta); cursor: pointer; text-align: left; } .lnk b { color: var(--rojo); }

#demo-barra { background: var(--demo); color: #1d1a0a; font-size: 13px; padding: 6px max(16px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px)); }
.demo-in { max-width: 1328px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.demo-op { display: flex; flex-wrap: wrap; gap: 4px; }
.demo-op button, .demo-reset { background: transparent; border: 1px solid #1d1a0a; border-radius: var(--r-pill); padding: 2px 11px; cursor: pointer; font-weight: 600; color: #1d1a0a; }
.demo-op button[aria-pressed="true"] { background: #1d1a0a; color: var(--demo); }
.demo-reset { margin-left: auto; border-color: transparent; text-decoration: underline; font-weight: 400; }

.tira { background: var(--negro); color: #e9e5e4; font-size: 13px; padding-block: 6px; text-align: center; }
.tira a { color: #fff; font-weight: 600; }
.cab { background: var(--blanco); box-shadow: 0 2px 14px rgba(40, 20, 15, .07); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--blanco); }
.cab-in { display: flex; align-items: center; gap: 22px; padding-block: 8px; }
.logo { display: block; flex: none; line-height: 0; }
.logo img { height: 62px; width: auto; }
.buscar { flex: 1; display: flex; position: relative; min-width: 0; max-width: 640px; }
.buscar input { flex: 1; width: 100%; height: 46px; border: 1px solid transparent; background: var(--suave); border-radius: var(--r-pill); padding: 0 110px 0 20px; font-size: 16px; }
.buscar input:focus { background: var(--blanco); border-color: var(--rojo); outline: none; box-shadow: 0 0 0 3px var(--rojo-suave); }
.buscar .btn { position: absolute; right: 4px; top: 4px; min-height: 38px; height: 38px; }
.cuenta-zona, #zona-cuenta { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.cuenta-zona { margin-left: auto; gap: 10px; }
#btn-pedido i { font-style: normal; background: #fff; color: var(--negro); border-radius: var(--r-pill); min-width: 22px; padding: 0 6px; font-size: 13px; text-align: center; }
#btn-pedido span { font-variant-numeric: tabular-nums; }

#banda { padding-top: 18px; display: grid; gap: 14px; }
#banda[hidden], #zona-cierre[hidden] { display: none; }
.hero { background: radial-gradient(120% 160% at 88% 10%, var(--rojo-vivo) 0%, var(--rojo) 42%, var(--rojo-osc) 100%); color: #fff; border-radius: var(--r-grande); padding: 34px 38px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: center; overflow: hidden; }
.hero h2 { color: #fff; font-size: clamp(25px, 3.2vw, 38px); line-height: 1.12; letter-spacing: -.025em; }
.hero p { margin: 10px 0 18px; max-width: 54ch; color: #f7dedd; font-size: 16px; }
.eti { display: inline-block; background: rgba(255, 255, 255, .15); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: var(--r-pill); margin-bottom: 10px; }
.hero-acc { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-acc .btn { white-space: normal; text-align: center; }
.hero-fotos { display: grid; grid-template-columns: repeat(3, 96px); justify-content: center; gap: 12px 16px; }
.hero-fotos span { width: 96px; height: 96px; background: #fff; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .22); overflow: hidden; }
.hero-fotos span:nth-child(even) { transform: translateY(12px); }
.hero-fotos img { width: 64px; height: 64px; object-fit: contain; }
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pasos > div { background: var(--blanco); border-radius: var(--r-medio); box-shadow: var(--sombra); padding: 12px 16px; display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 1.3; }
.pasos b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--rojo-suave); color: var(--rojo); font: 700 16px/1 var(--titulo); }
.saludo { background: var(--blanco); border-radius: var(--r-medio); box-shadow: var(--sombra); padding: 12px 18px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.saludo b { font: 600 17px var(--titulo); color: var(--negro); }
.estado { padding: 12px 18px; border-radius: var(--r-medio); }
.estado.amb { background: var(--ambar-suave); }
.estado.mal { background: var(--rojo-suave); }
.estado.ok { background: var(--verde-suave); }

#catalogo { display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 22px; padding-block: 20px 28px; align-items: start; }
#catalogo[hidden] { display: none; }
.lateral { position: sticky; top: 92px; max-height: calc(100vh - 104px); overflow: auto; display: grid; gap: 14px; scrollbar-width: thin; padding: 2px; }
.lat-caja { background: var(--blanco); border-radius: var(--r-medio); box-shadow: var(--sombra); padding: 12px; }
.lat-caja h2 { font-size: 16px; padding: 4px 8px 8px; }
.ayuda { background: var(--negro); color: #e9e5e4; font-size: 13px; padding: 14px 16px; border-radius: var(--r-medio); }
.ayuda b { display: block; color: #fff; font: 600 15px/1.3 var(--titulo); margin-bottom: 4px; }
.rubro { display: flex; align-items: center; gap: 9px; width: 100%; background: none; border: 0; border-radius: var(--r-chico); padding: 6px 8px; text-align: left; cursor: pointer; font-size: 14px; line-height: 1.2; transition: background .12s; }
.rubro .ric { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--suave); color: var(--rojo); display: grid; place-items: center; }
.rubro .ric svg { width: 15px; height: 15px; }
.rubro .rn { flex: 1; min-width: 0; }
.rubro i { font-style: normal; color: var(--gris); font-size: 12px; font-variant-numeric: tabular-nums; }
.rubro:hover { background: var(--suave); }
.rubro.on { background: var(--rojo); color: #fff; font-weight: 600; } .rubro.on i { color: #f6d6d4; } .rubro.on .ric { background: rgba(255, 255, 255, .18); color: #fff; }
#rubros-cel { display: none; }
.central { min-width: 0; }
.herr { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 14px; }
#cuenta { margin-right: auto; font-variant-numeric: tabular-nums; }
.herr select { height: 38px; padding-block: 4px; max-width: 200px; border-radius: var(--r-pill); border-color: transparent; box-shadow: var(--sombra); padding-inline: 14px; }
.en-linea { display: inline-flex; gap: 6px; align-items: center; }
.vistas { display: flex; background: var(--blanco); border-radius: var(--r-pill); box-shadow: var(--sombra); padding: 3px; }
.vistas button { width: 34px; height: 32px; display: grid; place-items: center; background: none; border: 0; border-radius: var(--r-pill); cursor: pointer; color: var(--gris); }
.vistas button[aria-pressed="true"] { background: var(--negro); color: #fff; }

.vgrilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px; }
.art { background: var(--blanco); display: flex; flex-direction: column; min-width: 0; padding: 10px 10px 12px; gap: 8px; border-radius: var(--r-medio); box-shadow: var(--sombra); transition: transform .16s, box-shadow .16s; }
.vgrilla .art:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); }
.ph { height: 132px; display: grid; place-items: center; background: var(--blanco); overflow: hidden; border-radius: var(--r-chico); }
.ph img.chica { max-width: 108px; max-height: 108px; width: 100%; height: 100%; object-fit: contain; }
.ph img.llena { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); max-width: none; object-fit: contain; }
.vgrilla .ph img.llena { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
.ph.mini img.llena { inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); }
.vgrilla .ph:has(.foto-linea) img.llena { height: calc(100% - 42px); }
.vlista .foto-linea { display: none; }
.ph { position: relative; }
.foto-linea { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.92); border: 1px solid var(--linea); color: #555; font-size: 11px; line-height: 1.4; pointer-events: none; }
.sinfoto { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; height: 100%; justify-content: center; color: var(--rojo); background: var(--suave); border-radius: inherit; }
.sinfoto svg { width: 34px; height: 34px; stroke-width: 1.5; opacity: .75; }
.sinfoto small { font-size: 11px; color: var(--gris); }
.dat { flex: 1; min-width: 0; padding-inline: 4px; }
.mar { font-size: 11px; font-weight: 700; color: var(--rojo); letter-spacing: .05em; text-transform: uppercase; min-height: 16px; }
.art h3 { font: 500 14px/1.3 var(--texto); margin: 2px 0 3px; color: var(--negro); overflow-wrap: anywhere; }
.pie { display: grid; gap: 8px; padding-inline: 4px; }
.px { font: 700 21px/1.1 var(--titulo); color: var(--negro); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.px.oculto { font: 400 12px/1.3 var(--texto); color: var(--gris); letter-spacing: 0; min-height: 23px; display: flex; align-items: center; }
.px.consultar { font-size: 15px; color: var(--ambar); letter-spacing: 0; }
.espera { display: block; text-align: center; font-size: 12px; color: var(--ambar); background: var(--ambar-suave); border-radius: var(--r-pill); padding: 6px 10px; }
.ctl .btn { width: 100%; min-height: 38px; padding: 6px 12px; white-space: normal; line-height: 1.15; }
.stepper { display: inline-flex; align-items: center; gap: 2px; border-radius: var(--r-pill); background: var(--suave); padding: 3px; }
.ctl .stepper { display: flex; }
.stepper button { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--negro); color: #fff; font-size: 17px; cursor: pointer; line-height: 1; }
.stepper button:hover { background: var(--rojo); }
.stepper input { flex: 1; width: 46px; height: 32px; border: 0; background: transparent; border-radius: 0; padding: 0; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.vlista { display: grid; gap: 8px; }
.vlista .art { flex-direction: row; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; }
.vlista .ph { width: 62px; height: 62px; flex: none; }
.vlista .ph img.chica { max-width: 56px; max-height: 56px; }
.vlista .sinfoto svg { width: 24px; height: 24px; } .vlista .sinfoto small { display: none; }
.vlista .pie { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 12px; width: 330px; }
.vlista .ctl { flex: none; width: 170px; }
.vlista h3 { margin: 0; }

.vacio { background: var(--blanco); border-radius: var(--r-medio); box-shadow: var(--sombra); padding: 34px 18px; text-align: center; grid-column: 1 / -1; display: grid; gap: 10px; justify-items: center; }
.aclara { font-size: 12px; color: var(--gris); margin: 12px 0 0; }
#mas { margin-top: 16px; background: var(--blanco); }
#pagina { padding-block: 22px 40px; display: grid; gap: 14px; min-width: 0; }
#pagina[hidden] { display: none; }

.cierre { background: var(--negro); color: #e9e5e4; border-radius: var(--r-grande); padding: 26px 32px; margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.cierre h2 { color: #fff; } .cierre p { margin: 4px 0 0; }
.pie-sitio { background: var(--blanco); color: var(--gris); font-size: 14px; padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px)); }
.pie-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.pie-col h3 { font-size: 14px; margin-bottom: 6px; }
.pie-col a { display: block; color: var(--gris); text-decoration: none; padding: 2px 0; overflow-wrap: anywhere; } .pie-col a[href]:hover { color: var(--rojo); }
.pie-col img { height: 70px; width: auto; display: block; margin-bottom: 6px; }
.pie-col p { margin: 0; max-width: 40ch; }
.pie-fin { border-top: 1px solid var(--linea); margin-top: 18px; padding-top: 12px; font-size: 13px; }

#velo { position: fixed; inset: 0; background: rgba(23, 19, 15, .5); z-index: 40; backdrop-filter: blur(2px); }
#drawer { position: fixed; top: 8px; right: 8px; bottom: 8px; width: min(460px, calc(100% - 16px)); background: var(--blanco); z-index: 50; display: flex; flex-direction: column; border-radius: var(--r-grande); overflow: hidden; box-shadow: var(--sombra-alta); margin-top: env(safe-area-inset-top, 0px); margin-bottom: env(safe-area-inset-bottom, 0px); }
#drawer[hidden] { display: none; }
#drawer > header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--linea); }
#drawer-cuerpo { overflow: auto; flex: 1; padding: 0 20px 20px; }
.cerrar { background: var(--suave); border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 21px; line-height: 1; cursor: pointer; color: var(--negro); display: grid; place-items: center; }
.cerrar:hover { background: var(--linea); }
.renglones { list-style: none; margin: 0 -20px 16px; padding: 0; }
.renglones li { display: flex; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--linea); align-items: flex-start; }
.ph.mini { width: 54px; height: 54px; flex: none; } .ph.mini img.chica { max-width: 50px; max-height: 50px; } .ph.mini .sinfoto svg { width: 22px; height: 22px; }
.ph.med { width: 140px; height: 120px; flex: none; }
.ren-dat { flex: 1; min-width: 0; } .ren-n { font-size: 14px; line-height: 1.3; margin-bottom: 8px; overflow-wrap: anywhere; }
.ren-pie { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .ren-pie b { font-variant-numeric: tabular-nums; }
.quitar { background: none; border: 0; color: var(--gris); font-size: 20px; cursor: pointer; line-height: 1; padding: 0 2px; }
.form { display: grid; gap: 12px; }
.form label:not(.btn):not(.chk), .form legend { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.form label[hidden] { display: none !important; }
.form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea { width: 100%; font-weight: 400; font-size: 16px; }
.form.dos { grid-template-columns: 1fr 1fr; } .form .fila { grid-column: 1 / -1; }
.dos-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chk { display: flex; gap: 7px; align-items: center; font-size: 14px; }
.seg { border: 0; padding: 4px; margin: 0; display: flex; background: var(--suave); border-radius: var(--r-pill); position: relative; }
.seg legend { position: absolute; left: -9999px; }
.seg label { flex: 1; cursor: pointer; display: block !important; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 8px; border-radius: var(--r-pill); font-weight: 600; font-size: 14px; }
.seg input:checked + span { background: var(--negro); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--rojo-vivo); outline-offset: 2px; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; background: var(--suave); border-radius: var(--r-medio); padding: 12px 16px; } .total strong { font: 700 25px/1 var(--titulo); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.nota { font-size: 13px; color: var(--gris); margin: 0; } .nota.mal { color: var(--rojo-vivo); font-weight: 600; }

#modal { position: fixed; z-index: 60; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100% - 24px)); max-height: calc(100% - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); overflow: auto; background: var(--blanco); padding: 26px; border-radius: var(--r-grande); box-shadow: var(--sombra-alta); }
#modal.ancho { width: min(620px, calc(100% - 24px)); }
#modal .cerrar { position: absolute; top: 12px; right: 12px; }
#modal-cuerpo { display: grid; gap: 12px; } #modal-cuerpo p { margin: 0; }
.alt { display: grid; gap: 2px; }
.ok-sello { display: inline-block; justify-self: start; background: var(--verde-suave); color: var(--verde); font-weight: 700; padding: 3px 12px; border-radius: var(--r-pill); font-size: 13px; }
h2.num { font: 700 25px var(--titulo); }
.demo-aviso { background: #fff9dc; border-radius: var(--r-medio); padding: 12px; display: grid; gap: 8px; font-size: 13px; }
.burbuja { background: #dcf8c6; padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; max-height: 150px; overflow: auto; overflow-wrap: anywhere; }
.burbuja.mail { background: var(--blanco); }
.burbuja small { display: block; font-weight: 700; color: var(--gris); }
.clave { font: 700 20px var(--titulo); background: var(--suave); padding: 12px; border-radius: var(--r-chico); text-align: center; overflow-wrap: anywhere; }
.copia { width: 100%; font-size: 13px; }
.foto-edit { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

#toast { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: calc(82px + env(safe-area-inset-bottom, 0px)); background: var(--negro); color: #fff; padding: 10px 18px; border-radius: var(--r-pill); max-width: calc(100% - 32px); font-size: 14px; box-shadow: var(--sombra-alta); }
#barra-cel { display: flex; gap: 18px; position: fixed; z-index: 30; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); justify-content: space-between; align-items: center; padding: 11px 22px; background: var(--rojo); color: #fff; border: 0; border-radius: var(--r-pill); font-weight: 600; cursor: pointer; box-shadow: 0 10px 28px rgba(92, 6, 8, .4); }
#barra-cel:hover { background: var(--rojo-vivo); }
#barra-cel[hidden] { display: none; }
#barra-cel strong { font: 700 19px/1 var(--titulo); font-variant-numeric: tabular-nums; }

.ped, .cli { background: var(--blanco); border-radius: var(--r-medio); box-shadow: var(--sombra); min-width: 0; overflow: hidden; }
.ped > header, .ped-fila { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 12px 18px; width: 100%; background: none; border: 0; text-align: left; font-size: 14px; }
.ped-fila { cursor: pointer; } .ped-fila:hover { background: #fbfaf9; }
.ped strong { font: 700 19px/1 var(--titulo); margin-left: auto; font-variant-numeric: tabular-nums; }
.ped-cli { min-width: 0; }
.ped-det { padding: 0 18px 16px; display: grid; gap: 10px; } .ped-det p { margin: 0; }
.ped-acc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 18px 14px; }
.ped-det .ped-acc { padding: 0; justify-content: flex-start; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.chip.r { background: var(--rojo-suave); color: var(--rojo); } .chip.a { background: var(--ambar-suave); color: var(--ambar); } .chip.v { background: var(--verde-suave); color: var(--verde); } .chip.g { background: var(--suave); color: var(--gris); }
.tabla { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--gris); font-weight: 600; border-bottom: 1px solid var(--linea); padding: 6px 8px; white-space: nowrap; }
td { border-bottom: 1px solid var(--suave); padding: 7px 8px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tprod { background: var(--blanco); border-radius: var(--r-medio); overflow: hidden; }
.tprod tr[data-a] { cursor: pointer; } .tprod tr[data-a]:hover { background: var(--suave); }
tr.apagado { opacity: .5; }
.panel-cab { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.pestanas { display: flex; flex-wrap: wrap; gap: 2px; background: var(--blanco); padding: 4px; border-radius: var(--r-medio); box-shadow: var(--sombra); }
.pestanas a { padding: 7px 14px; color: var(--negro); text-decoration: none; font-weight: 600; font-size: 14px; border-radius: var(--r-pill); }
.pestanas a:hover { background: var(--suave); }
.pestanas a[aria-current] { background: var(--negro); color: #fff; }
.pestanas i { font-style: normal; background: var(--rojo); color: #fff; font-size: 12px; padding: 0 7px; border-radius: var(--r-pill); margin-left: 2px; }
.filtros { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filtros button { background: var(--blanco); border: 0; box-shadow: var(--sombra); padding: 6px 14px; border-radius: var(--r-pill); cursor: pointer; font-weight: 600; font-size: 13px; }
.filtros button i { font-style: normal; color: var(--gris); font-weight: 400; margin-left: 2px; }
.filtros button[aria-pressed="true"] { background: var(--negro); color: #fff; } .filtros button[aria-pressed="true"] i { color: #cfc9c8; }
.filtros input { flex: 1 1 260px; border-radius: var(--r-pill); border-color: transparent; box-shadow: var(--sombra); padding-inline: 16px; }
.sub { margin-top: 8px; }
.cli { display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 14px 18px; justify-content: space-between; }
.cli.pendiente { box-shadow: 0 0 0 2px var(--rojo), var(--sombra); }
.cli-dat { flex: 1 1 300px; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.cli-acc { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.hoja { background: var(--blanco); box-shadow: var(--sombra); padding: 20px; border-radius: var(--r-medio); display: grid; gap: 12px; min-width: 0; justify-items: stretch; }
.hoja p { margin: 0; } .hoja .btn { justify-self: start; }
.columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; align-items: start; }
.pila { display: grid; gap: 12px; }
.avance { background: var(--blanco); box-shadow: var(--sombra); padding: 16px 18px; display: grid; gap: 10px; border-radius: var(--r-medio); }
.barra { height: 10px; background: var(--suave); border-radius: var(--r-pill); overflow: hidden; } .barra i { display: block; height: 100%; background: var(--rojo); border-radius: var(--r-pill); }
.avance-acc { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; } .avance-acc span { flex: 1 1 240px; font-size: 13px; }
.resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; font-size: 13px; color: var(--gris); }
.resumen div { background: var(--suave); border-radius: var(--r-chico); padding: 10px 14px; } .resumen b { display: block; font: 700 24px/1.15 var(--titulo); color: var(--negro); font-variant-numeric: tabular-nums; }
#lista-res { display: grid; gap: 10px; }

@media (max-width: 900px) {
  #catalogo { grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
  .lateral { display: none; }
  #rubros-cel { display: flex; gap: 10px; overflow-x: auto; flex-basis: 100%; width: calc(100% + 32px); margin-inline: -16px; padding: 4px 16px 8px; scrollbar-width: none; }
  #rubros-cel::-webkit-scrollbar { display: none; }
  .rcel { flex: none; width: 76px; display: grid; justify-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; font-size: 11px; line-height: 1.15; text-align: center; color: var(--tinta); }
  .rcel .ric { width: 52px; height: 52px; border-radius: 50%; background: var(--blanco); color: var(--rojo); display: grid; place-items: center; box-shadow: var(--sombra); }
  .rcel .ric svg { width: 23px; height: 23px; }
  .rcel.on .ric { background: var(--rojo); color: #fff; } .rcel.on { font-weight: 700; }
  .solo-ancho { display: none !important; }
  .cab-in { flex-wrap: wrap; gap: 8px 10px; }
  .logo img { height: 44px; }
  .buscar { order: 3; flex-basis: 100%; max-width: none; }
  #btn-pedido { display: none; }
  #zona-cuenta .btn { min-height: 34px; padding: 4px 10px; font-size: 13px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; border-radius: 20px; gap: 14px; }
  .hero-fotos { display: flex; justify-content: flex-start; gap: 8px; overflow: hidden; } .hero-fotos span:nth-child(6) { display: none; } .hero-fotos span { width: 54px; height: 54px; flex: none; } .hero-fotos span:nth-child(even) { transform: none; } .hero-fotos img { width: 38px; height: 38px; }
  .pasos { grid-template-columns: 1fr; gap: 8px; } .pasos > div { padding: 9px 12px; }
  .herr select { flex: 1 1 40%; max-width: none; min-width: 0; }
  .vgrilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .art { padding: 8px 8px 10px; } .ph { height: 104px; }
  .ph img.chica { max-width: 92px; max-height: 92px; }
  .ctl .btn { font-size: 13px; padding-inline: 6px; }
  .vlista .art { flex-wrap: wrap; padding: 8px 10px 10px 8px; } .vlista .dat { flex: 1 1 60%; } .vlista .pie { width: 100%; justify-content: space-between; } .vlista .ctl { width: 160px; }
  .form.dos { grid-template-columns: 1fr; }
  #barra-cel { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .cierre { padding: 22px 20px; border-radius: 20px; }
  .pie-col { grid-template-columns: minmax(0, 1fr); }
  body { padding-bottom: 66px; }
  .demo-reset { margin-left: 0; }
}
@media (min-width: 901px) { #barra-cel { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .vgrilla .art:hover { transform: none; } }

/* ─── Formato de las referencias ─────────────────────────────────────── */
.tira { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 25; padding-block: 10px; text-align: left; font-size: 14px; }
.tira-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tira-t { min-width: 0; line-height: 1.3; }
#contacto { font-size: 12.5px; color: #bdb5b2; margin-bottom: 2px; }
#contacto a { color: #bdb5b2; }
#tira-msg b, .tira-lnk b { display: inline; color: #ff9f94; font-weight: 700; }
.tira-lnk { background: none; border: 0; padding: 0; color: #e9e5e4; cursor: pointer; text-align: left; line-height: 1.3; }
#zona-cuenta { flex: none; gap: 6px; flex-wrap: nowrap; }
#zona-cuenta .btn { min-height: 42px; }
.btn.clara { background: transparent; color: #fff; border-color: #5b5350; } .btn.clara:hover { background: #2c2622; }
.tira .btn.rojo { background: var(--rojo-vivo); } .tira .btn.rojo:hover { background: #cc2024; }

.cab { box-shadow: none; border-bottom: 1px solid var(--linea); top: 62px; z-index: 20; }
.cab-in { padding-block: 10px; }
.buscar input { background: var(--blanco); border: 1px solid #cfcaca; border-radius: var(--r-chico); height: 50px; padding: 0 58px 0 16px; }
.buscar input:focus { box-shadow: 0 0 0 3px var(--rojo-suave); }
.lupa-in { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; border: 0; border-radius: 8px; background: var(--suave); color: var(--negro); display: grid; place-items: center; cursor: pointer; }
.lupa-in:hover { background: var(--linea); }
#btn-pedido { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 12px 0 16px; background: var(--blanco); border: 1px solid #cfcaca; border-radius: var(--r-chico); font-weight: 700; color: var(--negro); cursor: pointer; }
#btn-pedido:hover { border-color: var(--negro); }
#btn-pedido i { background: var(--negro); color: #fff; min-width: 28px; height: 28px; line-height: 28px; border-radius: 50%; padding: 0 4px; font-size: 14px; text-align: center; font-style: normal; }

#banda { padding-top: 14px; }
.lateral { top: 150px; max-height: calc(100vh - 160px); }
.lat-caja { box-shadow: none; border: 1px solid var(--linea); }
.ayuda { border-radius: var(--r-medio); }
.rubro { padding: 8px 10px; border-radius: 8px; }
.rubro.on { background: var(--negro); } .rubro.on i { color: #cfc9c8; }
.herr { margin-bottom: 8px; }
.herr select { border-radius: var(--r-chico); border-color: #cfcaca; box-shadow: none; height: 42px; }
.vistas { box-shadow: none; border: 1px solid #cfcaca; border-radius: var(--r-chico); }
.vistas button { border-radius: 7px; }
.aclara { margin: 0 0 12px; line-height: 1.4; }

.ceja { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); line-height: 1.3; }
h2.grande { font-size: 28px; letter-spacing: -.03em; }
.vgrilla { grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 14px; }
.art { padding: 0; gap: 0; border: 1px solid var(--linea); border-radius: var(--r-medio); box-shadow: none; overflow: hidden; }
.vgrilla .art:hover { transform: none; box-shadow: var(--sombra); border-color: #d6d0ce; }
.vgrilla .ph { height: 158px; border-radius: 0; border-bottom: 1px solid var(--linea); padding: 8px; }
.vgrilla .ph img.chica { max-width: 136px; max-height: 136px; }
.sinfoto { border-radius: 8px; }
.art-in { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 12px; min-width: 0; }
.dat { padding: 0; }
.art .ceja { margin-bottom: 5px; overflow-wrap: anywhere; }
.art h3 { font: 700 15px/1.25 var(--texto); margin: 0 0 8px; letter-spacing: -.005em; }
.cod-pill { display: inline-block; max-width: 100%; background: var(--negro); color: #fff; font-size: 11.5px; font-weight: 600; padding: 2px 10px; border-radius: var(--r-pill); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pie { padding: 10px 0 0; border-top: 1px solid var(--linea); gap: 10px; }
.px { font: 700 23px/1.1 var(--titulo); color: var(--rojo); }
.px sup { font-size: .6em; vertical-align: .45em; line-height: 0; margin-right: 2px; font-weight: 600; }
.px.oculto { color: var(--gris); }
.ctl .btn { min-height: 42px; }
.btn.sec { border-color: #cfcaca; }
.stepper { border-radius: var(--r-chico); padding: 4px; }
.stepper button { border-radius: 7px; }

.vlista .art { border-radius: var(--r-chico); padding: 8px 12px 8px 8px; }
.vlista .art-in { flex-direction: row; align-items: center; padding: 0; gap: 14px; }
.vlista .pie { border-top: 0; padding: 0; }
.vlista h3 { margin-bottom: 4px; }

#barra-cel { display: flex; gap: 12px; left: auto; right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: min(300px, calc(100% - 28px)); padding: 12px 14px; background: var(--negro); border-radius: var(--r-medio); text-align: left; justify-content: flex-start; box-shadow: 0 10px 28px rgba(23, 19, 15, .35); border: 1px solid #38312d; }
#barra-cel:hover { background: #26201c; }
#barra-cel[hidden] { display: none; }
.bc-ic { flex: none; width: 46px; height: 46px; border-radius: 10px; background: var(--rojo-vivo); display: grid; place-items: center; color: #fff; }
.bc-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.bc-t small { font-size: 13px; font-weight: 400; color: #cfc9c8; }
#barra-cel strong { font: 700 21px/1.15 var(--titulo); }
.bc-fl { font-size: 20px; color: #cfc9c8; }
#lupa { position: fixed; z-index: 30; left: max(14px, env(safe-area-inset-left, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; border: 3px solid #fff; background: var(--rojo-vivo); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px rgba(23, 19, 15, .3); }
#lupa[hidden] { display: none; }
#toast { border-radius: var(--r-chico); width: min(460px, calc(100% - 32px)); bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }

#modal { border-radius: var(--r-grande); padding: 24px; }
#drawer { border-radius: var(--r-grande); }
#drawer > header { align-items: flex-start; border-bottom: 0; padding-bottom: 6px; }
#drawer > header h2 { font-size: 28px; letter-spacing: -.03em; }
.form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea { min-height: 48px; border-radius: var(--r-chico); border-color: #cfcaca; }
.form .btn.ancho, #modal-cuerpo .btn.ancho { min-height: 50px; }
.alt { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.lnk { font-weight: 700; text-decoration: underline; color: var(--negro); }
.seg { border-radius: var(--r-chico); } .seg span { border-radius: 7px; }
.pestanas a { border-radius: 8px; } .filtros button { border-radius: 8px; box-shadow: none; border: 1px solid var(--linea); } .filtros input { border-radius: var(--r-chico); box-shadow: none; border-color: #cfcaca; }
.pestanas, .ped, .cli, .hoja, .avance { box-shadow: none; border: 1px solid var(--linea); }
.cierre { border-radius: var(--r-grande); }

@media (min-width: 901px) {
  #barra-cel { display: flex; }
  #rubros-cel { display: none; }
}
@media (max-width: 900px) {
  .tira { padding-block: 9px; }
  #contacto { display: none; }
  #zona-cuenta .btn { min-height: 44px; padding: 6px 12px; font-size: 14px; white-space: normal; line-height: 1.1; text-align: center; }
  #zona-cuenta .btn.clara { padding-inline: 8px; font-size: 13px; }
  #tira-msg, .tira-lnk { font-size: 13.5px; }
  #tira-msg b, .tira-lnk b { display: block; }
  .cab { position: static; }
  .cab-in { padding-block: 10px; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
  .logo img { height: 64px; }
  #btn-pedido { display: inline-flex; margin-left: 0; order: 2; }
  .buscar { order: 3; flex-basis: 100%; }
  #rubros-cel { gap: 4px; padding: 0 16px 4px; align-items: center; }
  .rcel { flex: none; width: auto; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; padding: 10px 14px; border-radius: var(--r-chico); font-size: 15px; color: var(--tinta); background: none; border: 0; cursor: pointer; }
  .rcel i { font-style: normal; font-size: 13px; color: var(--gris); font-variant-numeric: tabular-nums; }
  .rcel.on { background: var(--negro); color: #fff; font-weight: 500; } .rcel.on i { color: #cfc9c8; }
  .herr h1 { display: none; }
  #cuenta { flex-basis: 100%; margin: 2px 0; font-size: 15px; color: var(--tinta); }
  .herr select { flex: 1 1 40%; height: 46px; font-size: 15px; }
  .vgrilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vgrilla .ph { height: 148px; }
  .vgrilla .ph img.chica { max-width: 130px; max-height: 130px; }
  .art-in { padding: 11px; }
  .art .ceja { font-size: 10.5px; }
  .art h3 { font-size: 14.5px; }
  .px { font-size: 21px; }
  .vlista .art-in { flex-wrap: wrap; gap: 8px; }
  .vlista .pie { width: 100%; }
  #barra-cel { left: auto; right: 12px; width: min(280px, calc(100% - 92px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 10px 12px; }
  .bc-ic { width: 42px; height: 42px; }
  #barra-cel strong { font-size: 19px; }
  #lupa { width: 52px; height: 52px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  #drawer { top: 6px; right: 6px; bottom: 6px; width: calc(100% - 12px); }
}

/* ─── Ofertas ────────────────────────────────────────────────────────── */
#btn-ofertas { flex: none; height: 50px; padding: 0 18px; background: var(--rojo-suave); color: var(--rojo); border: 1px solid var(--rojo); border-radius: var(--r-chico); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
#btn-ofertas:hover { background: #f7dcda; }
#btn-ofertas[aria-pressed="true"] { background: var(--rojo); color: #fff; }
#btn-ofertas[hidden] { display: none; }
.ph { position: relative; }
.sello { position: absolute; z-index: 1; top: 8px; left: 8px; background: var(--rojo); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; }
.vlista .sello, .ph.mini .sello { top: 2px; left: 2px; font-size: 9.5px; padding: 1px 5px; }
@media (max-width: 900px) {
  .cab-in { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
  #btn-pedido { justify-self: end; grid-column: 2; grid-row: 1; }
  .buscar { grid-column: 1 / -1; grid-row: 2; }
  #btn-ofertas { grid-column: 1; grid-row: 2; padding: 0 14px; font-size: 14px; }
  #btn-ofertas:not([hidden]) + .buscar { grid-column: 2; }
}

/* ─── Unidad de venta ────────────────────────────────────────────────── */
.uni { display: block; margin-top: 3px; font: 500 12px/1.2 var(--texto); color: var(--gris); letter-spacing: 0; }
.uni-tot { display: block; margin-top: 5px; font-size: 12px; color: var(--gris); text-align: center; font-variant-numeric: tabular-nums; }
.ren-dat .uni-tot { text-align: left; }

.caja { margin-top: 7px; font-size: 12.5px; font-weight: 600; color: var(--tinta); }
.btn-caja { width: 100%; margin-top: 6px; min-height: 36px !important; font-size: 13px; }
.ctl { display: grid; }

.sel-vend, #filtro-vend { min-height: 40px; border-radius: var(--r-chico); }

.fila-aclara { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fila-aclara .aclara { margin: 0; flex: 1 1 300px; }
.fila-aclara .btn { flex: none; white-space: nowrap; }
@media (max-width: 600px) { .fila-aclara .btn { width: 100%; } }
