:root{
  --ink:#24150F; --ink-2:#5A4536; --muted:#6B5444;
  --cream:#FBF8F3; --sand:#EFE5D7; --line:#E2D6C6; --tan:#D9B98C; --tan-2:#E9DCCB;
  --red:#C8161D; --red-d:#A11117; --green:#2F4A3A; --wa:#128C4B;
  --serif:'Fraunces',Georgia,serif; --sans:'Work Sans',system-ui,sans-serif;
  --r:20px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
h1,h2,h3{font-family:var(--serif);font-weight:600;margin:0;line-height:1.1}
p{margin:0}
a{color:var(--ink)} a:hover{color:var(--red)}
:focus-visible{outline:3px solid var(--tan);outline-offset:3px;border-radius:6px}
.wrap{max-width:1200px;margin:0 auto;padding-left:24px;padding-right:24px}
.section{padding-top:104px;padding-bottom:104px}
section[id]{scroll-margin-top:84px}
.skip{position:absolute;left:-9999px;top:8px;background:var(--ink);color:#fff;padding:10px 16px;z-index:100;border-radius:8px}
.skip:focus{left:8px}
.eyebrow{font-size:14px;letter-spacing:.14em;text-transform:uppercase;color:var(--red);font-weight:600}
.eyebrow.light{color:var(--tan);font-weight:500}
h2{font-size:clamp(32px,4.2vw,46px)}
.stack{display:flex;flex-direction:column;gap:20px}
.stack-sm{display:flex;flex-direction:column;gap:10px}
.stack-lg{display:flex;flex-direction:column;gap:48px}
.intro{display:flex;flex-direction:column;gap:14px;max-width:680px}
.two-col{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:64px;align-items:start}
.rounded-img{width:100%;height:560px;object-fit:cover;border-radius:24px}
.band{background:var(--sand)}

/* Botones */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 26px;border-radius:999px;font:600 16px var(--sans);text-decoration:none;border:0;cursor:pointer;transition:background .15s,transform .1s}
.btn:active{transform:translateY(1px)}
.btn-accent{background:var(--red);color:#fff} .btn-accent:hover{background:var(--red-d);color:#fff}
.btn-ghost{border:1.5px solid var(--tan-2);color:var(--cream);background:transparent} .btn-ghost:hover{background:rgba(255,255,255,.08);color:#fff}
.btn-dark{background:var(--ink);color:var(--cream)} .btn-dark:hover{background:#3A2419;color:#fff}
.btn-wa{background:var(--wa);color:#fff;width:100%;border-radius:14px} .btn-wa:hover{background:#0E7A40}
.actions{display:flex;flex-wrap:wrap;gap:14px}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:999px;border:0;background:transparent;color:inherit;cursor:pointer}
.icon-btn:hover{background:rgba(0,0,0,.06)}

/* Encabezado */
.top{background:var(--ink);color:var(--cream);position:sticky;top:0;z-index:40}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:12px;padding-bottom:12px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--cream)}
.brand img{height:48px;width:auto}
.brand span{font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--tan)}
.menu{display:flex;align-items:center;gap:26px;font-size:15px}
.menu a{color:var(--tan-2);text-decoration:none} .menu a:hover{color:#fff}
.menu-btn{display:none;background:none;border:0;color:var(--cream);width:44px;height:44px;cursor:pointer}
.cart-btn{display:inline-flex;align-items:center;gap:8px;background:var(--red);color:#fff;border:0;border-radius:999px;padding:10px 18px;min-height:44px;font:600 15px var(--sans);cursor:pointer}
.cart-btn:hover{background:var(--red-d)}
.cart-count{background:#fff;color:var(--red);border-radius:999px;min-width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;padding:0 6px}

/* Portada */
.hero{background:var(--ink);color:var(--cream)}
.hero-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:56px;align-items:center;padding-top:56px;padding-bottom:96px}
.hero-text{display:flex;flex-direction:column;gap:24px}
.hero h1{font-size:clamp(40px,5.6vw,64px);line-height:1.05}
.lead{font-size:19px;color:var(--tan-2);max-width:520px}
.hero-img{width:100%;height:580px;object-fit:cover;border-radius:24px}
.stats{display:flex;flex-wrap:wrap;gap:32px;margin:8px 0 0;padding-top:20px;border-top:1px solid #4A3428}
.stats div{display:flex;flex-direction:column-reverse}
.stats dd{margin:0;font-family:var(--serif);font-size:34px;font-weight:600;line-height:1.2}
.stats dt{font-size:14px;color:var(--tan)}

/* Historia */
.timeline{list-style:none;margin:8px 0 0;padding:0;border-left:2px solid #D9C7B2}
.timeline li{padding:0 0 22px 24px;display:flex;flex-direction:column}
.timeline li:last-child{padding-bottom:0}
.timeline strong{font-family:var(--serif);font-size:22px;font-weight:600;color:var(--red)}

/* Proceso */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:20px}
.steps li{background:var(--cream);border-radius:var(--r);padding:28px;display:flex;flex-direction:column;gap:10px}
.steps h3{font-size:24px}
.steps p{font-size:16px}
.step-n{font-size:13px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.ic{width:40px;height:40px;fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ic.red{stroke:var(--red)} .ic.green{stroke:var(--green)}

/* Productos */
.products{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:24px}
.product{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column;background:#fff}
.product.featured{border:2px solid var(--red)}
.product img{width:100%;height:320px;object-fit:cover}
.product-body{padding:26px;display:flex;flex-direction:column;gap:12px;flex-grow:1}
.product .tag{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.product.featured .tag{color:var(--red)}
.product h3{font-size:26px}
.product .desc{font-size:15px;color:var(--ink-2)}
.price{display:flex;align-items:baseline;gap:8px;margin-top:auto;padding-top:6px}
.price strong{font-size:30px;font-weight:600}
.price span{font-size:14px;color:var(--muted)}
.opts{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}
.field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:500;color:var(--ink-2)}
select,input[type=text],textarea{font:16px var(--sans);color:var(--ink);background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:11px 12px;min-height:46px;width:100%}
textarea{resize:vertical}
select:focus,input:focus,textarea:focus{outline:none;border-color:var(--ink)}
.qty{display:inline-flex;align-items:center;border:1.5px solid var(--line);border-radius:12px;height:46px}
.qty button{width:40px;height:100%;border:0;background:none;font-size:20px;cursor:pointer;color:var(--ink)}
.qty output{min-width:28px;text-align:center;font-weight:600}
.add{width:100%;border-radius:12px}
.info-band{background:var(--green);color:var(--cream);border-radius:var(--r);padding:32px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:24px}
.info-band h3{font-size:20px;margin-bottom:6px}
.info-band p{font-size:15px;color:#DCE6DF}

/* Galería */
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));grid-auto-rows:220px;gap:14px}
.gallery button{padding:0;border:0;border-radius:16px;overflow:hidden;cursor:zoom-in;background:var(--line)}
.gallery button:first-child{grid-column:span 2;grid-row:span 2}
.gallery img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.gallery button:hover img{transform:scale(1.04)}
.lightbox{border:0;padding:0;background:transparent;max-width:100vw;max-height:100vh;width:100vw;height:100vh;color:#fff}
.lightbox::backdrop{background:rgba(20,12,8,.92)}
.lightbox[open]{display:flex;align-items:center;justify-content:center}
.lightbox figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:12px;max-width:min(92vw,1100px)}
.lightbox img{max-height:80vh;width:auto;border-radius:12px}
.lightbox figcaption{font-size:15px;color:var(--tan-2)}
.lb-close{position:fixed;top:16px;right:16px}
.lb-prev{position:fixed;left:12px;top:50%;transform:translateY(-50%)}
.lb-next{position:fixed;right:12px;top:50%;transform:translateY(-50%)}
.lightbox .icon-btn{background:rgba(255,255,255,.12)} .lightbox .icon-btn:hover{background:rgba(255,255,255,.24)}

/* Visítanos */
.addr{font-size:19px}
.small-h{font-size:22px;margin-top:8px}
.hours{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.hours li{display:flex;justify-content:space-between;gap:16px;border-bottom:1px dashed var(--line);padding-bottom:6px;max-width:420px}
.map{border-radius:24px;overflow:hidden;min-height:440px;background:var(--sand);border:1px solid var(--line)}
.map iframe{width:100%;height:100%;min-height:440px;border:0;display:block}

/* Pie */
.footer{background:var(--ink);color:var(--tan-2)}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:40px;padding-top:72px;padding-bottom:40px}
.footer img{height:60px;width:auto}
.footer h3{font-family:var(--sans);font-size:15px;font-weight:600;color:var(--cream)}
.footer a{color:var(--tan-2);font-size:15px} .footer a:hover{color:#fff}
.footer p{font-size:15px}
.legal{border-top:1px solid #4A3428;padding-top:22px;padding-bottom:28px;font-size:13px;color:#BFA992}

/* Carrito */
.fab{position:fixed;right:16px;bottom:16px;z-index:45;display:inline-flex;align-items:center;gap:10px;background:var(--red);color:#fff;border:0;border-radius:999px;padding:14px 22px;font:600 16px var(--sans);box-shadow:0 10px 30px rgba(36,21,15,.35);cursor:pointer}
.fab[hidden]{display:none}
.cart{border:0;padding:0;margin:0 0 0 auto;height:100vh;max-height:100vh;width:min(440px,100vw);background:var(--cream);color:var(--ink)}
.cart::backdrop{background:rgba(36,21,15,.5)}
.cart-inner{display:flex;flex-direction:column;gap:18px;padding:22px 22px 28px;min-height:100%}
.cart-head{display:flex;justify-content:space-between;align-items:center}
.cart-head h2{font-size:30px}
.empty{color:var(--muted)}
.cart-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.cart-item{display:grid;grid-template-columns:64px 1fr auto;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px}
.cart-item img{width:64px;height:64px;object-fit:cover;border-radius:10px}
.cart-item h3{font-family:var(--sans);font-size:15px;font-weight:600}
.cart-item p{font-size:13px;color:var(--muted)}
.cart-item .line-total{font-weight:600;text-align:right}
.cart-item .row{display:flex;align-items:center;gap:8px;margin-top:4px}
.mini-qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:10px;height:34px}
.mini-qty button{width:32px;height:100%;border:0;background:none;font-size:18px;cursor:pointer}
.mini-qty span{min-width:22px;text-align:center;font-weight:600;font-size:14px}
.remove{border:0;background:none;color:var(--red-d);font:500 13px var(--sans);text-decoration:underline;cursor:pointer;padding:6px 2px}
.cart-form{display:flex;flex-direction:column;gap:14px;margin-top:auto}
.cart-form[hidden]{display:none}
fieldset{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
legend{font-size:14px;font-weight:600;color:var(--ink-2);margin-bottom:6px}
.radio{display:flex;align-items:center;gap:10px;background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:10px 12px;min-height:46px;cursor:pointer;font-size:15px}
.radio input{width:18px;height:18px;accent-color:var(--red)}
.cart-total{display:flex;justify-content:space-between;align-items:baseline;border-top:1px solid var(--line);padding-top:14px}
.cart-total strong{font-family:var(--serif);font-size:30px}
.hint{font-size:13px;color:var(--muted)}
.toast{position:fixed;left:50%;bottom:90px;transform:translate(-50%,20px);background:var(--ink);color:#fff;padding:12px 20px;border-radius:999px;font-size:15px;opacity:0;pointer-events:none;transition:all .25s;z-index:60;white-space:nowrap}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* Celular */
@media (max-width:900px){
  .menu-btn{display:inline-flex;align-items:center;justify-content:center}
  .menu{display:none;position:absolute;left:0;right:0;top:100%;background:var(--ink);flex-direction:column;align-items:stretch;gap:0;padding:8px 24px 20px;border-top:1px solid #4A3428}
  .menu.open{display:flex}
  .menu a{padding:14px 0;border-bottom:1px solid #3A2419;font-size:17px}
  .menu .cart-btn{margin-top:16px;justify-content:center}
}
@media (max-width:640px){
  body{font-size:16px}
  .section{padding-top:64px;padding-bottom:64px}
  .hero-grid{padding-top:32px;padding-bottom:56px;gap:36px}
  .hero-img{height:420px}
  .rounded-img{height:340px}
  .two-col{gap:40px}
  .stats{gap:22px}
  .stats dd{font-size:28px}
  .brand img{height:42px}
  .gallery{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:150px;gap:10px}
  .map,.map iframe{min-height:320px}
  .lb-prev,.lb-next{top:auto;bottom:20px;transform:none}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none !important}
}

/* Homenaje */
.tribute{background:#1B0F0A;color:var(--cream);position:relative}
.tribute .intro p:last-child{color:var(--tan-2)}
.center{margin:0 auto;text-align:center;align-items:center}
.tribute-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:28px;max-width:1000px;margin:0 auto;width:100%}
.tribute-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:36px 28px;border:1px solid #4A3428;border-radius:24px;background:#24150F}
.portrait{width:168px;height:168px;border-radius:50%;overflow:hidden;border:3px solid var(--tan);box-shadow:0 0 0 8px #24150F,0 0 0 9px #4A3428;display:flex;align-items:center;justify-content:center;background:#3A2419}
.portrait img{width:100%;height:100%;object-fit:cover;filter:sepia(.35) contrast(1.05)}
.portrait span{font-family:var(--serif);font-size:52px;color:var(--tan);font-weight:600}
.tribute-card h3{font-size:24px;color:#fff}
.tribute-card .role{font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--tan)}
.tribute-card p.txt{font-size:16px;color:var(--tan-2)}
.tribute-quote{margin:0 auto;max-width:760px;text-align:center;border-top:1px solid #4A3428;padding-top:36px}
.tribute-quote p{font-family:var(--serif);font-size:clamp(22px,2.6vw,30px);line-height:1.35;font-style:italic;color:#fff}
.tribute-quote footer{margin-top:14px;font-size:14px;color:var(--tan)}

/* Sabores */
.tight-top{padding-top:24px}
.scale{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;font-size:14px;color:var(--muted);font-weight:500}
.scale-bar{position:relative;height:10px;border-radius:999px;background:linear-gradient(90deg,#E9DCCB,#8A5A3B,#2A1710);margin:28px 0}
.scale-bar i{position:absolute;top:-30px;transform:translateX(-50%);font-style:normal;font-size:13px;font-weight:600;color:var(--ink);white-space:nowrap}
.scale-bar i::after{content:"";position:absolute;left:50%;top:24px;width:16px;height:16px;margin-left:-8px;border-radius:50%;background:#fff;border:3px solid var(--red)}
.flavors{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:24px}
.flavor{border:1px solid var(--line);background:#fff;border-radius:var(--r);padding:30px;display:flex;flex-direction:column;gap:14px}
.flavor .tag{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.flavor h3{font-size:30px}
.flavor p{font-size:16px;color:var(--ink-2)}
.flavor-trad{background:var(--red);border-color:var(--red);color:#fff}
.flavor-trad h3,.flavor-trad p,.flavor-trad .tag,.flavor-trad dt,.flavor-trad dd{color:#fff}
.flavor-trad .ideal{color:#FFE3E0}
.meter{margin:4px 0 0;display:flex;flex-direction:column;gap:8px;border-top:1px solid rgba(0,0,0,.08);padding-top:14px}
.flavor-trad .meter{border-color:rgba(255,255,255,.25)}
.meter div{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px}
.meter dt{color:var(--muted);font-weight:500}
.meter dd{margin:0;font-weight:600}
.dots{display:inline-flex;gap:5px}
.dots b{width:12px;height:12px;border-radius:50%;border:1.5px solid currentColor;display:inline-block}
.dots b.on{background:currentColor}
.ideal{font-size:14px !important;font-style:italic;margin-top:auto !important}
.espresso{background:var(--ink);color:var(--cream);border-radius:var(--r);padding:34px;display:flex;flex-wrap:wrap;gap:24px;align-items:center;justify-content:space-between}
.espresso .stack-sm{max-width:700px}
.espresso h3{font-size:28px}
.espresso p:not(.eyebrow){color:var(--tan-2);font-size:16px}
@media (max-width:640px){
  .scale{grid-template-columns:1fr 1fr;font-size:12px}
  .scale-bar{grid-column:1/-1;grid-row:1;margin:34px 6px 8px}
  .scale span:last-child{text-align:right}
  .scale-bar i{font-size:11px}
  .portrait{width:136px;height:136px}
}
.flavor-trad .meter dt{color:#FFE3E0}

/* ===== Mockup realista: grano 3D y bolsas con inclinación ===== */
.bean-hero{position:relative;height:480px;display:grid;place-items:center}
.bean-hero canvas{position:relative;width:100%;height:100%;opacity:0;transition:opacity .8s}
.bean-hero canvas.ready{opacity:1}
.bag-stage{position:relative;height:340px;display:grid;place-items:center;background:radial-gradient(80% 70% at 50% 35%,#FFFFFF 0%,#F3EBDF 60%,#E9DCCB 100%);perspective:900px;touch-action:pan-y;overflow:hidden}
.bag-tilt{position:relative;height:286px;transform-style:preserve-3d;will-change:transform;z-index:1}
.bag-tilt img{height:100%;width:auto;max-width:none;filter:drop-shadow(0 18px 18px rgba(36,21,15,.22));user-select:none;-webkit-user-drag:none}
.bag-glare{position:absolute;inset:0;pointer-events:none;-webkit-mask-size:100% 100%;mask-size:100% 100%;mix-blend-mode:soft-light}
.bag-shadow{position:absolute;bottom:4%;left:50%;width:58%;height:22px;margin-left:-29%;border-radius:50%;background:radial-gradient(closest-side,rgba(36,21,15,.35),transparent);filter:blur(4px)}
.product .bag-stage img{object-fit:contain}
@media (max-width:640px){ .bean-hero{height:340px} .bag-stage{height:300px} .bag-tilt{height:252px} }

/* ===== v5: bolsas 3D ===== */
.bag-stage{cursor:grab}
.bag-stage:active{cursor:grabbing}
.bag-stage .bag-fallback{position:relative;z-index:1;height:286px;width:auto;max-width:none;object-fit:contain;filter:drop-shadow(0 18px 18px rgba(36,21,15,.22));transition:opacity .4s}
.bag-stage canvas.bag3d{position:absolute;inset:0;width:100%;height:100%;z-index:2;opacity:0;transition:opacity .6s}
.bag-stage.is-3d canvas.bag3d{opacity:1}
.bag-stage.is-3d .bag-fallback{opacity:0}
.bag-hint{position:absolute;left:14px;bottom:10px;z-index:3;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#6B5444;opacity:0;transition:opacity .4s;pointer-events:none}
.bag-stage.is-3d .bag-hint{opacity:1}
@media (max-width:640px){ .bag-stage .bag-fallback{height:252px} }

/* ===== v5: lluvia de granos ===== */
.bean-rain{position:absolute;inset:0;width:100%;height:100%;z-index:4;pointer-events:none}
.bag-hint{top:12px;bottom:auto}

/* ===== v5: portada más compacta, grano con lluvia ===== */
.bean-hero{height:380px;max-width:440px;width:100%;justify-self:center}
@media (max-width:900px){
  .hero-grid{gap:20px;padding-top:16px}
  .bean-hero{order:-1;height:230px;max-width:300px;width:100%;justify-self:center}
}

/* ===== v5: lluvia de granos en toda la portada ===== */
.hero{position:relative;overflow:hidden}
.hero-rain{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.hero-grid{position:relative;z-index:1}

/* ===== Portada B: una sola pantalla, texto que informa y vende ===== */
.hb{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);grid-template-areas:"text bean" "shop shop";gap:18px 40px;align-items:center;padding-top:24px;padding-bottom:28px;min-height:min(calc(100svh - 72px),760px);align-content:center}
.hb-text{grid-area:text;display:flex;flex-direction:column;gap:16px;min-width:0}
.hero-b h1{font-size:clamp(38px,4.6vw,60px);line-height:1.04;letter-spacing:-.01em}
.hero-b h1 span{color:var(--tan)}
.hero-b .lead{font-size:18px;max-width:520px}
.hb-facts{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.hb-facts li{font-size:14px;color:var(--tan-2);border:1px solid #4A3428;border-radius:999px;padding:6px 12px;background:rgba(36,21,15,.6)}
.hb-facts b{color:#fff;font-weight:600}
.hero-b .bean-hero{grid-area:bean;height:340px;max-width:400px;margin-bottom:0;align-self:center}
.hb-shop{grid-area:shop;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.hb-item{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 14px;border-radius:16px;background:rgba(43,26,18,.82);border:1px solid #4A3428;text-decoration:none;color:var(--cream);transition:border-color .2s,background .2s}
.hb-item:hover{border-color:var(--tan);background:rgba(58,36,25,.92);color:#fff}
.hb-item img{width:40px;height:auto;max-height:64px;object-fit:contain}
.hb-name{display:flex;flex-direction:column;min-width:0}
.hb-name b{font-family:var(--serif);font-size:18px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hb-name small{font-size:13px;color:var(--tan)}
.hb-price{display:flex;flex-direction:column;align-items:flex-end;font-size:20px;font-weight:600}
.hb-price small{font-size:12px;font-weight:600;color:#fff;background:var(--red);border-radius:999px;padding:3px 10px;margin-top:4px}
@media (max-width:900px){
  .hb{grid-template-columns:1fr;grid-template-areas:"bean" "text" "shop";gap:12px;padding-top:8px;padding-bottom:20px;min-height:0}
  .hero-b .bean-hero{height:170px;max-width:220px;justify-self:center}
  .hero-b h1{font-size:34px}
  .hero-b .lead{font-size:15px}
  .hb-text{gap:12px}
  .hb-facts li{font-size:12px;padding:5px 10px}
  .hero-b .actions{gap:10px}
  .hero-b .actions .btn{flex:1 1 0;padding-left:14px;padding-right:14px}
  .hb-shop{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;padding-bottom:4px;margin-right:-16px;padding-right:16px}
  .hb-shop li{flex:0 0 78%;scroll-snap-align:start}
}
@media (max-width:900px){ .hero-b .actions .btn{font-size:14px;white-space:nowrap} .hero-b .eyebrow{font-size:12px;letter-spacing:.1em} }

/* ===== Portada B v3: barra de café abajo; cafés en la columna izquierda; grano encima de la barra ===== */
.hb{grid-template-areas:"text bean" "shop bean";padding-bottom:132px;align-items:end}
.hero-b .bean-hero{align-self:end;height:360px;margin-bottom:-6px}
.hb-shop{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hb-item{grid-template-columns:34px minmax(0,1fr);grid-template-areas:"img name" "img price";gap:4px 10px;padding:10px 12px}
.hb-item img{grid-area:img;width:34px}
.hb-name{grid-area:name}
.hb-name b{font-size:16px}
.hb-name small{font-size:12px}
.hb-price{grid-area:price;flex-direction:row;align-items:center;justify-content:space-between;font-size:17px}
.hb-price small{margin-top:0}
@media (max-width:900px){
  .hb{grid-template-areas:"bean" "text" "shop";padding-bottom:86px;align-items:center}
  .hero-b .bean-hero{height:170px;margin-bottom:0}
  .hb-shop{grid-template-columns:none}
  .hb-shop li{flex:0 0 62%}
}

/* Portada B: titular de orgullo + nota de sabor */
.hero-b h1{font-size:clamp(34px,3.9vw,52px);line-height:1.06;max-width:none}
.hero-b h1 span{display:block;font-size:.62em;line-height:1.15;font-weight:500;font-style:italic;color:var(--tan);margin-top:6px;max-width:none}
.hb-taste{margin:0;max-width:520px;font-size:15px;color:var(--tan-2);padding-left:14px;border-left:2px solid var(--red)}
.hb-taste b{color:#fff;font-weight:600}
@media (max-width:900px){ .hero-b h1{font-size:30px} .hb-taste{font-size:13px} }
.hero-b .hb-text{gap:14px}

.hb-gens{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:620px;counter-reset:g}
.hb-gens li{display:flex;flex-direction:column;gap:2px;padding-top:10px;border-top:2px solid #4A3428;counter-increment:g}
.hb-gens li::before{content:counter(g) "ª generación";font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--red-2,#E0353B);font-weight:600}
.hb-gens b{font-family:var(--serif);font-size:20px;font-weight:600;color:#fff}
.hb-gens span{font-size:14px;line-height:1.35;color:var(--tan-2)}
@media (max-width:900px){ .hb-gens{gap:8px} .hb-gens b{font-size:16px} .hb-gens span{font-size:12px} .hb-gens li::before{font-size:9px;letter-spacing:.06em} }
.hero-b .hb-text{gap:12px} .hb-gens li{padding-top:8px}
.hb-gens em{font-style:normal;font-size:13px;font-weight:600;color:var(--tan);line-height:1.3}
@media (max-width:900px){ .hb-gens em{font-size:11px} }
.hb{padding-top:12px;padding-bottom:118px}
.hero-b .hb-text{gap:10px}
.hb-gens li{gap:1px}
@media (max-width:900px){
  .hb{padding-top:0;padding-bottom:78px;gap:8px}
  .hero-b .bean-hero{height:140px}
  .hero-b .eyebrow{font-size:11px}
  .hero-b h1{font-size:28px}
}
/* celular: 2 cafés completos a la vista, el tercero se desliza */
@media (max-width:900px){
  .hb-shop{margin-right:0;padding-right:0}
  .hb-shop li{flex:0 0 calc((100% - 10px) / 2.12)}
  .hb-item{grid-template-columns:28px minmax(0,1fr);gap:2px 8px;padding:9px 10px}
  .hb-item img{width:28px}
  .hb-name b{font-size:14px;white-space:normal;line-height:1.15}
  .hb-name small{font-size:11px;line-height:1.25}
  .hb-price{font-size:15px}
  .hb-price small{font-size:11px;padding:2px 8px}
}
.hb-shop{scrollbar-width:none;-ms-overflow-style:none}
.hb-shop::-webkit-scrollbar{display:none;width:0;height:0}

/* ===== Carrito: métodos de pago ===== */
button.hb-item{font:inherit;text-align:left;cursor:pointer;width:100%}
.mol-pick{font:13px var(--sans);min-height:32px;padding:4px 8px;border-radius:8px;margin:4px 0;max-width:100%}
.pay-title{font-size:14px;font-weight:600;color:var(--ink-2);margin:4px 0 -4px}
.pay-methods{display:flex;flex-direction:column;gap:10px}
.pay-btn{width:100%;border-radius:14px;min-height:54px;flex-direction:column;gap:0;line-height:1.2}
.pay-btn span{font-size:12px;font-weight:500;opacity:.85}
.pay-paypal{background:#FFC439;color:#111}
.pay-paypal b{font-style:italic;font-size:19px;color:#003087;font-weight:800}
.pay-paypal i{font-size:19px;color:#0070E0;font-weight:800;font-style:italic}
.pay-paypal:hover{background:#F2BA36;color:#111}
.pay-paypal b,.pay-paypal i{display:inline}
.pay-paypal{display:grid;grid-template-columns:auto auto;justify-content:center;column-gap:0}
.pay-paypal span{grid-column:1/-1}
.pay-mp{background:#009EE3;color:#fff}
.pay-mp b{font-size:17px}
.pay-mp:hover{background:#0089C7;color:#fff}
.paypal-slot{min-height:50px}
.pay-done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:24px 4px}
.pay-done[hidden]{display:none}
.pay-check{width:64px;height:64px;border-radius:50%;background:#E6F4EA;color:#1E7A3C;display:grid;place-items:center;font-size:32px;font-weight:700;margin:0}
.pay-done h3{font-family:var(--serif);font-size:26px}
.pay-done p{color:var(--ink-2);max-width:34ch}
.pay-order b{font-family:var(--sans);letter-spacing:.06em}
.btn-ghost-dark{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--line);width:100%;border-radius:14px}
.pay-done .btn-wa{width:100%}
[hidden]{display:none !important}
.pay-paypal{display:inline-flex;flex-direction:column}
.pp-logo{font-size:19px;font-style:italic;font-weight:800;opacity:1 !important}

/* ---------- Envío: paqueterías ---------- */
.radio>span{flex:1;min-width:0}
.radio .r-price{font-size:13px;font-weight:600;color:var(--ink-2);white-space:nowrap}
.ship{display:flex;flex-direction:column;gap:12px}
.ship-row{display:grid;grid-template-columns:110px 1fr;gap:10px}
.field select,.ship input{font:inherit;font-size:15px;padding:11px 12px;border:1.5px solid var(--line);border-radius:12px;background:#fff;color:inherit}
.carriers>div{display:flex;flex-direction:column;gap:8px}
.carrier span small{display:block;font-size:12px;color:var(--muted);font-weight:400}
.carrier .r-price{font-size:16px;font-family:var(--serif)}
.carrier:has(input:checked),.radio:has(input:checked){border-color:var(--red);background:#fff8f4}
.tag{font-style:normal;font-size:11px;font-weight:600;background:#e8f3e6;color:#2f6b2a;border-radius:20px;padding:2px 8px;margin-left:4px;white-space:nowrap}
.cart-sum{display:flex;flex-direction:column;gap:4px;font-size:14px;color:var(--ink-2)}
.cart-sum p{display:flex;justify-content:space-between;margin:0}
