/* Relevo — tokens
   Pino: la base seria de la marca. Azafrán: el único acento (acciones y sello de revisión). */
:root {
  --pine: #12352F;
  --pine-2: #1C4840;
  --pine-3: #2B5E54;
  --saffron: #F2B33D;
  --saffron-2: #E09E1C;
  --saffron-soft: #FBEBC6;
  --paper: #EDEFEA;
  --paper-2: #F6F7F3;
  --ink: #17211E;
  --muted: #56655F;
  --line: #CFD6CE;
  --red: #A83A28;

  /* Texto con la fuente del sistema (se lee mejor y se siente nativo); Archivo para títulos y precios. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo", var(--font);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r: 6px;
}

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
body.lock { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; font-weight: 750; line-height: 1.1; }
h1, h2 { font-family: var(--display); }
h2 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); font-stretch: 118%; letter-spacing: -.015em; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
svg { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: min(1220px, 100% - 32px); margin-inline: auto; }
.i { width: 18px; height: 18px; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 2px solid transparent; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn--accent { background: var(--saffron); color: var(--pine); }
.btn--accent:hover { background: var(--saffron-2); }
.btn--accent:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn--line { border-color: rgba(237, 239, 234, .4); color: var(--paper); }
.btn--line:hover { border-color: var(--paper); }
.btn--dark { background: var(--pine); color: var(--paper); }
.btn--dark:hover { background: var(--pine-2); }
.btn--ghost { border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); border: 0; background: transparent; }
.icon-btn:hover { background: rgba(23, 33, 30, .07); }

/* Header */
.header { position: sticky; top: 0; z-index: 30; background: var(--pine); color: var(--paper); border-bottom: 1px solid rgba(237, 239, 234, .12); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { font-family: var(--display); display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 125%; font-size: 22px; letter-spacing: -.02em; color: var(--paper); }
.logo img { display: block; height: 46px; width: auto; }
.footer .logo img { height: 52px; }
.tag__head img { display: block; height: 28px; width: auto; }
.search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: var(--r); background: rgba(237, 239, 234, .1); color: rgba(237, 239, 234, .7); }
.search:focus-within { background: var(--paper); color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--paper); }
.search:focus-within input { color: var(--ink); }
.search input::placeholder { color: rgba(237, 239, 234, .6); }
.search:focus-within input::placeholder { color: var(--muted); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; color: rgba(237, 239, 234, .85); }
.nav a:hover { color: var(--paper); text-decoration: underline; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: var(--r); background: var(--saffron); color: var(--pine); font-weight: 700; }
.cart-btn:hover { background: var(--saffron-2); }
.cart-btn__count { min-width: 24px; height: 24px; padding: 0 6px; display: grid; place-items: center; border-radius: 3px; background: var(--pine); color: var(--saffron); font-size: 13px; }

