:root {
  --bg: #fbf3e6;
  --bg-2: #f4e6d0;
  --card: #fffdf8;
  --ink: #2b1d16;
  --ink-soft: #6a5548;
  --red: #a8322d;
  --red-dark: #86241f;
  --green: #1f4a3b;
  --gold: #d9a441;
  --line: #e6d5bb;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(43, 29, 22, 0.06), 0 8px 24px rgba(43, 29, 22, 0.08);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 164, 65, 0.16), transparent 38%),
    radial-gradient(circle at 92% 2%, rgba(168, 50, 45, 0.1), transparent 34%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
main { flex: 1; padding-bottom: 40px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 0.5em; color: var(--green); }
h1 { font-size: clamp(2rem, 7vw, 3rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
h3 { font-size: 1.15rem; color: var(--ink); }
a { color: var(--red); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* Cabecera y pie */
.site-header { padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--green); text-decoration: none; }
.site-footer { background: var(--green); color: #f3ead7; padding: 28px 0 36px; font-size: 0.9rem; }
.site-footer a { color: #f3ead7; }
.site-footer .legal-aviso { margin: 0 0 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
.site-footer .landings { opacity: 0.85; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; text-align: center;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(168, 50, 45, 0.3); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: rgba(31, 74, 59, 0.08); }
.btn-amazon { background: var(--gold); color: #2b1d16; min-height: 46px; padding: 8px 18px; }
.btn-amazon:hover { background: #c8922f; }
.btn-whatsapp { background: #1e8e4a; color: #fff; }
.btn-whatsapp:hover { background: #166f39; }
.btn-lg { min-height: 58px; font-size: 1.1rem; padding: 14px 30px; }

/* Intro */
.hero { text-align: center; padding: 28px 0 8px; }
.hero .kicker { display: inline-block; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 10px; }
.hero p { color: var(--ink-soft); max-width: 34em; margin: 0 auto 22px; }
.hero .tree { font-size: 3.2rem; display: block; margin-bottom: 4px; animation: bob 3.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
.occasions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.occasions li { background: var(--bg-2); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; }

/* Cuestionario */
.quiz-top { display: flex; align-items: center; gap: 12px; padding: 8px 0 14px; }
.back { background: none; border: 0; font: 600 1rem var(--sans); color: var(--green); cursor: pointer; padding: 10px 4px; min-height: 44px; }
.progress { flex: 1; }
.progress-track { height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--red)); border-radius: 999px; transition: width 0.4s ease; }
.progress-label { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }

.step { animation-duration: 0.35s; animation-fill-mode: both; animation-timing-function: ease-out; }
.step h2 { margin-top: 8px; outline: none; }
.step .sub { color: var(--ink-soft); margin: 0 0 18px; }
.enter-adelante { animation-name: in-right; }
.enter-atras { animation-name: in-left; }
@keyframes in-right { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes in-left { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

.options { display: grid; gap: 10px; }
.options.cols-few { grid-template-columns: minmax(0, 1fr); }
.options.cols-many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .options.cols-few { grid-template-columns: repeat(2, minmax(0, 1fr)); } .options.cols-many { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.opt {
  min-width: 0; overflow-wrap: break-word;
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; text-align: left;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  font: 600 1rem var(--sans); color: var(--ink); cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.opt:hover { border-color: var(--gold); }
.opt:active { transform: scale(0.98); }
.opt[aria-pressed="true"] { border-color: var(--red); background: #fdeceb; box-shadow: 0 0 0 1px var(--red) inset; }
.opt-emoji { font-size: 1.5rem; line-height: 1; }
.opt-label { flex: 1; }
.opt-hint { display: block; font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); width: 100%; }
.opt:has(.opt-hint) { flex-wrap: wrap; }
.actions { margin-top: 20px; display: flex; justify-content: center; }

/* Resultados */
.res-head { text-align: center; padding: 12px 0 6px; }
.res-head h2 { outline: none; }
.res-head .sub { color: var(--ink-soft); margin: 0; }
.cards { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 14px; }
.card { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card-emoji { font-size: 2.2rem; line-height: 1; flex: none; width: 56px; height: 56px; display: grid; place-items: center; background: var(--bg-2); border-radius: 14px; }
.card-body { flex: 1; min-width: 0; }
.card h3 { margin: 0 0 4px; }
.card p { margin: 0 0 8px; }
.card-desc { color: var(--ink-soft); }
.card-why { font-size: 0.92rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.price-tag { font-size: 0.85rem; color: var(--ink-soft); background: var(--bg); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.res-actions { display: grid; gap: 10px; margin: 20px 0; }
@media (min-width: 560px) { .res-actions { grid-template-columns: 1fr 1fr; } }
.nota-afiliado { font-size: 0.82rem; color: var(--ink-soft); background: var(--bg-2); border-radius: 12px; padding: 10px 14px; margin: 14px 0; }
.error { background: #fdeceb; border: 1px solid var(--red); padding: 12px 16px; border-radius: 12px; }

/* Landings y páginas de texto */
.landing h1 { margin-top: 12px; }
.landing .lead { font-size: 1.1rem; color: var(--ink-soft); }
.cta-box { background: var(--green); color: #fff; border-radius: var(--radius); padding: 22px 20px; margin: 26px 0; text-align: center; }
.cta-box h2 { color: #fff; }
.cta-box p { margin: 0 0 14px; opacity: 0.9; }
.cta-box .btn-primary { background: var(--gold); color: var(--ink); box-shadow: none; }
.related { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.related a { display: block; padding: 8px 14px; border-radius: 999px; background: var(--bg-2); text-decoration: none; color: var(--green); font-size: 0.92rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose ul { padding-left: 1.2em; }
.placeholder { background: #fff1b8; padding: 0 4px; border-radius: 4px; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); padding-top: 4px; }
.breadcrumb a { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.options.cols-many .opt { padding: 10px 12px; gap: 8px; font-size: 0.95rem; }
.options.cols-many .opt-emoji { font-size: 1.3rem; flex: none; }

/* Selector de presupuesto en resultados */
.budget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-top: 14px; }
.budget-title { margin: 0 0 8px; font-weight: 700; color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--bg); font: 600 0.95rem var(--sans); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--red); background: #fdeceb; }
.budget-custom { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.budget-custom select, .budget-custom input { min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font: 600 1rem var(--sans); color: var(--ink); }
.budget-custom input { width: 9em; }
.budget-custom.active select, .budget-custom.active input { border-color: var(--red); }
.budget-custom .btn { min-height: 44px; padding: 6px 18px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
