/* Buna Coffee Culture · estilos de la web del cliente */
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(/fonts/manrope-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url(/fonts/manrope-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url(/fonts/manrope-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(/fonts/manrope-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant'; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant'; font-weight: 600; font-display: swap; src: url(/fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant'; font-weight: 500; font-style: italic; font-display: swap; src: url(/fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2'); }

:root {
  --cream: #F4EEE4;
  --paper: #FFFCF7;
  --espresso: #2B1E16;
  --toast: #7A4E31;
  --ink-2: #5B4A3E;
  --ink-3: #6B5A4E;
  --line: #E1D5C3;
  --line-2: #CDBFAB;
  --olive: #5E6B3A;
  --olive-bg: #E4E6D6;
  --gold: #D9C6A5;
  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--espresso);
  font-family: var(--sans); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 520px; margin: 0 auto; padding: 0 20px; }
.serif { font-family: var(--serif); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cabecera */
.topbar { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; min-height: 52px; gap: 12px; }
.pill {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 12px; border: 1px solid #D8CAB5; border-radius: 999px; color: var(--ink-2); background: transparent;
}
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 0; background: transparent; cursor: pointer; }
.icon-btn:hover { background: rgba(43, 30, 22, .06); }

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 0 22px; }
.hero h1 { margin: 0; line-height: 0; }
.hero img { width: 290px; height: auto; }
.hero p { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-3); }

/* Recomendado */
.feature {
  display: flex; flex-direction: column; gap: 6px; background: var(--espresso); color: var(--cream);
  border-radius: 22px; padding: 20px 22px;
}
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.feature .eyebrow { color: var(--gold); }
.feature h2 { margin: 2px 0 0; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.05; }
.feature p { margin: 0; font-size: 13px; color: #E6DACB; }
.feature .row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 12px; border-top: 1px solid #4A3A2E; }
.feature .row span:first-child { font-size: 12px; color: var(--gold); }
.price { font-family: var(--serif); font-size: 22px; font-weight: 600; white-space: nowrap; }

/* Índice de secciones */
.index h2 { margin: 26px 0 4px; font-family: var(--serif); font-weight: 600; font-size: 26px; }
.index a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--line); gap: 12px; }
.index a:last-child { border-bottom: 0; }
.index a b { display: block; font-size: 15px; font-weight: 600; }
.index a small { display: block; font-size: 12px; color: var(--ink-3); }

/* Barra de secciones fija */
.chips {
  position: sticky; top: 0; z-index: 5; background: rgba(244, 238, 228, .94); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); margin: 26px -20px 0; padding: 10px 20px; display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  border: 1px solid #D8CAB5; color: var(--ink-2); white-space: nowrap;
}
.chip.on { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }

/* Secciones de la carta */
.section { padding-top: 30px; scroll-margin-top: 64px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 6px; border-bottom: 1.5px solid var(--espresso); gap: 10px; }
.section-head h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.1; }
.section-head span { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--ink-3); white-space: nowrap; }
.section-sub { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }
.item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item .txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.item .name { font-size: 15px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.item .desc { font-size: 12.5px; color: var(--ink-3); }
.item .al { font-size: 11px; font-weight: 600; color: var(--olive); }
.item .price { font-size: 21px; }
.tag { font-size: 10px; font-weight: 700; letter-spacing: .12em; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; }
.tag.fav { background: var(--olive-bg); color: #3F4826; }
.tag.out { border: 1px solid #C9B8A2; color: var(--ink-3); }
.item.soldout .name > span:first-child { color: #8C7B6E; text-decoration: line-through; }
.item.soldout .price { color: #8C7B6E; }
.extras { margin-top: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.extras .eyebrow { color: var(--ink-3); font-size: 10px; letter-spacing: .24em; }
.extras div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.extras b { white-space: nowrap; }

.foot { margin: 36px 0 110px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; color: var(--ink-2); }
.foot img { width: 150px; margin-bottom: 6px; }
.foot a { text-decoration: underline; }

/* Botón flotante de la tarjeta */
.card-fab {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom));
  width: min(480px, calc(100% - 28px)); z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(43, 30, 22, .14);
}
.card-fab b { display: block; font-size: 14px; }
.card-fab small { display: block; font-size: 12px; color: var(--ink-3); }
.dots { display: grid; grid-template-columns: repeat(5, 10px); gap: 4px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #A68B72; }
.dots i.on { background: var(--toast); border-color: var(--toast); }

/* Tarjeta de sellos */
.stampcard { margin-top: 12px; background: var(--espresso); color: var(--cream); border-radius: 24px; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.stampcard .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.stampcard .head img { width: 150px; }
.stampcard .count { font-family: var(--serif); font-weight: 600; font-size: 38px; line-height: 1; text-align: right; }
.stampcard .count small { font-size: 20px; color: var(--gold); }
.stampcard .count em { display: block; font-family: var(--sans); font-style: normal; font-size: 11px; color: var(--gold); margin-top: 4px; }
.beans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.bean { aspect-ratio: 1; border-radius: 50%; border: 1px solid #6A5546; display: flex; align-items: center; justify-content: center; }
.bean svg { width: 58%; height: 58%; }
.bean.new { animation: pop .7s cubic-bezier(.2, 1.6, .4, 1); }
.bean span { font-size: 9px; font-weight: 700; letter-spacing: .06em; color: var(--gold); }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.stampcard p { margin: 0; font-size: 13.5px; color: #E6DACB; }
.stampcard p strong { color: var(--cream); }
.stampcard.full { box-shadow: 0 0 0 3px #9DAE5C inset; }

.qrbox { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 0 0; text-align: center; }
.qrbox .qr { background: #fff; padding: 14px; border-radius: 16px; border: 1px solid var(--line); }
.qrbox .qr img { width: 170px; height: 170px; image-rendering: pixelated; }
.code { font-size: 15px; font-weight: 700; letter-spacing: .18em; }
.muted { font-size: 12.5px; color: var(--ink-3); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 18px;
  border-radius: 14px; font-size: 15px; font-weight: 700; border: 0; cursor: pointer; width: 100%; text-align: center;
}
.btn.dark { background: var(--espresso); color: var(--cream); }
.btn.black { background: #000; color: #fff; }
.btn.light { background: #fff; border: 1px solid var(--line-2); color: var(--espresso); }
.btn.ghost { background: transparent; color: var(--ink-2); font-weight: 600; min-height: 44px; }
.btn.small { width: auto; min-height: 40px; border-radius: 999px; font-size: 13px; font-weight: 600; padding: 0 14px; }
.btn:disabled { opacity: .55; cursor: default; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* Formularios */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field input { min-height: 52px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 14px; padding: 0 16px; font-size: 16px; }
.field input:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--toast); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); }
.check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--espresso); }
.check a { text-decoration: underline; }
.badge { align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: .2em; padding: 5px 10px; border-radius: 999px; background: var(--olive-bg); color: #3F4826; }
.title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 36px; line-height: 1.05; }
.lead { margin: 0; font-size: 14px; color: var(--ink-2); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.msg { font-size: 13px; padding: 10px 12px; border-radius: 12px; background: #F6E3DC; color: #7A2E1F; }
.msg.ok { background: var(--olive-bg); color: #3F4826; }
.hidden { display: none !important; }
.prose { padding: 10px 0 60px; font-size: 14px; }
.prose h1 { font-family: var(--serif); font-size: 34px; margin: 10px 0; }
.prose h2 { font-size: 16px; margin: 22px 0 6px; }
.price, .stampcard .count, .feature h2, .section-head h2, .title { font-variant-numeric: lining-nums; }
