:root {
  --wine: #7d1235;
  --wine-2: #a3214f;
  --rasp: #c43b6a;
  --pink: #f7dbe4;
  --pink-2: #fbe9ef;
  --blush: #fff6f8;
  --gold: #d4a85a;
  --gold-2: #f1d9a6;
  --ink: #3a1a24;
  --muted: #7a5662;
  --line: rgba(125, 18, 53, .16);
  --shadow: 0 10px 30px rgba(125, 18, 53, .12);
  --radius: 22px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Nunito Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); color: var(--ink); font-size: 16px; line-height: 1.5;
  background: linear-gradient(180deg, var(--blush) 0%, var(--pink-2) 55%, var(--pink) 100%);
  min-height: 100vh; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: var(--wine-2); }

/* Franja dorada como en el diseño impreso */
.bg-swoosh { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.bg-swoosh::before, .bg-swoosh::after {
  content: ""; position: absolute; left: -20%; width: 140%; height: 220px; border-radius: 50%;
  border-top: 3px solid var(--gold); opacity: .55;
}
.bg-swoosh::before { top: 70px; transform: rotate(-6deg); }
.bg-swoosh::after { bottom: -150px; transform: rotate(4deg); border-top-color: var(--gold-2); border-top-width: 6px; }

.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px;
  padding: 10px 16px; background: rgba(255, 246, 248, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { height: 42px; width: auto; mix-blend-mode: multiply; }
.progress { flex: 1; height: 8px; border-radius: 99px; background: #f2cdd9; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--wine), var(--rasp)); border-radius: 99px; transition: width .45s ease; }
.step-count { font-size: 12.5px; font-weight: 800; color: var(--wine); min-width: 38px; text-align: right; }

main { max-width: 640px; margin: 0 auto; padding: 22px 16px 30px; }
.screen { display: none; animation: in .45s ease; }
.screen.is-active { display: block; }
@keyframes in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Portada */
.hero { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.hero-text { flex: 1; }
.hero h1 { font-family: var(--serif); font-style: italic; font-weight: 800; color: var(--wine); font-size: clamp(28px, 7.5vw, 44px); line-height: 1.05; letter-spacing: -.01em; }
.hero h1 span { display: block; font-size: 1.22em; }
.ribbon {
  margin-top: 14px; padding: 12px 16px; border-radius: 18px; color: #fff; font-weight: 700; font-style: italic; font-size: 15.5px; line-height: 1.35;
  background: linear-gradient(135deg, var(--wine), var(--rasp)); box-shadow: var(--shadow);
}
.hero-img { width: 34%; max-width: 190px; mix-blend-mode: multiply; flex: 0 0 auto; }
.intro-list { list-style: none; padding: 0; margin: 24px 0 26px; display: grid; gap: 10px; }
.intro-list li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 12px 44px; position: relative; box-shadow: 0 2px 8px rgba(125,18,53,.05); }
.intro-list li::before { content: "✓"; position: absolute; left: 12px; top: 11px; width: 22px; height: 22px; border-radius: 50%; background: var(--rasp); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.fine { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Botones */
.btn {
  display: flex; width: 100%; align-items: center; justify-content: center; min-height: 54px; padding: 14px 22px;
  border-radius: 99px; font-weight: 800; font-size: 17px; color: #fff;
  background: linear-gradient(135deg, var(--wine), var(--rasp)); box-shadow: 0 10px 24px rgba(125,18,53,.28);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn.ghost { background: #fff; color: var(--wine); border: 1.5px solid var(--line); box-shadow: none; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.nav-btns { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 18px; }

/* Títulos tipo píldora */
.pill-title {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 22px 8px 8px; border-radius: 99px;
  background: linear-gradient(135deg, var(--wine), var(--wine-2)); color: #fff; font-family: var(--sans); font-weight: 800; font-size: 20px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.pill-title:not(:has(.num)) { padding-left: 22px; }
.num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 800;
  background: radial-gradient(circle at 35% 30%, #e0557f, var(--wine)); border: 2px solid #fff; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card { padding: 18px 16px; display: grid; gap: 14px; }
.field { display: block; }
.field > span { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .dob select {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid #ecc6d3; background: var(--blush); color: var(--ink);
}
.field input:focus, .dob select:focus { outline: none; border-color: var(--rasp); box-shadow: 0 0 0 3px rgba(196,59,106,.18); background: #fff; }
.dob { display: grid; grid-template-columns: 1fr 1.3fr 1.2fr; gap: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.error { color: #b3261e; font-weight: 700; font-size: 14px; min-height: 0; }
.error:empty { display: none; }

/* Preguntas */
.q-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.q-head .num { width: 52px; height: 52px; font-size: 26px; flex: 0 0 auto; box-shadow: var(--shadow); }
.q-head h2 { font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--wine); font-size: clamp(22px, 6vw, 28px); line-height: 1.15; }
.q-icon { font-size: 30px; margin-left: auto; flex: 0 0 auto; }
.hint { font-size: 13px; font-weight: 700; color: var(--rasp); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; padding: 14px 16px; min-height: 62px;
  background: #fff; border: 1.5px solid #f0d2dc; border-radius: 18px; box-shadow: 0 2px 8px rgba(125,18,53,.05);
  transition: border-color .2s, background .2s, transform .15s;
}
.opt:active { transform: scale(.99); }
.opt .letter { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--rasp); color: var(--wine); display: grid; place-items: center; font-weight: 800; }
.opt .txt { font-size: 16px; font-weight: 600; line-height: 1.35; }
.opt.sel { border-color: var(--rasp); background: linear-gradient(135deg, #fff, #fde7ee); }
.opt.sel .letter { background: linear-gradient(135deg, var(--wine), var(--rasp)); color: #fff; border-color: transparent; }

/* Sí / No */
.yn { padding-bottom: 14px; border-bottom: 1px solid #f3dbe3; }
.yn-q { font-weight: 800; font-size: 15.5px; display: flex; gap: 10px; align-items: flex-start; }
.yn-q .ico { width: 34px; height: 34px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; flex: 0 0 auto; font-size: 16px; }
.yn-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 0 44px; }
.yn-opts button { min-height: 46px; border-radius: 14px; border: 1.5px solid #ecc6d3; font-weight: 800; color: var(--wine); background: var(--blush); }
.yn-opts button.sel { background: linear-gradient(135deg, var(--wine), var(--rasp)); color: #fff; border-color: transparent; }
.yn-more { margin: 10px 0 0 44px; }
.consent { display: flex; gap: 10px; font-size: 14px; color: var(--muted); align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--wine); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

.important { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.important .i { width: 30px; height: 30px; border-radius: 50%; background: var(--wine); color: #fff; font-weight: 800; font-family: Georgia, serif; display: grid; place-items: center; flex: 0 0 auto; }
.important p { font-size: 13.5px; font-style: italic; color: var(--muted); }
.important b { color: var(--wine); }

/* Resultado */
.script { font-family: "Great Vibes", cursive; font-size: 46px; color: var(--wine); text-align: center; line-height: 1; }
.result-title { font-family: var(--serif); font-style: italic; font-weight: 800; color: var(--wine); font-size: clamp(28px, 8vw, 38px); text-align: center; margin-top: 6px; line-height: 1.1; }
.result-desc { text-align: center; color: var(--muted); margin: 10px auto 18px; max-width: 460px; }
.opt-card { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 12px; }
.opt-card img { width: 92px; height: 92px; object-fit: cover; border-radius: 16px; background: var(--blush); flex: 0 0 auto; }
.opt-card .badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--rasp); padding: 3px 10px; border-radius: 99px; }
.opt-card h3 { font-family: var(--serif); font-style: italic; color: var(--wine); font-size: 21px; margin: 6px 0 2px; }
.opt-card p { font-size: 14px; color: var(--muted); }
.counts { padding: 16px; margin-top: 6px; }
.counts-title { font-weight: 800; color: var(--wine); margin-bottom: 10px; }
.count-row { display: grid; grid-template-columns: 28px 1fr 26px; align-items: center; gap: 10px; margin: 6px 0; font-weight: 800; }
.count-row .l { width: 28px; height: 28px; border-radius: 50%; background: var(--pink); color: var(--wine); display: grid; place-items: center; font-size: 14px; }
.count-row .track { height: 10px; border-radius: 99px; background: #f6dde5; overflow: hidden; }
.count-row .track span { display: block; height: 100%; background: linear-gradient(90deg, var(--wine), var(--rasp)); border-radius: 99px; }
.count-row.is-top .l { background: var(--wine); color: #fff; }
.next { padding: 16px; margin-top: 14px; background: linear-gradient(135deg, #fff, #fde7ee); }

.foot { text-align: center; padding: 10px 16px 30px; color: var(--muted); font-size: 12.5px; }
.foot img { width: 150px; margin: 0 auto 8px; mix-blend-mode: multiply; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) { .screen, .progress span { animation: none; transition: none; } }