/* Hero */
.hero { background: var(--pine); color: var(--paper); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 72px 0 64px; }
.hero h1 { font-family: var(--display); font-size: clamp(40px, 5.6vw, 74px); font-stretch: 122%; font-weight: 800; letter-spacing: -.025em; line-height: .98; max-width: 13ch; }
.hero p { margin-top: 24px; max-width: 46ch; font-size: 18px; color: rgba(237, 239, 234, .78); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* The hang tag — the one memorable piece */
.tag { margin: 0; justify-self: center; position: relative; width: min(360px, 100%); padding-top: 96px; transform-origin: 50% 0; animation: swing 1.6s cubic-bezier(.3, 1.6, .5, 1) .2s both; }
@keyframes swing { 0% { transform: rotate(9deg); } 100% { transform: rotate(-4deg); } }
.tag__string { position: absolute; top: 0; left: 50%; width: 40px; height: 110px; transform: translateX(-50%); color: rgba(237, 239, 234, .55); }
.tag__card { position: relative; padding: 52px 26px 22px; background: var(--paper-2); color: var(--ink); clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%, 0 28px); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .5); }
.tag__hole { position: absolute; top: 16px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--pine); box-shadow: 0 0 0 4px var(--line); }
.tag__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.tag__head strong { font-family: var(--display); font-stretch: 125%; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.tag__head span { font-size: 13px; color: var(--muted); }
.tag__item { display: grid; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tag__name { font-weight: 700; font-size: 17px; line-height: 1.25; }
.tag__sub { font-size: 14px; color: var(--muted); }
.tag__checks { list-style: none; margin: 0; padding: 8px 0; }
.tag__checks li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.tag__checks li:last-child { border-bottom: 0; }
.tag__checks .i { color: var(--pine-3); }
.tag__grade { display: flex; justify-content: space-between; align-items: center; margin: 6px -26px 0; padding: 12px 26px; background: var(--saffron); color: var(--pine); }
.tag__grade span { font-size: 14px; font-weight: 600; }
.tag__grade strong { font-family: var(--display); font-stretch: 125%; font-size: 22px; font-weight: 800; }
.tag__foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; font-size: 12px; color: var(--muted); }

.promises { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 16px 24px; padding: 20px 0 22px; border-top: 1px solid rgba(237, 239, 234, .14); font-size: 15px; color: rgba(237, 239, 234, .85); }
.promises p { display: flex; align-items: center; gap: 10px; }
.promises .i { color: var(--saffron); }

/* Catalog */
.catalog { padding: 72px 0 40px; }
.catalog__head { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.catalog__head p { color: var(--muted); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sort select { height: 40px; padding: 0 36px 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2317211E' stroke-width='2.5'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 2px solid var(--ink); }
.chip { height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: transparent; font-weight: 550; font-size: 15px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--paper); }
.chip small { margin-left: 6px; font-size: 13px; opacity: .6; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 32px 18px; }
.card { display: flex; flex-direction: column; }
.card__media { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: none; }
.card__media svg { width: 100%; height: 100%; transition: transform .35s ease; }
.card:hover .card__media svg { transform: scale(1.03); }
.card:hover .card__title { text-decoration: underline; text-underline-offset: 3px; }
.card__body { display: grid; gap: 4px; padding-top: 10px; }
.card__brand { font-size: 14px; color: var(--muted); }
.card__title { font-size: 17px; font-weight: 650; line-height: 1.3; text-decoration: none; }
.card__title::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__sizes { color: var(--muted); }
.card__sizes::before { content: ""; display: inline-block; width: 1px; height: 12px; margin: 0 8px 0 2px; background: var(--line); vertical-align: -1px; }
.card .price { margin-top: 6px; }
.card__flag { position: absolute; left: 0; bottom: 14px; padding: 5px 12px; background: var(--pine); color: var(--paper); font-weight: 600; font-size: 14px; }
.owner-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--r); font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; white-space: nowrap; }
.card__badge { position: absolute; top: 10px; left: 10px; z-index: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.pd__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pd__unsafe { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r); border-left: 4px solid #B91C1C; background: #FEF2F2; color: #7F1D1D; font-size: 14px; line-height: 1.4; }
.pd__unsafe strong { font-weight: 700; font-size: 14px; }
.line__badge { margin-right: 6px; padding: 2px 7px; font-size: 11px; vertical-align: 1px; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price strong { font-family: var(--display); font-stretch: 112%; font-size: 21px; font-weight: 750; }
.price s { font-size: 14px; color: var(--muted); }
.cond { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; }

.meter { display: inline-flex; gap: 3px; }
.meter i { width: 14px; height: 6px; background: var(--line); }
.meter[data-level="1"] i:nth-child(-n+1),
.meter[data-level="2"] i:nth-child(-n+2),
.meter[data-level="3"] i { background: var(--pine-3); }

.empty { padding: 48px 0; display: grid; justify-items: start; gap: 16px; color: var(--muted); }

/* Review process */
.review { margin-top: 56px; padding: 80px 0; background: var(--paper-2); border-top: 2px solid var(--ink); }
.route { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.route li { position: relative; padding: 52px 24px 0 0; counter-increment: step; }
.route li::before { content: counter(step); position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pine); color: var(--saffron); font-weight: 800; font-size: 15px; }
.route li::after { content: ""; position: absolute; top: 16px; left: 0; right: 0; height: 2px; background: var(--pine); }
.route li:last-child::after { right: auto; width: 34px; }
.route h3 { font-size: 19px; margin-bottom: 6px; }
.route p { color: var(--muted); max-width: 30ch; }
.grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.grades dt { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; }
.grades dd { margin: 6px 0 0; color: var(--muted); }

/* Help */
.help { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 56px; padding: 88px 0; }
.help__aside { display: grid; align-content: start; justify-items: start; gap: 18px; }
.help__aside p { color: var(--muted); max-width: 38ch; }
.help__list details { border-bottom: 1px solid var(--line); }
.help__list details:first-child { border-top: 2px solid var(--ink); }
.help__list summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; font-weight: 650; font-size: 17px; }
.help__list summary::-webkit-details-marker { display: none; }
.help__list summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
.help__list details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.help__list details p { padding: 0 0 22px; max-width: 62ch; color: var(--muted); }

/* Footer */
.footer { background: var(--pine); color: rgba(237, 239, 234, .75); padding: 44px 0; font-size: 15px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px 48px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--paper); text-decoration: underline; }
.footer__note { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(237, 239, 234, .14); font-size: 14px; }

/* Overlay y cesta */
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(12, 32, 28, .55); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--paper-2); animation: slide .25s ease; }
@keyframes slide { from { transform: translateX(100%); } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 2px solid var(--ink); }
.drawer__head h3 { font-family: var(--display); font-size: 22px; font-stretch: 118%; }
.drawer__content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drawer__scroll { flex: 1; overflow: auto; padding: 4px 24px; }
.drawer__foot { display: grid; gap: 12px; padding: 20px 24px; border-top: 1px solid var(--line); background: var(--paper); }

