/* Piña & Canela — La Carta */
:root {
  --ground: #1f110f;
  --surface: #2a1714;
  --surface-2: #37201b;
  --ink: #f1e7d9;
  --ink-soft: #c9b39d;
  --ink-faint: #a38d7c;
  --oro: #c9a457;
  --canela: #cf7a49;
  --canela-soft: #e0a074;
  --vino: #8e1f2b;
  --error: #ef8591;
  --hoja: #93ae7e;
  --line: rgba(201, 164, 87, .24);
  --line-strong: rgba(201, 164, 87, .5);
  --btn-ink: #231018;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(80% 50% at 82% -5%, rgba(207, 122, 73, .14), transparent 60%),
    radial-gradient(70% 45% at 6% 6%, rgba(197, 53, 69, .09), transparent 55%);
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.012em;
  margin: 0;
  text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--canela-soft); }
:focus-visible { outline: 2px solid var(--canela); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--canela); color: var(--btn-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-top: clamp(72px, 10vw, 120px); }
.eyebrow { font-family: var(--sans); line-height: 1.6; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); margin: 0; }
.eyebrow .dot { color: var(--oro); }
.h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 300; margin-top: 14px; }
.lede { color: var(--ink-soft); max-width: 52ch; margin-top: 16px; }
.rule { display: flex; align-items: center; gap: 18px; margin-top: clamp(56px, 8vw, 96px); }
.rule::before, .rule::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.rule span { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--oro); background: var(--oro); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--canela);
  background: var(--canela);
  color: var(--btn-ink);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--canela); }
.btn:active { transform: translateY(0); }
.btn .i { font-size: 1.1rem; transition: transform .2s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--canela); color: var(--canela-soft); box-shadow: none; }
.btn.cream { background: #f6e7db; border-color: #f6e7db; color: #5a1420; }
.btn.cream:hover { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55); }
.btn.full { width: 100%; }
.btn.grow { flex: 1; }
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: var(--ink-soft);
  font-size: .82rem;
  letter-spacing: .04em;
  cursor: pointer;
}
.textlink:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--canela); text-underline-offset: 4px; }
.iconbtn {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color .2s;
}
.iconbtn:hover { border-color: var(--line-strong); }

/* ---------- header ---------- */
.bar {
  background: var(--vino);
  color: #f6e7db;
  text-align: center;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 9px 16px;
}
.bar .sep { color: #f2c98c; }
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(31, 17, 15, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 32px; width: auto; }
.wordmark { font-family: var(--serif); font-size: 1rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.wordmark i { font-style: italic; color: var(--canela); letter-spacing: 0; padding: 0 .1em; }
.nav { display: flex; gap: 28px; font-size: .86rem; color: var(--ink-soft); }
.nav a { padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--ink); border-color: var(--canela); }
.cart-btn {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-color .2s;
}
.cart-btn:hover { border-color: var(--line-strong); }
.cart-count {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--canela);
  color: var(--btn-ink);
  font-size: .68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 400px) { .wordmark { font-size: .82rem; letter-spacing: .22em; } .brand img { height: 28px; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-top: clamp(40px, 8vw, 96px); }
.hero h1 { font-size: clamp(3.1rem, 8vw, 6.6rem); font-weight: 300; letter-spacing: -.022em; line-height: .98; margin-top: 22px; }
.hero .lede { font-size: clamp(1.02rem, 1.4vw, 1.2rem); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background:
    radial-gradient(70% 55% at 55% 38%, rgba(240, 200, 140, .26), transparent 62%),
    radial-gradient(90% 60% at 20% 100%, rgba(197, 53, 69, .22), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.hero-art img { position: absolute; left: 50%; top: 48%; width: 40%; height: auto; transform: translate(-50%, -50%); opacity: .55; }
.hero-art .caption { position: absolute; left: 16px; bottom: 14px; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .hero-art { aspect-ratio: 5 / 4; }
}

.strip { margin-top: clamp(48px, 7vw, 80px); border-block: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0 auto; padding-block: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- carta ---------- */
.tabs { display: flex; gap: clamp(18px, 2.4vw, 32px); overflow-x: auto; scrollbar-width: none; margin-top: 28px; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 6px 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.8vw, 1.45rem);
  color: var(--ink-faint);
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { color: var(--ink); border-color: var(--oro); }
.tab sup { font-family: var(--sans); font-size: .58rem; color: var(--oro); margin-left: 3px; letter-spacing: .04em; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-soft); }
.select { position: relative; display: inline-flex; }
.select select {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: .84rem;
  padding: 0 40px 0 16px;
  min-height: 44px;
  cursor: pointer;
}
.select select:hover { border-color: var(--line-strong); }
.select .i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--oro); pointer-events: none; }
select option { background: var(--surface); color: var(--ink); }
@media (max-width: 720px) { .tabs { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); } }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(14px, 2vw, 22px); }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; } }
.grid-state { display: grid; justify-items: start; gap: 14px; padding: 24px 0; color: var(--ink-soft); }

