/* Shoes Assist — estilos compartidos. Colores tomados del logo. */
:root {
  --red: #c8102e;
  --red-dark: #9e0b23;
  --orange: #f57c00;
  --ink: #141414;
  --muted: #5d6066;
  --line: #e3e4e8;
  --bg: #f6f6f8;
  --card: #ffffff;
  --ok: #1b7f3b;
  --ok-bg: #e8f5ec;
  --warn: #8a5300;
  --warn-bg: #fff4e0;
  --err: #b00020;
  --err-bg: #fdecee;
  --info-bg: #eef3ff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .05);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
a { color: var(--red); }
small, .muted { color: var(--muted); }
.hidden { display: none !important; }

.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 120px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.brand img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: #fff; }
.brand .name { font-weight: 800; letter-spacing: .02em; }
.brand .store { color: var(--muted); font-size: .9rem; }

.hero { text-align: center; padding: 26px 18px; }
.hero img.logo { width: 200px; height: 200px; object-fit: contain; }
.hero .price { font-size: 1.35rem; font-weight: 800; color: var(--red); margin: .2em 0 1em; }

.btn {
  appearance: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 0; border-radius: 12px;
  background: var(--red); color: #fff;
  font: inherit; font-weight: 700; font-size: 1.05rem;
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--red-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.btn.secondary:hover { border-color: var(--muted); }
.btn.small { min-height: 40px; width: auto; padding: 8px 14px; font-size: .95rem; }
.btn.link { background: none; color: var(--red); min-height: 0; padding: 6px 0; width: auto; font-weight: 600; text-decoration: underline; }
.stack > * + * { margin-top: 10px; }

label { display: block; font-weight: 600; margin: 12px 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=password], input[type=datetime-local], select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.row > .narrow { flex: 0 0 120px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; font-weight: 400; }
.check input { width: 26px; height: 26px; flex: 0 0 26px; margin-top: 1px; accent-color: var(--red); }

.notice { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: .95rem; }
.notice.info { background: var(--info-bg); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.err { background: var(--err-bg); color: var(--err); }
.lab-banner {
  background: repeating-linear-gradient(45deg, #ffe08a, #ffe08a 12px, #ffd25c 12px, #ffd25c 24px);
  color: #4a3500; text-align: center; font-weight: 700; font-size: .85rem; padding: 6px 10px;
}

.steps { display: flex; gap: 6px; margin: 4px 0 16px; }
.steps span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps span.on { background: var(--red); }

.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

.pair {
  display: flex; gap: 12px; align-items: center;
  border: 2px solid var(--line); border-radius: 12px;
  padding: 14px; margin-bottom: 10px; background: #fff; cursor: pointer;
}
.pair.selected { border-color: var(--red); background: #fff7f7; }
.pair.disabled { opacity: .6; cursor: default; background: #fafafa; }
.pair input { width: 28px; height: 28px; flex: 0 0 28px; accent-color: var(--red); }
.pair .info { flex: 1; min-width: 0; }
.pair .desc { font-weight: 700; overflow-wrap: anywhere; }
.pair .meta { color: var(--muted); font-size: .9rem; }
.pair .tag { font-size: .8rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--line); color: var(--muted); white-space: nowrap; }
.pair .tag.ok { background: var(--ok-bg); color: var(--ok); }
.pair .tag.warn { background: var(--warn-bg); color: var(--warn); }

.totalbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.totalbar .inner { max-width: 560px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.totalbar .sum { flex: 1; }
.totalbar .sum strong { font-size: 1.2rem; display: block; }
.totalbar .btn { width: auto; flex: 0 0 auto; min-width: 150px; }

.terms {
  max-height: 260px; overflow: auto; white-space: pre-wrap;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: .9rem; background: #fcfcfd;
}

.method { display: flex; gap: 14px; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 10px; background: #fff; cursor: pointer; width: 100%; font: inherit; text-align: left; }
.method:hover { border-color: var(--orange); }
.method strong { display: block; }
.copy { display: flex; gap: 10px; align-items: center; }
.copy .value { font-size: 1.4rem; font-weight: 800; letter-spacing: .03em; flex: 1; }
.amount { font-size: 1.6rem; font-weight: 800; color: var(--red); }

.spinner { width: 46px; height: 46px; border: 5px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }
.success-icon { font-size: 3rem; line-height: 1; }
.warranty { border-left: 4px solid var(--orange); padding: 8px 12px; margin: 10px 0; background: #fffaf3; border-radius: 6px; }
.warranty .num { font-weight: 800; color: var(--red); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 50; max-width: 90vw;
}
.footer { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 24px; }