.ship { padding: 14px 24px; font-size: 14px; border-bottom: 1px solid var(--line); }
.ship__bar { height: 6px; margin-top: 8px; background: var(--line); }
.ship__bar span { display: block; height: 100%; background: var(--saffron); transition: width .3s; }

.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line__img { width: 72px; height: 90px; border-radius: var(--r); overflow: hidden; }
.line__img svg { width: 100%; height: 100%; }
.line__title { font-weight: 650; font-size: 15px; line-height: 1.3; }
.line__meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.line__right { display: flex; flex-direction: column; align-items: end; justify-content: space-between; }
.line__right strong { font-weight: 700; }
.qty { display: inline-flex; align-items: center; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r); }
.qty button { width: 32px; height: 32px; border: 0; background: none; font-size: 16px; }
.qty button:hover:not(:disabled) { background: rgba(23, 33, 30, .06); }
.qty button:disabled { color: var(--line); cursor: not-allowed; }
.qty span { min-width: 24px; text-align: center; font-weight: 650; font-size: 14px; }
.remove { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; border: 0; background: none; color: var(--muted); font-size: 13px; }
.remove:hover { color: var(--red); }
.remove .i { width: 15px; height: 15px; }

.sum { display: grid; gap: 6px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; }
.sum .total { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 750; }
.sum .total dt { color: var(--ink); }
.sum .total small { font-weight: 400; color: var(--muted); font-size: 13px; }
.note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); }
.note .i { width: 14px; height: 14px; }

.cart-empty, .success { flex: 1; display: grid; align-content: center; justify-items: start; gap: 12px; padding: 32px 28px; }
.cart-empty h4, .success h4 { font-family: var(--display); font-size: 24px; font-stretch: 118%; }
.cart-empty p, .success p { color: var(--muted); }
.success__stamp { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--saffron); color: var(--pine); font-weight: 700; }
.success__code { font-weight: 700; color: var(--ink); }

