/* Layout: catálogo en grilla de fichas (como las páginas del PDF), barra de pedido fija abajo en celular, panel lateral en escritorio. */
:root {
  --paper: #f3f5f8;
  --card: #ffffff;
  --ink: #18233b;      /* azul marino del logo */
  --ink-soft: #3a4763;
  --muted: #6a7489;
  --line: #dde2ea;
  --denim: #3d669f;    /* acento: celeste/azul jean */
  --chip: #dde6f3;     /* recuadro del precio en el PDF */
  --ok: #24744a;
  --warn: #a8521c;
  --danger: #b3261e;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --r: 10px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 15px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--denim); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 16px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--ink-soft); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: var(--ink-soft); }
.btn.denim { background: var(--denim); border-color: var(--denim); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--chip); }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; padding: 14px 16px; font-size: 15px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }

/* ---------- Encabezado ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.brand { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .01em; font-stretch: 90%; }
.brand span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.search { flex: 1; max-width: 360px; margin-left: auto; position: relative; }
.search input { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 14px 9px 36px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.cart-btn .count { background: var(--denim); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; padding: 0 6px; }

.hero { padding-block: 28px 8px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 6vw, 52px); line-height: .95; letter-spacing: -.01em; text-transform: uppercase; }
.hero h1 small { display: block; font-size: .36em; letter-spacing: .16em; font-weight: 600; color: var(--denim); margin-bottom: 8px; }
.hero p { margin: 0; color: var(--muted); max-width: 42ch; }

.cats { display: flex; gap: 8px; overflow-x: auto; padding-block: 14px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.cat[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat .n { opacity: .55; margin-left: 4px; font-weight: 500; }

/* ---------- Grilla de productos ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; padding-block: 8px 120px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column;
  /* El navegador no dibuja (ni guarda en memoria) las fichas que están fuera de pantalla */
  content-visibility: auto; contain-intrinsic-size: auto 640px; }
