:root {
  --ink: #0f0f0f;
  --ink-2: #4a4640;
  --muted: #7a746a;
  --gold: #a8833f;          /* dorado del logo, oscurecido para leerse sobre fondo claro */
  --gold-2: #d9b56a;        /* dorado brillante (sobre negro) */
  --gold-grad: linear-gradient(100deg, #b48a3e 0%, #e8c982 45%, #c49a4e 70%, #e3c27a 100%);
  --gold-soft: #f4ead2;
  --bg: #faf8f3;
  --card: #ffffff;
  --line: #e7e0d0;
  --ok: #2f7a4a;
  --ok-soft: #e4f2e8;
  --warn: #9a6400;
  --warn-soft: #fff1d6;
  --bad: #a3312b;
  --bad-soft: #fbe6e4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 4px 14px rgba(20, 20, 20, .05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; font-family: "Montserrat", "Inter", system-ui, sans-serif; font-weight: 600; letter-spacing: .01em; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
p { margin: 0 0 .6em; }
.muted { color: var(--muted); } .small { font-size: .86rem; }
.gold { color: var(--gold); }

/* Marca */
.brandbar { background: #000; color: #fff; padding: 10px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #2a2418; }
/* Monograma DD recortado del logo */
.mono { width: 46px; height: 46px; overflow: hidden; position: relative; flex: none; border-radius: 6px; }
.mono img { position: absolute; width: 104px; max-width: none; left: -31px; top: -24px; }
.wordmark { font-family: "Montserrat", sans-serif; font-weight: 400; letter-spacing: .42em; font-size: 1.15rem;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brandbar .sub { color: #cfc6b2; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-family: "Montserrat", sans-serif; }
.brand-hero { background: #000; text-align: center; padding: 6px 16px 18px; }
.brand-hero img { width: 150px; margin: 0 auto; }
.brand-hero p { color: #cfc6b2; font-family: "Montserrat", sans-serif; letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; margin: 2px 0 0; }
.wrap { max-width: 980px; margin: 0 auto; padding: 16px; }
.narrow { max-width: 640px; }

/* Botones */
.btn { appearance: none; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); border-radius: 12px;
  padding: 12px 16px; font: inherit; font-weight: 600; cursor: pointer; min-height: 48px; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover { background: #f3efe6; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #2a2a2a; }
.btn.gold { background: var(--gold-grad); border-color: #b48a3e; color: #0f0f0f; }
.btn.gold:hover { filter: brightness(1.05); }
.btn.primary, .btn.gold, .btn.wa { font-family: "Montserrat", sans-serif; letter-spacing: .03em; }
.btn.wa { background: #1f8a4c; border-color: #1f8a4c; color: #fff; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.ghost { border-color: var(--line); }
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: 7px 12px; font-size: .9rem; border-radius: 10px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.grow { flex: 1 1 auto; }

/* Tarjetas y formularios */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stack > * + * { margin-top: 12px; }
label.f { display: block; font-weight: 600; font-size: .95rem; }
label.f > input, label.f > select, label.f > textarea { margin-top: 6px; }
input, select, textarea { width: 100%; font: inherit; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-height: 48px; }
textarea { min-height: 80px; resize: vertical; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.map { display: block; width: 100%; height: 210px; border: 0; border-radius: 12px; background: #eee; }
.geo-ok { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: .9rem; }
.err { color: var(--bad); font-size: .88rem; margin-top: 4px; }
.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }

.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #eee9dd; color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.gold { background: var(--gold-soft); color: #7a5c1f; }
.badge.dark { background: var(--ink); color: #fff; }

.notice { border-radius: 12px; padding: 12px 14px; background: var(--gold-soft); color: #5f4716; border: 1px solid #ead9ad; }
.notice.info { background: #eef3f7; color: #2d4659; border-color: #d6e2ec; }
.notice.bad { background: var(--bad-soft); color: var(--bad); border-color: #f1c9c4; }
.notice.ok { background: var(--ok-soft); color: var(--ok); border-color: #c9e4d1; }

/* Pasos */
.steps { display: flex; gap: 6px; margin: 4px 0 16px; }
.steps .s { flex: 1; text-align: center; font-size: .82rem; color: var(--muted); padding-top: 8px; border-top: 4px solid var(--line); }
.steps .s.on { color: var(--ink); border-image: var(--gold-grad) 1; font-weight: 700; }
.steps .s.done { border-color: var(--ink); }

/* Catálogo */
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 12px; font: inherit; font-weight: 700; min-height: 48px; cursor: pointer; }
.seg button.on { background: var(--ink); color: #fff; }
.colors { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .colors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .colors { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.color-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 8px; cursor: pointer; text-align: left; font: inherit; color: inherit; position: relative; }
.color-card.sel { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.color-card .ph { aspect-ratio: 3 / 4; border-radius: 10px; background: #f1ede4; overflow: hidden; display: grid; place-items: center; }
.color-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.color-card .ph svg { width: 86%; }
.color-card .nm { font-weight: 700; margin-top: 6px; }
.color-card .tag { position: absolute; top: 12px; left: 12px; }
.illus-note { position: absolute; bottom: 44px; right: 12px; font-size: .68rem; color: var(--muted); background: rgba(255,255,255,.8); padding: 1px 6px; border-radius: 6px; }
.color-card.out { opacity: .55; }
div.color-card { cursor: default; display: flex; flex-direction: column; }
/* Galería: deslizar fotos del mismo color */
.color-card .ph.gal { display: block; position: relative; }
.gal-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; scroll-snap-align: start; scroll-snap-stop: always; user-select: none; -webkit-user-drag: none; }
.gal-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.gal-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); box-shadow: 0 0 0 1px rgba(0,0,0,.15); transition: width .2s, background .2s; }
.gal-dots i.on { width: 16px; border-radius: 3px; background: #fff; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #111; font-size: 1.3rem; line-height: 1; cursor: pointer; display: none; }
.gal-nav.prev { left: 6px; } .gal-nav.next { right: 6px; }
@media (hover: hover) and (pointer: fine) { .gal:hover .gal-nav { display: grid; place-items: center; } }
.sizes.quick { margin-top: 10px; gap: 6px; }
.sz-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.sz-cell .size-btn { width: 100%; min-height: 46px; position: relative; padding: 0; }
.sz-cell small { font-size: .66rem; color: var(--muted); text-align: center; line-height: 1.15; }
.sz-cell .bad-t { color: #a12a2a; }
.sz-cell .warn-t { color: #9a6a12; font-weight: 700; }
.size-btn .cnt { position: absolute; top: -7px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold, #a9822f); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }

.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.size-btn { min-height: 54px; border-radius: 12px; border: 1.5px solid var(--ink); background: #fff; font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; }
.size-btn.on { background: var(--ink); color: #fff; }
.size-btn small { display: block; font-weight: 500; font-size: .72rem; opacity: .75; margin-top: 2px; }
.link-btn { border: 0; background: none; padding: 4px 0; font: inherit; font-weight: 700; font-size: .9rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* Guía de tallas */
.guide-body { overflow-y: auto; padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.guide-img { width: 100%; height: auto; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.guide-t { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: .9rem; text-align: center; }
.guide-t th, .guide-t td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.guide-t thead th { font-size: .74rem; font-weight: 700; color: var(--muted); }
.guide-t tbody th { font-size: 1rem; }
.guide-t tr.on td, .guide-t tr.on th { background: var(--ink); color: #fff; }
.size-btn:disabled { border-color: var(--line); color: #b9b2a3; background: #f6f3ec; cursor: not-allowed; font-weight: 600; font-size: .85rem; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; }
.stepper button { width: 48px; height: 48px; border: 0; background: #fff; font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.stepper button:disabled { color: #c9c2b2; cursor: not-allowed; }
.stepper span { min-width: 44px; text-align: center; font-weight: 800; }

.cart-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .sw { width: 42px; height: 42px; border-radius: 8px; overflow: hidden; background: #f1ede4; flex: none; display: grid; place-items: center; }
.cart-line .sw img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .sw svg { width: 90%; }

.sticky-bar { position: sticky; bottom: 0; background: rgba(250, 248, 243, .96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 12px 16px; margin: 16px -16px -16px; }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.sum .tot { font-weight: 800; font-size: 1.15rem; border-top: 1.5px solid var(--ink); padding-top: 8px; margin-top: 4px; }
.choice { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.choice button { min-height: 76px; border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; font: inherit; font-weight: 800; cursor: pointer; padding: 10px; }
.choice button small { display: block; font-weight: 500; color: var(--muted); margin-top: 2px; }
.choice button.on { background: var(--ink); color: #fff; }
.choice button.on small { color: #d8d2c4; }
pre.msg { white-space: pre-wrap; background: #fff; border: 1px dashed var(--gold); border-radius: 12px; padding: 12px; font: inherit; font-size: .95rem; margin: 0; }
details.privacy summary { cursor: pointer; font-weight: 600; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.chk input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Selector con buscador (distrito / provincia) */
.f > span:first-child { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.pick { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: var(--muted); text-align: left; cursor: pointer; }
.pick.set { color: var(--ink); font-weight: 700; border-color: var(--ink); }
.picker { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .5); display: flex; justify-content: center; }
.picker-box { background: var(--bg); width: 100%; max-width: 560px; height: 100%; height: 100dvh; display: flex; flex-direction: column; }
.picker-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #000; color: #fff; }
.picker-head .grow { font-family: "Montserrat", sans-serif; letter-spacing: .04em; }
.picker-search { padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.picker-search input { font-size: 16px; }   /* 16px evita el zoom automático en iPhone */
.picker-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: 24px; }
.pick-item { display: block; width: 100%; text-align: left; min-height: 58px; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--line);
  background: #fff; font: inherit; color: var(--ink); cursor: pointer; }
.pick-item b { display: block; font-size: 1.02rem; }
.pick-item small { color: var(--muted); }
.pick-item.on { background: var(--gold-soft); box-shadow: inset 4px 0 0 var(--gold); }
.pick-item.manual { background: #fffaf0; border-bottom: 1px solid #ead9ad; }
.pick-item:active { background: #f3efe6; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .2s; max-width: calc(100% - 32px); z-index: 99; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.bad { background: var(--bad); } .toast.ok { background: var(--ok); }
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.spinner.dark { border-color: rgba(0,0,0,.15); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.center { display: grid; place-items: center; min-height: 30vh; }
footer.foot { text-align: center; color: var(--muted); font-size: .82rem; padding: 24px 16px 40px; }