.form { display: grid; gap: 14px; padding: 16px 24px 24px; }
.form h4 { font-size: 16px; margin-top: 8px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input { height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; outline: 0; }
.field input:focus { border-color: var(--pine); box-shadow: 0 0 0 3px var(--saffron-soft); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field .err { font-size: 13px; color: var(--red); }
.field .err:empty { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border: 0; margin: 0; padding: 0; }
.pay legend { font-weight: 650; font-size: 16px; margin-bottom: 8px; padding: 0; }
.pay label { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border: 1px solid var(--line); border-radius: var(--r); font-weight: 550; cursor: pointer; background: #fff; }
.pay input { accent-color: var(--pine); }
.pay label:has(input:checked) { border: 2px solid var(--pine); }
.back { justify-self: start; padding: 0; border: 0; background: none; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r); background: var(--ink); color: var(--paper); font-size: 15px; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; transition: transform .3s ease, visibility .3s; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast .i { color: var(--saffron); }
.toast__btn { margin-left: 6px; padding: 4px 10px; border: 1px solid rgba(237, 239, 234, .4); border-radius: var(--r); background: none; color: var(--paper); font-size: 14px; font-weight: 600; }
.toast__btn:hover { border-color: var(--paper); }

/* Fotos reales */
.card__media { background: #E4E6E1; }
.card__media img, .pd__main img, .pd__thumb img, .line__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd__main { aspect-ratio: 1 / 1; background: #E4E6E1; }
.pd__thumb { aspect-ratio: 1 / 1; }
.ph-empty { display: grid; place-items: center; width: 100%; height: 100%; background: #E4E6E1; }
.ph-empty img { width: 22% !important; height: auto !important; opacity: .35; filter: grayscale(1); }
.grid-msg { grid-column: 1 / -1; padding: 40px 0; color: var(--muted); display: grid; gap: 16px; justify-items: start; }

/* Vendido */
.pd__sold { padding: 16px 18px; background: var(--ink); color: var(--paper); }
.pd__sold strong { font-family: var(--display); display: block; font-size: 20px; font-stretch: 115%; margin-bottom: 4px; }
.pd__sold p { color: rgba(237, 239, 234, .8); }
.pd__sold a { color: var(--saffron); }
.pd__sold--res { background: var(--saffron); color: var(--pine); }
.pd__sold--res p { color: var(--pine); }
.pd__sold--res a { color: var(--pine); font-weight: 650; }
.card__flag--res { background: var(--saffron); color: var(--pine); }

/* Seguimiento */
.track { padding-bottom: 96px; max-width: 760px; }
.track h1 { font-family: var(--display); font-size: clamp(32px, 4vw, 48px); font-stretch: 120%; letter-spacing: -.02em; }
.track__lead { margin: 8px 0 24px; color: var(--muted); font-size: 17px; }
.track__form { display: flex; gap: 10px; }
.track__form input { flex: 1; min-width: 0; max-width: 320px; height: 52px; padding: 0 16px; border: 2px solid var(--ink); border-radius: var(--r); background: #fff; font-size: 20px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; outline: 0; }
.track__form input:focus { box-shadow: 0 0 0 3px var(--saffron); }
.track__form .btn { min-height: 52px; }
.track__msg { margin-top: 28px; color: var(--muted); }
.track__msg--err { color: var(--red); }
.track__card { margin-top: 32px; padding: 28px; background: var(--paper-2); border-top: 4px solid var(--pine); display: grid; gap: 24px; }
.track__prod { display: flex; gap: 16px; align-items: center; }
.track__prod img { width: 80px; height: 100px; object-fit: cover; border-radius: var(--r); background: #E4E6E1; }
.track__prod div { display: grid; }
.track__code { font-size: 14px; color: var(--muted); }
.track__prod strong { font-size: 18px; }
.track__now h2 { font-family: var(--display); font-size: 30px; font-stretch: 118%; letter-spacing: -.015em; }
.track__now p { margin-top: 4px; }
.track__now time { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.track__now--alert { padding: 16px 18px; background: #F7E3DF; border-left: 4px solid var(--red); }
.track__now--alert h2 { color: var(--red); }
.track__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.track__steps li { position: relative; padding-top: 26px; font-size: 13px; color: var(--muted); text-align: center; }
.track__steps li::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 4px; background: var(--line); }
.track__steps li::after { content: ""; position: absolute; top: 0; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--paper-2); border: 3px solid var(--line); }
.track__steps li.is-done::before, .track__steps li.is-now::before { background: var(--pine-3); }
.track__steps li.is-done::after { background: var(--pine-3); border-color: var(--pine-3); }
.track__steps li.is-now { color: var(--ink); font-weight: 700; }
.track__steps li.is-now::after { background: var(--saffron); border-color: var(--pine); }
.track__steps li:first-child::before { left: 50%; }
.track__steps li:last-child::before { right: 50%; }
.track__carrier { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 14px 0; border-block: 1px solid var(--line); }
.track__carrier dt { font-size: 14px; color: var(--muted); }
.track__carrier dd { margin: 2px 0 0; font-weight: 650; word-break: break-all; }
.track__card h3 { font-size: 18px; margin-bottom: -10px; }
.track__history { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.track__history li { position: relative; }
.track__history li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.track__history li:first-child::before { background: var(--pine-3); }
.track__history time { margin-left: 8px; font-size: 14px; color: var(--muted); }
.track__history p { color: var(--muted); margin-top: 2px; }
.track__help { font-size: 15px; color: var(--muted); }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

/* Product page */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 72px; }
.pd__gallery { position: sticky; top: 92px; display: grid; grid-template-columns: 72px minmax(0, 440px); gap: 12px; }
.pd__main { grid-column: 2; grid-row: 1; border-radius: var(--r); overflow: hidden; }
.pd__main svg { width: 100%; height: auto; }
.pd__thumbs { grid-column: 1; grid-row: 1; display: grid; align-content: start; gap: 10px; }
.pd__thumb { padding: 0; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; background: none; opacity: .75; }
.pd__thumb svg { width: 100%; height: auto; }
.pd__thumb:hover { opacity: 1; }
.pd__thumb[aria-pressed="true"] { border-color: var(--pine); opacity: 1; }
.pd__info { display: grid; gap: 18px; }
.pd__brand { color: var(--muted); font-size: 16px; }
.pd__info h1 { font-family: var(--display); font-size: clamp(28px, 3vw, 38px); font-stretch: 115%; letter-spacing: -.015em; margin-top: -10px; }
.price--lg { flex-wrap: wrap; }
.price--lg strong { font-size: 32px; }
.pd__retail { font-size: 15px; color: var(--muted); }
.pd__cond { display: grid; gap: 4px; padding: 14px 16px; background: var(--paper-2); border-left: 4px solid var(--pine-3); font-size: 15px; color: var(--muted); }
.pd__cond .cond { color: var(--ink); font-size: 15px; }
.pd__desc { color: var(--ink); max-width: 60ch; }
.pd__label { font-weight: 650; font-size: 15px; margin-bottom: 8px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-width: 56px; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); font-weight: 550; }
.size:hover { border-color: var(--ink); }
.size[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--paper); }
.pd__stock { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.pd__ship { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.pd__ship li { display: flex; gap: 10px; align-items: flex-start; }
.pd__ship .i { margin-top: 3px; color: var(--pine-3); }
.pd__report { border: 2px solid var(--ink); background: var(--paper-2); }
.pd__report h2 { font-family: var(--display); display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; font-size: 16px; font-stretch: 100%; letter-spacing: 0; border-bottom: 1px solid var(--line); }
.pd__report h2 span { font-weight: 500; color: var(--muted); font-size: 13px; }
.pd__report ul { list-style: none; margin: 0; padding: 4px 16px; }
.pd__report li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; border-bottom: 1px dashed var(--line); }
.pd__report li:last-child { border-bottom: 0; }
.pd__report .i { color: var(--pine-3); width: 16px; height: 16px; }
.pd__specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 0; font-size: 15px; }
.pd__specs dt { color: var(--muted); }
.pd__specs dd { margin: 0; }
.pd__ask { font-size: 15px; color: var(--muted); }
.related { padding: 56px 0 88px; border-top: 2px solid var(--ink); }
.related h2 { margin-bottom: 28px; font-size: 26px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Checkout */
.co-title { font-family: var(--display); font-size: clamp(30px, 3.4vw, 42px); font-stretch: 118%; letter-spacing: -.015em; margin-bottom: 32px; }
.co { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 88px; }
.co .form { padding: 0; gap: 28px; }
.co fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 14px; }
.co legend { font-family: var(--display); padding: 0 0 12px; font-size: 20px; font-weight: 750; font-stretch: 112%; }
.hint { font-size: 13px; color: var(--muted); }
.opts { gap: 0 !important; }
.opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); margin-top: -1px; background: #fff; cursor: pointer; }
.opt:first-of-type { border-radius: var(--r) var(--r) 0 0; }
.opt:last-of-type { border-radius: 0 0 var(--r) var(--r); }
.opt:has(input:checked) { position: relative; z-index: 1; border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); background: var(--paper-2); }
.opt input { accent-color: var(--pine); width: 18px; height: 18px; margin: 0; }
.opt span { display: grid; }
.opt small { color: var(--muted); font-size: 14px; }
.opt em { font-style: normal; font-weight: 650; }
.co-pay { min-height: 54px; font-size: 17px; }
.note--left { justify-content: flex-start; }
.co-sum { position: sticky; top: 92px; padding: 24px; background: var(--paper-2); border-top: 4px solid var(--pine); }
.co-sum h2 { font-family: var(--display); font-size: 20px; font-stretch: 112%; margin-bottom: 4px; }
.co-sum__lines { margin-bottom: 16px; }
.co-sum .line { grid-template-columns: 56px 1fr auto; }
.co-sum .line__img { width: 56px; height: 70px; }
.co-edit { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; }
.co-empty, .done { display: grid; justify-items: start; gap: 16px; padding: 72px 0 96px; max-width: 720px; }
.co-empty h1, .done h1 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); font-stretch: 115%; letter-spacing: -.015em; }
.co-empty p, .done p { color: var(--muted); max-width: 60ch; }
.done__stamp { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--saffron); color: var(--pine); font-weight: 700; }
.done__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; width: 100%; margin: 8px 0; border-top: 2px solid var(--ink); }
.done__facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.done__facts dt { font-size: 14px; color: var(--muted); }
.done__facts dd { margin: 2px 0 0; font-weight: 600; }