.card .info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .row1 { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.art { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.card h3 { font-size: 17px; font-weight: 700; line-height: 1.15; margin-top: 2px; }
.price { background: var(--chip); color: var(--ink); font-weight: 700; border-radius: 6px; padding: 4px 9px; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 15px; }
.desc { color: var(--ink-soft); font-size: 13.5px; margin: 0; }
.meta { font-size: 12.5px; color: var(--muted); display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; }
.meta b { color: var(--ink); font-weight: 600; }
.sizes { display: flex; flex-wrap: wrap; gap: 4px; }
.sz { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--ink-soft); }
.sz.out { text-decoration: line-through; color: var(--muted); opacity: .6; }
.card .actions { margin-top: auto; padding-top: 6px; }
.in-cart { font-size: 12.5px; color: var(--ok); font-weight: 600; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--chip); color: var(--ink-soft); }
.badge.out { background: #f6e3dc; color: var(--warn); }

/* ---------- Carrusel ---------- */
.car { position: relative; background: #e9edf2; }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 3 / 4; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { flex: 0 0 100%; scroll-snap-align: center; width: 100%; height: 100%; object-fit: cover; }
.car-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--ink); display: grid; place-items: center; opacity: 0; transition: opacity .15s; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.car:hover .car-nav, .car-nav:focus-visible { opacity: 1; }
.car-nav.prev { left: 8px; } .car-nav.next { right: 8px; }
.dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 2px rgba(0,0,0,.35); transition: background .2s, width .2s; }
.dots i.on { background: #fff; width: 16px; border-radius: 3px; }
.ph { display: grid; place-items: center; color: #9aa6b8; font-family: var(--mono); font-size: 13px; text-align: center; gap: 6px; align-content: center; }
.car .tag { position: absolute; top: 10px; left: 10px; }
@media (hover: none) { .car-nav { display: none; } }

/* ---------- Hojas (modal / lateral) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15, 22, 38, .45); z-index: 40; }
.sheet { position: fixed; z-index: 41; background: var(--card); display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.sheet .sh-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet .sh-head h2 { font-size: 17px; }
.sheet .sh-body { overflow-y: auto; flex: 1; padding: 16px; }
.sheet .sh-foot { border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; }
.x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper); display: grid; place-items: center; flex: none; }

/* Ficha de producto */
.product-sheet { inset: auto 0 0 0; max-height: 94vh; border-radius: 16px 16px 0 0; }
.ps-grid { display: grid; gap: 18px; }
.ps-grid .car { border-radius: var(--r); overflow: hidden; }
.ps-grid .car-track { max-height: 56vh; }
@media (min-width: 860px) { .ps-grid .car-track { max-height: 78vh; } }
@media (min-width: 860px) {
  .product-sheet { inset: 4vh auto auto 50%; transform: translateX(-50%); width: min(980px, 94vw); max-height: 92vh; border-radius: 16px; }
  .ps-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
}
.thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.thumbs button { flex: none; width: 54px; aspect-ratio: 3/4; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #e9edf2; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.size-cell { border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.size-cell.has { border-color: var(--denim); background: color-mix(in srgb, var(--chip) 55%, var(--card)); }
.size-cell .lbl { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.size-cell.out { opacity: .5; }
.size-cell.out .lbl { text-decoration: line-through; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); overflow: hidden; }
.stepper button { width: 30px; height: 30px; border: 0; background: transparent; font-size: 18px; line-height: 1; }
.stepper button:hover { background: var(--chip); }
.stepper input { width: 34px; text-align: center; border: 0; background: transparent; padding: 0; font-variant-numeric: tabular-nums; font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.line-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-soft); }
.line-sum strong { font-size: 18px; color: var(--ink); }
.sec-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }

/* Pedido (lateral) */
.cart-sheet { inset: 0 0 0 auto; width: min(460px, 100vw); }
.cline { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cline .th { width: 56px; aspect-ratio: 3/4; border-radius: 6px; overflow: hidden; background: #e9edf2; }
.cline .th img { width: 100%; height: 100%; object-fit: cover; }
.cline h4 { margin: 0; font-size: 14px; }
.cline .bk { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.cline .r { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; display: flex; flex-direction: column; gap: 4px; align-items: end; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--denim); font-size: 12.5px; font-weight: 600; }
.linkbtn.danger { color: var(--danger); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 4px; font-size: 14px; }
.totals .big { font-size: 20px; font-weight: 800; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.note { background: var(--chip); border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--ink-soft); }
.note.warn { background: #f6e3dc; color: var(--warn); }

/* Formulario */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.field label i { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px; background: var(--card); width: 100%; }
.field textarea { min-height: 70px; resize: vertical; }
.field input:invalid:not(:placeholder-shown) { border-color: var(--danger); }
.legend { grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
@media (max-width: 420px) { .form { grid-template-columns: 1fr; } }

/* Barra fija de pedido */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: #fff; display: flex; align-items: center; gap: 12px; box-shadow: 0 -4px 20px rgba(0,0,0,.15); }
.bar .t { flex: 1; min-width: 0; line-height: 1.2; }
.bar .t small { display: block; opacity: .7; font-size: 12px; }
.bar .t b { font-size: 18px; font-variant-numeric: tabular-nums; }
.bar .btn { background: #fff; color: var(--ink); border-color: #fff; }

.ok-box { text-align: center; padding: 24px 6px; }
.ok-box .big { font-family: var(--display); font-size: 40px; font-weight: 800; color: var(--ink); }
.foot { border-top: 1px solid var(--line); padding-block: 20px 110px; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.demo-banner { background: #fff4d6; color: #6d4b00; font-size: 13px; text-align: center; padding: 6px 16px; }

/* Variantes de color */
.sws { display: flex; flex-wrap: wrap; gap: 4px; }
.sw { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); background: var(--chip); display: inline-grid; place-items: center; font-size: 9px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; flex: none; }
.sw img { width: 100%; height: 100%; object-fit: cover; }
.sw.out { opacity: .4; }
.sw.lg { width: 44px; height: 44px; font-size: 12px; }
.color-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.cp { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 6px 5px; border: 2px solid transparent; border-radius: 10px; background: transparent; min-width: 64px; }
.cp:hover:not(:disabled) { background: var(--paper); }
.cp.on { border-color: var(--ink); background: var(--paper); }
.cp:disabled { opacity: .5; cursor: not-allowed; }
.cp-n { font-size: 12px; font-weight: 600; max-width: 80px; text-align: center; line-height: 1.15; }
.cp small { font-size: 10.5px; color: var(--muted); }
.cp-q { position: absolute; top: 0; right: 2px; background: var(--denim); color: #fff; border-radius: 999px; font-size: 11px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; }
.cl-color { font-size: 12px; font-weight: 600; background: var(--chip); color: var(--ink-soft); border-radius: 999px; padding: 1px 8px; margin-left: 4px; white-space: nowrap; }

/* Guía "¿Cómo comprar?" */
.hero-side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.howto-btn { border-color: var(--denim); color: var(--denim); }
.how-hint { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--chip); border-radius: var(--r); padding: 10px 12px 10px 16px; margin-top: 12px; font-size: 14px; }
.how-hint span { flex: 1; min-width: 180px; }
.how-hint .x { width: 30px; height: 30px; background: transparent; }
.how-sheet { max-width: 100%; }
@media (min-width: 860px) { .how-sheet { width: min(760px, 94vw); } }
.how { list-style: none; margin: 0; padding: 0; counter-reset: paso; display: grid; gap: 22px; }
.how li { counter-increment: paso; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.how li > div { min-width: 0; }
.how h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.how h3::before { content: counter(paso); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; display: grid; place-items: center; }
.how p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.how svg { width: 100%; height: auto; background: var(--paper); border-radius: 10px; padding: 6px; }
@media (max-width: 520px) { .how li { grid-template-columns: 1fr; gap: 10px; } .how svg { max-width: 300px; } }
.s-card { fill: var(--card); stroke: var(--line); stroke-width: 1.2; }
.s-photo { fill: #e3e8ef; }
.s-jean { fill: var(--denim); opacity: .75; }
.s-line { fill: var(--ink); }
.s-line2 { fill: var(--line); }
.s-ink { fill: var(--ink); }
.s-has { fill: var(--chip); stroke: var(--denim); stroke-width: 1.2; }
.s-hand { fill: #f2d3bd; stroke: #b98d70; stroke-width: 1; }
.s-t { font: 600 8px var(--body); fill: var(--ink); text-anchor: middle; }
.s-left { text-anchor: start; } .s-right { text-anchor: end; }
.s-big { font-size: 11px; font-weight: 800; }
.s-small { font-size: 6.5px; font-weight: 500; }
.s-inv { fill: #fff; }
.s-off { opacity: .55; }
.s-strike { stroke: var(--ink); stroke-width: 1.2; }
.s-field { fill: var(--paper); stroke: var(--line); }
.s-pen { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.s-check { fill: none; stroke: var(--ok); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.s-wa { fill: #1f8f4e; }
.s-inv-line { fill: rgba(255,255,255,.85); }

/* Visor de fotos a pantalla completa */
.lightbox { position: fixed; inset: 0; z-index: 60; background: #0d121c; display: flex; flex-direction: column; }
.lightbox .car { flex: 1; background: transparent; }
.lightbox .car-track { aspect-ratio: auto; height: 100%; }
.lightbox .car-track > img { object-fit: contain; }
.lightbox .x { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 2; }
.lightbox .car-nav { opacity: 1; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 70; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (max-width: 560px) {
  .top .wrap { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .cart-btn .lbl { display: none; }
}

/* ----- Nota de pedido (pantalla + impresión) ----- */
.order-sheet { inset: 0 0 0 auto; width: min(860px, 100vw); }
.nota { background: #fff; color: #111; font-size: 13px; }
.nota-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; border-bottom: 2px solid #111; padding-bottom: 10px; }
.nota-head .b { font-family: var(--display); font-weight: 800; font-size: 20px; }
.nota-head .n { text-align: right; }
.nota-head .n b { font-size: 22px; font-family: var(--display); }
.nota .cli { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 20px; margin: 12px 0; padding: 10px 12px; border: 1px solid #bbb; border-radius: 6px; }
.nota .cli div { min-width: 0; overflow-wrap: anywhere; }
.nota .cli span { color: #666; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; }
.nota table { width: 100%; border-collapse: collapse; }
.nota th, .nota td { border-bottom: 1px solid #ccc; padding: 7px 6px; text-align: left; vertical-align: top; }
.nota th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #555; border-bottom: 1.5px solid #111; }
.nota td.r, .nota th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nota .chk { width: 18px; height: 18px; border: 1.5px solid #555; border-radius: 3px; display: inline-block; }
.nota .szs { display: flex; flex-wrap: wrap; gap: 4px; }
.nota .szs span { font-family: var(--mono); border: 1px solid #999; border-radius: 4px; padding: 1px 5px; font-size: 12px; white-space: nowrap; }
.nota .szs b { font-weight: 700; }
.nota tfoot td { border: 0; font-weight: 700; font-size: 15px; padding-top: 10px; }
.nota .obs { margin-top: 12px; padding: 8px 10px; border: 1px dashed #999; border-radius: 6px; white-space: pre-wrap; }
.nota .firmas { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 36px; font-size: 11px; color: #555; text-align: center; }
.nota .firmas div { border-top: 1px solid #555; padding-top: 4px; }
.nota-tbl { overflow-x: auto; }

/* Nota de pedido en celular: cada renglón como tarjeta (al imprimir sigue siendo tabla) */
@media screen and (max-width: 560px) {
  .nota-tbl { overflow: visible; }
  .nota table, .nota tbody, .nota tfoot { display: block; }
  .nota thead { display: none; }
  .nota tbody tr { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid #ccc; }
  .nota tbody td { border: 0; padding: 0; }
  .nota tbody td:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .nota tbody td:nth-child(2) { grid-column: 2; grid-row: 1; font-size: 11.5px; color: #666; }
  .nota tbody td:nth-child(3) { grid-column: 2; grid-row: 2; }
  .nota tbody td:nth-child(7) { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-weight: 700; }
  .nota tbody td:nth-child(4) { grid-column: 2 / -1; grid-row: 3; margin-top: 6px; }
  .nota tbody td:nth-child(5) { grid-column: 2; grid-row: 4; text-align: left; color: #555; margin-top: 4px; }
  .nota tbody td:nth-child(5)::after { content: " unidades"; }
  .nota tbody td:nth-child(6) { grid-column: 3; grid-row: 4; color: #555; margin-top: 4px; }
  .nota tbody td:nth-child(6)::before { content: "× "; }
  .nota tfoot tr { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; }
  .nota tfoot td { padding: 0; }
  .nota tfoot td:nth-child(3) { display: none; }
  .nota tfoot td:nth-child(2)::after { content: " u."; }
  .nota tfoot td:nth-child(1) { flex: 1; text-align: left !important; }
  .nota .firmas { grid-template-columns: 1fr; gap: 26px; }
}