:root {
  --bg: #fbf8f5;
  --surface: #ffffff;
  --surface-2: #f4efe9;
  --text: #1d1a17;
  --muted: #6b635b;
  --border: #e6ded5;
  --brand: #c8102e;
  --brand-ink: #ffffff;
  --brand-soft: #fde8ea;
  --accent: #1f3a5f;
  --ok: #1c7c54;
  --ok-soft: #e3f4ec;
  --warn: #9a5b00;
  --warn-soft: #fff3dc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", sans-serif;
}
/* Siempre claro: blanco y rojo, los colores de Japón y de Perú (2026-11-13) */
:root { color-scheme: light; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--brand); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden { display: none !important; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-word { font-size: 1.45rem; font-weight: 800; letter-spacing: -.065em; line-height: 1; }
.logo-word span { margin-left: 4px; font-size: .8rem; font-weight: 600; letter-spacing: -.02em; color: var(--brand); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; font-weight: 500; }
.nav a:hover { background: var(--surface-2); }
.nav a.nav-link[aria-current="page"] { color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.lang { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; color: var(--muted); padding: 5px 10px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
@media (max-width: 720px) {
  .nav .nav-link { display: none; }
}

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .05s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 7px 12px; font-size: .875rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 1px; border-color: var(--brand); }
textarea { min-height: 90px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-3.keep { grid-template-columns: repeat(3, 1fr); } }
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.seg input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.seg label { margin: 0; text-align: center; padding: 9px 8px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg input:checked + label { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); }
.seg input:checked + label::before { content: '✓ '; }
.seg label:hover { color: var(--text); }
.seg input:focus-visible + label { outline: 2px solid var(--brand); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
.alert { padding: 12px 14px; border-radius: 10px; font-size: .9rem; margin: 12px 0; }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.err { background: var(--brand-soft); color: var(--brand); }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.hero-eyebrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: .85rem; color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.hero-points { display: flex; gap: 18px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.hero-points li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 32px; } }

/* Calculator */
.calc h3 { display: flex; justify-content: space-between; align-items: center; }
.breakdown { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px dashed var(--border); }
.breakdown li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: .95rem; }
.breakdown li span:last-child { font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.total strong { font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.total .pen { color: var(--muted); font-weight: 600; }

/* Sections */
section.block { padding: 56px 0; }
section.alt { background: var(--surface-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps > .step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.steps > .step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: 12px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .services { grid-template-columns: 1fr; } }
.service h3 { font-size: 1.3rem; }
.service ul { padding-left: 1.1em; margin: 0; color: var(--muted); }
.stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stores span { background: var(--surface); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }

/* Order form */
.page { padding: 32px 0 64px; }
.page-head { margin-bottom: 20px; }
.form-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.form-layout aside { position: sticky; top: 76px; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } .form-layout aside { position: static; } }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
.item-row { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: var(--surface-2); position: relative; }
.item-row .remove { position: absolute; top: 8px; right: 8px; }
.success { text-align: center; padding: 40px 20px; }
.success .code { font-size: 2rem; font-weight: 800; letter-spacing: .04em; color: var(--brand); margin: 8px 0 16px; }

/* Tracking */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 26px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 18px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--ok); }
.timeline li.current::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline li.todo { color: var(--muted); }
.pay-box { background: var(--surface-2); border-radius: 12px; padding: 14px; margin-top: 12px; font-size: .95rem; }
.pay-box div { margin-bottom: 6px; }

/* Admin */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 60px); }
.admin-side { border-right: 1px solid var(--border); padding: 16px 10px; background: var(--surface); }
.admin-side button { display: flex; justify-content: space-between; width: 100%; text-align: left; border: 0; background: transparent; color: var(--text); font: inherit; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.admin-side button:hover { background: var(--surface-2); }
.admin-side button.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.admin-side hr { border: 0; border-top: 1px solid var(--border); margin: 10px 0; }
.admin-main { padding: 20px; min-width: 0; }
.side-n { min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; text-align: center; }
.detail-one { max-width: 860px; }
.next-step { margin-bottom: 16px; border: 2px solid var(--brand); }
.next-step-wrap { margin-bottom: 16px; }
.next-step-wrap > .card { border: 2px solid var(--brand); }
.next-label { color: var(--brand); font-size: .8rem; font-weight: 700; margin-bottom: 4px; }
.next-step-wrap > .next-label { margin-left: 4px; }
.next-step h3 { margin: 0 0 8px; }
.next-list { margin: 0 0 10px; padding-left: 20px; }
details.more { margin-top: 8px; }
details.more > summary { cursor: pointer; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted, inherit); margin-bottom: 12px; }
@media (max-width: 800px) {
  .admin-shell { grid-template-columns: 1fr; align-content: start; }
  .admin-side { position: sticky; top: 60px; z-index: 5; align-items: center; display: flex; overflow-x: auto; gap: 4px; border-right: 0; border-bottom: 1px solid var(--border); padding: 8px; }
  .admin-side button { white-space: nowrap; width: auto; gap: 8px; }
  .admin-side hr { display: none; }
  .admin-side .side-hint { display: none; }
}
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar input { max-width: 320px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1000px) { .detail-grid { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 4px 12px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.quote-line { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 1fr) 100px; gap: 6px; margin-bottom: 8px; }
.quote-line select, .quote-line input { padding: 8px 10px; }
.login { max-width: 380px; margin: 80px auto; }
/* Tarjeta de producto (desde un enlace) */
.pcard-slot:empty { display: none; }
.pcard-slot { margin: 8px 0 14px; }
.pcard { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.pcard.ok { border-color: var(--ok); }
.pcard-img { width: 76px; height: 76px; border-radius: 9px; object-fit: contain; background: #fff; border: 1px solid var(--border); }
.pcard-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; }
.pcard-store { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); }
.pcard-name { font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-orig { color: var(--muted); font-size: .8rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-q { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-weight: 600; }
.pcard-q span { margin-right: auto; }
.pcard-ok { color: var(--ok); font-weight: 700; margin-top: 4px; }
.sk { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite linear; margin-bottom: 6px; }
.pcard-img.sk { height: 76px; margin: 0; }
@keyframes sk { to { background-position: -200% 0; } }
.item-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--border); flex: none; }
.proof-img { max-width: 100%; max-height: 420px; border-radius: 10px; border: 1px solid var(--border); display: block; }

/* App (PWA) */
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.site-header { padding-top: env(safe-area-inset-top); }
.tabbar { display: none; }
@media (max-width: 720px) {
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 7px; font-size: .72rem; font-weight: 600; color: var(--muted); text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--brand); }
  .tabbar .ti { display: grid; place-items: center; height: 24px; }
  body.has-tabbar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.has-tabbar .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .nav > .btn-primary { display: none; }
}
/* Total del pedido fijo abajo (encima de la barra de pestañas en el celular) */
.total-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25; width: min(560px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow); font: inherit; cursor: pointer; text-align: left; }
.total-bar strong { font-size: 1.1rem; }
.total-bar > span:last-child { color: var(--brand); font-weight: 600; white-space: nowrap; }
body.has-total-bar { padding-bottom: 84px; }
#estimate-box { scroll-margin-top: 84px; }
@media (max-width: 720px) {
  body.has-tabbar .total-bar { bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.has-tabbar.has-total-bar { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
}
.ios-hint { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 30; display: flex; gap: 10px; align-items: center;
  background: var(--text); color: var(--bg); padding: 12px 14px; border-radius: 12px; font-size: .9rem; box-shadow: var(--shadow); }
.ios-hint button { margin-left: auto; border: 0; background: transparent; color: inherit; font-size: 1rem; cursor: pointer; }
.my-orders { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.my-orders .chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 6px 4px 14px; font-weight: 700; }
.my-orders .chip button { border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; padding: 4px; }
.my-orders .chip .x { color: var(--muted); font-weight: 400; }

/* Admin: lista como tarjetas en el teléfono */
@media (max-width: 800px) {
  .admin-main { padding: 14px; }
  .table-wrap { background: transparent; border: 0; overflow: visible; }
  .table-wrap thead { display: none; }
  .table-wrap table, .table-wrap tbody { display: block; }
  .table-wrap tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
  .table-wrap td { border: 0; padding: 0; white-space: normal; }
  .table-wrap td:nth-child(2), .table-wrap td:nth-child(4), .table-wrap td:nth-child(5), .table-wrap td:nth-child(6) { display: none; }
  .table-wrap td:nth-child(1) { grid-column: 1; }
  .table-wrap td:nth-child(8) { grid-column: 2; grid-row: 1; text-align: right; }
  .table-wrap td:nth-child(3) { grid-column: 1; }
  .table-wrap td:nth-child(7) { grid-column: 2; grid-row: 2; text-align: right; font-weight: 700; }
  .toolbar input { max-width: none; flex: 1 1 100%; }
}

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-weight: 600; z-index: 50; }

/* Pago en 2 partes, simulador de envío y lista de verificación */
.pay-stage { margin-top: 14px; }
.pay-stage + .pay-stage { padding-top: 10px; }
.pay-stage-head { display: flex; justify-content: space-between; gap: 10px; }
.pay-stage .breakdown { margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .9rem; cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.ban-group { margin-top: 14px; }
.ban-group ul { margin: 6px 0 0; padding-left: 20px; }
.checks { display: grid; gap: 10px; margin-top: 12px; }
.check-q { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .95rem; }
.check-q .seg { flex: none; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.agree input { margin-top: 3px; flex: none; width: auto; }
.item-flags { display: grid; gap: 6px; margin: 8px 0; }
.shot-thumb { max-width: 120px; max-height: 120px; border-radius: 8px; border: 1px solid var(--border); display: block; margin-top: 6px; }
.mine-cards { display: grid; gap: 10px; margin-bottom: 20px; }
.mine-card { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; font: inherit; color: var(--text); cursor: pointer; padding: 12px; }
.mine-card .item-thumb { width: 56px; height: 56px; flex: none; }
.mine-body { display: grid; gap: 3px; min-width: 0; }
.mine-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* × para borrar el texto de un campo */
.clearable { position: relative; display: block; }
.clearable > input, .clearable > textarea { padding-right: 38px; }
.clear-x { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-size: 1.25rem; line-height: 1; cursor: pointer; display: none; opacity: .6; }
.clearable > textarea + .clear-x { top: 8px; transform: none; }
.clear-x:hover { opacity: 1; background: var(--surface-2); }
.clearable.has-text .clear-x { display: block; }
/* Captura con × en la esquina para quitarla */
.shot-wrap { position: relative; display: inline-block; margin-top: 6px; }
.shot-wrap .shot-thumb { margin-top: 0; }
.shot-del { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 999px; border: 2px solid var(--surface);
  background: var(--text); color: var(--surface); font-size: 1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }

/* Pasos numerados (botón Tráelo) */
.steps-list { margin: 8px 0 14px; padding-left: 22px; display: grid; gap: 8px; }
/* Lista de sugerencias debajo del campo (departamento, provincia, distrito) */
.suggest { position: relative; display: block; }
.suggest-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  max-height: 240px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.suggest-list li { padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.suggest-list li:hover, .suggest-list li.active { background: var(--surface-2); }
/* Botón que ya hizo su trabajo (p. ej. «Copiado»): verde con un pequeño salto */
.btn.btn-done { background: var(--ok); color: var(--surface); }
@media (prefers-reduced-motion: no-preference) {
  .btn.btn-done { animation: btn-pop .35s ease-out; }
  @keyframes btn-pop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
}
/* Lista de compra (panel) */
.buy-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--border); }
.buy-item:first-of-type { border-top: 0; }
.buy-item img, .buy-noimg { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; }
.buy-item.done { opacity: .5; }
.buy-reasons { margin: 6px 0 0; padding-left: 18px; font-size: .85rem; color: var(--warn); }
.buy-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.buy-done { display: flex; align-items: center; gap: 6px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.buy-done input { width: auto; }
@media (max-width: 640px) { .buy-item { grid-template-columns: 48px 1fr; } .buy-item img, .buy-noimg { width: 48px; height: 48px; } .buy-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; } }
/* Botón ↻ (recargar): gira mientras carga; con punto si hay una versión nueva */
.reload-btn { position: relative; font-size: 1.05rem; line-height: 1; min-width: 38px; }
.reload-btn.spin { pointer-events: none; opacity: .7; }
@media (prefers-reduced-motion: no-preference) { .reload-btn.spin { animation: reload-spin .8s linear infinite; } @keyframes reload-spin { to { transform: rotate(360deg); } } }
.reload-btn.has-update::after { content: ''; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 999px; background: var(--brand); }
/* Tallas y colores de la tienda para elegir con un toque (los agotados, tachados) */
.opt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.opt-chips:empty { display: none; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .875rem; cursor: pointer; }
.chip:hover { background: var(--surface-2); }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 700; }
.chip.on::before { content: '✓ '; }
.chip.soldout { text-decoration: line-through; color: var(--muted); opacity: .6; cursor: not-allowed; }
.linkish { background: none; border: 0; padding: 0; margin: 0 0 12px; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; }
/* Al tocar «Cotizar» en el inicio: la calculadora se resalta un momento */
@media (prefers-reduced-motion: no-preference) {
  .flash { animation: flash-ring 1.4s ease-out; }
  @keyframes flash-ring { 0%, 30% { box-shadow: 0 0 0 4px var(--brand); } 100% { box-shadow: 0 0 0 0 transparent; } }
}
@media (prefers-reduced-motion: reduce) { .flash { outline: 3px solid var(--brand); } }
#calculadora { scroll-margin-top: 84px; }
/* Formas de envío para elegir, con su precio */
.ship-pick { display: grid; gap: 8px; }
.ship-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: var(--surface); }
.ship-opt input { width: auto; margin-top: 3px; accent-color: var(--brand); }
.ship-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.ship-opt-body { display: grid; gap: 2px; flex: 1; }
.ship-opt-top { display: flex; align-items: center; gap: 6px; }
.ship-opt-price { margin-left: auto; font-weight: 700; white-space: nowrap; }
/* Páginas legales */
.legal h2 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal p, .legal li { line-height: 1.7; }
.legal-kv { grid-template-columns: minmax(120px, 30%) 1fr; }
.legal-kv dt { font-weight: 700; }
@media (max-width: 640px) { .legal-kv { grid-template-columns: 1fr; } .legal-kv dd { margin-bottom: 10px; } }
/* Recuadro «junta productos»: envío por producto con 1, 2 y 3 productos */
.bulk { margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.bulk-grid { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-top: 8px; }
.bulk-grid .here { font-weight: 700; }
/* Problema en un dato del cliente, debajo del campo */
.field-err { color: var(--brand); margin-top: 4px; min-height: 0; }
.field-err:empty { display: none; }
input[aria-invalid="true"] { border-color: var(--brand); }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; text-align: left; }
/* Enlaces a la tienda en la lista de pedidos */
.item-links { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.item-link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
/* Seguimiento: qué pasa ahora y de quién es el turno */
.step-now { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); font-size: 14px; }
.step-now.you { background: var(--brand-soft); color: var(--brand); }
.step-who { font-weight: 700; }
/* Saltos del menú (/#como, /#calculadora): que el título no quede tapado por la barra de arriba */
section[id], #calculadora { scroll-margin-top: 80px; }