/* Info page */
.info { padding-bottom: 96px; }
.info > h1 { font-family: var(--display); font-size: clamp(32px, 4vw, 48px); font-stretch: 120%; letter-spacing: -.02em; margin-bottom: 40px; }
.info__grid { display: grid; gap: 48px; max-width: 760px; }
.info__grid section { display: grid; gap: 14px; }
.info__grid h2 { font-size: 24px; padding-top: 18px; border-top: 2px solid var(--ink); }
.info__grid p, .info__steps { color: var(--muted); }
.info__steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 650; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ink); }
.table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.table td:last-child, .table th:last-child { text-align: right; padding-right: 0; }

/* Pending config data */

/* Product buy box */
.pd__buy { display: grid; gap: 10px; }
.pd__buy .i { width: 16px; height: 16px; }
.pd__alt { display: grid; gap: 10px; }
.btn--ig .i { width: 18px; height: 18px; }
/* Botón principal cuando el artículo se compra por Instagram: degradado de Instagram */
.btn--igmain { color: #fff; font-weight: 700; font-size: 18px; border: 0; background: linear-gradient(90deg, #F58529 0%, #DD2A7B 38%, #8134AF 72%, #515BD4 100%); text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.btn--igmain:hover { filter: saturate(1.15) brightness(.96); }
.btn--igmain .i { width: 20px; height: 20px; }
.btn--igmain:focus-visible { outline-color: #DD2A7B; }
.co-lot-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.co-ig { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.pd__stock a { color: inherit; }

/* Pagar con Wallapop */
/* Verde de Wallapop, un punto más oscuro para que el texto blanco se lea bien (contraste 3,6:1 con texto grande y negrita) */
.btn--wallapop { background: #0E9787; color: #fff; gap: 8px; font-weight: 700; font-size: 18px; }
.btn--wallapop:hover { background: #0C8B7C; }
.btn--wallapop:focus-visible { outline-color: #7FE0D3; }
.wp-mark { display: inline-flex; align-items: center; font-weight: 800; font-size: 1.15em; letter-spacing: -.02em; text-transform: lowercase; }
.wp-icon { display: block; width: 26px; height: auto; margin-right: 2px; }
.secure-pay { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: 14px; color: var(--muted); }
.secure-pay .i { width: 15px; height: 15px; color: #0E9787; }
.co-lead { max-width: 62ch; margin: -16px 0 36px; color: var(--muted); font-size: 17px; }
.co-main { display: grid; gap: 40px; }
.co-option h2 { font-family: var(--display); font-size: 22px; font-stretch: 112%; margin-bottom: 8px; }
.co-option > p { color: var(--muted); margin-bottom: 16px; max-width: 60ch; }
.co-option--lot { padding: 24px; background: var(--paper-2); border-left: 4px solid var(--saffron); }
.co-items { border-top: 2px solid var(--ink); }
.co-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.co-item .line { border: 0; }
.co-item__btn { min-height: 42px; padding: 0 16px; font-size: 15px; }
.co-item__btn .i { width: 15px; height: 15px; }
.co-next { margin: 4px 0 20px; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }

/* Páginas de información y legales */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; padding-bottom: 96px; }
.doc__nav { position: sticky; top: 92px; font-size: 15px; }
.doc__nav h4 { font-size: 14px; color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.doc__nav ul { list-style: none; margin: 0 0 24px; padding: 0; border-left: 2px solid var(--line); }
.doc__nav a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); }
.doc__nav a:hover { color: var(--ink); }
.doc__nav a[aria-current] { border-left-color: var(--pine); color: var(--ink); font-weight: 650; }
.doc__body { max-width: 720px; }
.doc__body h1 { font-family: var(--display); font-size: clamp(32px, 4vw, 48px); font-stretch: 120%; letter-spacing: -.02em; }
.doc__intro { margin-top: 12px; font-size: 19px; color: var(--muted); }
.doc__date { margin-top: 8px; font-size: 14px; color: var(--muted); }
.doc__body h2 { font-family: var(--display); margin: 44px 0 12px; padding-top: 18px; border-top: 2px solid var(--ink); font-size: 22px; font-stretch: 110%; letter-spacing: -.01em; }
.doc__body h3 { margin: 24px 0 8px; font-size: 17px; }
.doc__body p, .doc__body li { color: #2E3B37; line-height: 1.65; }
.doc__body p + p { margin-top: 12px; }
.doc__body ul, .doc__body ol { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.doc-steps { gap: 14px !important; }
.doc-form { margin-top: 20px; padding: 20px 24px; border: 2px dashed var(--line); background: var(--paper-2); }
.doc-form h3 { margin-top: 0; }
.doc-form p { margin-top: 8px !important; font-size: 15px; }
.doc-data { display: grid; margin: 0; border-top: 1px solid var(--line); }
.doc-data div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.doc-data dt { color: var(--muted); }
.doc-data dd { margin: 0; }
.doc__body .table { margin: 12px 0; font-size: 14px; }
.doc__body .table td, .doc__body .table th { vertical-align: top; text-align: left !important; padding-right: 14px !important; }

/* Footer columns */
.footer__cols { display: grid; grid-template-columns: repeat(3, auto); gap: 32px 64px; justify-content: end; }
.footer__cols nav { display: grid; align-content: start; gap: 8px; }
.footer__cols h4 { color: var(--paper); font-size: 15px; font-weight: 650; margin-bottom: 4px; }
.footer__cols a { text-decoration: none; }
.footer__cols a:hover { color: var(--paper); text-decoration: underline; }
.footer__inner { align-items: start; }

/* Responsive */
@media (max-width: 1040px) {
  .nav { display: none; }
  .search { max-width: none; }
  .promises { grid-template-columns: repeat(2, auto); justify-content: start; }
  .route { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd, .co { gap: 36px; }
  .doc { grid-template-columns: 180px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 760px) {
  .header__inner { flex-wrap: wrap; height: auto; gap: 12px; padding: 12px 0; }
  .search { order: 3; flex-basis: 100%; }
  .cart-btn { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; padding: 44px 0 32px; gap: 8px; }
  .hero p { font-size: 17px; }
  .tag { width: min(320px, 92%); padding-top: 70px; }
  .tag__string { height: 80px; }
  .promises { display: flex; flex-direction: column; gap: 12px; padding: 20px 0 24px; font-size: 15px; }
  .catalog { padding-top: 52px; }
  .catalog__head { grid-template-columns: 1fr; gap: 6px; }
  .sort { margin-top: 8px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .card__title { font-size: 15px; }
  .price strong { font-size: 18px; }
  .route { grid-template-columns: 1fr; }
  .route li { padding: 0 0 0 52px; min-height: 34px; }
  .route li::after { top: 0; bottom: -40px; left: 16px; right: auto; width: 2px; height: auto; }
  .route li:last-child::after { display: none; }
  .grades { grid-template-columns: 1fr; }
  .help { grid-template-columns: 1fr; gap: 32px; padding: 64px 0; }
  .pd, .co { grid-template-columns: 1fr; }
  .pd__gallery, .co-sum { position: static; }
  .pd__gallery { grid-template-columns: 1fr; }
  .pd__main { grid-column: 1; }
  .pd__thumbs { grid-column: 1; grid-row: 2; grid-template-columns: repeat(3, 64px); }
  .co-sum { order: -1; }
  .done__facts { grid-template-columns: 1fr; }
  .toast { flex-wrap: wrap; }
  .card__sizes { flex-basis: 100%; }
  .card__sizes::before { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; justify-content: start; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .doc__nav { position: static; display: none; }
  .co-item { grid-template-columns: 1fr; gap: 0; padding-bottom: 14px; }
  .doc-data div { grid-template-columns: 1fr; gap: 2px; }
  .doc__body .table { display: block; overflow-x: auto; }
  .row2 { grid-template-columns: 1fr; }
  .track__steps { grid-template-columns: 1fr; gap: 0; }
  .track__steps li { padding: 0 0 14px 30px; text-align: left; min-height: 30px; }
  .track__steps li::before { top: 0; bottom: 0; left: 6px; right: auto; width: 4px; height: auto; }
  .track__steps li:first-child::before { left: 6px; top: 8px; }
  .track__steps li:last-child::before { right: auto; bottom: auto; height: 8px; }
  .track__steps li::after { top: 0; left: 0; margin-left: 0; }
  .track__card { padding: 20px; }
  .track__carrier { grid-template-columns: 1fr; }
  .track__form input { max-width: none; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tag { transform: rotate(-4deg); }
}


/* =====================================================================
   NATIVO Y FLUIDO
   ===================================================================== */
button, a, label, select, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn { min-height: 50px; border-radius: 10px; transition: background-color .15s, border-color .15s, transform .12s var(--ease); }
.btn:active:not(:disabled), .cart-btn:active, .chip:active, .size:active { transform: scale(.97); }
.search, .sort select, .chip, .size, .field input, .track__form input, .opt, .cart-btn { border-radius: 10px; }
.search input, .sort select, .field input { font-size: 16px; }
.chip { min-height: 44px; }
.size { min-height: 48px; min-width: 56px; }
.card__media, .pd__main, .pd__thumb, .line__img { border-radius: 12px; }
.qty button { width: 40px; height: 40px; }
.icon-btn { width: 44px; height: 44px; }
.overlay { animation: fade .2s var(--ease); }
.drawer { animation: slide .3s var(--ease); will-change: transform; }
.toast { border-radius: 12px; bottom: calc(24px + env(safe-area-inset-bottom)); }

/* Bordes de pantalla en iPhone/iPad y al usarla como app instalada */
.header { padding-top: env(safe-area-inset-top); }
.drawer__head { padding-top: calc(18px + env(safe-area-inset-top)); }
.drawer__foot { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.footer { padding-bottom: calc(44px + env(safe-area-inset-bottom)); }

/* En el móvil, «Pagar con wallapop» se queda a mano mientras lees la ficha */
@media (max-width: 760px) {
  #view-product:not([hidden]) { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  #pdAction { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; display: grid; gap: 6px; padding: 10px; border-radius: 18px; background: rgba(237, 239, 234, .92); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .45); }
  #pdAction .pd__stock { display: none; }
  #pdAction .pd__alt { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
  #pdAction .pd__alt .btn { padding: 0 10px; font-size: 15px; }
  #pdAction .hide-sm { display: none; }
  #pdAction:empty { display: none; }
  .drawer { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .drawer, .overlay { animation: none !important; } }

/* Foto del pedido en el seguimiento */
.track__photo { margin: 0; display: grid; gap: 8px; }
.track__photo img { width: min(320px, 100%); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.track__photo figcaption { font-size: 14px; color: var(--muted); }
