/* ═══════════════════════════════════════════════════════════
   BROWORKSHOP · Encabezado, menú, búsqueda, paneles y pie de página
   ═══════════════════════════════════════════════════════════ */

/* ───────────── Barra de anuncios ───────────── */
.announce { background: var(--navy); color: #fff; font-size: .82rem; font-weight: 600; }
.announce__item { display: inline-flex; align-items: center; gap: .55em; padding: 9px 0; white-space: nowrap; }
.announce__item .i { width: 16px; height: 16px; color: var(--col-yellow); }
.announce__dot { padding: 0 26px; color: rgba(255, 255, 255, .35); font-size: .7rem; }

/* ───────────── Encabezado ───────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 248, 255, .8);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .92); border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(15, 30, 69, .4); }
.header__inner { display: flex; align-items: center; gap: clamp(8px, 1.8vw, 26px); height: var(--header-h); transition: height .3s var(--ease); }
.is-scrolled .header__inner { height: 66px; }
.header__menu { display: none; }
.header__actions { display: flex; align-items: center; gap: 2px; }

.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 42px; height: 42px; transition: transform .7s var(--spring); }
.brand:hover .brand__mark { transform: rotate(-14deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text b { color: var(--navy); font-size: 1.34rem; font-weight: 800; letter-spacing: .07em; }
.brand__text small { margin-top: 3px; color: var(--blue); font-size: .56rem; font-weight: 800; letter-spacing: .43em; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: .35em;
  padding: 10px 14px; border: 0; border-radius: 999px; background: none;
  color: var(--ink); font-size: .95rem; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: color .2s;
}
.nav__link::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2.5px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav__link:hover { color: var(--blue); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__trigger[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--navy); }
.nav__trigger .i { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.nav__trigger[aria-expanded="true"] .i { transform: rotate(180deg); }
.nav__hot { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sale); color: #fff; font-size: .68rem; font-weight: 800; animation: wiggle 3s ease-in-out infinite; }

/* Mega menú de categorías */
.mega { position: absolute; top: 100%; left: 0; right: 0; padding-top: 6px; }
.mega__inner {
  display: grid; grid-template-columns: 1fr 290px; gap: 18px;
  width: min(100% - var(--gutter) * 2, var(--container)); margin: 0 auto; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-10px) scale(.985); transform-origin: top center;
  transition: opacity .22s, transform .35s var(--ease);
}
.mega.is-open .mega__inner { opacity: 1; transform: none; }
.mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; align-content: start; }
.mega__link {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 16px;
  color: var(--navy); text-decoration: none;
  opacity: 0; transform: translateY(8px);
  transition: background-color .2s, transform .45s var(--spring), opacity .3s;
}
.mega.is-open .mega__link { opacity: 1; transform: none; transition-delay: 0s, calc(var(--i) * 22ms), calc(var(--i) * 22ms); }
.mega.is-open .mega__link:hover { background: var(--bg); transform: translateX(4px); transition-delay: 0s; }
.mega__link b { display: block; font-size: .92rem; }
.mega__link small { color: var(--muted); font-size: .76rem; }
.mega__link--all b { color: var(--blue); }
.mega__icon { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--tone, var(--blue-100)); color: var(--tone-ink, var(--blue-600)); transition: transform .45s var(--spring); }
.mega__icon .i { width: 21px; height: 21px; }
.mega__link:hover .mega__icon { transform: rotate(-10deg) scale(1.08); }
.mega__promo { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 16px; border-radius: 20px; background: linear-gradient(160deg, var(--rose), var(--peach)); color: var(--navy); text-decoration: none; }
.mega__promo-tag { align-self: flex-start; padding: .4em .7em; border-radius: 999px; background: var(--sale); color: #fff; font-size: .72rem; font-weight: 800; }
.mega__promo-img { position: relative; display: block; aspect-ratio: 4 / 3; }
.mega__promo-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .7s var(--ease); }
.mega__promo:hover .mega__promo-img img { transform: scale(1.08) rotate(-3deg); }
.mega__promo b { font-size: .9rem; line-height: 1.3; }
.mega__promo-cta { display: inline-flex; align-items: center; gap: .4em; margin-top: auto; color: var(--blue-600); font-weight: 700; }
.mega__promo-cta .i { transition: transform .35s var(--spring); }
.mega__promo:hover .mega__promo-cta .i { transform: translateX(4px); }

