/* ==========================================================================
   Tactical Line Perú — página única
   Paleta: grafito + naranja señal + hielo. Tipografía: Big Shoulders (títulos) + Manrope (texto)
   ========================================================================== */
:root {
  --ink: #0f1114;
  --graphite: #171a1f;
  --slate: #232831;
  --steel: #3a414d;
  --muted: #5b6471;
  --line: #e1e5ea;
  --mist: #eef1f4;
  --ice: #f5f7f9;
  --white: #fff;
  --orange: #ff6a13;
  --orange-2: #ff8340;
  --ember: #ff3d2e;
  --wa: #25d366;
  --wa-ink: #062611;
  --f-display: "Big Shoulders Display", "Roboto Condensed", "Arial Narrow", Impact, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --maxw: 1240px;
  --cab-h: 4.25rem;
  --r: 14px;
  --shadow: 0 1px 2px rgba(15, 17, 20, .06), 0 8px 24px -12px rgba(15, 17, 20, .25);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cab-h) + 1rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ice); color: var(--ink); font: 500 1rem/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: .5rem; top: -4rem; z-index: 200; background: var(--orange); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }
.saltar:focus { top: .5rem; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

h1, h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: .95; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h3 { font-size: 1.05rem; line-height: 1.3; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.22rem); max-width: 36rem; color: inherit; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.2rem; border: 2px solid transparent; border-radius: 10px; font-weight: 800; font-size: .98rem; line-height: 1.15; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn-lg { padding: 1rem 1.5rem; font-size: 1.05rem; }
.btn-primario, .btn-add { background: var(--orange); color: var(--ink); }
.btn-primario:hover, .btn-add:hover { background: var(--orange-2); }
.btn-borde { border-color: rgba(255, 255, 255, .4); color: #fff; background: transparent; }
.btn-borde:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-oscuro { background: var(--ink); color: #fff; }
.btn-oscuro:hover { background: var(--steel); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: #3be07c; }
.btn-add { width: 100%; padding: .7rem .6rem; font-size: .92rem; }
.btn-add.hecho { background: var(--ink); color: #fff; }

/* ---------- aviso + cabecera ---------- */
.aviso { background: var(--ink); color: #c9ced6; font-size: .85rem; }
.aviso .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.2rem; }
.aviso ul { display: flex; gap: 1.4rem; overflow: hidden; white-space: nowrap; }
.aviso li { display: flex; align-items: center; gap: .4rem; }
.aviso .ico { color: var(--orange); }
.aviso a { display: inline-flex; gap: .4rem; align-items: center; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.aviso a:hover { text-decoration: underline; }
.solo-md { display: none !important; }
@media (min-width: 48rem) { .solo-md { display: flex !important; } }

.cab { position: sticky; top: 0; z-index: 60; background: rgba(15, 17, 20, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.cab-in { display: flex; align-items: center; gap: 1.5rem; min-height: var(--cab-h); }
.marca { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.marca img { width: 2.3rem; height: auto; }
.marca-txt { font-family: var(--f-display); text-transform: uppercase; line-height: .88; }
.marca-txt b { display: block; font-size: 1.55rem; font-weight: 900; letter-spacing: .02em; }
.marca-txt span { display: block; font-size: .9rem; font-weight: 700; letter-spacing: .46em; color: var(--orange); }
.nav { display: none; margin-left: 1rem; gap: .25rem; }
.nav a { padding: .55rem .85rem; border-radius: 8px; color: #dfe3e9; font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
@media (min-width: 62rem) { .nav { display: flex; } }
.btn-carrito { margin-left: auto; position: relative; display: inline-flex; align-items: center; gap: .55rem; background: var(--orange); color: var(--ink); border: 0; border-radius: 10px; padding: .6rem .95rem; font-weight: 800; }
.btn-carrito:hover { background: var(--orange-2); }
.btn-carrito .ico { width: 1.35rem; height: 1.35rem; }
.cc-txt { display: none; }
@media (min-width: 40rem) { .cc-txt { display: inline; } }
.cc-n { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .82rem; }

/* ---------- héroe ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(900px 520px at 88% 12%, rgba(255, 106, 19, .26), transparent 62%),
  linear-gradient(160deg, #0b0d10 0%, var(--graphite) 55%, var(--slate) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: url("../img/logo-escudo-claro.png") no-repeat 108% 40% / min(44rem, 90%); opacity: .05; pointer-events: none; }
.hero-in { position: relative; display: grid; gap: 2.5rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 60rem) { .hero-in { grid-template-columns: 1.05fr .95fr; gap: 3rem; min-height: 35rem; } }
.hero .lead { margin-top: 1.25rem; color: #cfd5de; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-pts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.75rem; color: #c3cad4; font-size: .95rem; }
.hero-pts li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-pts .ico { color: var(--orange); }
.estrellas { display: inline-flex; color: var(--orange); }
.estrellas .ico { width: 1rem; height: 1rem; }
.hero-vis { position: relative; width: min(30rem, 100%); aspect-ratio: 1 / 1; margin-inline: auto; }
.hv { position: absolute; margin: 0; border-radius: 18px; overflow: hidden; background: var(--bg, #fff); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.hv img { width: 100%; height: 100%; object-fit: contain; }
.hv figcaption { position: absolute; left: .6rem; bottom: .6rem; }
.hv1 { left: 0; top: 8%; width: 56%; aspect-ratio: 1; transform: rotate(-3deg); z-index: 2; }
.hv2 { right: 0; top: 0; width: 42%; aspect-ratio: 1; transform: rotate(4deg); }
.hv3 { right: 3%; bottom: 0; width: 52%; aspect-ratio: 1; transform: rotate(-2deg); z-index: 3; }
.hero-vis .precio { font-size: 1.1rem; padding: .3rem .5rem; }

/* ---------- precio ---------- */
.precio { display: inline-flex; align-items: center; background: var(--orange); color: var(--ink); font: 800 1.45rem/1 var(--f-display); letter-spacing: .01em; padding: .38rem .65rem; border-radius: 8px; white-space: nowrap; }
.precio.consultar { font-size: 1.1rem; }
.precio-bloque { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.unidad { font-size: .8rem; font-weight: 700; color: var(--muted); }

/* ---------- secciones ---------- */
.sec { padding-block: clamp(3rem, 7vw, 5.5rem); }
.sec-claro { background: var(--white); }
.sec-cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2.5rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.sec-cab p { max-width: 30rem; color: var(--muted); }

/* ---------- categorías (mosaico) ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 64rem) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { position: relative; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--bg, #fff); text-align: left; box-shadow: var(--shadow); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 17, 20, 0) 35%, rgba(15, 17, 20, .88) 100%); }
.tile:hover img { transform: scale(1.04); }
.tile-txt { position: absolute; z-index: 1; left: .9rem; right: .9rem; bottom: .75rem; color: #fff; display: grid; gap: .1rem; }
.tile-txt b { font: 800 1.35rem/1 var(--f-display); text-transform: uppercase; text-wrap: balance; }
.tile-txt small { font-size: .85rem; color: #ffc9a3; font-weight: 600; }

/* ---------- barra de filtros ---------- */
.barra { display: grid; gap: .75rem; padding: .85rem 0 1rem; margin-bottom: .5rem; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
@media (min-width: 56rem) { .barra { position: sticky; top: var(--cab-h); z-index: 30; margin-inline: calc(clamp(1rem, 4vw, 2rem) * -1); padding-inline: clamp(1rem, 4vw, 2rem); } }
.barra-fila { display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .barra-fila { grid-template-columns: 1fr 16rem; } }
.buscar { position: relative; display: block; }
.buscar .ico { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.buscar input, .segsel select { width: 100%; height: 3rem; background: var(--ice); border: 1.5px solid var(--line); border-radius: 10px; padding: 0 .9rem; }
.buscar input { padding-left: 2.8rem; }
.buscar input:focus, .segsel select:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(255, 106, 19, .2); }
.segsel select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.2rem) 1.3rem, calc(100% - .85rem) 1.3rem; background-size: .38rem .38rem; background-repeat: no-repeat; padding-right: 2.2rem; font-weight: 600; }
.chips { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: thin; -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent); mask-image: linear-gradient(90deg, #000 94%, transparent); }
.chip { flex: none; padding: .42rem .85rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-weight: 700; font-size: .9rem; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip small { margin-left: .35rem; opacity: .65; font-weight: 600; }
.contador { color: var(--muted); font-weight: 700; font-size: .92rem; }

/* ---------- productos ---------- */
.grupo { padding-top: 2.25rem; }
.grupo-cab { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem 1rem; margin-bottom: 1.1rem; padding-bottom: .7rem; border-bottom: 2px solid var(--ink); }
.grupo-cab h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.grupo-n { color: var(--muted); font-weight: 700; font-size: .92rem; }
.grilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
@media (min-width: 44rem) { .grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; } }
@media (min-width: 66rem) { .grilla { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.item { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.item:hover, .item:focus-within { border-color: #c4cad3; box-shadow: var(--shadow); }
.item-foto { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: var(--bg, #fff); overflow: hidden; }
.item-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.insig { position: absolute; top: .55rem; left: .55rem; z-index: 2; padding: .2rem .55rem; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: .72rem; font-weight: 800; }
.insig.peru { background: #c8202b; color: #fff; }
.item-info { display: flex; flex: 1; flex-direction: column; gap: .55rem; padding: .8rem .85rem .9rem; }
.item h3 { font-weight: 700; }
.item h3 button { padding: 0; border: 0; background: none; text-align: left; font: inherit; }
.item h3 button:hover { text-decoration: underline; }
.campo-sel select, .dlg select, .nota-in { width: 100%; height: 2.5rem; background: var(--ice); border: 1.5px solid var(--line); border-radius: 8px; padding: 0 .6rem; font-size: .9rem; font-weight: 600; }
.campo-sel select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1rem) 1.05rem, calc(100% - .7rem) 1.05rem; background-size: .34rem .34rem; background-repeat: no-repeat; padding-right: 1.8rem; }
.campo-sel select.falta, .dlg select.falta { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255, 61, 46, .18); }
.item-pie { margin-top: auto; display: grid; gap: .55rem; }

.vacio { padding: 3rem 1rem; text-align: center; background: var(--ice); border: 2px dashed var(--line); border-radius: var(--r); margin-top: 2rem; }
.vacio p { font-size: 1.15rem; font-weight: 700; margin-bottom: .4rem; }
.vacio .vacio-s { font-size: 1rem; font-weight: 500; color: var(--muted); margin-bottom: 1.25rem; }
.vacio-bt { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- por mayor ---------- */
.mayor { background: linear-gradient(135deg, var(--graphite), var(--slate)); color: #fff; padding-block: clamp(3rem, 7vw, 5.5rem); }
.mayor-in { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 56rem) { .mayor-in { grid-template-columns: 1fr 1fr; align-items: center; } }
.mayor .lead { margin: 1.25rem 0 0; color: #cfd5de; }
.checks { display: grid; gap: .6rem; margin: 1.5rem 0 1.75rem; }
.checks li { display: flex; align-items: center; gap: .6rem; }
.checks .ico { color: var(--orange); }
.aud li { padding: 1.1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.aud li:first-child { border-top: 1px solid rgba(255, 255, 255, .14); }
.aud h3 { font: 800 1.5rem/1 var(--f-display); text-transform: uppercase; }
.aud p { margin-top: .3rem; color: #b9c0cb; }

/* ---------- pasos ---------- */
.pasos { display: grid; gap: 1.75rem; counter-reset: p; }
@media (min-width: 48rem) { .pasos { grid-template-columns: repeat(3, 1fr); } }
.pasos li { counter-increment: p; padding-top: 1rem; border-top: 3px solid var(--ink); }
.pasos li::before { content: counter(p); display: block; font: 900 3.4rem/1 var(--f-display); color: var(--orange); }
.pasos h3 { margin-top: .3rem; font: 800 1.7rem/1 var(--f-display); text-transform: uppercase; }
.pasos p { margin-top: .5rem; color: var(--muted); }

/* ---------- contacto ---------- */
.contacto { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .contacto { grid-template-columns: 1fr 1.4fr; } }
.datos { display: grid; gap: 1rem; margin: 1.5rem 0; color: var(--muted); font-weight: 600; }
.datos li { display: flex; gap: .75rem; align-items: flex-start; }
.datos .ico { margin-top: .15rem; color: var(--orange); width: 1.3rem; height: 1.3rem; }
.mapa { width: 100%; height: 20rem; border: 0; border-radius: var(--r); background: var(--mist); }
@media (min-width: 60rem) { .mapa { height: 100%; min-height: 24rem; } }

/* ---------- pie ---------- */
.pie { background: var(--ink); color: #aeb5c0; padding: 3rem 0 7rem; }
.pie-in { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 48rem) { .pie-in { grid-template-columns: 11rem 1fr; gap: 3rem; padding-bottom: 0; } .pie { padding-bottom: 3rem; } }
.pie-logo { width: 9rem; height: auto; }
.pie-col { display: grid; gap: .7rem; max-width: 46rem; }
.pie-s { font-size: .86rem; color: #8b93a0; }

/* ---------- píldora móvil del carrito ---------- */
.pildora { position: fixed; z-index: 55; left: .75rem; right: .75rem; bottom: .75rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.1rem; border: 0; border-radius: 14px; background: var(--orange); color: var(--ink); font-weight: 800; box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .5); }
.pildora .ico { width: 1.4rem; height: 1.4rem; }
.pildora span { display: inline-flex; align-items: center; gap: .55rem; }
.pildora b { font: 800 1.35rem/1 var(--f-display); }
@media (min-width: 62rem) { .pildora { display: none !important; } }

/* ---------- diálogo de detalle ---------- */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(10, 12, 15, .7); backdrop-filter: blur(3px); }
.dlg { width: min(60rem, 94vw); max-height: 92dvh; padding: 0; border: 0; border-radius: 20px; overflow: auto; background: var(--white); }
.dlg-in { position: relative; display: grid; gap: 0; }
@media (min-width: 52rem) { .dlg-in { grid-template-columns: 1.05fr 1fr; } }
.dlg-x { position: absolute; top: .75rem; right: .75rem; z-index: 5; }
.icon-btn { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 999px; background: var(--ink); color: #fff; }
.icon-btn:hover { background: var(--steel); }
.icon-btn .ico { width: 1.2rem; height: 1.2rem; }
.gal { background: var(--bg, #fff); display: grid; align-content: start; }
.gal-main { position: relative; aspect-ratio: 1; background: var(--bg, #fff); }
.gal-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gal-th { display: flex; gap: .5rem; padding: .6rem; background: var(--white); border-top: 1px solid var(--line); overflow-x: auto; }
.gal-th button { flex: none; width: 4.2rem; height: 4.2rem; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg, #fff); }
.gal-th button[aria-current="true"] { border-color: var(--orange); }
.gal-th img { width: 100%; height: 100%; object-fit: cover; }
.dlg-info { padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; align-content: start; }
.dlg-info h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); padding-right: 2.5rem; }
.dlg-cat { color: var(--muted); font-weight: 700; font-size: .9rem; }
.dlg-precio { display: flex; align-items: baseline; gap: .6rem; }
.dlg-precio .precio { font-size: 2rem; padding: .45rem .8rem; }
.dlg-lista { display: grid; gap: .45rem; color: #2c333d; }
.dlg-lista li { display: flex; gap: .55rem; align-items: flex-start; }
.dlg-lista .ico { margin-top: .2rem; color: var(--orange); }
.dlg-info h3 { font: 800 1.15rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; color: var(--muted); margin-bottom: .1rem; }
.dlg-campos { display: grid; gap: .6rem; }
.dlg-campos label { display: grid; gap: .3rem; font-weight: 700; font-size: .88rem; }
.dlg select, .nota-in { height: 2.8rem; font-size: .95rem; }
.dlg-segs { display: flex; flex-wrap: wrap; gap: .4rem; }
.dlg-segs span { padding: .25rem .65rem; border-radius: 999px; background: var(--mist); font-weight: 700; font-size: .82rem; }
.dlg-acc { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: center; }
.cant { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); }
.cant button { width: 2.4rem; height: 2.7rem; border: 0; background: var(--ice); display: grid; place-items: center; }
.cant button:hover { background: var(--mist); }
.cant output { min-width: 2.2rem; text-align: center; font-weight: 800; }
.dlg-consulta { font-size: .9rem; color: var(--muted); }
.dlg-consulta a { font-weight: 800; color: var(--ink); }

/* ---------- carrito (panel lateral) ---------- */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(28.5rem, 100vw); max-width: 100vw; height: 100dvh; max-height: none; padding: 0; border: 0; background: var(--white); overflow: hidden; }
.drawer[open] { animation: entra .22s ease-out; }
@keyframes entra { from { transform: translateX(2rem); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-in { display: flex; flex-direction: column; height: 100%; }
.drawer-cab { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.drawer-cab h2 { font-size: 2rem; }
.drawer-n { color: var(--muted); font-size: 1.4rem; }
.drawer-cuerpo { flex: 1; overflow-y: auto; padding: .5rem 1.1rem 1rem; }
.drawer-pie { padding: 1rem 1.1rem 1.1rem; border-top: 1px solid var(--line); background: var(--ice); display: grid; gap: .7rem; }
.linea { display: grid; grid-template-columns: 4.5rem 1fr; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.linea-foto { width: 4.5rem; height: 4.5rem; border-radius: 10px; overflow: hidden; background: var(--bg, #fff); border: 1px solid var(--line); }
.linea-foto img { width: 100%; height: 100%; object-fit: contain; }
.linea-info { display: grid; gap: .45rem; min-width: 0; }
.linea-nom { font-weight: 800; line-height: 1.25; }
.linea-opc { font-size: .85rem; color: var(--muted); font-weight: 700; }
.nota-in { height: 2.3rem; font-size: .85rem; font-weight: 500; }
.linea-fila { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.linea-fila .cant button { width: 2.1rem; height: 2.3rem; }
.linea-precio { font: 800 1.3rem/1 var(--f-display); text-align: right; }
.linea-precio small { display: block; font: 600 .75rem var(--f-body); color: var(--muted); }
.quitar { display: inline-flex; align-items: center; gap: .3rem; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: .82rem; padding: .3rem 0; }
.quitar:hover { color: var(--ember); }
.quitar .ico { width: 1rem; height: 1rem; }
.cart-vacio { display: grid; place-items: center; gap: 1rem; text-align: center; padding: 3.5rem 1rem; color: var(--muted); }
.cart-vacio .ico { width: 3rem; height: 3rem; color: var(--line); }
.total-fila { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.total-fila b { font: 800 2rem/1 var(--f-display); }
.total-nota { font-size: .8rem; color: var(--muted); margin-top: -.3rem; }
.drawer-pie input, .drawer-pie textarea { width: 100%; background: var(--white); border: 1.5px solid var(--line); border-radius: 8px; padding: .6rem .7rem; font-size: .92rem; }
.drawer-pie textarea { min-height: 3.6rem; resize: vertical; }
.drawer-pie input:focus, .drawer-pie textarea:focus, .nota-in:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(255, 106, 19, .2); }
.datos-cli { border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); padding: 0 .75rem; }
.datos-cli summary { padding: .65rem 0; font-weight: 700; font-size: .9rem; cursor: pointer; }
.datos-cli[open] { padding-bottom: .75rem; display: grid; gap: .5rem; }
.datos-cli[open] summary { padding-bottom: .1rem; }
.campos2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.drawer-pie .btn { width: 100%; }
.pie-links { display: flex; justify-content: space-between; gap: .5rem; }
.link-btn { border: 0; background: none; padding: .2rem 0; font-weight: 700; font-size: .88rem; color: var(--muted); text-decoration: underline; }
.link-btn:hover { color: var(--ink); }

/* ---------- aviso emergente ---------- */
.toast { position: fixed; z-index: 100; left: 50%; bottom: 5.5rem; transform: translateX(-50%); display: flex; align-items: center; gap: 1rem; max-width: calc(100vw - 1.5rem); padding: .75rem 1rem; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: .92rem; box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .5); }
.toast button { border: 0; background: none; color: var(--orange); font-weight: 800; padding: 0; text-decoration: underline; }
@media (min-width: 62rem) { .toast { bottom: 1.5rem; left: auto; right: 1.5rem; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer[open] { animation: none; }
  .tile img { transition: none; }
}
