:root {
  --verde: #1f4d2b;
  --verde-2: #2d6a3e;
  --verde-claro: #e7efe3;
  --rojo: #b3261e;
  --rojo-2: #8f1d17;
  --crema: #fbf3e4;
  --papel: #fffaf1;
  --texto: #3a2a20;
  --suave: #7a6656;
  --borde: #ead8bb;
  --oro: #e0a526;
  --sombra: 0 6px 18px rgba(74, 42, 39, .10);
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --tabs-h: 64px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: #efe4cf;
  color: var(--texto);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--crema);
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,.12);
}

/* HEADER */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--verde);
  color: #fff;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  text-align: center;
}
.top-title { display: flex; align-items: center; justify-content: center; gap: 10px; }
.brand { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .2px; }
.leaf { color: var(--oro); font-size: 18px; transform: scaleX(-1); }
.leaf.r { transform: none; }
.top-line { width: 120px; height: 3px; background: var(--rojo); margin: 6px auto 0; border-radius: 2px; }
.top-back {
  position: absolute; left: 8px; top: calc(8px + env(safe-area-inset-top));
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.12); color: #fff;
  font-size: 30px; line-height: 36px;
}

main { padding: 16px 16px calc(var(--tabs-h) + 28px + env(safe-area-inset-bottom)); }

/* TABS */
.tabs {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-top: 1px solid var(--borde);
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(var(--tabs-h) + env(safe-area-inset-bottom));
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--suave); position: relative; gap: 2px;
}
.tabs a span { font-size: 21px; filter: grayscale(.6); opacity: .8; }
.tabs a.on { color: var(--verde); }
.tabs a.on span { filter: none; opacity: 1; }
.tabs a.on::before { content: ''; position: absolute; top: 0; width: 34px; height: 3px; background: var(--rojo); border-radius: 0 0 3px 3px; }
.tabs b {
  position: absolute; top: 6px; left: 54%;
  background: var(--rojo); color: #fff; font-size: 10px; min-width: 18px; height: 18px;
  border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}
.tabs b[hidden] { display: none; }