/* Botón de búsqueda del encabezado */
.search-trigger {
  display: flex; flex: 1; align-items: center; gap: 10px; max-width: 360px; height: 46px; margin-left: auto; padding: 0 8px 0 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); cursor: text;
  font-size: .92rem; transition: border-color .2s, box-shadow .3s;
}
.search-trigger:hover { border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(47, 91, 234, .1); }
.search-trigger > .i { width: 20px; height: 20px; color: var(--blue); }
.search-trigger__text { flex: 1; overflow: hidden; text-align: left; white-space: nowrap; }
.search-trigger__text::after { content: ''; display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--blue); animation: caret 1s steps(1) infinite; }
.search-trigger kbd { padding: 5px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--muted); font: 700 .75rem/1 var(--font); }

@media (max-width: 1100px) {
  .nav { display: none; }
  .header__menu { display: inline-grid; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .search-trigger { display: none; }
  .header__actions { margin-left: auto; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__text b { font-size: 1.18rem; }
  .is-scrolled .header__inner { height: 58px; }
}

/* ───────────── Paneles laterales ───────────── */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(15, 30, 69, .38); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s var(--ease); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column;
  width: min(440px, 100%); background: #fff; box-shadow: var(--shadow-lg); outline: none;
  transition: transform .5s var(--ease), opacity .3s;
}
.drawer--right .drawer__panel { right: 0; border-radius: 28px 0 0 28px; transform: translateX(105%); }
.drawer--left .drawer__panel { left: 0; width: min(360px, 88%); border-radius: 0 28px 28px 0; transform: translateX(-105%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { display: flex; align-items: center; font-size: 1.3rem; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px; }
.drawer__foot { display: grid; gap: 10px; padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: linear-gradient(180deg, #fff, var(--bg)); }
.drawer__loading { display: grid; place-items: center; padding: 70px 0; }
.drawer__suggest { display: grid; gap: 10px; margin-top: 4px; }
@media (max-width: 520px) { .drawer--right .drawer__panel { border-radius: 0; } }

/* Búsqueda */
.drawer--search .drawer__panel {
  top: 16px; bottom: auto; left: 50%; right: auto;
  width: min(760px, calc(100% - 24px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  border-radius: 28px; translate: -50% 0; opacity: 0; transform: translateY(-24px) scale(.98);
}
.drawer--search.is-open .drawer__panel { opacity: 1; transform: none; }
@media (max-width: 640px) {
  .drawer--search .drawer__panel { top: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; }
}
.search-box { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--line); }
.search-box > .i { width: 24px; height: 24px; color: var(--blue); }
.search-box input { min-height: 50px; padding: 0; border: 0; background: transparent; font-size: 1.15rem; font-weight: 600; box-shadow: none !important; }
.search-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 22px 22px; }
.search-results { display: grid; gap: 4px; margin-top: 12px; list-style: none; }
.search-results li { animation: rv-up .45s var(--ease) var(--d, 0ms) both; }
.sr-item { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 16px; color: var(--navy); text-decoration: none; transition: background-color .2s; }
.sr-item:hover, .is-active > .sr-item { background: var(--bg); }
.is-active > .sr-item { box-shadow: inset 0 0 0 2px var(--blue-400); }
.sr-item__img { display: grid; place-items: center; overflow: hidden; width: 56px; height: 56px; border-radius: 14px; background: var(--tone); isolation: isolate; }
.sr-item__img img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s var(--ease); }
.sr-item:hover .sr-item__img img { transform: scale(1.12) rotate(-4deg); }
.sr-item__txt { min-width: 0; }
.sr-item__txt b { display: block; overflow: hidden; font-size: .95rem; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.sr-item__txt small { color: var(--muted); }
.sr-item__txt em { color: var(--sale); font-style: normal; font-weight: 800; }
.sr-item__price { font-weight: 800; white-space: nowrap; }
.search-msg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 24px 10px; color: var(--muted); list-style: none; }
.search-all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--blue-100); color: var(--blue-600); font-weight: 700; text-decoration: none; transition: background-color .2s; }
.search-all:hover { background: var(--sky); }
.search-all .i { transition: transform .35s var(--spring); }
.search-all:hover .i { transform: translateX(4px); }

/* Menú móvil */
.mnav { display: grid; gap: 2px; }
.mnav a, .mnav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 10px; border: 0; border-radius: 14px; background: none; color: var(--navy); font-size: 1rem; font-weight: 650; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .2s, transform .3s var(--spring); }
.mnav a:hover, .mnav button:hover { background: var(--bg); transform: translateX(4px); }
.mnav .i { color: var(--blue); }
.mnav__title { margin: 22px 10px 10px; color: var(--muted); font: 800 .72rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.mnav__cats { display: grid; gap: 4px; }
.mcat { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 5px 10px 5px 6px; border-radius: 16px; color: var(--navy); font-weight: 600; text-decoration: none; transition: background-color .2s; }
.mcat:hover { background: var(--bg); }
.mcat small { padding: 2px 9px; border-radius: 999px; background: var(--bg); color: var(--muted); font-weight: 700; }

/* ───────────── Carrito y favoritos ───────────── */
.lines { display: grid; gap: 12px; list-style: none; }
.line {
  position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 14px;
  max-height: 240px; padding: 10px; border: 1px solid var(--line); border-radius: 20px; background: #fff;
  animation: rv-right .45s var(--ease) both;
  transition: opacity .3s, transform .35s var(--ease), max-height .35s var(--ease), padding .35s, margin .35s;
}
.line.is-busy { opacity: .6; }
.line.is-removing { max-height: 0; margin-top: -12px; padding-block: 0; border-width: 0; opacity: 0; transform: translateX(48px); overflow: hidden; }
.line__img { display: grid; place-items: center; overflow: hidden; width: 84px; height: 84px; border-radius: 16px; background: var(--tone); isolation: isolate; }
.line__img img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.line__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-right: 26px; }
.line__title { display: -webkit-box; overflow: hidden; color: var(--navy); font-size: .9rem; font-weight: 700; line-height: 1.3; text-decoration: none; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.line__title:hover { color: var(--blue); }
.line__variant { color: var(--muted); font-size: .8rem; }
.line__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.line__price { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.line__price b { color: var(--navy); }
.line__price s { color: var(--muted); font-size: .78rem; }
.line__warn { color: var(--sale); font-size: .78rem; font-weight: 700; }
.line__remove { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--bg); color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s, transform .35s var(--spring); }
.line__remove:hover { background: var(--rose); color: var(--sale); transform: rotate(90deg); }
.line__remove .i { width: 14px; height: 14px; }

.cart-total { display: flex; align-items: baseline; justify-content: space-between; color: var(--navy); font-weight: 700; }
.cart-total b { font-size: 1.5rem; letter-spacing: -.02em; }
.cart-note { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.cart-note .i { width: 18px; height: 18px; margin-top: 1px; color: var(--blue); }
.cart-save { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--mint); color: var(--mint-ink); font-size: .86rem; font-weight: 600; animation: pop .5s var(--spring); }
.cart-save .i { width: 18px; height: 18px; }
.cart-secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: .78rem; }
.cart-secure .i { width: 16px; height: 16px; color: var(--ok); }

.minis { display: grid; gap: 10px; }
.mini { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: box-shadow .3s, transform .35s var(--ease); }
.mini:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.mini__img { display: grid; place-items: center; overflow: hidden; width: 64px; height: 64px; border-radius: 14px; background: var(--tone); isolation: isolate; }
.mini__img img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.mini:hover .mini__img img { transform: scale(1.1) rotate(-4deg); }
.mini__info { display: grid; gap: 2px; min-width: 0; }
.mini__info > a { display: -webkit-box; overflow: hidden; color: var(--navy); font-size: .86rem; font-weight: 650; line-height: 1.3; text-decoration: none; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mini__info > a:hover { color: var(--blue); }
.mini__actions { display: flex; gap: 4px; }

/* ───────────── Pie de página ───────────── */
.site-footer { position: relative; margin-top: clamp(8px, 2vw, 24px); background: linear-gradient(to bottom, transparent 58px, var(--navy) 58px); color: #c3cde6; }
.footer__wave { display: block; width: 100%; height: 60px; fill: var(--navy); }
.footer__pattern { height: 14px; opacity: .45; background-size: 28px 14px; }
.footer__top { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)) 1.45fr; gap: 40px 32px; padding: 44px 0 40px; }
.footer__brand .brand__text b { color: #fff; }
.footer__brand .brand__text small { color: var(--col-yellow); }
.footer__brand p { max-width: 40ch; margin: 16px 0; font-size: .9rem; line-height: 1.7; }
.footer__contact { display: grid; gap: 9px; font-size: .88rem; list-style: none; }
.footer__contact li { display: flex; align-items: center; gap: 10px; }
.footer__contact .i { width: 18px; height: 18px; color: var(--col-yellow); }
.site-footer a { color: #e6ebf7; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: .9rem; }
.footer__col h3 { margin-bottom: 8px; color: #fff; font-size: 1rem; }
.footer__col button { padding: 0; border: 0; background: none; color: #e6ebf7; font-size: .9rem; cursor: pointer; }
.footer__col button:hover { color: #fff; text-decoration: underline; }
.footer__cats { display: flex; flex-direction: column; gap: 9px; }
.footer__news p { font-size: .88rem; }
.footer__social { display: flex; gap: 8px; margin-top: 16px; }
.social { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff !important; transition: background-color .25s, color .25s, transform .4s var(--spring); }
.social:hover { background: var(--col-yellow); color: var(--navy) !important; transform: translateY(-3px) rotate(-8deg); }
.news-form { display: grid; gap: 12px; width: 100%; margin-top: 4px; }
.news-form__row { display: flex; gap: 6px; padding: 5px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .07); transition: border-color .2s, box-shadow .3s; }
.news-form__row:focus-within { border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(92, 130, 255, .25); }
.news-form input[type="email"] { min-height: 42px; padding: 0 12px; border: 0; background: transparent; color: #fff; box-shadow: none; }
.news-form input[type="email"]::placeholder { color: rgba(255, 255, 255, .5); }
.news-form .btn { flex: none; width: 42px; min-height: 42px; padding: 0; }
.news-form .btn .i { transform: none !important; }
.news-form .check { color: #c3cde6; font-size: .78rem; }
.news-form .check input { border-color: rgba(255, 255, 255, .4); background: transparent; }
.news-form .check input:checked { background: var(--blue); border-color: var(--blue); }
.news-form .check a { text-decoration: underline; }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px 0 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal .i { display: inline; width: 12px; height: 12px; vertical-align: -1px; }
.made-heart { display: inline-block; color: #ff6b88; animation: heartbeat 1.6s ease-in-out infinite; }
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand, .footer__news { grid-column: span 3; }
  .footer__news { max-width: 460px; }
}
@media (max-width: 640px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__brand, .footer__news { grid-column: 1 / -1; }
  .footer__col:nth-of-type(3) { grid-column: 1 / -1; }
}

/* ───────────── Barra inferior móvil ───────────── */
.tabbar { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px;
    border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
    box-shadow: 0 14px 34px -14px rgba(15, 30, 69, .4);
  }
  .tabbar a, .tabbar button {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 7px 0 5px; border: 0; border-radius: 18px; background: none;
    color: var(--muted); font-size: .66rem; font-weight: 700; text-decoration: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: color .2s, background-color .25s;
  }
  .tabbar .i { width: 22px; height: 22px; transition: transform .4s var(--spring); }
  .tabbar [aria-current="page"], .tabbar [aria-expanded="true"] { background: var(--blue-100); color: var(--blue); }
  .tabbar [aria-current="page"] .i { transform: translateY(-1px) scale(1.08); }
  .tabbar a:active .i, .tabbar button:active .i { transform: scale(.82); }
  .tabbar .badge { top: 2px; right: calc(50% - 22px); }
}

/* ───────────── Botones flotantes ───────────── */
.floaters { position: fixed; right: 18px; bottom: 18px; z-index: 55; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.floaters > * { pointer-events: auto; }
.wa-float { position: relative; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 18px 0 14px; border-radius: 999px; background: #1faa53; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 12px 26px -10px rgba(31, 170, 83, .7); animation: pop-in .7s var(--spring) 1.2s both; transition: transform .35s var(--spring); }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float .i { width: 28px; height: 28px; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(31, 170, 83, .5); animation: ring 2.4s infinite; }
.to-top { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(16px) scale(.8); transition: opacity .3s, transform .45s var(--spring), color .2s; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top.is-visible:hover { color: var(--blue); transform: translateY(-3px); }
.to-top .i { width: 20px; height: 20px; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0)); transition: stroke-dashoffset .15s linear; }
@media (max-width: 860px) {
  .floaters { right: 14px; bottom: calc(98px + env(safe-area-inset-bottom)); }
  .wa-float { width: 54px; height: 54px; padding: 0; justify-content: center; }
  .wa-float span { display: none; }
  .to-top { width: 44px; height: 44px; }
}

/* ───────────── Notificaciones ───────────── */
.toasts { position: fixed; top: calc(var(--header-h) + 14px); right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 10px; width: min(390px, calc(100% - 32px)); pointer-events: none; }
.toast { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); pointer-events: auto; animation: toast-in .55s var(--spring) both; }
.toast.is-leaving { animation: toast-out .3s var(--ease) forwards; }
.toast__img { flex: none; width: 48px; height: 48px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: #fff; object-fit: contain; }
.toast__icon { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--mint); color: var(--mint-ink); }
.toast--error .toast__icon, .toast--wish .toast__icon { background: var(--rose); color: var(--sale); }
.toast--info .toast__icon { background: var(--blue-100); color: var(--blue); }
.toast__body { display: grid; flex: 1; gap: 1px; min-width: 0; }
.toast__body b { color: var(--navy); font-size: .92rem; }
.toast__body span { overflow: hidden; color: var(--muted); font-size: .8rem; white-space: nowrap; text-overflow: ellipsis; }
.toast__action { flex: none; padding: 8px 12px; border: 0; border-radius: 999px; background: var(--blue-100); color: var(--blue-600); font-size: .8rem; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s; }
.toast__action:hover { background: var(--blue); color: #fff; }
.toast__close { display: grid; flex: none; padding: 4px; border: 0; background: none; color: var(--faint); cursor: pointer; }
.toast__close:hover { color: var(--navy); }
.toast__close .i { width: 16px; height: 16px; }
.toast__life { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; transform-origin: left; background: linear-gradient(90deg, var(--col-yellow) 50%, var(--col-blue) 50% 75%, var(--col-red) 75%); animation: life var(--life, 4s) linear forwards; }
.toast.is-paused .toast__life { animation-play-state: paused; }
@media (max-width: 860px) {
  .toasts { top: auto; left: 50%; right: auto; bottom: calc(98px + env(safe-area-inset-bottom)); translate: -50% 0; }
}

/* ───────────── Aviso de cookies ───────────── */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; align-items: center; gap: 14px; max-width: 470px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg); font-size: .86rem; opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .5s var(--spring); }
.cookie.is-open { opacity: 1; transform: none; }
.cookie p { flex: 1; }
.cookie__icon { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--butter); color: var(--butter-ink); }
.cookie__icon .i { animation: spin 14s linear infinite; }
@media (max-width: 860px) {
  .cookie { left: 10px; right: 10px; bottom: calc(96px + env(safe-area-inset-bottom)); max-width: none; }
}

/* ───────────── Efectos ───────────── */
.fly-ghost { position: fixed; z-index: 300; padding: 8px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg); object-fit: contain; pointer-events: none; }
.burst { position: fixed; z-index: 300; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--col-yellow); transform: rotate(var(--a)) translateY(0); animation: burst .7s var(--ease) forwards; }
.burst i:nth-child(3n + 2) { background: var(--col-blue); }
.burst i:nth-child(3n) { background: var(--col-red); }

@keyframes wiggle { 0%, 78%, 100% { transform: rotate(0); } 84% { transform: rotate(-16deg) scale(1.12); } 90% { transform: rotate(12deg) scale(1.12); } 95% { transform: rotate(-5deg); } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.4) translateY(20px); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(31, 170, 83, .5); } 80%, 100% { box-shadow: 0 0 0 16px rgba(31, 170, 83, 0); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-16px) scale(.94); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px) scale(.96); } }
@keyframes life { from { transform: scaleX(1); } to { transform: scaleX(0); } }
