/* =====================================================================
   Tienda Online (demo, plantilla WEB-02) — components.css
   Botones, header con buscador, menú móvil, estado, insignias, tarjeta de producto, carruseles, cantidad, chips,
   formularios, carrito, sugerencias del buscador, toast, barra móvil, pie, FAQ, horarios, modal demo, selector demo.
   ===================================================================== */

/* ---------- Íconos ---------- */
.ico { width: 20px; height: 20px; flex: none; }
.ico--xs { width: 14px; height: 14px; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: var(--brand-ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font-weight: 700; font-size: .95rem; line-height: 1.2; text-align: center;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--brand-2); box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn--secondary { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--secondary:hover { background: var(--surface); border-color: var(--ink-2); box-shadow: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--brand); padding-inline: .75rem; }
.btn--ghost:hover { background: var(--brand-soft); box-shadow: none; }
.btn--wa { --btn-bg: var(--wa); --btn-fg: var(--wa-ink); }
.btn--wa:hover { background: #1fbd5a; }
.btn--wa-outline { --btn-bg: #fff; --btn-fg: #0b6b34; --btn-bd: #22a656; }
.btn--wa-outline:hover { background: #effbf3; box-shadow: none; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light:hover { background: var(--surface-2); }
.btn--sm { min-height: 40px; padding: .45rem 1rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--brand); font-size: .95rem; }
.link-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: background .2s, border-color .2s, opacity .2s; flex: none; }
.icon-btn:hover { background: var(--surface); border-color: var(--line-2); }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.header.is-solid { box-shadow: 0 6px 20px -14px rgba(15, 23, 42, .4); }
.header__top { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'burger logo actions' 'search search search'; align-items: center; gap: .6rem .5rem; padding-block: .6rem; }
.burger { grid-area: burger; }
.logo { grid-area: logo; display: inline-flex; align-items: center; min-width: 0; }
.logo img { height: 36px; width: auto; }
.header__actions { grid-area: actions; display: flex; align-items: center; gap: .5rem; }
.header__search { grid-area: search; }
@media (min-width: 960px) {
  .header__top { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'logo search actions'; gap: 1.5rem; padding-block: .8rem; }
  .burger { display: none !important; }
  .logo img { height: 43px; }
  .header__search { max-width: 640px; width: 100%; justify-self: center; }
}
.burger { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 44px; height: 44px; border-radius: 12px; }
.burger:hover { background: var(--surface); }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Buscador */
.search { position: relative; }
.search__field { display: flex; align-items: center; height: 46px; border: 1.5px solid var(--line-2); border-radius: var(--radius-pill); background: var(--surface); transition: border-color .2s, background .2s, box-shadow .2s; }
.search__field:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.search__field .ico { margin-left: .95rem; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 .6rem; outline: none; font-size: 1rem; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search__btn { height: 38px; margin-right: 4px; padding: 0 1rem; border-radius: var(--radius-pill); background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: .88rem; }
.search__btn:hover { background: var(--brand-2); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .35rem; max-height: min(70vh, 460px); overflow-y: auto; }
.suggest__item { display: grid; grid-template-columns: 44px 1fr auto; gap: .75rem; align-items: center; padding: .45rem .55rem; border-radius: var(--radius-sm); }
.suggest__item:hover, .suggest__item.is-active { background: var(--surface); }
.suggest__item img, .suggest__noimg { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.suggest__txt { display: grid; min-width: 0; }
.suggest__name { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__meta { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__price { font-weight: 800; font-size: .9rem; white-space: nowrap; }
.suggest__all { display: block; margin-top: .25rem; padding: .7rem .6rem; border-top: 1px solid var(--line); font-weight: 700; color: var(--brand); font-size: .9rem; }
.suggest__empty { padding: .9rem .7rem; font-size: .9rem; color: var(--muted); }

/* Carrito en el header */
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: .5rem; height: 44px; padding: 0 .7rem; border-radius: var(--radius-pill); font-weight: 700; font-size: .92rem; }
.cart-btn:hover { background: var(--surface); }
.cart-btn .ico { width: 24px; height: 24px; }
.cart-btn__label { display: none; }
@media (min-width: 960px) { .cart-btn { border: 1.5px solid var(--line-2); padding: 0 1rem 0 .85rem; } .cart-btn__label { display: inline; } }
.cart-count { position: absolute; top: 2px; left: 26px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #fff; }
@media (min-width: 960px) { .cart-count { top: -4px; left: 28px; } }
.cart-count.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* Navegación (escritorio) */
.nav { display: none; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .nav { display: block; } }
.nav__list { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.nav__list::-webkit-scrollbar { display: none; }
.nav__link { display: inline-flex; align-items: center; height: 44px; padding: 0 .8rem; font-weight: 600; font-size: .92rem; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.nav__link:hover { color: var(--brand); }
.nav__link[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.nav__link--offer { color: var(--accent); }

/* Drawer móvil */
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer.is-open { opacity: 1; pointer-events: auto; }
.drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(340px, 88vw); background: #fff; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .3s var(--ease); overflow-y: auto; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: .9rem var(--gutter); border-bottom: 1px solid var(--line); }
.drawer__head img { height: 36px; width: auto; }
.drawer__list { display: grid; padding: .5rem 0; }
.drawer__link { display: flex; align-items: center; justify-content: space-between; padding: .85rem var(--gutter); font-weight: 700; font-size: 1.02rem; border-bottom: 1px solid var(--surface-2); }
.drawer__link[aria-current="page"] { color: var(--brand); }
.drawer__sub { padding: .75rem var(--gutter) 0; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.drawer__cats a { display: block; padding: .6rem var(--gutter); font-weight: 600; color: var(--ink-2); }
.drawer__foot { margin-top: auto; display: grid; gap: .6rem; padding: 1rem var(--gutter) 1.25rem; border-top: 1px solid var(--line); }
body.drawer-open, body.cart-open, body.sheet-open, body.lightbox-open { overflow: hidden; }

/* ---------- Estado abierto / cerrado ---------- */
.status { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .65rem; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); font-size: .84rem; font-weight: 700; color: var(--ink-2); justify-self: start; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.is-open .status__dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(21, 128, 61, .18); }
.status.is-closed .status__dot { background: var(--warn); }

/* ---------- Insignias ---------- */
.badge { display: inline-flex; align-items: center; padding: .2rem .5rem; border-radius: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .02em; background: var(--brand); color: var(--brand-ink); white-space: nowrap; }
.badge--offer { background: var(--accent); color: #fff; }
.badge--muted { background: var(--ink-2); color: #fff; }
.badge--outline { background: transparent; border: 1px solid var(--brand); color: var(--brand); }

/* ---------- Tarjeta de producto ---------- */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1100px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, border-color .25s, transform .25s var(--ease); min-width: 0; }
.pcard:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.pcard__media { display: block; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__noimg { display: grid; place-items: center; height: 100%; color: var(--line-2); }
.pcard__noimg .ico { width: 40px; height: 40px; }
.pcard__badges { position: absolute; top: .55rem; left: .55rem; display: flex; flex-wrap: wrap; gap: .3rem; pointer-events: none; }
.pcard__body { display: flex; flex-direction: column; gap: .3rem; padding: .7rem .75rem .8rem; flex: 1; }
.pcard__cat { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__name { font-size: .93rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard__name a:hover { color: var(--brand); }
.pcard__name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem; margin-top: auto; padding-top: .15rem; }
.price-row .price { font-size: 1.06rem; }
.pcard__btn { position: relative; z-index: 2; margin-top: .45rem; width: 100%; min-height: 40px; }
.pcard__btn.is-added { background: var(--ok); }
.pcard.is-out .pcard__media img { opacity: .55; filter: grayscale(.4); }
@media (min-width: 640px) { .pcard__body { padding: .85rem .95rem 1rem; } .pcard__name { font-size: .98rem; } .price-row .price { font-size: 1.15rem; } }

/* ---------- Carruseles ---------- */
.rail + .rail { margin-top: clamp(2rem, 5vw, 3rem); }
.rail__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.rail__title { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.rail__ctrl { display: flex; align-items: center; gap: 1rem; }
.rail__btns { display: none; gap: .4rem; }
@media (min-width: 960px) { .rail__btns { display: flex; } }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - .75rem) / 2.2); gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .25rem; overscroll-behavior-x: contain; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__item { scroll-snap-align: start; min-width: 0; display: flex; }
.rail__item .pcard { width: 100%; }
@media (min-width: 640px) { .rail__track { grid-auto-columns: calc((100% - 2rem) / 3.3); gap: 1rem; } }
@media (min-width: 1100px) { .rail__track { grid-auto-columns: calc((100% - 3.75rem) / 4); gap: 1.25rem; } }

/* ---------- Cantidad ---------- */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--radius-pill); background: #fff; }
.qty__btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.qty__btn:hover { background: var(--surface); }
.qty__btn .ico { width: 18px; height: 18px; }
.qty__input, .qty__val { width: 44px; text-align: center; font-weight: 800; border: 0; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm .qty__btn { width: 36px; height: 36px; }
.qty--sm .qty__val { width: 30px; font-size: .92rem; }

/* ---------- Chips ---------- */
.cchip { flex: none; padding: .5rem .95rem; border-radius: var(--radius-pill); border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; font-size: .88rem; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.cchip:hover { border-color: var(--ink-2); }
.cchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fchip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .55rem .35rem .8rem; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand-2); font-weight: 700; font-size: .84rem; }
.fchip:hover { background: color-mix(in srgb, var(--brand) 18%, #fff); }
.fchip--clear { background: transparent; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; padding-inline: .5rem; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: .35rem; }
.field label, .co__set legend, .pdp__label { font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.input { width: 100%; min-height: 48px; padding: .65rem .9rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; font-size: 1rem; }
.input--sm { min-height: 42px; padding: .45rem .7rem; font-size: .95rem; }
.input::placeholder { color: #8a94a6; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); outline: none; }
.input[aria-invalid="true"] { border-color: var(--danger); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23334155' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; }
textarea.input { min-height: 72px; resize: vertical; }
.field__error { font-size: .82rem; color: var(--danger); font-weight: 600; }
.field__error:empty { display: none; }
.field__hint { font-size: .8rem; color: var(--muted); }
.check, .radio { display: flex; align-items: center; gap: .6rem; min-height: 36px; font-size: .93rem; cursor: pointer; }
.check input, .radio input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.radio__count { margin-left: auto; font-size: .8rem; color: var(--muted); font-weight: 600; }
.opt { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s, background .2s; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.opt input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.opt__body { display: grid; gap: .1rem; }
.opt__title { font-weight: 700; font-size: .93rem; }
.opt__detail { font-size: .8rem; color: var(--muted); }

/* ---------- Carrito (panel lateral) ---------- */
.cart-shade { position: fixed; inset: 0; z-index: 94; background: rgba(15, 23, 42, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.cart-shade.is-open { opacity: 1; pointer-events: auto; }
.cart { position: fixed; inset: 0 0 0 auto; z-index: 95; width: min(440px, 100%); display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow-lg); transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; outline: none; }
.cart.is-open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
.cart__head { display: flex; align-items: center; gap: .5rem; padding: .75rem .75rem .75rem var(--gutter); border-bottom: 1px solid var(--line); }
.cart__title { font-size: 1.15rem; flex: 1; letter-spacing: -0.01em; }
.cart__close, .cart__back { border: 0; }
.cart__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .25rem var(--gutter) 1rem; }
.cart__list { display: grid; }
.citem { display: grid; grid-template-columns: 72px 1fr auto; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.citem__img img { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); }
.citem__info { display: grid; gap: .15rem; min-width: 0; }
.citem__name { font-weight: 700; font-size: .93rem; line-height: 1.3; }
.citem__name:hover { color: var(--brand); }
.citem__var { font-size: .8rem; color: var(--ink-2); font-weight: 600; }
.citem__unit { font-size: .8rem; color: var(--muted); }
.citem__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .4rem; flex-wrap: wrap; }
.citem__total { font-size: .98rem; }
.citem__del { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.citem__del:hover { background: #fdecec; color: var(--danger); }
.citem__del .ico { width: 18px; height: 18px; }
.cart__foot { display: grid; gap: .55rem; padding: .9rem var(--gutter) calc(.9rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -10px 24px -18px rgba(15, 23, 42, .35); }
.cart__totals { display: grid; gap: .2rem; }
.cart__sum { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 1.05rem; }
.cart__sum strong { font-size: 1.2rem; font-weight: 800; }
.cart__sum--sm { font-size: .9rem; color: var(--ink-2); }
.cart__note, .cart__fine { font-size: .8rem; color: var(--muted); }
.cart__fine { text-align: center; }
.cart__warn { font-size: .86rem; font-weight: 700; color: var(--warn); background: #fff7ed; border-radius: var(--radius-sm); padding: .55rem .75rem; }
.cart__empty, .cart__done { display: grid; justify-items: center; text-align: center; gap: .7rem; padding: 2.5rem var(--gutter); }
.cart__done { justify-items: stretch; }
.cart__done > * { justify-self: center; }
.cart__done .btn { justify-self: stretch; }
.cart__empty-ico, .cart__done-ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.cart__done-ico { background: #e8f6ec; color: var(--ok); }
.cart__empty-ico .ico, .cart__done-ico .ico { width: 30px; height: 30px; }
.cart__empty-title { font-weight: 800; font-size: 1.15rem; }
.co { display: grid; gap: 1rem; padding-top: .9rem; }
.co__set { display: grid; gap: .5rem; }
.co__set legend { margin-bottom: .45rem; }
.co__delivery { display: grid; gap: 1rem; }
.co__delivery:empty { display: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); z-index: 120; background: var(--ink); color: #fff; padding: .75rem 1.1rem; border-radius: var(--radius-pill); font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); max-width: calc(100% - 2 * var(--gutter)); text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 960px) { .toast { bottom: 2rem; } }

/* ---------- Botón flotante de WhatsApp (todo el sitio, escritorio y celular) ---------- */
.wa-float { position: fixed; right: var(--gutter); bottom: calc(1.1rem + env(safe-area-inset-bottom)); z-index: 55; display: inline-flex; align-items: center; gap: .5rem; height: 56px; padding: 0 1.2rem 0 1rem; border-radius: var(--radius-pill); background: var(--wa); color: #fff; font-weight: 800; box-shadow: 0 10px 24px -10px rgba(7, 59, 29, .55); transform: translateY(130%); transition: transform .3s var(--ease); }
.wa-float:hover { background: #1fb956; }
.wa-float.is-visible { transform: none; }
.wa-float .ico { width: 28px; height: 28px; flex: none; }
.wa-float__label { display: none; }
@media (min-width: 640px) { .wa-float__label { display: inline; } }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: #cbd5e1; padding: clamp(2.5rem, 6vw, 4rem) 0 calc(5.5rem + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .footer { padding-bottom: 2rem; } }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer .logo { grid-area: auto; justify-self: start; }
.footer .logo img { height: 40px; }
.footer h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; margin-bottom: .9rem; font-weight: 800; }
.footer__list { display: grid; gap: .5rem; font-size: .95rem; }
.footer__about { display: grid; gap: .9rem; align-content: start; }
.footer .status { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #e2e8f0; }
.footer .hours__row { border-color: rgba(255, 255, 255, .1); }
.footer .hours__row.is-today { color: #fff; }
.footer__pay { display: flex; flex-wrap: wrap; gap: .4rem; }
.footer__pay span { font-size: .78rem; padding: .25rem .55rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; font-size: .84rem; color: #94a3b8; }
.footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Horarios ---------- */
.hours { display: grid; }
.hours__row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.hours__row.is-today { font-weight: 800; color: var(--brand); }

/* ---------- FAQ ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__h { font-size: inherit; letter-spacing: 0; }
.acc__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 0; text-align: left; font-weight: 700; font-size: 1.02rem; }
.acc__btn::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--brand); transition: transform .25s var(--ease); flex: none; }
.acc__btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__panel.is-open { grid-template-rows: 1fr; }
.acc__panel p { padding-bottom: 1.1rem; color: var(--ink-2); max-width: 70ch; }

/* ---------- Ruta (migas) ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--muted); padding-block: 1rem; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Estado vacío ---------- */
.empty { grid-column: 1 / -1; display: grid; justify-items: center; text-align: center; gap: .75rem; padding: 3rem 1rem; border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); }
.empty--page { margin-block: 2rem 1rem; }
.empty__ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--muted); border: 1px solid var(--line); }
.empty__title { font-size: 1.3rem; }
.empty .muted { max-width: 46ch; }

/* ---------- Cabecera interior ---------- */
.page-head { padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(1rem, 2vw, 1.5rem); display: grid; gap: .5rem; }

/* ---------- Modo demostración: simulación de acciones externas ---------- */
.demo-modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: var(--gutter); background: rgba(15, 23, 42, .6); opacity: 0; pointer-events: none; transition: opacity .2s; }
.demo-modal.is-open { opacity: 1; pointer-events: auto; }
.demo-modal__card { width: min(560px, 100%); max-height: calc(100vh - 2 * var(--gutter)); overflow-y: auto; display: grid; gap: .8rem; padding: 1.4rem 1.3rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); transform: translateY(10px); transition: transform .25s var(--ease); }
.demo-modal.is-open .demo-modal__card { transform: none; }
.demo-modal__card h3 { font-size: 1.3rem; }
.demo-modal__lead { color: var(--ink-2); }
.demo-modal__detail { font-size: .85rem; }
.demo-modal [hidden] { display: none !important; }
.badge--outline { justify-self: start; }
.wa-preview { margin: 0; padding: .9rem 1rem; border-radius: var(--radius-sm); background: #e7f8ee; border: 1px solid #c4ecd3; font-family: var(--font-body); font-size: .86rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; max-height: 46vh; overflow-y: auto; color: var(--ink); }
.map-demo { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: .6rem; padding: 1.5rem; text-align: center; background: linear-gradient(rgba(255, 255, 255, .72), rgba(255, 255, 255, .9)); color: var(--ink-2); font-size: .95rem; }
.map-demo p { max-width: 32ch; }

/* ---------- Selector de país (demo_only) ---------- */
.country-pick { display: inline-flex; align-items: center; }
.country-pick select { font: inherit; font-size: .84rem; font-weight: 600; color: var(--ink-2); background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--radius-pill); height: 40px; padding: 0 2rem 0 .85rem; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23334155' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; cursor: pointer; max-width: 190px; }
.header__country { display: none; }
@media (min-width: 960px) { .header__country { display: inline-flex; } }
.drawer__country .country-pick, .drawer__country select { width: 100%; max-width: none; }
body.cart-open .toast { opacity: 0; }

/* Cupón de descuento (ACAD 20/11; lo crea la tienda en su panel de AranduCAD, llega con cambios.js) */
.cart__cupon-form { display: grid; gap: .35rem; font-size: .9rem; }
.cart__cupon-form label { font-weight: 700; }
.cart__cupon-form div { display: flex; gap: .5rem; }
.cart__cupon-form .input { flex: 1; min-width: 0; text-transform: uppercase; }
.cart__cupon { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .8rem; border-radius: 10px; background: var(--surface-2, #f3f5f5); font-size: .9rem; font-weight: 600; }
.cart__cupon.is-error { background: #fdecea; color: #9b1c1c; }
.cart__cupon-x { background: none; border: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
.cart__sum--cupon { color: var(--accent, #157F4C); font-weight: 700; }