/* TITULOS */
h1, h2, h3 { font-family: var(--serif); color: var(--verde); margin: 0; line-height: 1.2; }
h1 { font-size: 26px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
.sec-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.sec-title h2 { flex: 1; }
.sec-title a { font-size: 13px; font-weight: 700; color: var(--rojo); white-space: nowrap; }
.deco-title { text-align: center; margin: 6px 0 14px; }
.deco-title h2 { display: inline-flex; align-items: center; gap: 12px; }
.deco-title h2::before, .deco-title h2::after { content: ''; width: 22px; height: 3px; background: var(--rojo); border-radius: 2px; }
.muted { color: var(--suave); font-size: 14px; }
.lead { color: var(--suave); margin: 6px 0 0; }

/* PERSONAS */
.personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.personas button {
  border: 2px solid #d9a7a0; background: #fff; color: var(--texto); position: relative;
  border-radius: 14px; padding: 8px 4px 9px; font-family: var(--serif); font-weight: 700;
  display: flex; flex-direction: column; align-items: center; line-height: 1.1;
}
.personas button b { font-size: 24px; }
.personas button small { font-family: var(--sans); font-size: 12px; font-weight: 700; opacity: .85; }
.personas button.on { background: var(--verde); color: #fff; border-color: var(--rojo); box-shadow: 0 0 0 2px var(--rojo) inset; }
.personas button.on::after {
  content: '✓'; position: absolute; top: -8px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; color: var(--verde); font-family: var(--sans); font-size: 13px; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

/* HOME */
.hello {
  background: linear-gradient(160deg, var(--verde) 0%, var(--verde-2) 100%);
  color: #fff; border-radius: 20px; padding: 18px; position: relative; overflow: hidden;
}
.hello h1 { color: #fff; font-size: 23px; }
.hello p { margin: 6px 0 14px; opacity: .92; font-size: 15px; }
.hello .personas button { border-color: rgba(255,255,255,.35); }
.hello .personas button.on { background: var(--rojo); border-color: #fff; box-shadow: none; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--borde); border-radius: 14px; padding: 0 14px; margin: 14px 0 0;
}
.search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; padding: 13px 0; color: var(--texto); min-width: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat {
  background: var(--papel); border: 1px solid var(--borde); border-radius: 16px;
  padding: 14px 6px; text-align: center; box-shadow: var(--sombra);
}
.cat .ic { font-size: 30px; }
.cat b { display: block; font-size: 13px; margin-top: 4px; }
.cat small { color: var(--suave); font-size: 11.5px; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: 0 0 72%; }

/* CARDS */
.grid { display: grid; gap: 14px; }
.card {
  background: var(--papel); border: 1px solid var(--borde); border-radius: 18px; overflow: hidden;
  box-shadow: var(--sombra); display: block; position: relative;
}
.cover { aspect-ratio: 16/10; position: relative; overflow: hidden; background: #e8d6b6; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.art {
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse 62% 56% at 50% 54%, #c58d55 0 58%, #a8703f 59% 64%, transparent 65%),
    radial-gradient(circle at 20% 20%, #fff7e8, #f1dcb7 70%);
}
.cover.art .em { font-size: 46px; letter-spacing: -6px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)); transform: translateY(2px); }
.cover .badge {
  position: absolute; left: 10px; top: 10px; background: rgba(31,77,43,.92); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 20px;
}
.card .body { padding: 12px 14px 14px; }
.card h3 { font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  font-size: 12px; font-weight: 600; background: #fff; border: 1px solid var(--borde);
  padding: 3px 9px; border-radius: 20px; color: var(--texto);
}
.chip.price { background: var(--rojo); color: #fff; border-color: var(--rojo); }
.fav-btn {
  position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); font-size: 18px; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.list-card { display: flex; gap: 12px; align-items: center; padding: 10px; }
.list-card .thumb { width: 74px; height: 74px; border-radius: 14px; flex: 0 0 74px; overflow: hidden; }
.list-card .thumb .cover { aspect-ratio: auto; height: 100%; }
.list-card .thumb .em { font-size: 26px; letter-spacing: -4px; }
.list-card h3 { font-size: 15.5px; }
.list-card .chips { margin-top: 5px; }

/* FILTROS */
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 14px; padding: 0 16px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: 0 0 auto; border: 1px solid var(--borde); background: #fff; color: var(--texto);
  padding: 8px 14px; border-radius: 22px; font-weight: 700; font-size: 13.5px;
}
.filters button.on { background: var(--verde); color: #fff; border-color: var(--verde); }

/* DETALLE */
.hero { margin: -16px -16px 0; position: relative; }
.hero .cover { aspect-ratio: 4/3; }
.hero .cover.art .em { font-size: 74px; letter-spacing: -10px; }
.hero .fav-btn { top: 14px; right: 14px; width: 42px; height: 42px; font-size: 21px; }
.detail-head { background: var(--crema); border-radius: 22px 22px 0 0; margin: -22px -16px 0; padding: 18px 16px 0; position: relative; }
.detail-head h1 { font-size: 25px; }
.panel {
  background: var(--papel); border: 2px solid #e2b9ad; border-radius: 18px; overflow: hidden; margin-top: 16px;
}
.panel-h { background: var(--verde); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 17px; padding: 11px 14px; text-align: center; }
.panel-b { padding: 6px 14px 10px; }
.shop li, .shop-row {
  list-style: none; display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #ecd7c8; font-weight: 600; font-size: 15px;
}
.shop { margin: 0; padding: 0; }
.shop li:last-child { border-bottom: 0; }
.cart { color: var(--rojo); font-size: 18px; flex: 0 0 auto; }
.casa { font-size: 13.5px; color: var(--suave); padding: 10px 0 4px; border-top: 1px dashed var(--borde); }
.cost {
  margin: 16px auto 0; background: linear-gradient(180deg, #c8332a, var(--rojo-2)); color: #fff;
  border-radius: 40px; display: flex; align-items: center; gap: 14px; padding: 10px 22px;
  box-shadow: 0 8px 18px rgba(143,29,23,.3); width: fit-content; max-width: 100%;
}
.cost .coin { font-size: 30px; }
.cost .lbl { font-size: 12.5px; opacity: .9; font-weight: 600; }
.cost .val { font-family: var(--serif); font-weight: 700; font-size: 32px; line-height: 1; }
.cost .sep { width: 1px; align-self: stretch; background: rgba(255,255,255,.35); }
.note { font-size: 12px; color: var(--suave); text-align: center; margin-top: 8px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: 0; border-radius: 14px; padding: 14px 16px; font-weight: 800; font-size: 15.5px;
  background: var(--verde); color: #fff; margin-top: 12px;
}
.btn.red { background: var(--rojo); }
.btn.ghost { background: #fff; color: var(--verde); border: 2px solid var(--verde); }
.btn.wa { background: #25a35a; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-row .btn { font-size: 14px; padding: 12px 8px; }
.steps { counter-reset: s; margin: 0; padding: 0; }
.steps li {
  list-style: none; position: relative; padding: 12px 12px 12px 52px; margin: 10px 0;
  background: #fff; border: 1px solid var(--borde); border-radius: 14px; font-size: 15px;
}
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 12px; top: 10px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--rojo); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px;
}
.steps li.done { opacity: .55; text-decoration: line-through; }
.steps li.done::before { content: '✓'; background: var(--verde); }
.steps.pre li::before { background: var(--oro); }
.tip {
  margin-top: 16px; background: #fff6df; border: 1px dashed var(--oro); border-radius: 16px;
  padding: 14px; display: flex; gap: 12px; align-items: flex-start;
}
.tip img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: top; flex: 0 0 46px; }
.tip b { color: var(--verde); font-family: var(--serif); }
.ing-list { margin: 0; padding: 0; }
.ing-list li { list-style: none; padding: 9px 0 9px 26px; border-bottom: 1px solid #ecd7c8; position: relative; }
.ing-list li::before { content: '•'; color: var(--rojo); position: absolute; left: 8px; font-weight: 800; }
.ing-list li:last-child { border-bottom: 0; }

/* LISTA */
.sec-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--rojo); margin: 14px 0 2px; }
.check-row { cursor: pointer; }
.check-row .box {
  width: 24px; height: 24px; border-radius: 7px; border: 2px solid #d9a7a0; flex: 0 0 24px;
  display: grid; place-items: center; color: #fff; font-size: 14px;
}
.check-row.on .box { background: var(--verde); border-color: var(--verde); }
.check-row.on .txt { text-decoration: line-through; color: var(--suave); }
.check-row .pr { margin-left: auto; font-size: 13px; color: var(--suave); font-weight: 600; white-space: nowrap; }
.in-list { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #ecd7c8; }
.in-list:last-child { border-bottom: 0; }
.in-list a { flex: 1; font-weight: 700; font-size: 14.5px; }
.in-list select { border: 1px solid var(--borde); border-radius: 10px; padding: 6px; font: inherit; font-size: 13px; background: #fff; }
.in-list .x { border: 0; background: #f6e3df; color: var(--rojo); width: 32px; height: 32px; border-radius: 50%; font-size: 16px; }
.empty { text-align: center; padding: 40px 10px; color: var(--suave); }
.empty .big { font-size: 54px; }

/* BONOS */
.bono { display: flex; gap: 14px; align-items: center; padding: 12px; }
.bono img { width: 92px; flex: 0 0 92px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.2)); }
.bono .tag { display: inline-block; background: var(--rojo); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; letter-spacing: .5px; }
.bono h3 { margin-top: 6px; font-size: 16px; }
.bono p { margin: 4px 0 0; font-size: 13px; color: var(--suave); }

/* GUIA */
.how { counter-reset: h; display: grid; gap: 10px; }
.how div { background: #fff; border: 1px solid var(--borde); border-radius: 14px; padding: 12px 12px 12px 56px; position: relative; font-size: 14.5px; }
.how div b { display: block; font-family: var(--serif); color: var(--verde); font-size: 16px; }
.how div::before { counter-increment: h; content: counter(h); position: absolute; left: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--verde); color: #fff; font-weight: 800; display: grid; place-items: center; }
.luciane { display: flex; gap: 14px; align-items: center; padding: 14px; }
.luciane img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--oro); flex: 0 0 84px; }
.subst { padding: 12px 14px; }
.subst .from { font-weight: 800; }
.subst .to { color: var(--verde); font-weight: 700; margin-top: 2px; }
.subst .to::before { content: '→ '; color: var(--rojo); }
.subst .nt { font-size: 13px; color: var(--suave); margin-top: 3px; }
.install {
  display: none; margin-top: 14px; background: #fff; border: 2px dashed var(--verde-2); border-radius: 16px; padding: 12px 14px;
  align-items: center; gap: 12px;
}
.install.show { display: flex; }
.install p { margin: 0; flex: 1; font-size: 13.5px; }
.install button { border: 0; background: var(--verde); color: #fff; font-weight: 800; border-radius: 10px; padding: 9px 12px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 16px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--texto); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14px;
  transition: .25s; z-index: 50; max-width: 90%; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.count-pill { font-size: 12px; font-weight: 800; background: var(--verde-claro); color: var(--verde); border-radius: 20px; padding: 3px 10px; }