/* Tiendas (catálogo de enlaces) */
.shops-hero { padding: 44px 0 8px; }
.shops-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); max-width: 16em; }
.shops-hero .lead { font-size: 1.08rem; max-width: 36em; }
.shops-steps { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shops-steps li { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: .92rem; font-weight: 600; }
.shops-steps b { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: .8rem; }
.paste-box { display: flex; gap: 8px; max-width: 620px; }
.paste-box input { flex: 1; min-width: 0; }
@media (max-width: 720px) {
  .shops-hero { padding-top: 24px; }
  .shops-steps { grid-template-columns: 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 0; }
  .shops-steps li { border: 0; background: none; padding: 8px 12px; }
  .paste-box { flex-direction: column; }
}
.shops { padding-top: 24px; }
.shop-cats { display: flex; flex-wrap: nowrap; margin: 0 -16px; padding-left: 16px !important; padding-right: 16px !important; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; position: sticky; top: 60px; z-index: 5; background: var(--bg); }
.shop-cats::-webkit-scrollbar { display: none; }
.shop-cats button { flex: none; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.shop-cats button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.shop { --c: var(--accent); --c-soft: color-mix(in srgb, var(--c) 14%, var(--surface)); display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.shop:hover { border-color: var(--c); box-shadow: var(--shadow); transform: translateY(-2px); }
.shop[data-cat="fashion"] { --c: #2f6fd6; }
.shop[data-cat="anime"] { --c: #d6336c; }
.shop[data-cat="all"] { --c: #d9822b; }
.shop[data-cat="used"] { --c: #1c8a5a; }
.shop[data-cat="home"] { --c: #7b5cd6; }
.shop-mark { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--c-soft); color: var(--c); display: grid; place-items: center; font-weight: 800; font-size: 1rem; letter-spacing: -.02em; }
.shop-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shop-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.shop-top strong { font-size: 1.02rem; }
.shop-tag { font-size: .72rem; font-weight: 700; color: var(--c); background: var(--c-soft); padding: 2px 8px; border-radius: 999px; }
.shop-desc { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.shop-open { font-size: .82rem; font-weight: 700; color: var(--c); margin-top: 2px; }
.shops-note { margin-top: 20px; max-width: 46em; }
.home-paste .paste-box { flex-direction: column; max-width: none; }
.home-paste .shop-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.home-paste .shop-links a { background: var(--surface-2); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--text); text-decoration: none; }
a.stores span, .stores a { text-decoration: none; }
.stores a { background: var(--surface); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--text); }
#dest-note:not(.warn) { background: var(--surface-2); color: var(--muted); }
.shot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dims-box summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--muted); }
.shot-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.shot-row .shot-wrap { margin: 8px 0 0; }
.shot-extra { display: contents; }
.label-box { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 10px; background: var(--surface-2); }
.label-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.label-row { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 8px; align-items: center; padding: 4px 0; border-top: 1px solid var(--border); }
.label-row code { font-size: .88rem; word-break: break-word; white-space: normal; }
.label-row .linkish { margin: 0; }

/* Envío: llegada al almacén, pedido de envío y avisos de impuestos */
.store-order { width: 150px; font-size: 13px; padding: 6px 8px; }
.arrive-list { list-style: none; padding: 0; margin: 8px 0 12px; }
.arrive-list li { padding: 6px 0; border-bottom: 1px solid var(--line, #eee); }
.arrive-list label { display: flex; gap: 10px; align-items: flex-start; justify-content: flex-start; text-align: left; cursor: pointer; font-weight: 400; }
.arrive-list input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; }
.arrive-list .muted { display: block; }
.ship-req { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: 13px; line-height: 1.45; margin: 6px 0 8px; }
.ship-warn { background: #fff7e6; border: 1px solid #f0c36d; border-radius: 8px; padding: 8px 12px; margin: 8px 0 12px; color: #6b4a00; }
.ship-warn p { margin: 4px 0; }

/* Ayuda de tallas en el pedido */
.size-help { margin: 0 0 12px; }
.size-help summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.size-help p { margin: 8px 0; }
.size-table { border-collapse: collapse; margin: 6px 0; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { border: 1px solid var(--border); padding: 4px 10px; text-align: center; }
.size-table th { background: var(--bg); }