.card-media { position: relative; }
.card-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 4px; }
.media { position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface-2); transition: border-color .3s; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.media.ph { --tint: rgba(197, 53, 69, .34); background: radial-gradient(85% 70% at 50% 38%, var(--tint), transparent 62%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.ph-mark { position: absolute; inset: 0; background: url("/assets/brand/isotipo-oro.png") center 46% / 28% auto no-repeat; opacity: .15; transition: transform .6s var(--ease), opacity .3s; }
.media.photo { background: #fff; }
.media.photo img { object-fit: contain; }
.card-media .kicker { top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(31, 17, 15, .8); }
.qv-thumb { background: #fff; }
.qv-thumb img { object-fit: contain; }
.qv-section { margin-top: 22px; }
.qv-section .eyebrow { margin-bottom: 8px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.features li { position: relative; padding-left: 18px; font-size: .92rem; color: var(--ink-soft); }
.features li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid var(--oro); }
.card:hover .media { border-color: var(--line-strong); }
.card:hover .media img, .card:hover .ph-mark { transform: scale(1.05); }
.card:hover .ph-mark { opacity: .24; }
.kicker { position: absolute; top: 12px; left: 12px; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--oro); pointer-events: none; }
.badge { position: absolute; top: 10px; right: 10px; font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--vino); color: #f6e7db; padding: 4px 9px; border-radius: 999px; pointer-events: none; }
.badge.out { background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line-strong); }
.add {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(31, 17, 15, .62);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.add:hover, .add.on { background: var(--canela); border-color: var(--canela); color: var(--btn-ink); }
.add:active { transform: scale(.92); }
.add:disabled { opacity: .4; cursor: not-allowed; background: rgba(31, 17, 15, .62); color: var(--ink); border-color: var(--line); }
.card-title { font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.22; margin-top: 14px; }
.card-title button { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.card-title button:hover { color: var(--canela-soft); }
.card-price { margin-top: 4px; font-size: .9rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.card.is-out .media { opacity: .55; }
.card.skel .media { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 220% 100%; animation: shimmer 1.3s linear infinite; }
.card.skel .bar-line { height: 14px; width: 72%; margin-top: 16px; border-radius: 4px; background: var(--surface-2); }
@keyframes shimmer { to { background-position: -220% 0; } }

/* ---------- especial ---------- */
.especial { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.media.esp { aspect-ratio: 1; }
.media.esp .ph-mark { background-size: 22% auto; }
.esp-title { font-family: var(--serif); font-size: 1.4rem; margin-top: 18px; }
.esp-buy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.esp-price { font-size: 1.7rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.esp-stock { font-size: .84rem; color: var(--hoja); }
.esp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
@media (max-width: 820px) { .especial { grid-template-columns: 1fr; } .esp-actions .btn { flex: 1 1 100%; } }

/* ---------- cómo pedir ---------- */
.steps-grid { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 36px); }
.steps-grid li { border-top: 1px solid var(--line); padding-top: 22px; }
.num { font-family: var(--serif); font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--canela-soft); }
.steps-grid h3 { font-size: 1.4rem; margin-top: 12px; }
.steps-grid p { color: var(--ink-soft); margin-top: 8px; font-size: .95rem; }
@media (max-width: 720px) { .steps-grid { grid-template-columns: 1fr; } }

.trust { margin-top: clamp(72px, 10vw, 120px); background: var(--surface); border-block: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0 auto; padding-block: clamp(32px, 5vw, 48px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.trust .i { font-size: 1.5rem; color: var(--oro); }
.trust h3 { font-size: 1.15rem; margin-top: 10px; }
.trust p { font-size: .86rem; color: var(--ink-soft); margin-top: 4px; }
@media (max-width: 820px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }

.faq { margin-top: 28px; max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 16px 0; cursor: pointer; font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--oro); transition: transform .25s var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 22px; max-width: 62ch; }

.fuera {
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: end;
  gap: 24px;
  padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border-radius: 4px;
  background: linear-gradient(135deg, #4a121d 0%, var(--vino) 60%, #7a1826 100%);
  color: #f6e7db;
  box-shadow: var(--shadow);
}
.fuera .eyebrow { color: rgba(246, 231, 219, .78); }
.fuera .h2 em { color: #f2c98c; }
.fuera p:not(.eyebrow) { color: rgba(246, 231, 219, .86); margin-top: 14px; max-width: 46ch; }
@media (max-width: 720px) { .fuera { grid-template-columns: 1fr; } .fuera .btn { width: 100%; } }

.site-foot { margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); padding-block: 48px 40px; }
.foot-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 28px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand img { width: 72px; height: 72px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: .88rem; color: var(--ink-soft); }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--ink); }
.foot-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 32px; font-size: .76rem; color: var(--ink-faint); }
@media (max-width: 720px) { body.has-cart .site-foot { padding-bottom: 116px; } }

/* ---------- barra móvil + toast ---------- */
.cartbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 7px 7px 7px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--canela);
  color: var(--btn-ink);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .9);
  cursor: pointer;
}
.cartbar-count { background: var(--btn-ink); color: var(--canela-soft); border-radius: 999px; padding: 12px 16px; }
@media (max-width: 720px) { .cartbar { display: flex; } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 24px);
  padding: 7px 7px 7px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  font-size: .9rem;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity .25s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast > .i { color: var(--hoja); font-size: 1.1rem; }
.toast .btn { min-height: 40px; padding: 0 16px; font-size: .68rem; }
.toast:has(.btn[hidden]) { padding-right: 20px; min-height: 54px; }
@media (max-width: 720px) { .toast { bottom: calc(86px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); } #toast-msg { flex: 1; } }

/* ---------- diálogos ---------- */
dialog { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(10, 5, 4, .62); backdrop-filter: blur(4px); }

.panel { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(520px, 100vw); height: 100dvh; }
.panel-inner { height: 100%; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.panel[open] .panel-inner { animation: slideIn .38s var(--ease); }
@keyframes slideIn { from { transform: translateX(48px); opacity: 0; } }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.panel-brand { display: flex; align-items: center; gap: 12px; }
.panel-brand img { height: 24px; width: auto; }
.panel-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px; }
.panel-foot { border-top: 1px solid var(--line); padding: 16px 28px calc(16px + env(safe-area-inset-bottom)); background: var(--surface); }
.panel-foot > .textlink { display: flex; margin: 6px auto 0; }
.step { flex: 1; min-height: 0; display: flex; flex-direction: column; }
@media (max-width: 720px) {
  .panel { inset: auto 0 0 0; width: 100vw; height: auto; max-height: calc(100dvh - 20px); }
  .panel-inner { max-height: calc(100dvh - 20px); border-left: 0; border-top: 1px solid var(--line-strong); border-radius: 18px 18px 0 0; }
  .panel-inner::before { content: ""; flex: none; width: 44px; height: 4px; margin: 10px auto 0; border-radius: 999px; background: var(--line-strong); }
  .panel[open] .panel-inner { animation-name: slideUp; }
  .panel-head, .panel-body, .panel-foot, .steps { padding-inline: 20px; }
  #dlg-comanda { height: calc(100dvh - 20px); }
}
@keyframes slideUp { from { transform: translateY(48px); opacity: 0; } }

/* vista rápida */
.media.qv-main { aspect-ratio: auto; height: min(340px, 40vh); }
.media.qv-main .ph-mark { background-size: auto 40%; }
.qv-thumbs { user-select: none; -webkit-tap-highlight-color: transparent; display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.qv-thumb { flex: none; width: 58px; height: 58px; padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: none; cursor: pointer; }
.qv-thumb.on { border-color: var(--oro); }
.qv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 22px; }
.qv-title { font-size: clamp(1.6rem, 3vw, 2rem); }
.qv-price { padding-top: 6px; font-size: 1.2rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qv-badge { margin-top: 12px; }
.qv-badge .badge { position: static; display: inline-block; }
.qv-desc { margin-top: 14px; color: var(--ink-soft); font-size: .96rem; white-space: pre-line; }
.specs { margin: 18px 0 0; border-top: 1px solid var(--line); }
.spec { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.spec dt { color: var(--ink-soft); }
.spec dd { margin: 0; text-align: right; }
.perks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.perks li { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 4px; text-align: center; font-size: .74rem; color: var(--ink-soft); }
.perks .i { font-size: 1.15rem; color: var(--oro); }
.qv-wa { margin-top: 12px; }
.qv-foot { display: flex; gap: 10px; align-items: center; }

.stepper { display: inline-flex; align-items: center; height: 50px; border: 1px solid var(--line-strong); border-radius: 999px; }
.stepper button { width: 46px; height: 100%; display: grid; place-items: center; background: none; border: 0; border-radius: 999px; cursor: pointer; font-size: 1rem; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.stepper.sm { height: 44px; }
.stepper.sm button { width: 42px; }

/* comanda */
.steps { list-style: none; display: flex; gap: 20px; margin: 0; padding: 12px 28px; border-bottom: 1px solid var(--line); counter-reset: paso; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.steps li { counter-increment: paso; padding-bottom: 4px; border-bottom: 1px solid transparent; }
.steps li::before { content: counter(paso) " "; }
.steps li.on { color: var(--ink); border-color: var(--oro); }
.steps li.done { color: var(--hoja); }
.steps li.done::after { content: " ✓"; }

.line { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line:first-child { padding-top: 0; }
.media.line-thumb { width: 72px; }
.media.line-thumb .ph-mark { background-size: 44% auto; }
.line-top { display: flex; justify-content: space-between; gap: 12px; }
.line-title { font-family: var(--serif); font-size: 1.1rem; line-height: 1.25; }
.line-price { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line-unit { margin-top: 2px; font-size: .78rem; color: var(--ink-faint); }
.line-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.empty { text-align: center; padding: 40px 8px; }
.empty img { width: 88px; margin: 0 auto 18px; }
.empty h3 { font-size: 1.6rem; }
.empty p { color: var(--ink-soft); margin: 8px 0 22px; }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; }
.subtotal strong { font-size: 1.3rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.foot-note { margin: 4px 0 14px; font-size: .78rem; color: var(--ink-faint); }
.totals { display: grid; gap: 6px; margin-bottom: 8px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .9rem; color: var(--ink-soft); }
.total-row .amt { font-variant-numeric: tabular-nums; color: var(--ink); }
.total-row.grand { margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 1rem; color: var(--ink); }
.total-row.grand .amt { font-size: 1.3rem; font-weight: 500; }
.ship-progress { display: grid; gap: 6px; margin-bottom: 6px; font-size: .82rem; color: var(--ink-soft); }
.ship-progress.done { color: var(--hoja); }
.ship-bar { height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ship-bar span { display: block; height: 100%; border-radius: inherit; background: var(--canela); transition: width .4s var(--ease); }
.ship-progress.done .ship-bar span { background: var(--hoja); }
.qv-ship { margin-top: 10px; font-size: .84rem; color: var(--ink-soft); }

.summary { margin-bottom: 24px; border: 1px solid var(--line); border-radius: 4px; }
.summary summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; cursor: pointer; font-size: .92rem; }
.summary summary::-webkit-details-marker { display: none; }
.summary summary .i { color: var(--oro); transition: transform .25s var(--ease); }
.summary[open] summary .i { transform: rotate(180deg); }
.summary ul { list-style: none; margin: 0; padding: 0 16px 10px; font-size: .84rem; color: var(--ink-soft); }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }

.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 2px; padding: 0; font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }
.opt { text-transform: none; letter-spacing: .02em; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 64px; line-height: 1.45; }
.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a457' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 2px center / 18px no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--canela); box-shadow: 0 1px 0 0 var(--canela); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }
.field-error { margin-top: 6px; font-size: .8rem; color: var(--error); }
.field-error:empty { display: none; }
.hint { margin-top: 6px; font-size: .76rem; color: var(--ink-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 400px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.tel { display: flex; gap: 12px; }
.tel-prefix { display: flex; align-items: center; min-height: 46px; padding: 0 4px; border-bottom: 1px solid var(--line-strong); color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { position: relative; cursor: pointer; }
.field label.chip { display: block; margin: 0; font-size: inherit; font-weight: 400; letter-spacing: normal; text-transform: none; color: inherit; }
.chip input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip > span { display: flex; align-items: center; gap: 4px; min-height: 46px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9rem; color: var(--ink-soft); transition: background .2s, border-color .2s, color .2s; }
.chip > span b { font-weight: 600; font-variant-numeric: tabular-nums; }
.chip:hover > span { border-color: var(--canela); }
.chip input:checked + span { background: rgba(207, 122, 73, .16); border-color: var(--canela); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--canela); outline-offset: 3px; }
@media (max-width: 720px) { .chips { flex-direction: column; } }
.check { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; font-size: .92rem; color: var(--ink-soft); cursor: pointer; }
.box { flex: none; width: 22px; height: 22px; margin-top: 1px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 5px; color: transparent; font-size: .9rem; transition: background .2s, border-color .2s; }
.check input:checked + .box { background: var(--canela); border-color: var(--canela); color: var(--btn-ink); }
.check input:focus-visible + .box { outline: 2px solid var(--canela); outline-offset: 3px; }
.check input[aria-invalid="true"] + .box { border-color: var(--error); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-alert { display: grid; gap: 12px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--error); border-radius: 4px; background: rgba(142, 31, 43, .2); font-size: .92rem; }

/* confirmación */
.confirm { text-align: center; }
.stamp { width: 132px; height: 132px; margin: 8px auto 0; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(60% 60% at 38% 32%, #b0303d, #8e1f2b 55%, #5e1019); box-shadow: 0 22px 50px -22px rgba(0, 0, 0, .9), inset 0 -6px 16px rgba(0, 0, 0, .35), inset 0 5px 12px rgba(255, 200, 170, .18); }
.stamp img { width: 112px; height: 112px; }
.step[data-step="3"]:not([hidden]) .stamp { animation: stamp .9s var(--ease) both; }
@keyframes stamp { 0% { transform: scale(1.35) rotate(-8deg); opacity: 0; } 60% { transform: scale(.96) rotate(2deg); opacity: 1; } 100% { transform: none; } }
.confirm .eyebrow { margin-top: 22px; }
.confirm h3 { margin-top: 10px; font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 300; }
.confirm .lede { margin: 12px auto 0; }
.receipt { margin-top: 26px; padding: 24px 22px; text-align: left; border-radius: 4px; background: #f3eadb; color: #3a1622; box-shadow: var(--shadow); }
.receipt-head { text-align: center; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid rgba(58, 22, 34, .25); }
.receipt-brand { font-family: var(--serif); font-size: .84rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; }
.receipt-brand em { font-style: italic; letter-spacing: 0; text-transform: none; color: #a34d28; }
.receipt-date { margin-top: 4px; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #7c584e; }
.r-line { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; font-size: .88rem; }
.r-line .dots { flex: 1; min-width: 14px; border-bottom: 1px dotted rgba(58, 22, 34, .4); transform: translateY(-4px); }
.r-line .amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-line.muted { color: #7c584e; }
.r-line.total { margin-top: 6px; padding-top: 12px; border-top: 1px solid rgba(58, 22, 34, .25); font-weight: 600; }
.r-line.total .lbl { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.receipt-foot { margin-top: 10px; font-size: .74rem; color: #7c584e; }
.receipt-thanks { margin-top: 14px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.next { list-style: none; padding: 0; margin: 26px 0 0; text-align: left; }
.next li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-soft); }
.next li > span:nth-child(2) { flex: 1; }
.next .num { width: 28px; font-size: 1.5rem; }
.next li.done { color: var(--ink); }
.next li.done .num, .next li.done .i { color: var(--hoja); }

/* verificación +18 */
.gate { position: fixed; inset: 0; width: 100vw; height: 100dvh; margin: 0; background: rgba(14, 7, 6, .94); }
.gate::backdrop { background: rgba(10, 5, 4, .92); backdrop-filter: blur(12px); }
.gate-inner { height: 100%; display: flex; overflow: auto; padding: 40px 22px; }
.gate-inner > div { margin: auto; width: 100%; max-width: 620px; text-align: center; }
.gate-seal { width: clamp(112px, 16vw, 150px); height: auto; margin: 0 auto 26px; }
.gate-title { margin-top: 16px; font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 300; }
.gate-copy { max-width: 44ch; margin: 18px auto 0; color: var(--ink-soft); font-size: 1.02rem; }
.gate-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { margin-top: 18px; font-size: .76rem; color: var(--ink-faint); }
@media (max-width: 520px) { .gate-actions .btn { flex: 1 1 100%; } }

/* aparición */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
