/* ============ Tokens ============ */
:root {
  --yellow: #ffec00;
  --yellow-soft: #fff9b3;
  --red: #e20613;
  --red-dark: #b8040f;
  --ink: #111111;
  --ink-2: #44443f;
  --muted: #76766e;
  --line: #e7e7e1;
  --bg: #ffffff;
  --bg-soft: #f6f6f1;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 6px;
  --radius-lg: 12px;
  --gutter: 16px;
  --max: 1280px;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.06), 0 8px 24px rgba(17, 17, 17, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============ Tipografía ============ */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-transform: uppercase;
}
.h1 { font-size: clamp(2.4rem, 7vw, 4.8rem); }
.h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.h3 { font-size: 1.15rem; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.muted { color: var(--muted); }

/* ============ Layout ============ */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(40px, 7vw, 80px); }
.section--soft { background: var(--bg-soft); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }

@media (min-width: 900px) { :root { --gutter: 32px; } }

/* ============ Botones ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  font-family: var(--font-display); font-weight: 800; font-size: 0.92rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 2px solid transparent; border-radius: var(--radius);
  background: var(--ink); color: #fff;
  transition: transform 0.15s var(--ease), background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #f0dd00; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 0.8rem; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.link-arrow {
  font-family: var(--font-display); font-weight: 800; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 2px solid var(--red); padding-bottom: 2px;
}
.link-arrow:hover { color: var(--red); }

/* ============ Formularios ============ */
.field { display: grid; gap: 6px; }
.field label, .field__label { font-weight: 600; font-size: 0.88rem; }
.input, .select {
  width: 100%; min-height: 46px; padding: 0 14px;
  background: #fff; border: 1.5px solid #cfcfc6; border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.input { padding: 12px 14px; min-height: 90px; resize: vertical; }
.input:hover, .select:hover { border-color: var(--ink-2); }
.input:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
.field--error .input { border-color: var(--red); }
.field__error { color: var(--red); font-size: 0.84rem; font-weight: 600; }

.check { display: flex; align-items: center; gap: 10px; min-height: 32px; cursor: pointer; font-size: 0.94rem; }
.check input { width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.check__count { margin-left: auto; color: var(--muted); font-size: 0.82rem; }

/* ============ Chips / etiquetas ============ */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 0.88rem; font-weight: 600; transition: border-color 0.15s, background 0.15s;
}
.chip:hover { border-color: var(--ink); }
.chip--active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip--remove::after { content: '×'; font-size: 1.1rem; line-height: 1; margin-left: 2px; }

.badge {
  display: inline-block; padding: 3px 8px; border-radius: 3px;
  font-family: var(--font-display); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.02em;
  background: var(--red); color: #fff;
}
.badge--yellow { background: var(--yellow); color: var(--ink); }
.badge--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }

/* ============ Precio ============ */
.price { display: grid; gap: 2px; }
.price__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price__now { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }
.price__was { color: var(--muted); font-size: 0.88rem; text-decoration: line-through; }
.price__notax { color: var(--muted); font-size: 0.74rem; }
.nw, .price__was, .price__now, .link-arrow { white-space: nowrap; }
.price--lg .price__now { font-size: clamp(2rem, 5vw, 2.8rem); }
.price--lg .price__was { font-size: 1.05rem; }
.price--lg .price__notax { font-size: 0.86rem; }

/* ============ Toast ============ */
.toasts { position: fixed; z-index: 100; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--ink); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  animation: toast-in 0.25s var(--ease);
}
.toast__text { flex: 1; font-size: 0.92rem; }
.toast a { color: var(--yellow); font-weight: 700; white-space: nowrap; }
.toast--error { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ============ Estados ============ */
.skeleton { background: linear-gradient(90deg, #efefe9 25%, #f7f7f3 50%, #efefe9 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { text-align: center; padding: 56px 16px; display: grid; gap: 14px; justify-items: center; }
.empty p { color: var(--muted); max-width: 42ch; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Cuotas sin interés */
.price__cuotas { display: grid; gap: 1px; margin-top: 4px; }
.price__cuotas-main { display: inline-flex; align-items: flex-start; gap: 6px; font-size: 0.82rem; line-height: 1.3; color: var(--ink-2); }
.price__cuotas-main svg { flex: none; margin-top: 2px; color: var(--red); }
.price__cuotas-main b { font-weight: 700; color: var(--ink); }
.price__cuotas-bank { padding-left: 21px; font-size: 0.72rem; color: var(--muted); }
.price--lg .price__cuotas { margin-top: 8px; }
.price--lg .price__cuotas-main { font-size: 1rem; }
.price--lg .price__cuotas-bank { padding-left: 26px; font-size: 0.82rem; }

.price__from { align-self: center; margin-right: -4px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
