/* Cada página tiene su bloque de color (clase en <body>) */
:root {
  --bg: #ebb8d0;
  --card: rgba(255,255,255,.35);
  --ink: #2a1416;
  --ink-soft: rgba(42,20,22,.68);
  --ink-faint: rgba(42,20,22,.4);
  --line: rgba(42,20,22,.22);
  --accent: #8b2c2a;
  --shelf: #2a1416;
  --shadow: 0 18px 40px -16px rgba(42,20,22,.45);
  --display: 'Jost', system-ui, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --script: 'Mrs Saint Delafield', cursive;
  --sans: 'Jost', system-ui, sans-serif;
  --radius: 20px;
}

body.t-wine {
  --bg: #8b2c2a;
  --card: rgba(0,0,0,.14);
  --ink: #f6d6e3;
  --ink-soft: rgba(246,214,227,.75);
  --ink-faint: rgba(246,214,227,.45);
  --line: rgba(246,214,227,.3);
  --accent: #f2c14e;
  --shelf: #f6d6e3;
}
body.t-pink { --bg: #ebb8d0; }
body.t-mustard {
  --bg: #f2c14e;
  --card: rgba(255,255,255,.3);
  --accent: #8b2c2a;
}
body.t-cream {
  --bg: #f7ebd8;
  --card: rgba(255,255,255,.55);
  --accent: #c23a4b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
}

.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* titular grande en mayúsculas finas + acento manuscrito */
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .95;
  position: relative;
}
.script {
  font-family: var(--script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--accent);
  display: inline-block;
  transform: rotate(-7deg);
  line-height: 1;
}

.serif { font-family: var(--serif); font-weight: 400; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.wordmark {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  transition: transform .15s, background .15s;
}
.icon-btn:hover { background: var(--card); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .15s, opacity .15s;
}
.pill:active { transform: scale(.97); }
.pill:disabled { opacity: .4; cursor: default; }
.pill.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }

.chip {
  height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: all .15s;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.field {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  outline: none;
  transition: border-color .15s;
}
.field::placeholder { color: var(--ink-faint); }
.field:focus { border-color: var(--ink); }

.toast {
  position: fixed;
  left: 50%;
  top: max(16px, env(safe-area-inset-top));
  transform: translate(-50%, -20px);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.fade-in { animation: fadeIn .5s ease backwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }

/* puntuación en puntos (no estrellas) */
.dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.dots i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; opacity: .55; }
.dots i.on { background: currentColor; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
