/* Catálogo público de SUPPRA: la página que abren los clientes desde un enlace de WhatsApp.
   Lenguaje de los posters de la marca: tarjeta blanca de foto con sombra suave, la píldora azul de
   precio montada sobre el borde de la foto y las curvas de esquina. Usa las variables de styles.css.
   SUPPRA public catalog. Same visual language as the brand posters. */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.public { background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
.public-page { max-width: none; margin: 0; padding: 0; }
.preview-bar { background: var(--ink); color: #fff; padding: 8px 16px; font-size: 13px; text-align: center; }
.preview-bar a { color: var(--accent); font-weight: 600; margin-left: 8px; }

/* ---------- The shop wears the landing's look / La tienda con el aspecto de la landing ----------
   Same tokens as suppra-landing/landing.css: navy, sky, Archivo for text, IBM Plex Mono for the small
   labels. Only body.shop, which the tracking page also wears (D81). / Mismos colores y letras de la
   landing. Solo body.shop, que también usa el seguimiento (D81). */
body.shop { --navy: #0b1a3a; --sky: #3cc6f5; --soft: #8fb3ff; --mist: #c3cde4; --line: #e0e6f2; --wa: #0e7a43; --wa-hover: #0b6436;
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --font: var(--display); background: #fff; color: var(--navy); font-family: var(--display); }
.shop :focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* ---------- Hero ---------- */
.s-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding-bottom: 50px; }
/* Graph-paper texture fading downwards, as in the landing. / Papel milimetrado, como en la landing. */
.s-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 40px 40px; -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
.s-top { position: relative; height: 60px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.s-logo { height: 26px; width: auto; }
.s-back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color 0.15s; }
.s-back:hover { border-color: var(--sky); }
.s-back .i { width: 16px; height: 16px; }
.s-hero-in { position: relative; max-width: 1120px; margin: 0 auto; padding: 18px 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.s-copy { display: grid; gap: 8px; }
.s-eyebrow, .s-mono { margin: 0; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.s-eyebrow { color: var(--soft); }
.s-h1 { margin: 0; font-size: clamp(28px, 8vw, 34px); line-height: 1; font-weight: 850; font-stretch: 108%; letter-spacing: -0.035em; }
.s-h1 span { color: var(--sky); }
.s-lead { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--mist); max-width: 34em; }
.s-stamp { display: none; }

/* ---------- How to buy / Cómo comprar ---------- */
.s-guide { max-width: 1120px; margin: 0 auto; padding: 36px 16px 0; }
.s-mono { color: #56627f; margin-bottom: 10px; }
.s-steps { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.s-steps li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.s-num { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--brand); padding-top: 2px; }
.s-steps b { display: block; font-size: 16px; font-weight: 750; font-stretch: 106%; }
.s-steps p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: #56627f; }
.s-note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 11px 14px; border-radius: 12px; background: #fff6e0; border: 1px solid #f1d48a; color: #5b4a14; font-size: 13.5px; line-height: 1.45; }
.s-note .i { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.s-note b { font-weight: 700; }
.s-note-top { margin: 14px 4px 0; padding: 9px 12px; font-size: 13px; }

/* ---------- Search and chips ---------- */
.p-tools { position: relative; max-width: 1120px; margin: -30px auto 0; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.p-tools > * { min-width: 0; }
.p-search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: 0 18px 40px rgba(11, 26, 58, 0.18); }
.p-search .i { width: 20px; height: 20px; color: var(--muted); flex: none; }
.p-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 10px 0; }
.p-search input::placeholder { color: var(--muted); }
.p-search button { border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; font-size: 14px; padding: 11px 22px; cursor: pointer; }
.p-search button:hover { background: #173fb0; }
.p-search:focus-within { box-shadow: 0 0 0 3px rgba(30, 79, 216, 0.35), 0 18px 40px rgba(11, 26, 58, 0.18); }
.p-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; justify-content: center; }
.p-chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 18px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; border: 1px solid var(--line); transition: background 0.15s, color 0.15s, border-color 0.15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:focus-visible, .p-cta:focus-visible, .p-search button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Grid of small posters ---------- */
.p-main { max-width: 1120px; margin: 0 auto; padding: 8px 16px 12px; }
.p-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 4px 10px; }
.p-count { color: var(--muted); font-size: 13.5px; font-weight: 500; margin: 0; }
.p-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.p-sort select { font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 30px 7px 14px; cursor: pointer; }
.p-sort select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.p-sort button { border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; padding: 7px 14px; }
.p-pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin: 40px 0 8px; }
.pg { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; transition: border-color 0.15s, color 0.15s; }
.pg:hover { border-color: var(--brand); color: var(--brand); }
.pg[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pg:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pg.step { display: inline-flex; gap: 6px; align-items: center; }
.pg.gap { min-width: 24px; padding: 0; background: none; border: 0; color: var(--muted); }
.p-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.p-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.p-card:hover { box-shadow: 0 18px 40px rgba(11, 26, 58, 0.12); transform: translateY(-2px); }
.p-frame { position: relative; flex: none; }
.p-photo { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; overflow: hidden; background: #f5f7fb; border-bottom: 1px solid var(--line); }
.p-photo > img:first-child { width: 100%; height: 100%; max-width: 100%; object-fit: cover; display: block; }
.p-ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(160deg, #f3f6fd, #e3ebfb); }
.p-ph img { width: 42px; height: auto; opacity: 0.55; }
.p-gender { position: absolute; left: 10px; top: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-family: var(--mono, inherit); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.p-photos { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(11, 26, 58, 0.75); color: #fff; font-size: 11px; font-weight: 600; }
.p-price { margin: 0; display: flex; align-items: baseline; gap: 5px; font-size: 21px; font-weight: 850; font-stretch: 106%; letter-spacing: -0.02em; white-space: nowrap; }
.p-price small { font-family: var(--mono, inherit); font-size: 10.5px; font-weight: 500; color: #56627f; letter-spacing: 0.04em; }
.p-sizes { margin: -2px 0 0; font-family: var(--mono, inherit); font-size: 11px; color: #56627f; overflow-wrap: anywhere; }
.p-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 12px 12px 14px; }
.p-body h2 { font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.p-body .p-buy, .p-body .p-cta { margin-top: auto; }
.p-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 16px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; transition: background 0.15s; }
.p-cta:hover { background: var(--brand); }
.p-cta .i { width: 18px; height: 18px; }

/* ---------- Empty states and footer ---------- */
.p-empty { text-align: center; color: var(--muted); padding: 64px 16px 48px; }
.p-empty b { display: block; color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.p-empty a { color: var(--brand); font-weight: 700; }

/* ---------- Error and notice pages ---------- */
.public-empty { text-align: center; color: var(--muted); padding: 22vh 20px 48px; }
.public-empty b { display: block; color: var(--ink); font-size: 22px; font-weight: 800; margin-bottom: 8px; }

@media (max-width: 640px) {
  .p-pager { margin-top: 32px; }
  /* Every number in the window stays visible (D79); only the words of the arrows go, so
     up to 9 buttons fit on a 320 px phone. / Todos los números de la ventana se ven (D79); solo
     se quitan las palabras de las flechas, así caben hasta 9 botones en un celular de 320 px. */
  .p-pager { gap: 4px; }
  .pg { min-width: 34px; height: 38px; padding: 0 8px; }
  .pg.gap { min-width: 16px; padding: 0; }
  .pg-word { display: none; }
  .p-tools { margin-top: -26px; }
  .p-search button { padding: 10px 16px; }
  .p-chips { justify-content: flex-start; -webkit-mask-image: linear-gradient(to right, #000 86%, transparent); mask-image: linear-gradient(to right, #000 86%, transparent); padding-right: 28px; }
  .p-pageof { display: none; }
  .p-sort label { display: none; }
  .p-bar { flex-wrap: nowrap; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .p-body { padding: 10px 10px 12px; gap: 6px; }
  .p-price { font-size: 17px; }
  .p-price small { display: none; }
  .p-body h2 { font-size: 14px; }
  .p-cta { padding: 10px 6px; font-size: 12px; gap: 6px; border-radius: 14px; white-space: nowrap; }
  .p-cta .i { display: none; }
  .p-gender { left: 8px; top: 8px; font-size: 9.5px; padding: 3px 6px; }
  .p-photos { right: 8px; bottom: 8px; font-size: 10px; padding: 3px 6px; }
}

/* The narrowest phones (320 px): slimmer buttons so the 9 still fit on one line (D79).
   Los celulares más angostos (320 px): botones más delgados para que los 9 quepan en una línea. */
@media (max-width: 360px) {
  .pg { min-width: 30px; padding: 0 6px; }
}
/* Desktop: a bigger hero with the 100% ORIGINAL stamp, steps side by side. / Escritorio. */
@media (min-width: 900px) {
  .s-top { max-width: 1120px; margin: 0 auto; height: 72px; padding: 0 16px; }
  .s-logo { height: 30px; }
  .s-hero { padding-bottom: 58px; }
  .s-hero-in { padding-top: 26px; }
  .s-h1 { font-size: clamp(40px, 4vw, 50px); font-stretch: 112%; }
  .s-stamp { flex: none; width: 88px; height: 88px; border-radius: 999px; border: 3px solid var(--sky); outline: 1.5px solid var(--sky); outline-offset: -10px; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(12deg); color: var(--sky); margin-bottom: 6px; }
  .s-stamp b { font-size: 21px; font-weight: 900; font-stretch: 112%; line-height: 1; }
  .s-stamp span { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em; }
  .s-guide { padding-top: 48px; }
  .s-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
  .s-steps li { border-bottom: 0; padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .p-card, .chip, .p-cta, .s-back { transition: none; }
  .p-card:hover { transform: none; }
}

/* ---------- The cart / El carrito ---------- */
.p-body .pcode { font-size: 11.5px; }
.p-buy { width: 100%; }
.p-add { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border: 0; border-radius: 16px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: background 0.15s; }
.p-add:hover { background: var(--brand); }
.p-add .i { width: 18px; height: 18px; }
.p-qty { display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; padding: 4px; border-radius: 16px; background: var(--brand-soft); }
.p-qty output { flex: 1; text-align: center; font-weight: 800; font-size: 16px; color: var(--ink); }
.p-qty button { flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: #fff; color: var(--brand); font: inherit; font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 2px 6px rgba(11, 26, 58, 0.12); }
.p-qty button:hover { background: var(--brand); color: #fff; }
.p-add:focus-visible, .p-qty button:focus-visible, .cart-open:focus-visible, .cart-send:focus-visible, .cart-note:focus-visible, .cart-clear:focus-visible, .cart-close:focus-visible, .cart-remove:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.cart-bar { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40; width: min(440px, calc(100vw - 24px)); }
.cart-bar[hidden] { display: none; }
.cart-open { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 18px 40px rgba(30, 79, 216, 0.5); }
.cart-badge { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: #fff; color: var(--brand); font-weight: 800; font-size: 14px; }
.cart-label { flex: 1; text-align: left; }
.cart-open b { font-size: 17px; letter-spacing: -0.02em; }
body.has-cart .s-foot { padding-bottom: 96px; }

.cart-dialog { border: 0; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: min(86dvh, 760px); border-radius: 26px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(8, 13, 28, 0.45); overflow: hidden; }
.cart-dialog[open] { display: flex; flex-direction: column; }
.cart-dialog::backdrop { background: rgba(8, 13, 28, 0.6); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; }
.cart-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.cart-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--ink); cursor: pointer; }
.cart-gone { margin: 0 20px 8px; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 13px; }
.cart-lines { list-style: none; margin: 0; padding: 0 20px; overflow-y: auto; flex: 1; display: grid; gap: 12px; align-content: start; }
.cart-empty { padding: 28px 20px; text-align: center; color: var(--muted); }
.cart-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; align-items: start; }
.cart-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface-2); display: block; }
.cart-body { display: grid; gap: 4px; min-width: 0; }
.cart-name { font-size: 14.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.cart-meta { font-size: 12.5px; color: var(--muted); }
.cart-price { font-size: 13px; font-weight: 600; }
.cart-note { width: 100%; min-width: 0; margin-top: 4px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.cart-side { display: grid; gap: 8px; justify-items: end; }
.cart-qty { width: auto; gap: 2px; padding: 3px; }
.cart-qty output { min-width: 28px; flex: none; }
.cart-qty button { width: 34px; height: 34px; font-size: 18px; }
.cart-remove { border: 0; background: transparent; color: var(--err); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 4px 2px; }
.cart-foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--surface); }
.cart-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.cart-sum b { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.cart-hint { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.cart-send { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 18px; border-radius: 16px; background: #1fa855; color: #fff; font-weight: 800; font-size: 15.5px; text-decoration: none; box-shadow: 0 12px 26px rgba(31, 168, 85, 0.4); }
.cart-send .i { width: 20px; height: 20px; }
.cart-send.disabled { background: var(--line); color: var(--muted); box-shadow: none; pointer-events: none; }
.cart-clear { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px; }

@media (max-width: 640px) {
  .cart-dialog { width: 100vw; max-width: 100vw; max-height: 90dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .cart-line { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .cart-thumb { width: 48px; height: 48px; }
  .p-add { padding: 10px 8px; font-size: 12.5px; gap: 6px; }
  .p-add .i { display: none; }
  .p-qty button { width: 36px; height: 36px; }
}

/* Tracking page / Página de seguimiento */
.track-wrap { max-width: 520px; margin: 0 auto; padding: 20px 0 40px; display: grid; gap: 14px; }
.track-card { padding: 20px 18px; }
.track-top { display: flex; gap: 14px; align-items: center; }
.track-top h1 { font-size: 22px; line-height: 1.2; margin: 0; }
.track-kicker { margin: 0 0 2px; font-size: 13px; color: var(--muted); }
.track-top-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft, #e8efff); color: var(--brand, #2455d6); }
.track-top-icon .i { width: 26px; height: 26px; }
.track-top-icon.bad { background: #fde8e6; color: #b3261e; }
.track-hello { margin: 14px 0 4px; line-height: 1.5; }
.track-h2 { display: flex; gap: 8px; align-items: center; font-size: 16px; margin: 0 0 12px; }
.track-h2 .i { width: 20px; height: 20px; color: var(--brand, #2455d6); }
.road { list-style: none; margin: 18px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.road-step { display: grid; justify-items: center; gap: 6px; text-align: center; position: relative; font-size: 11.5px; color: var(--muted); }
.road-step::before { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 3px; background: var(--line, #dfe3ee); z-index: 0; }
.road-step:first-child::before { display: none; }
.road-step.done::before, .road-step.current::before { background: var(--brand, #2455d6); }
.road-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface, #fff); border: 2px solid var(--line, #dfe3ee); color: var(--muted); }
.road-dot .i { width: 18px; height: 18px; }
.road-step.done .road-dot { background: var(--brand, #2455d6); border-color: var(--brand, #2455d6); color: #fff; }
.road-step.current .road-dot { border-color: var(--brand, #2455d6); color: var(--brand, #2455d6); box-shadow: 0 0 0 5px var(--brand-soft, #e8efff); }
.road-step.current .road-label { color: var(--ink); font-weight: 700; }
.road-small { margin: 12px 0 0; }
.road-small .road-dot { width: 26px; height: 26px; border-width: 2px; }
.road-small .road-dot .i { width: 13px; height: 13px; }
.road-small .road-step::before { top: 12px; height: 2px; }
.road-small .road-label { font-size: 10.5px; }
.road-small .road-step.current .road-dot { box-shadow: 0 0 0 3px var(--brand-soft, #e8efff); }
.track-products { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.track-products > li { padding: 14px 12px; border: 1px solid var(--line, #e7e9f0); border-radius: 14px; }
.track-prod-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.track-prod-head > div { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.track-prod-head .pill { display: inline-flex; gap: 5px; align-items: center; flex: none; }
.track-prod-head .pill .i { width: 14px; height: 14px; }
.track-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.track-dates li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.track-dates b { color: var(--ink); }

/* The tracking page in the shop's look (D81): the cards rise over the navy band like the shop's
   search box, with its borders, letters and buttons. / El seguimiento con el aspecto de la tienda
   (D81): las tarjetas suben sobre la franja azul como el buscador, con sus bordes y botones. */
/* The band's text lines up with the card below it. / El texto de la franja se alinea con la tarjeta. */
.track-hero .s-hero-in { max-width: 552px; }
.shop .track-wrap { position: relative; z-index: 1; margin-top: -26px; padding: 0 16px 48px; }
.shop .track-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 40px rgba(11, 26, 58, 0.1); }
.shop .track-status { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 850; font-stretch: 108%; letter-spacing: -0.03em; color: var(--navy); }
.shop .track-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.shop .track-kicker .pcode { font-family: var(--mono); letter-spacing: 0.04em; text-transform: none; }
.shop .track-top-icon { border-radius: 14px; }
.shop .track-h2 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--navy); }
.shop .track-card form { display: grid; gap: 12px; margin-top: 16px; }
.shop .track-card .field { margin: 0; }
.shop .track-card .input { border-radius: 14px; border-color: var(--line); font-size: 16px; }
.shop .track-card .p-cta { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.shop .track-help { color: var(--muted); }
.track-actions { display: grid; gap: 10px; }
.track-home { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--line); color: var(--navy); font-weight: 700; font-size: 14px; text-decoration: none; background: #fff; transition: border-color 0.15s, color 0.15s; }
.track-home:hover { border-color: var(--brand); color: var(--brand); }
.track-home .i, .track-actions .p-cta .i { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .track-home { transition: none; } }
.track-card .field { display: grid; gap: 6px; margin: 14px 0; }
.track-card .field label { font-weight: 600; font-size: 14px; }
.track-card .btn { width: 100%; justify-content: center; gap: 8px; }
.track-help { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; font-size: 13px; color: var(--muted); }
.track-help li { display: flex; gap: 8px; align-items: flex-start; }
.track-help .i { flex: none; width: 16px; height: 16px; margin-top: 1px; }

/* ---------- Product page / Página del producto (catálogo v2, fase 2) ----------
   Phone: photos on top, data below, buttons stuck to the bottom. Desktop: photos left, data right.
   Celular: fotos arriba, datos abajo y botones fijos abajo. Escritorio: fotos a la izquierda. */
.p-name { color: inherit; text-decoration: none; }
.p-name:hover { color: var(--brand); }
.s-hero-slim { padding-bottom: 0; }
.s-hero-slim::before { -webkit-mask-image: none; mask-image: none; }
.pd-crumb { max-width: 1120px; margin: 0 auto; padding: 14px 16px 0; font-size: 13px; color: #56627f; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.pd-crumb a { color: inherit; }
.pd-crumb b { color: var(--navy); font-weight: 600; overflow-wrap: anywhere; }
.pd { max-width: 1120px; margin: 0 auto; padding: 14px 16px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.pd > * { min-width: 0; }

.pd-gallery { position: relative; }
.pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; border: 1px solid var(--line); background: #f5f7fb; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.pd-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 999px; background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(11, 26, 58, 0.18); }
.pd-arrow[hidden] { display: none; }
.pd-arrow .i { width: 20px; height: 20px; }
.pd-prev { left: 12px; }
.pd-next { right: 12px; }
.pd-count { position: absolute; right: 12px; top: 12px; padding: 4px 9px; border-radius: 6px; background: rgba(11, 26, 58, 0.78); color: #fff; font-family: var(--mono); font-size: 11.5px; }
.pd-thumbs { display: none; }

.pd-info { display: flex; flex-direction: column; }
.pd-eyebrow { color: var(--brand); margin-bottom: 8px; }
.pd-name { margin: 0; font-size: 26px; line-height: 1.08; font-weight: 850; font-stretch: 106%; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pd-code { margin: 6px 0 0; font-family: var(--mono); font-size: 12px; color: #56627f; }
.pd-price { margin: 14px 0 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 32px; font-weight: 900; font-stretch: 106%; letter-spacing: -0.02em; }
.pd-price small { font-family: var(--mono); font-size: 12px; font-weight: 500; color: #56627f; letter-spacing: 0.02em; }
.pd-today { margin: 2px 0 0; font-size: 13px; color: #56627f; }
.pd-info .s-note { margin-top: 16px; }
.pd-label, .pd-sizes legend { margin: 20px 0 8px; padding: 0; }
.pd-sizes { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; }
.pd-sizes legend { margin-top: 0; }
.pd-size-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-size { position: relative; }
.pd-size input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pd-size span { display: grid; place-items: center; min-width: 50px; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 15px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.pd-size span:hover { border-color: var(--navy); }
.pd-size input:checked + span { border: 2px solid var(--navy); background: #f5f7fb; }
.pd-size input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.pd-hint { margin: 8px 0 0; font-size: 12.5px; color: #56627f; }
.pd-desc { margin: 0; font-size: 15px; line-height: 1.6; color: #2b3756; overflow-wrap: anywhere; }
.pd-trust { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pd-trust li { border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 12px; line-height: 1.35; color: #56627f; }
.pd-trust b { display: block; font-size: 13px; color: var(--navy); }

/* The buttons: stuck to the bottom of the phone while the data is on screen. / Fijos abajo. */
.pd-actions { position: sticky; bottom: 0; z-index: 30; margin: 20px -16px 0; padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: stretch; }
.pd-actions .p-buy { flex: 1; min-width: 0; }
.pd-actions .p-add { height: 50px; border-radius: 12px; font-size: 15px; }
.pd-actions .p-qty { height: 50px; border-radius: 12px; }
.pd-wa { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 50px; height: 50px; border-radius: 12px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; }
.pd-wa:hover { background: var(--wa-hover); }
.pd-wa .i { width: 22px; height: 22px; }
.pd-wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.product.has-cart .cart-bar { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

.pd-more { max-width: 1120px; margin: 0 auto; padding: 36px 16px 0; }
.pd-more h2 { margin: 0 0 14px; font-size: 22px; font-weight: 850; font-stretch: 108%; letter-spacing: -0.02em; }
.pd-more .p-body h3 { font-size: 14px; font-weight: 700; line-height: 1.3; margin: 0; }

@media (max-width: 640px) {
  .pd-track { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .pd-arrow { display: none !important; }
  .pd-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-trust li:last-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .pd { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; padding-top: 20px; align-items: start; }
  .pd-gallery { position: sticky; top: 16px; }
  .pd-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
  .pd-thumb { aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #f5f7fb; overflow: hidden; cursor: pointer; }
  .pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .pd-thumb[aria-current="true"] { border: 2px solid var(--brand); }
  .pd-count { top: auto; bottom: 12px; }
  .pd-name { font-size: 36px; }
  .pd-price { font-size: 40px; }
  .pd-actions { position: static; margin: 22px 0 0; padding: 0; background: none; border: 0; flex-direction: column; }
  .pd-actions .p-add, .pd-actions .p-qty { height: 54px; font-size: 16px; }
  .pd-wa { width: 100%; height: 52px; }
  .pd-wa span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  body.product.has-cart .cart-bar { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .pd-more .p-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .pd-size span { transition: none; }
}

/* ---------- «¿No está lo que buscas?»: official stores / tiendas oficiales (fase 3) ---------- */
.s-brands { max-width: 1088px; margin: 40px auto 0; margin-inline: max(16px, calc((100% - 1088px) / 2)); padding: 20px 18px; border-radius: 16px; background: #f5f7fb; border: 1px solid var(--line); display: grid; gap: 16px; }
.s-brands-eyebrow { color: var(--brand); margin-bottom: 6px; }
.s-brands h2 { margin: 0 0 6px; font-size: 22px; font-weight: 850; font-stretch: 108%; letter-spacing: -0.02em; }
.s-brands-copy > p:not(.s-eyebrow) { margin: 0; font-size: 14.5px; line-height: 1.5; color: #56627f; }
.s-brands-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; min-height: 48px; padding: 0 20px; border-radius: 12px; background: var(--wa); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.s-brands-wa:hover { background: var(--wa-hover); }
.s-brands-wa .i { width: 20px; height: 20px; }
.s-brand-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: center; }
.s-brand-list a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; transition: border-color 0.15s, color 0.15s; }
.s-brand-list a:hover { border-color: var(--brand); color: var(--brand); }
.s-ext { color: var(--brand); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  .s-brands-wa { width: 100%; }
}
@media (min-width: 900px) {
  .s-brands { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; padding: 28px 30px; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .s-brand-list a { transition: none; }
}

/* ---------- Footer, like the landing's / Pie, como el de la landing ---------- */
.s-foot { margin-top: 48px; border-top: 1px solid var(--line); background: #fff; color: #56627f; padding: 28px 16px 28px; }
.s-foot-in { max-width: 1120px; margin: 0 auto; display: grid; gap: 18px; justify-items: center; text-align: center; }
.s-foot-brand { display: grid; gap: 8px; justify-items: center; }
.s-foot-brand img { height: 24px; width: auto; }
.s-foot-brand p { margin: 0; font-size: 13.5px; line-height: 1.45; max-width: 30em; }
.s-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.s-foot-links a { color: var(--navy); font-weight: 600; font-size: 14px; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.s-foot-links a:hover { color: var(--brand); text-decoration: underline; }
.s-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.s-social a { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: 13.5px; text-decoration: none; transition: border-color 0.15s, color 0.15s; }
.s-social a:hover { border-color: var(--brand); color: var(--brand); }
.s-ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.s-foot-small { max-width: 1120px; margin: 20px auto 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; text-align: center; }
@media (min-width: 900px) {
  .s-foot { padding: 32px 16px 26px; }
  .s-foot-in { grid-template-columns: minmax(0, 1.2fr) auto auto; justify-items: start; align-items: center; text-align: left; gap: 32px; }
  .s-foot-brand { justify-items: start; }
  .s-foot-links { flex-direction: column; gap: 2px; }
  .s-foot-small { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .s-social a { transition: none; }
}
