/*
 * ESTILOS · Coolkies
 * Los colores y medidas principales están en :root. Se pueden pisar desde js/config.js (colores).
 * Diseñado primero para celular; los @media (min-width) agregan tablet y escritorio.
 */
:root {
  --amarillo: #FFE98A;        /* color principal: amarillo pastel */
  --amarillo-suave: #FFF3BD;
  --crema: #FFFBEA;           /* fondo de la página */
  --papel: #FFFFFF;
  --marron: #5B3A29;          /* marrón cookie: textos y botones */
  --marron-osc: #3A2216;
  --marron-suave: #7C5B49;
  --acento: #E75A7C;          /* acento cálido */
  --acento-suave: #FFD3DC;
  --verde: #25D366;
  --verde-osc: #16A34A;
  --borde: #F0E2A4;
  --error: #B3261E;
  --sombra: 0 10px 28px -10px rgba(91, 58, 41, .28);
  --sombra-sm: 0 3px 10px -3px rgba(91, 58, 41, .22);
  --radio: 24px;
  --f-titulo: 'Comfortaa', 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
  --f-texto: 'Quicksand', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --barra-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; font-family: var(--f-texto); font-weight: 500; font-size: 16px; line-height: 1.5;
  color: var(--marron-osc); background: var(--crema);
  background-image: radial-gradient(circle at 12% 0, var(--amarillo-suave) 0, transparent 38%), radial-gradient(circle at 100% 30%, #FFF0C7 0, transparent 30%);
  background-attachment: fixed;
  padding-bottom: calc(var(--barra-h) + 28px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--f-titulo); color: var(--marron); line-height: 1.18; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.muted { color: var(--marron-suave); font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--marron); color: #fff; padding: 10px 16px; border-radius: 99px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }
[hidden] { display: none !important; }
[data-icon] { display: inline-flex; width: 1.25em; height: 1.25em; flex: none; }
[data-icon] svg { width: 100%; height: 100%; }
.only-mobile { display: inline-flex; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: 0 1.25rem;
  border: 0; border-radius: 99px; font-weight: 700; letter-spacing: .01em; text-decoration: none; text-align: center;
  transition: transform .15s, box-shadow .15s, background .15s; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--marron); color: #fff; box-shadow: var(--sombra-sm); }
.btn-primary:hover { background: var(--marron-osc); }
.btn-soft { background: var(--amarillo); color: var(--marron-osc); }
.btn-soft:hover { background: #FFDF5E; }
.btn-wa { background: var(--verde); color: #053b1a; box-shadow: var(--sombra-sm); }
.btn-wa:hover { background: #1fbd5b; }
.btn-lg { min-height: 54px; font-size: 1.05rem; padding: 0 1.6rem; }
.btn-sm { min-height: 38px; padding: 0 .9rem; font-size: .9rem; }
.btn[disabled], .btn[aria-disabled="true"] { background: #E9E2CB; color: #8f8470; box-shadow: none; cursor: not-allowed; }
.icon-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--amarillo); color: var(--marron-osc);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .8rem; border-radius: 99px; background: var(--amarillo); color: var(--marron-osc); font-weight: 700; font-size: .82rem; white-space: nowrap; }
.pill-accent { background: var(--acento); color: #fff; }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 99px; background: var(--acento); color: #fff;
  font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--sombra-sm);
}

/* ---------- Header ---------- */
.closed-banner { background: var(--marron); color: #fff; text-align: center; padding: .5rem 1rem; font-weight: 600; font-size: .92rem; }
.top {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: .6rem; padding: .5rem 1rem; padding-top: calc(.5rem + env(safe-area-inset-top, 0px));
  background: rgba(255, 251, 234, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--borde);
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-family: var(--f-titulo); font-weight: 700; font-size: 1.15rem; color: var(--marron); margin-right: auto; }
.brand img { border-radius: 50%; width: 40px; height: 40px; }
.open-pill::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #2ea44f; }
.open-pill.is-closed { background: #EADFD8; }
.open-pill.is-closed::before { background: var(--acento); }
.open-pill { font-size: .78rem; }
.top .icon-btn { margin-left: .1rem; }

/* ---------- Layout ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 0 1rem; }
.col-main > section { margin-top: 2.4rem; }
.section-head { display: flex; flex-direction: column; gap: .2rem; margin-bottom: .9rem; }
.section-head h2, .nosotros h2, .anniv h2, .torta h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: center; margin-top: 1rem !important; padding: 1.6rem 1.3rem 1rem;
  border-radius: 36px; background: linear-gradient(160deg, var(--amarillo) 0%, #FFF3B0 60%, #FFE9A0 100%); box-shadow: var(--sombra); overflow: hidden;
}
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); pointer-events: none; }
.hero::before { width: 220px; height: 220px; right: -70px; top: -70px; }
.hero::after { width: 120px; height: 120px; left: -40px; bottom: -40px; }
.hero-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.hero h1 { font-size: clamp(2rem, 9vw, 3.2rem); }
.hero p { font-size: 1.1rem; color: var(--marron); }
.mascot-slot { position: relative; justify-self: center; width: 170px; height: 215px; border: 0; background: transparent; border-radius: 40%; }

/* ---------- Banners ---------- */
.anniv, .torta, .nosotros {
  display: grid; gap: 1.1rem; align-items: center; background: var(--papel); border-radius: 32px; padding: 1.1rem; box-shadow: var(--sombra); border: 1px solid var(--borde);
}
.anniv { background: linear-gradient(135deg, #FFF3BD, #FFE08A); grid-template-columns: 38% 1fr; }
.anniv img { border-radius: 22px; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.anniv-text { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.torta { background: linear-gradient(135deg, #FFF0F3, #FFE3EA); }
.torta img { border-radius: 24px; width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 50% 62%; }
.torta-text { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.nosotros img { border-radius: 24px; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 20%; }
.nosotros-text { display: flex; flex-direction: column; gap: .8rem; }
.nosotros-text p + p { margin-top: .6rem; }
.anatomia { display: flex; justify-content: center; }
.anatomia-card {
  width: min(100%, 460px); border-radius: 32px; overflow: hidden; box-shadow: var(--sombra); background: #FFF2DA; perspective: 800px;
  opacity: 0; transform: translateY(34px) scale(.97); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .9, .3, 1.2);
}
.anatomia-card.in { opacity: 1; transform: none; }
.anatomia-card img { width: 100%; transition: transform .25s ease-out; transform: rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); will-change: transform; }

/* ---------- Menú ---------- */
.filters { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem .1rem .7rem; margin: 0 -1rem 0.2rem; padding-inline: 1rem; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 42px; padding: 0 1.2rem; border-radius: 99px; border: 2px solid var(--borde); background: var(--papel); font-weight: 700; color: var(--marron); transition: all .15s; }
.chip[aria-pressed="true"] { background: var(--marron); border-color: var(--marron); color: #fff; }
.group-title { font-size: 1.35rem; margin: 1.2rem 0 .7rem; display: flex; align-items: center; gap: .5rem; }
.grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra-sm);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.card.is-highlight { animation: highlight 1.6s ease; }
@keyframes highlight { 0%, 100% { box-shadow: var(--sombra-sm); } 25%, 75% { box-shadow: 0 0 0 5px var(--acento), var(--sombra); } }
.card-media { position: relative; aspect-ratio: 1; background: var(--amarillo-suave); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media.no-photo { display: grid; place-items: center; background: var(--c, #FFE0A3); }
.card-media.no-photo.short { aspect-ratio: 16/10; }
.card-media.no-photo svg.m-art { width: 38%; max-width: 120px; height: auto; filter: drop-shadow(0 6px 6px rgba(91, 58, 41, .2)); }
.card-media.no-photo::before, .card-media.no-photo::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.card-media.no-photo::before { width: 46%; aspect-ratio: 1; left: -10%; top: -14%; }
.card-media.no-photo::after { width: 28%; aspect-ratio: 1; right: -4%; bottom: -8%; }
.card-media .tag { position: absolute; left: 10px; top: 10px; z-index: 2; }
.card-body { display: flex; flex-direction: column; gap: .5rem; padding: .95rem 1rem 1rem; flex: 1; }
.card-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.card h3 { font-size: 1.12rem; }
.price { font-weight: 700; font-size: 1.15rem; color: var(--marron); white-space: nowrap; }
.desc { color: var(--marron-suave); font-size: .95rem; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: auto; padding-top: .3rem; }
.qty { display: inline-flex; align-items: center; background: var(--crema); border-radius: 99px; border: 1px solid var(--borde); }
.qty button { width: 40px; height: 42px; border: 0; background: transparent; font-size: 1.3rem; font-weight: 700; border-radius: 99px; color: var(--marron); display: inline-flex; align-items: center; justify-content: center; }
.qty button:active { background: var(--amarillo); }
.qty output { min-width: 26px; text-align: center; font-weight: 700; }
.card-actions .btn { flex: 1 1 120px; white-space: nowrap; padding: 0 1rem; }
.note-toggle { align-self: flex-start; border: 0; background: none; padding: .2rem 0; color: var(--marron-suave); font-weight: 700; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.note-input { width: 100%; min-height: 42px; border: 2px solid var(--borde); border-radius: 16px; padding: 0 .9rem; background: var(--crema); }
.note-input:focus { border-color: var(--acento); outline: none; }
.card.sold-out .card-media img { filter: grayscale(.9) brightness(.9); }
.card.sold-out .card-media.no-photo { filter: grayscale(.7); }
.sold-badge { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(58, 34, 22, .35); }
.sold-badge span { background: #fff; padding: .45rem 1rem; border-radius: 99px; font-weight: 700; color: var(--marron); transform: rotate(-5deg); box-shadow: var(--sombra); }
.skeleton { height: 380px; border-radius: var(--radio); background: linear-gradient(100deg, #F6EBB5 30%, #FFF6CF 50%, #F6EBB5 70%); background-size: 300% 100%; animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- Panel del pedido ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(58, 34, 22, .5); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.cart-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; max-height: 92dvh; display: flex; flex-direction: column; background: var(--crema);
  border-radius: 30px 30px 0 0; box-shadow: 0 -12px 40px rgba(58, 34, 22, .3); transform: translateY(105%); visibility: hidden;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1), visibility 0s .35s; padding-bottom: env(safe-area-inset-bottom, 0px);
}
.cart-panel.open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .9, .3, 1), visibility 0s; }
.panel-head { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem .6rem; }
.panel-head h2 { font-size: 1.4rem; margin-right: auto; }
.panel-bag { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--amarillo); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.panel-body { overflow-y: auto; padding: 0 1.1rem 1.4rem; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 1rem; }
.cart-empty { background: var(--papel); border: 2px dashed var(--borde); border-radius: 20px; padding: 1.1rem; text-align: center; color: var(--marron-suave); font-weight: 600; }
.cart-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; background: var(--papel); border-radius: 18px; padding: .7rem .8rem; box-shadow: var(--sombra-sm); }
.cart-item .ci-name { font-weight: 700; }
.cart-item .ci-note { grid-column: 1; color: var(--marron-suave); font-size: .86rem; }
.cart-item .ci-price { font-weight: 700; text-align: right; }
.cart-item .ci-controls { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.cart-item .qty button { width: 36px; height: 36px; }
.link-btn { border: 0; background: none; color: var(--error); font-weight: 700; font-size: .85rem; text-decoration: underline; min-height: 36px; padding: 0 .3rem; }
.totals { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: .25rem .6rem; background: var(--amarillo-suave); border-radius: 18px; padding: .8rem 1rem; }
.totals dt { color: var(--marron-suave); font-weight: 600; }
.totals dd { margin: 0; text-align: right; font-weight: 700; }
.totals .t-total { font-family: var(--f-titulo); font-size: 1.2rem; color: var(--marron); }
.order-form { display: flex; flex-direction: column; gap: .95rem; }
.field { display: flex; flex-direction: column; gap: .35rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 700; font-size: .92rem; color: var(--marron); padding: 0; }
.field input[type="text"], .field select {
  min-height: 50px; border: 2px solid var(--borde); border-radius: 18px; padding: 0 1rem; background: var(--papel); width: 100%; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--marron) 50%), linear-gradient(135deg, var(--marron) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.2rem; }
.field input:focus, .field select:focus { border-color: var(--acento); outline: none; }
.field.invalid input { border-color: var(--error); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; min-height: 64px; padding: .5rem; text-align: center; font-weight: 700; font-size: .9rem; line-height: 1.2;
  border: 2px solid var(--borde); border-radius: 18px; background: var(--papel); cursor: pointer; transition: all .15s; -webkit-tap-highlight-color: transparent;
}
.seg input:checked + label { background: var(--marron); border-color: var(--marron); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--acento); outline-offset: 2px; }
.seg input:disabled + label { opacity: .45; cursor: not-allowed; background: #EFE8D5; color: #6f6551; }
.notice { border-radius: 16px; padding: .65rem .9rem; font-weight: 600; font-size: .92rem; background: var(--acento-suave); color: #6b1030; }
.notice-info { background: var(--amarillo); color: var(--marron-osc); }
.notice-error { background: #FFDAD6; color: var(--error); }
.transfer { background: var(--papel); border: 2px dashed var(--amarillo); border-radius: 20px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .35rem; }
.transfer img { width: 140px; margin: 0 auto .4rem; border-radius: 12px; }
.transfer-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--marron-suave); font-weight: 700; margin-top: .3rem; }
.alias-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.alias-row strong { font-size: 1.15rem; word-break: break-all; }
.transfer-total { font-family: var(--f-titulo); font-size: 1.5rem; font-weight: 700; color: var(--marron); }
.panel-bag.bump, .icon-btn.bump, .bar-icon.bump { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
.badge.pop { animation: pop .4s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.28) rotate(-8deg); } 100% { transform: scale(1); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.7); } 100% { transform: scale(1); } }

/* ---------- Barra fija (celular) ---------- */
.cart-bar {
  position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); height: var(--barra-h); display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; padding: 0 .9rem 0 .7rem; border: 0; border-radius: 99px; background: var(--marron); color: #fff; box-shadow: 0 14px 30px -8px rgba(58, 34, 22, .55); max-width: 560px; margin: 0 auto;
}
.bar-left { display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: 1.05rem; }
.bar-icon { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--amarillo); color: var(--marron-osc); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.bar-cta { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: var(--amarillo); }

/* ---------- Footer ---------- */
.footer { margin: 2.6rem 0 1rem; padding: 1.4rem; background: var(--marron); color: #FFF3D6; border-radius: 32px; display: grid; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--f-titulo); font-size: 1.3rem; }
.footer-brand img { border-radius: 50%; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-list li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-list [data-icon] { margin-top: 3px; color: var(--amarillo); }
#footHorarios { display: grid; gap: 1px; font-size: .93rem; }
#footHorarios div { display: flex; justify-content: space-between; gap: 1rem; min-width: 190px; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Mascota ---------- */
.mascot { position: fixed; left: 0; top: 0; width: 96px; height: 120px; z-index: 55; pointer-events: none; transform-origin: 0 0; will-change: transform; contain: layout style; }
.mascot svg { width: 100%; height: 100%; overflow: visible; display: block; }
.m-sway { width: 100%; height: 100%; transform-origin: 50% 100%; animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: rotate(-1.8deg) scale(1, 1); } 50% { transform: rotate(1.8deg) scale(1.02, .975); } }
.mascot svg .eye { transform-box: fill-box; transform-origin: center; transition: transform .08s; }
.mascot svg .eye.blink { transform: scaleY(.08); }
.mascot svg .arm { transition: transform .2s cubic-bezier(.3, 1.4, .5, 1); }
.mascot svg .arm-l { transform-origin: 24px 98px; transform: rotate(12deg); }
.mascot svg .arm-r { transform-origin: 96px 98px; transform: rotate(-12deg); }
.mascot svg .mouth, .mascot svg .tear, .mascot svg .zzz, .mascot svg .cheeks { opacity: 0; transition: opacity .15s; }
.mascot[data-pose="grab"] .arm-l { transform: rotate(108deg); }
.mascot[data-pose="grab"] .arm-r { transform: rotate(-108deg); }
.mascot[data-pose="carry"] .arm-l { transform: rotate(-52deg); }
.mascot[data-pose="carry"] .arm-r { transform: rotate(52deg); }
.mascot[data-pose="happy"] .arm-l { transform: rotate(158deg); }
.mascot[data-pose="happy"] .arm-r { transform: rotate(-158deg); }
.mascot[data-pose="happy"] .mouth-smile, .mascot[data-pose="happy"] .cheeks, .mascot[data-pose="carry"] .mouth-smile { opacity: 1; }
.mascot[data-pose="happy"] .m-sway { animation: hop .5s ease-in-out infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1.02, .96); } 50% { transform: translateY(-10px) scale(.97, 1.04); } }
.mascot[data-pose="wave"] .arm-r { animation: wave .5s ease-in-out infinite alternate; transform: rotate(-150deg); }
.mascot[data-pose="wave"] .mouth-smile { opacity: 1; }
@keyframes wave { from { transform: rotate(-135deg); } to { transform: rotate(-170deg); } }
.mascot[data-pose="sad"] .mouth-sad, .mascot[data-pose="sad"] .tear { opacity: 1; }
.mascot[data-pose="sad"] .arm-l { transform: rotate(3deg); }
.mascot[data-pose="sad"] .arm-r { transform: rotate(-3deg); }
.mascot[data-pose="sad"] .pupil { transform: translate(0, 3px) !important; }
.mascot[data-pose="sleep"] .eye { transform: scaleY(.08); }
.mascot[data-pose="sleep"] .zzz { opacity: 1; animation: zzz 2.2s ease-in-out infinite; }
.mascot[data-pose="sleep"] .m-sway { animation-duration: 5s; }
@keyframes zzz { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.mascot.running .foot-l { animation: step .14s infinite alternate; }
.mascot.running .foot-r { animation: step .14s infinite alternate-reverse; }
@keyframes step { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.mascot.running .m-sway { animation: none; }
.m-carry {
  position: absolute; left: 50%; top: 62%; width: 44px; height: 44px; margin-left: -22px; z-index: 3; opacity: 0; border-radius: 50%; overflow: hidden;
  border: 3px solid #fff; box-shadow: var(--sombra-sm); background: var(--amarillo); display: grid; place-items: center;
}
.m-carry img { width: 100%; height: 100%; object-fit: cover; }
.m-carry svg { width: 70%; height: auto; }
.thumb-fly { position: fixed; left: 0; top: 0; z-index: 54; width: 54px; height: 54px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; box-shadow: var(--sombra); background: var(--amarillo); display: grid; place-items: center; pointer-events: none; will-change: transform; }
.thumb-fly img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fly svg { width: 70%; height: auto; }
.bubble {
  position: fixed; left: 0; top: 0; z-index: 56; max-width: 210px; padding: .5rem .85rem; border-radius: 18px; background: #fff; color: var(--marron-osc); font-weight: 700; font-size: .9rem; line-height: 1.25;
  box-shadow: var(--sombra); pointer-events: none; transform-origin: 20% 100%; animation: bubble-in .25s cubic-bezier(.3, 1.6, .5, 1);
}
.bubble::after { content: ''; position: absolute; left: 22px; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
@keyframes bubble-in { from { opacity: 0; transform: scale(.6); } }
.confetti { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; will-change: transform, opacity; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: calc(var(--barra-h) + 30px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: min(92vw, 440px); padding: .75rem 1.1rem; border-radius: 18px; background: var(--marron-osc); color: #fff; font-weight: 600; box-shadow: var(--sombra); text-align: center; animation: toast-in .3s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; background: rgba(58, 34, 22, .55); backdrop-filter: blur(3px); animation: fade .2s; }
.modal-card { width: min(100%, 420px); max-height: 92dvh; overflow-y: auto; background: var(--crema); border-radius: 32px; padding: 1.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .8rem; text-align: center; align-items: stretch; box-shadow: var(--sombra); }
.modal-mascot-space { height: 120px; }
.modal-card h2 { font-size: 1.7rem; }
.mascot.over-modal { z-index: 100; }

/* ---------- Tablet / escritorio ---------- */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1.2fr .8fr; padding: 2.2rem 2.2rem 1.6rem; }
  .anniv { grid-template-columns: 240px 1fr; padding: 1.4rem; }
  .torta { grid-template-columns: 1fr 1fr; padding: 1.4rem; }
  .nosotros { grid-template-columns: 300px 1fr; padding: 1.4rem; }
}
@media (min-width: 1024px) {
  body { padding-bottom: 2rem; }
  html { scroll-padding-top: 84px; }
  .only-mobile, .cart-bar, .sheet-backdrop, #headerCart { display: none !important; }
  .page { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 2rem; align-items: start; padding: 0 2rem; }
  .cart-panel {
    position: sticky; top: 84px; left: auto; right: auto; bottom: auto; z-index: 20; transform: none !important; visibility: visible !important; max-height: calc(100dvh - 104px); margin-top: 1rem;
    border-radius: 32px; box-shadow: var(--sombra); border: 1px solid var(--borde); padding-bottom: 0; background: #FFFDF3;
  }
  .grid { grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 1.1rem; }
  .hero { padding: 2.6rem 2.8rem 2rem; min-height: 360px; }
  .mascot-slot { width: 230px; height: 290px; }
  .toast { bottom: 32px; }
  .mascot { z-index: 55; }
}
@media (min-width: 1280px) { .page { grid-template-columns: minmax(0, 1fr) 420px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .anatomia-card { opacity: 1; transform: none; }
}

/* ---------- Envío: dirección y distancia ---------- */
.envio-box { display: flex; flex-direction: column; gap: .7rem; }
.envio-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.envio-actions .btn { flex: 1 1 140px; min-height: 46px; }
.privacy { font-size: .82rem; line-height: 1.35; }
#envioBloqueado .link-btn { color: var(--marron); margin-left: .3rem; }

/* ---------- Promos de cajas ---------- */
.promos { margin: 28px 0 8px; }
.promos h2 { margin: 0 0 4px; }
.promos-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.promo-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 14px 8px; background: var(--amarillo); border-radius: 18px; box-shadow: 0 2px 0 rgba(91,58,41,.12); }
.promo-n { font-size: 2rem; font-weight: 700; line-height: 1; color: var(--marron); }
.promo-l { font-size: .78rem; color: var(--marron); opacity: .85; }
.promo-p { margin-top: 6px; font-size: 1.05rem; color: var(--acento); }
.t-promo { color: var(--acento); font-weight: 700; }

.promo-hint { margin: 8px 0; }
