/* Hydra Scents — estilos
 * Lenguaje visual tipo Apple: tipografía del sistema (SF Pro / Inter), bloques redondeados,
 * mucho aire y un solo color fuerte: el líquido de cada perfume (--acc).
 */

/* ---------- Temas ---------- */
:root,
[data-theme="dark"] {
  --ink: 245, 245, 247;
  --bg: #000;
  --tile: #141416;
  --tile2: #1d1d1f;
  --elev: #1c1c1e;
  --slot: #1b1b1d;
  --hi: #f5f5f7;
  --txt: #e8e8ed;
  --soft: #c7c7cc;
  --mut: #a1a1a6;
  --mut3: #8e8e93;
  --faint: #6e6e73;
  --line: rgba(255, 255, 255, .1);
  --btn: #f5f5f7;
  --btn-fg: #000;
  --tonal: rgba(255, 255, 255, .1);
  --tonal-hi: rgba(255, 255, 255, .16);
  --header-bg: rgba(22, 22, 23, .74);
  --overlay: rgba(0, 0, 0, .96);
  --glass: rgba(29, 29, 31, .7);
  --scrim: rgba(0, 0, 0, .55);
  --shadow: 0 24px 60px rgba(0, 0, 0, .6);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, .5);
  --ok: #30d158;
  --danger: #ff6961;
  --danger-line: rgba(255, 105, 97, .4);
  --glass-edge: rgba(255, 255, 255, .4);
  --bottle-shadow: rgba(0, 0, 0, .7);
  --label: rgba(245, 245, 247, .92);
  --glow: rgba(150, 160, 190, .2);
  --nav-bg: rgba(255, 255, 255, .07);
  --nav-pill: rgba(255, 255, 255, .15);
  --nav-pill-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 14px rgba(0, 0, 0, .35);
  --love: #ff375f;
  color-scheme: dark;
}
[data-theme="light"] {
  --ink: 29, 29, 31;
  --bg: #fbfbfd;
  --tile: #f5f5f7;
  --tile2: #ebebef;
  --elev: #fff;
  --slot: #ececf0;
  --hi: #1d1d1f;
  --txt: #1d1d1f;
  --soft: #424245;
  --mut: #6e6e73;
  --mut3: #6e6e73;
  --faint: #86868b;
  --line: rgba(0, 0, 0, .1);
  --btn: #1d1d1f;
  --btn-fg: #fff;
  --tonal: rgba(0, 0, 0, .06);
  --tonal-hi: rgba(0, 0, 0, .1);
  --header-bg: rgba(251, 251, 253, .8);
  --overlay: rgba(251, 251, 253, .97);
  --glass: rgba(255, 255, 255, .8);
  --scrim: rgba(0, 0, 0, .3);
  --shadow: 0 24px 60px rgba(0, 0, 0, .12);
  --shadow-sm: 0 10px 26px rgba(0, 0, 0, .1);
  --ok: #1e8e3e;
  --danger: #d70015;
  --danger-line: rgba(215, 0, 21, .35);
  --glass-edge: rgba(0, 0, 0, .2);
  --bottle-shadow: rgba(0, 0, 0, .2);
  --label: rgba(255, 255, 255, .95);
  --glow: rgba(150, 160, 190, .28);
  --nav-bg: rgba(0, 0, 0, .045);
  --nav-pill: #fff;
  --nav-pill-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 14px rgba(0, 0, 0, .08);
  --love: #e5214d;
  color-scheme: light;
}

:root {
  --sans: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mark: Cinzel, Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --header-h: 74px;
  --tabbar-h: 0px;
  --logo-scale: 1.22;
  --logo-x: 0%;
  --logo-y: 8%;
}
@media (max-width: 979px) {
  :root { --tabbar-h: calc(62px + env(safe-area-inset-bottom)); --header-h: 62px; --r: 16px; --r-lg: 22px; }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font-family: var(--sans); font-size: 17px; font-weight: 400; line-height: 1.47; letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-optical-sizing: auto;
  -webkit-tap-highlight-color: transparent; text-wrap: pretty;
  padding-bottom: var(--tabbar-h);
}
body.theming, body.theming * { transition: background-color .4s ease, color .4s ease, border-color .4s ease, fill .4s ease !important; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
input, button, textarea, select { font: inherit; letter-spacing: inherit; }
button { color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
img { display: block; max-width: 100%; }
svg { flex: 0 0 auto; }
::selection { background: rgba(var(--ink), .85); color: var(--bg); }
:focus-visible { outline: 2px solid rgba(var(--ink), .75); outline-offset: 3px; border-radius: 6px; }

@keyframes hsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hsUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hsLine { from { transform: translateY(105%); } to { transform: none; } }
@keyframes hsRise { from { opacity: 0; transform: translateY(70px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes hsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes hsPop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes hsDrawer { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes hsMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hsBump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
@keyframes hsSheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes hsSheetIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes hsSwap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hsGlow { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }

/* Entrada de cada página */
.fresh > * { animation: hsFade .45s ease both; }
.fresh .a-up { animation: hsUp .8s var(--ease) both; }
.fresh .a-pop { animation: hsPop .5s var(--ease) both; }
.a-drawer { animation: hsDrawer .3s ease both; }

/* Aparición al hacer scroll */
.rv { opacity: 0; transform: translateY(32px) scale(.985); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
main { flex: 1; }
.wrap { max-width: 1200px; margin: 0 auto; }
.spacer { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }

/* ---------- Tipografía ---------- */
.h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -.035em; color: var(--hi); }
.h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -.035em; color: var(--hi); }
.h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.15; letter-spacing: -.025em; color: var(--hi); }
.lead { margin: 12px 0 0; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.42; color: var(--mut); max-width: 58ch; letter-spacing: -.016em; }
.kicker { font-size: 15px; font-weight: 600; color: var(--mut); letter-spacing: -.01em; }
.label { font-size: 13px; font-weight: 600; color: var(--mut); letter-spacing: -.005em; }
.muted { color: var(--mut); }
.tile { background: var(--tile); border-radius: var(--r-lg); }
.box { background: var(--tile); border-radius: var(--r); }
.box-glow { background: var(--tile); border-radius: var(--r-lg); }

/* ---------- Barra de avisos ---------- */
.announce {
  height: 36px; display: flex; align-items: center; justify-content: center; padding: 0 16px;
  background: var(--tile); font-size: 13px; font-weight: 500; color: var(--soft); text-align: center; overflow: hidden;
}
.announce span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: hsSwap .55s var(--ease); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 70; background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, .12); }
.site-header .wrap {
  height: var(--header-h); padding: 0 24px; max-width: 1320px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; justify-self: start; }
.logo-circle { border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: #000; box-shadow: 0 0 0 1px rgba(var(--ink), .18); }
.logo-img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--logo-scale)) translate(var(--logo-x), var(--logo-y)); }
.brand .logo-circle { width: 42px; height: 42px; transition: transform .5s var(--spring); }
.brand:hover .logo-circle { transform: rotate(-8deg) scale(1.05); }
.brand-name { display: block; font-family: var(--mark); font-weight: 600; font-size: 17px; letter-spacing: .13em; color: var(--hi); line-height: 1; }
.brand-sub { display: block; font-family: var(--mark); font-weight: 600; font-size: 9px; letter-spacing: .4em; color: var(--mut); margin-top: 6px; line-height: 1; }

/* Menú principal en cápsula: un indicador se desliza al link que señalas */
.nav {
  position: relative; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px;
  background: var(--nav-bg); box-shadow: inset 0 0 0 1px var(--line);
}
.nav-glide {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; pointer-events: none;
  background: var(--nav-pill); box-shadow: var(--nav-pill-shadow); opacity: 0;
  transition: transform .5s var(--spring), width .5s var(--spring), opacity .25s ease;
}
.nav-glide.show { opacity: 1; }
.nav-link {
  position: relative; z-index: 1; display: inline-flex; align-items: center; padding: 10px 17px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; color: var(--soft); white-space: nowrap;
  transition: color .25s ease;
}
.nav-link:hover, .nav-link.on { color: var(--hi); }
.nav:not(.glide-ok) .nav-link.on { background: var(--nav-pill); }
@media (max-width: 1220px) { .nav-link { padding: 9px 13px; font-size: 15px; } }
@media (max-width: 1080px) { .nav-link { padding: 9px 11px; font-size: 14.5px; } .nav .soon-pill { display: none; } }

.head-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--hi); background: var(--nav-bg); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .2s ease, transform .3s var(--spring), color .2s ease;
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.icon-btn:hover { background: var(--tonal-hi); }
.icon-btn:active { transform: scale(.88); }
/* Favoritos y pedido cambian cuando tienen algo */
[data-has="favs"].has { --ico-fill: var(--love); color: var(--love); }
[data-has="cart"].has { --ico-fill: rgba(var(--ink), .22); }
.icon-btn[data-has].has svg { animation: hsBump .5s var(--spring); }
.badge {
  position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--hi); color: var(--bg); font-size: 11px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center; letter-spacing: 0; box-shadow: 0 0 0 2.5px var(--bg);
}
[data-has="favs"] .badge { background: var(--love); color: #fff; }
.badge[hidden], .tb-badge[hidden] { display: none; }
.bump { animation: hsBump .5s var(--spring); }

/* Interruptor de tema: luna en modo oscuro, sol en modo claro */
.ico-theme .tm-core, .ico-theme .tm-cut, .ico-theme .tm-rays { transform-box: fill-box; transform-origin: center; transition: transform .6s var(--spring), opacity .35s ease; }
.ico-theme .tm-cut { transform-box: view-box; transform-origin: 12px 12px; }
.ico-theme .tm-rays { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; opacity: 0; transform: scale(.4) rotate(-80deg); }
[data-theme="light"] .ico-theme .tm-core { transform: scale(.54); }
[data-theme="light"] .ico-theme .tm-cut { transform: translate(9px, -9px); }
[data-theme="light"] .ico-theme .tm-rays { opacity: 1; transform: none; }
.theme-btn:hover .ico-theme { transform: rotate(-12deg); }
.ico-theme { transition: transform .5s var(--spring); }

/* Secciones en el celular: fila deslizable debajo del encabezado */
.subnav { display: none; }
@media (max-width: 979px) {
  .site-header .wrap { display: flex; padding: 0 14px; gap: 8px; }
  .site-header .brand { margin-right: auto; }
  .nav, .desk-only { display: none !important; }
  .brand .logo-circle { width: 38px; height: 38px; }
  .brand-name { font-size: 16px; }
  .icon-btn { width: 42px; height: 42px; }
  .subnav {
    display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 2px; scroll-padding: 0 14px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav-link {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 18px; border-radius: 999px;
    background: var(--nav-bg); box-shadow: inset 0 0 0 1px var(--line);
    font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; color: var(--soft); white-space: nowrap;
    transition: background .2s ease, color .2s ease, transform .25s var(--spring);
  }
  .subnav-link:active { transform: scale(.95); }
  .subnav-link.on { background: var(--btn); color: var(--btn-fg); box-shadow: none; }
  .subnav-link .soon-pill { margin-left: 0; }
  .subnav-link.on .soon-pill { background: rgba(127, 127, 127, .25); color: inherit; }
  body.r-admin .subnav { display: none; }
}
@media (min-width: 980px) { .mob-only { display: none !important; } }

/* ---------- Barra inferior (móvil) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--tabbar-h);
  padding: 0 4px env(safe-area-inset-bottom); display: none; align-items: stretch;
  background: var(--header-bg); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-top: 1px solid var(--line);
}
@media (max-width: 979px) { .tabbar { display: flex; } }
.tab-i { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--faint); min-width: 0; letter-spacing: -.005em; }
.tab-i svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--spring); overflow: visible; }
.tab-i.on { color: var(--hi); }
.tab-i.on svg { stroke-width: 1.9; }
.tab-i:active svg { transform: scale(.86); }
.tab-i[data-has="favs"].has { color: var(--love); }
.tb-badge {
  position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: var(--hi); color: var(--bg); font-size: 10.5px; font-weight: 700; font-style: normal; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.tab-i[data-has="favs"] .tb-badge { background: var(--love); color: #fff; }

/* Logotipos a color (WhatsApp e Instagram) */
svg.logo-c { fill: initial; stroke: none; }
.btn svg.logo-c { width: 20px; height: 20px; }
.menu-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-social { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.f-social a { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--soft); transition: color .2s ease; }
.f-social a:hover { color: var(--hi); }
.f-social svg { width: 28px; height: 28px; transition: transform .35s var(--spring); }
.f-social a:hover svg { transform: scale(1.1) rotate(-6deg); }

/* ---------- Menú ---------- */
.menu {
  position: fixed; inset: 0; z-index: 85; background: var(--overlay); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 14px 22px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; animation: hsFade .25s ease; overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu-nav { display: flex; flex-direction: column; margin-top: 18px; }
.menu-link { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; font-family: var(--display); font-size: 27px; font-weight: 600; letter-spacing: -.03em; color: var(--hi); opacity: .55; animation: hsUp .5s var(--ease) both; }
.menu-link.on { opacity: 1; }
.menu-link small { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--mut); letter-spacing: 0; }
.menu-foot { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.theme-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--tile); font-size: 15px; font-weight: 500; color: var(--soft); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--tonal); }
.seg button { padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--mut); transition: all .25s ease; white-space: nowrap; }
.seg button.on { background: var(--elev); color: var(--hi); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; text-align: center;
  transition: transform .25s var(--ease), background .2s ease, opacity .2s ease, box-shadow .3s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.96); }
.btn-solid { background: var(--btn); color: var(--btn-fg); }
.btn-solid:hover { opacity: .88; }
.btn-line, .btn-tonal { background: var(--tonal); color: var(--hi); }
.btn-line:hover, .btn-tonal:hover { background: var(--tonal-hi); }
.btn-quiet { color: var(--mut); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { color: var(--hi); }
.btn-danger { color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger-line); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 500; color: var(--hi); white-space: nowrap; }
.link-more svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.link-more:hover svg { transform: translateX(3px); }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-under { font-size: 15px; font-weight: 500; color: var(--hi); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(var(--ink), .3); }

/* ---------- Secciones ---------- */
.sec { padding: clamp(56px, 8vw, 110px) 20px; }
.sec-tight { padding-top: clamp(28px, 4vw, 48px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: clamp(22px, 3vw, 36px); }
.sec-head p { margin: 10px 0 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.45; color: var(--mut); max-width: 52ch; }

/* ---------- Portada ---------- */
.hero { position: relative; padding: clamp(28px, 4.5vw, 60px) 20px 0; overflow: hidden; text-align: center; }
.hero::before { content: ""; position: absolute; left: 50%; top: 40%; width: min(1100px, 140vw); height: 60%; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; animation: hsGlow 6s ease-in-out infinite; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.hero-in { position: relative; max-width: 980px; margin: 0 auto; }
.hero-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(40px, 7vw, 84px); line-height: 1.0; letter-spacing: -.045em; color: var(--hi); }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .ln > span { display: block; }
.hero-title .ln:last-child > span { background: linear-gradient(90deg, var(--mut), var(--hi) 45%, var(--hi) 55%, var(--mut)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fresh .hero-title .ln > span { animation: hsLine 1s var(--ease) both; }
.fresh .hero-title .ln:nth-child(2) > span { animation-delay: .1s; }
.hero-text { margin: 20px auto 0; max-width: 34ch; font-size: clamp(18px, 2vw, 23px); line-height: 1.4; color: var(--mut); letter-spacing: -.02em; }
.hero-ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: center; align-items: center; }
.fresh .hero-text { animation: hsUp .9s var(--ease) .25s both; }
.fresh .hero-ctas { animation: hsUp .9s var(--ease) .35s both; }

/* Escenario de frascos */
.stage { position: relative; margin: clamp(22px, 3.5vw, 40px) auto 0; display: flex; align-items: flex-end; justify-content: center; gap: clamp(6px, 2.4vw, 34px); padding-bottom: 46px; }
.stage::after { content: ""; position: absolute; left: 50%; bottom: 18px; width: min(820px, 92%); height: 60px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(var(--ink), .12), transparent); pointer-events: none; }
.stage-b { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; height: calc(var(--s) * clamp(150px, 24vw, 290px)); }
.stage-par { display: block; height: 100%; will-change: transform; }
.stage-float { display: block; height: 100%; animation: hsFloat 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.2s); }
.stage-b .bottle { position: static; transform: none; height: 100%; width: auto; transition: transform .5s var(--spring); }
.stage-b:hover .bottle { transform: translateY(-10px) rotate(-2deg); }
.stage-name { position: absolute; bottom: -36px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--mut); opacity: 0; transition: opacity .3s ease; }
.stage-b:hover .stage-name, .stage-b:focus-visible .stage-name { opacity: 1; }
.fresh .stage-b { animation: hsRise 1.1s var(--ease) both; animation-delay: calc(.35s + var(--o) * .09s); }
@media (max-width: 560px) { .stage-b.out { display: none; } .stage-name { display: none; } }
@media (hover: none) { .stage-name { opacity: 1; } }

/* ---------- El frasco dibujado ---------- */
.art { position: relative; overflow: hidden; background: var(--slot); background-image: radial-gradient(58% 50% at 50% 60%, color-mix(in srgb, var(--acc, #9a9aa4) 32%, transparent), transparent 72%); }
.art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bottle { position: absolute; left: 50%; top: 52%; height: 72%; width: auto; transform: translate(-50%, -50%); overflow: visible; transition: transform .6s var(--spring); }
.bottle .liquid, .vial .liquid { transform: translateY(calc((1 - var(--lvl, .62)) * var(--bh, 80) * 1px)); transition: transform 1.1s var(--ease); }
.bottle .edge { fill: none; stroke: var(--glass-edge); stroke-width: 1; }
.bottle .shade { fill: var(--bottle-shadow); }
.bottle .lab { fill: var(--label); }
@media (hover: hover) { .pcard:hover .pcard-media .bottle { transform: translate(-50%, -54%) rotate(-2deg); } }

/* ---------- Tarjeta de producto ---------- */
.pcard { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--tile); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s ease; }
@media (hover: hover) { .pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); } }
.pcard-media { aspect-ratio: 1 / 1.05; background-color: var(--slot); }
.pcard-link { position: absolute; inset: 0; z-index: 1; }
.tag {
  position: absolute; z-index: 2; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; background: var(--glass);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 11px; font-weight: 600; color: var(--soft); letter-spacing: 0; pointer-events: none;
}
.heart { position: absolute; z-index: 3; top: 5px; right: 5px; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--soft); transition: transform .3s var(--spring); }
.heart svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: fill .2s ease; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }
.heart.on { color: #ff375f; }
.heart.on svg { fill: currentColor; }
.heart:active { transform: scale(.8); }
.heart.pulse svg { animation: hsBump .5s var(--spring); }
.soldout { position: absolute; z-index: 2; inset: 0; background: color-mix(in srgb, var(--bg) 50%, transparent); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--hi); pointer-events: none; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pcard-marca { font-size: 13px; font-weight: 500; color: var(--mut); }
.pcard-name { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.022em; color: var(--hi); line-height: 1.2; }
.acorde { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--mut); margin-top: 2px; }
.acc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc, #9a9aa4); flex: 0 0 auto; }
.pcard-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price-cap { display: block; font-size: 12px; color: var(--mut); }
.price { display: block; font-size: 17px; font-weight: 600; color: var(--hi); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.btn-add {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--btn-fg); background: var(--btn); white-space: nowrap; transition: transform .25s var(--spring), opacity .2s ease;
}
.btn-add svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.btn-add:active { transform: scale(.92); }
.btn-add:hover { opacity: .86; }
.btn-notify { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--hi); background: var(--tonal); white-space: nowrap; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
@media (max-width: 600px) {
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid-cards .pcard-body { padding: 11px 12px 13px; }
  .grid-cards .pcard-name { font-size: 16.5px; }
  .grid-cards .acorde { font-size: 13px; }
  .grid-cards .pcard-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .grid-cards .btn-add, .grid-cards .btn-notify { width: 100%; justify-content: center; }
  .tag { font-size: 10px; top: 8px; left: 8px; }
}

/* Carrusel compacto (más vendidos y sugerencias) */
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px 20px 12px; margin: 0 -20px; scroll-padding: 0 20px; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 210px; scroll-snap-align: start; }
.rail .pcard-media { aspect-ratio: 1 / 1; }
.rail .pcard-body { padding: 12px 14px 14px; }
.rail .pcard-name { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .acorde { display: none; }
.rail .pcard-foot { padding-top: 8px; }
.rail .btn-add { width: 40px; height: 40px; min-height: 40px; padding: 0; }
.rail .btn-add .t { display: none; }
.rail .btn-notify { padding: 0 12px; font-size: 13px; }
.rail .heart { width: 38px; height: 38px; }
@media (max-width: 600px) { .rail > * { flex-basis: 44vw; } .rail { gap: 10px; } .rail .pcard-name { font-size: 16px; } .rail .price { font-size: 16px; } }
.rail-nav { display: flex; gap: 10px; }
.rail-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--tonal); display: flex; align-items: center; justify-content: center; color: var(--hi); transition: background .2s ease, opacity .2s ease; }
.rail-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rail-btn:hover { background: var(--tonal-hi); }
.rail-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 979px) { .rail-nav { display: none; } }
.rail-progress { margin-top: 12px; height: 3px; border-radius: 3px; background: var(--tonal); overflow: hidden; max-width: 160px; }
.rail-progress i { display: block; height: 100%; width: 100%; border-radius: 3px; background: var(--hi); transform-origin: left; transform: scaleX(.3); transition: transform .15s linear; }
@media (min-width: 980px) { .rail-progress { display: none; } }

/* ---------- Bloques "por qué Hydra" ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(200px, auto); gap: 14px;
  grid-template-areas: "a a b c" "a a d d" "e e f g"; }
.bt-a { grid-area: a; } .bt-b { grid-area: b; } .bt-c { grid-area: c; } .bt-d { grid-area: d; } .bt-e { grid-area: e; } .bt-f { grid-area: f; } .bt-g { grid-area: g; }
.bt { position: relative; overflow: hidden; padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 8px; }
.bt p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--mut); }
.bt .h3 { max-width: 18ch; }
.bt-num { font-family: var(--display); font-weight: 700; font-size: clamp(54px, 6vw, 80px); line-height: 1; letter-spacing: -.05em; color: var(--hi); font-variant-numeric: tabular-nums; }
.bt-num small { font-size: .45em; letter-spacing: -.02em; margin-left: 4px; }
.bt-stars { color: #ffb340; letter-spacing: .12em; font-size: 18px; }
.bt-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--tonal); display: flex; align-items: center; justify-content: center; color: var(--hi); margin-bottom: auto; }
.bt-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bt-a { justify-content: flex-end; min-height: 420px; }
.bt-a .seal { position: absolute; top: clamp(24px, 4vw, 48px); left: 50%; transform: translateX(-50%); width: clamp(150px, 18vw, 220px); aspect-ratio: 1; }
.bt-a .seal .logo-circle { position: relative; width: 100%; height: 100%; box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(var(--ink), .14); }
.bt-a .seal::before { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); animation: hsGlow 5s ease-in-out infinite; }
.bt-a .h3 { font-size: clamp(26px, 3vw, 36px); max-width: none; }
.bt-d { flex-direction: row; align-items: center; gap: 22px; }
.bt-d .vials { display: flex; align-items: flex-end; gap: 10px; height: 130px; flex: 0 0 auto; }
.bt-d .vials svg { height: 100%; width: auto; overflow: visible; }
.bt-e .points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bt-e .points span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--tonal); font-size: 14px; font-weight: 500; color: var(--hi); }
.bt-e .points svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.bt-g { justify-content: space-between; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b c" "d d" "e e" "f g"; grid-auto-rows: minmax(170px, auto); gap: 10px; }
  .bt-a { min-height: 380px; }
  .bt { padding: 20px; }
  .bt p { font-size: 15px; }
}
@media (max-width: 420px) { .bt-d { flex-direction: column; align-items: flex-start; } .bt-d .vials { height: 96px; } }

/* Familias olfativas */
.grid-olf { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.olf { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 16px 16px; min-height: 170px; border-radius: var(--r); background: var(--tile); overflow: hidden; transition: transform .4s var(--ease); }
.olf::before {
  content: ""; position: absolute; right: -18px; top: -18px; width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, color-mix(in srgb, var(--acc) 70%, #fff 30%), var(--acc) 48%, color-mix(in srgb, var(--acc) 72%, #000) 100%);
  transition: transform .7s var(--spring);
}
.olf-name { position: relative; margin-top: 36px; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.025em; color: var(--hi); }
.olf-count { position: relative; font-size: 14px; color: var(--mut); }
.olf-notes { position: relative; margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--mut); line-height: 1.4; }
@media (hover: hover) { .olf:hover { transform: translateY(-4px); } .olf:hover::before { transform: scale(1.15) translate(-6px, 6px); } }
.olf:active { transform: scale(.97); }
@media (max-width: 1100px) { .grid-olf { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .grid-olf { grid-template-columns: repeat(2, 1fr); gap: 10px; } .olf { min-height: 150px; padding: 14px; } .olf::before { width: 80px; height: 80px; } }

/* Categorías con foto */
.grid-fam { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fam { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--slot); isolation: isolate; }
.fam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); z-index: -1; }
.fam::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 35%, rgba(0, 0, 0, .8)); z-index: -1; }
.fam-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; color: #f5f5f7; }
.fam-count { font-size: 14px; font-weight: 500; color: rgba(245, 245, 247, .75); }
.fam-title { margin-top: 2px; font-family: var(--display); font-size: clamp(28px, 3vw, 36px); font-weight: 700; letter-spacing: -.035em; }
.fam-text { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: rgba(245, 245, 247, .82); max-width: 32ch; }
.fam-cta { margin-top: 14px; display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; }
.fam-cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .25s var(--ease); }
@media (hover: hover) { .fam:hover img { transform: scale(1.05); } .fam:hover .fam-cta svg { transform: translateX(3px); } }
@media (max-width: 860px) {
  .grid-fam { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 6px; scroll-padding: 0 20px; gap: 10px; }
  .grid-fam::-webkit-scrollbar { display: none; }
  .fam { flex: 0 0 76vw; max-width: 330px; scroll-snap-align: start; }
}

/* Guía de tamaños */
.sizes-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sg { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(26px, 3vw, 40px) 18px; border-radius: var(--r-lg); background: var(--tile); }
.sg-vial { height: 170px; width: 100%; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 22px; }
.sg-vial svg { height: 100%; width: auto; overflow: visible; }
.sg-vial .bottle { position: static; transform: none; height: 100%; }
.sg-ml { font-family: var(--display); font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.04em; color: var(--hi); line-height: 1; }
.sg-for { margin-top: 8px; font-size: 17px; font-weight: 600; color: var(--hi); letter-spacing: -.015em; }
.sg-uses { margin-top: 6px; font-size: 15px; color: var(--mut); line-height: 1.45; max-width: 26ch; }
@media (max-width: 760px) { .sizes-guide { gap: 8px; } .sg { padding: 20px 8px; border-radius: var(--r); } .sg-vial { height: 104px; margin-bottom: 14px; } .sg-ml { font-size: 26px; } .sg-for { font-size: 14px; } .sg-uses { font-size: 12.5px; } }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); background: var(--tile); }
.step-n { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--bg); background: var(--hi); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.step-t { margin-top: 18px; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.022em; color: var(--hi); }
.step-d { margin: 6px 0 0; font-size: 16px; line-height: 1.45; color: var(--mut); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 10px; } .step { display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; padding: 20px; } .step-t { margin-top: 2px; font-size: 19px; } .step-d { grid-column: 2; } }

/* Reseñas */
.marquee-mask { overflow: hidden; margin: 0 -20px; padding: 0 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee { display: flex; gap: 14px; width: max-content; animation: hsMarquee 46s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee .review { flex: 0 0 min(320px, 80vw); }
.review { padding: 22px; display: flex; flex-direction: column; border-radius: var(--r); background: var(--tile); }
.stars { color: #ffb340; letter-spacing: .12em; font-size: 15px; }
.review-text { margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: var(--txt); flex: 1; }
.who { margin-top: 16px; display: flex; align-items: center; gap: 11px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--tonal); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--soft); flex: 0 0 auto; }
.who-name { font-size: 15px; font-weight: 600; color: var(--hi); }
.who-city { font-size: 13px; color: var(--mut); }

/* Llamado final */
.cta-tile { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 80px) 24px; border-radius: var(--r-lg); background: var(--tile); text-align: center; }
.cta-tile::before { content: ""; position: absolute; left: 50%; bottom: -60%; width: 120%; height: 100%; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.cta-tile > * { position: relative; }
.cta-tile .h2 { max-width: 16ch; margin: 0 auto; }
.cta-tile p { margin: 14px auto 0; max-width: 44ch; font-size: clamp(17px, 1.7vw, 20px); color: var(--mut); }
.cta-btns { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 480px) { .cta-btns .btn { width: 100%; } }

/* ---------- Catálogo ---------- */
.cat-hero { padding: clamp(26px, 4vw, 56px) 20px 18px; }
.cat-sub { margin: 10px 0 0; max-width: 54ch; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.45; color: var(--mut); }
.tabs { margin-top: 22px; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--tonal); max-width: 100%; }
.tab { flex: 1; text-align: center; padding: 10px 20px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: all .3s var(--ease); white-space: nowrap; color: var(--mut); }
.tab.on { color: var(--hi); background: var(--elev); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
@media (max-width: 420px) { .tabs { display: flex; } .tab { padding: 10px 8px; font-size: 14px; } }

.filters { position: sticky; top: var(--header-h); z-index: 50; background: var(--header-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); padding: 10px 20px 12px; }
.filters-in { display: flex; flex-direction: column; gap: 10px; }
.filters-row { display: flex; gap: 10px; align-items: center; }
.search { position: relative; flex: 1 1 auto; min-width: 0; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--mut); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.input { width: 100%; height: 44px; padding: 0 40px 0 42px; border-radius: 12px; border: 0; background: var(--tonal); color: var(--hi); font-size: 16px; outline: none; transition: box-shadow .2s ease; -webkit-appearance: none; appearance: none; }
.input::-webkit-search-cancel-button { display: none; }
.input:focus { box-shadow: 0 0 0 2px rgba(var(--ink), .4); }
.input::placeholder { color: var(--faint); }
.search-x { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--mut); font-size: 20px; }
.search-x[hidden] { display: none; }
.btn-filtros { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--hi); background: var(--tonal); white-space: nowrap; flex: 0 0 auto; }
.btn-filtros svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.f-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--hi); color: var(--bg); }
@media (max-width: 420px) { .btn-filtros .lbl { display: none; } .btn-filtros { padding: 0 13px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 15px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--hi); background: var(--tonal); transition: background .2s ease, color .2s ease, transform .2s var(--spring); white-space: nowrap; user-select: none; flex: 0 0 auto; }
.chip:hover { background: var(--tonal-hi); }
.chip:active { transform: scale(.95); }
.chip.on { color: var(--btn-fg); background: var(--btn); }
.results { padding: 18px 20px clamp(52px, 7vw, 90px); }
.results-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.count { font-size: 15px; color: var(--mut); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.af { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--tonal); font-size: 13px; font-weight: 500; color: var(--hi); }
.af span { font-size: 15px; line-height: 1; color: var(--mut); }
.empty { padding: clamp(44px, 8vw, 72px) 22px; text-align: center; border-radius: var(--r-lg); background: var(--tile); }
.empty-ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--tonal); display: flex; align-items: center; justify-content: center; color: var(--hi); }
.empty-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.empty-t { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: var(--hi); }
.empty-d { margin: 8px auto 0; max-width: 42ch; font-size: 16px; line-height: 1.5; color: var(--mut); }
.empty .btn { margin-top: 20px; }

/* ---------- Hoja inferior / ventana ---------- */
.sheet-wrap[hidden] { display: none; }
.sheet-bg { position: fixed; inset: 0; z-index: 90; background: var(--scrim); animation: hsFade .25s ease; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet { position: fixed; z-index: 91; background: var(--elev); color: var(--txt); box-shadow: var(--shadow); overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 700px) {
  .sheet { left: 50%; top: 50%; width: min(520px, calc(100vw - 40px)); max-height: min(86vh, 760px); border-radius: 24px; transform: translate(-50%, -50%); animation: hsSheetIn .4s var(--ease) backwards; padding: 24px 24px 0; }
  .sheet-grab { display: none; }
}
@media (max-width: 699px) {
  .sheet { left: 0; right: 0; bottom: 0; max-height: 90vh; max-height: 90dvh; border-radius: 24px 24px 0 0; padding: 8px 18px 0; animation: hsSheetUp .42s var(--ease) backwards; }
  .sheet.dragging { transition: none; }
  .sheet.settle { transition: transform .3s var(--ease); }
}
.sheet-grab { width: 38px; height: 5px; border-radius: 9px; background: rgba(var(--ink), .22); margin: 2px auto 12px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sheet-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.03em; color: var(--hi); line-height: 1.15; }
.sheet-sub { margin-top: 4px; font-size: 15px; color: var(--mut); }
.sheet-x { width: 36px; height: 36px; border-radius: 50%; background: var(--tonal); display: flex; align-items: center; justify-content: center; font-size: 21px; color: var(--mut); flex: 0 0 auto; }
.sheet-group { padding: 14px 0; border-top: 1px solid var(--line); }
.sheet-group .label { margin-bottom: 10px; }
.sheet-foot { position: sticky; bottom: 0; margin: 14px -18px 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: var(--elev); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
@media (min-width: 700px) { .sheet-foot { margin: 16px -24px 0; padding: 16px 24px 22px; } }
.sheet-foot .btn { flex: 1; }
.qa-prod { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.qa-art { width: 88px; height: 100px; border-radius: 14px; flex: 0 0 auto; }
.qa-name { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--hi); line-height: 1.15; }

/* Selector de presentación */
.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.size { position: relative; padding: 14px; border-radius: 14px; text-align: left; color: var(--hi); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s ease, background .2s ease; }
.size:hover { box-shadow: inset 0 0 0 1px rgba(var(--ink), .35); }
.size.on { box-shadow: inset 0 0 0 2px var(--hi); background: var(--tonal); }
.size-l { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.size-p { display: block; margin-top: 2px; font-size: 15px; color: var(--mut); font-variant-numeric: tabular-nums; }
.size-k { position: absolute; top: 9px; right: 10px; font-size: 11px; font-weight: 600; color: var(--mut); }
@media (max-width: 420px) { .sizes { grid-template-columns: repeat(2, 1fr); } }
.uso { margin-top: 10px; font-size: 14px; color: var(--mut); min-height: 20px; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: var(--tonal); height: 46px; }
.qty button { width: 44px; height: 100%; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--hi); font-size: 20px; }
.qty button:active { transform: scale(.88); }
.qty button:disabled { opacity: .3; cursor: default; }
.qty output, .qty span { min-width: 26px; text-align: center; font-size: 16px; font-weight: 600; color: var(--hi); font-variant-numeric: tabular-nums; }
.qty.sm { height: 36px; }
.qty.sm button { width: 36px; font-size: 18px; }

/* ---------- Ficha de producto ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--mut); margin-bottom: 20px; }
.crumbs a:hover { color: var(--hi); }
.crumbs span { color: var(--faint); }
.det { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.det-media { position: sticky; top: calc(var(--header-h) + 20px); aspect-ratio: 1 / 1.05; border-radius: var(--r-lg); }
.det-media .bottle { height: 70%; }
.det-media .heart { top: 14px; right: 14px; width: 46px; height: 46px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pill { padding: 5px 11px; border-radius: 999px; background: var(--tonal); font-size: 13px; font-weight: 500; color: var(--soft); }
.pill.ok { color: var(--ok); }
.pill.no { color: var(--mut); }
.det-marca { font-size: 17px; font-weight: 600; color: var(--mut); letter-spacing: -.015em; }
.det-name { margin: 4px 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4.8vw, 56px); line-height: 1.03; letter-spacing: -.04em; color: var(--hi); }
.det-acorde { margin-top: 10px; font-size: 16px; }
.det-desc { margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: var(--soft); max-width: 58ch; }
.notas { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.nota { padding: 7px 13px; border-radius: 999px; background: var(--tonal); font-size: 14px; font-weight: 500; color: var(--hi); }
.det-block { margin-top: 28px; }
.det-block .label { margin-bottom: 10px; }
.buy { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.total-l { font-size: 13px; font-weight: 500; color: var(--mut); }
.total-n { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -.035em; color: var(--hi); font-variant-numeric: tabular-nums; line-height: 1.1; }
.buy .btn-solid { flex: 1 1 220px; min-height: 52px; font-size: 17px; }
.det-alt { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.det-alt .btn { flex: 1 1 200px; }
.garantias { margin-top: 24px; display: grid; gap: 12px; padding: 18px; border-radius: var(--r); background: var(--tile); }
.garantia { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--soft); }
.garantia svg { width: 20px; height: 20px; fill: none; stroke: var(--hi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rel { margin-top: clamp(56px, 8vw, 96px); }
@media (max-width: 860px) {
  .det { grid-template-columns: 1fr; }
  .det-media { position: relative; top: 0; aspect-ratio: 1 / .95; }
}

/* Barra de compra fija (móvil) */
.buybar { display: none; }
@media (max-width: 979px) {
  body.r-producto { --tabbar-h: 0px; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  body.r-producto .tabbar { display: none; }
  .buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 62; display: flex; align-items: center; gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line);
  }
  .buybar-info { min-width: 0; }
  .buybar-sel { font-size: 13px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar-total { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--hi); font-variant-numeric: tabular-nums; }
  .buybar .btn { flex: 1; min-height: 50px; padding: 0 16px; font-size: 16px; }
}

/* ---------- Pedido ---------- */
.cart { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.cart-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ship { padding: 16px 18px; }
.ship-t { font-size: 15px; color: var(--soft); }
.ship-t b { font-weight: 600; color: var(--hi); }
.ship-bar { margin-top: 10px; height: 6px; border-radius: 9px; background: var(--tonal); overflow: hidden; }
.ship-bar i { display: block; height: 100%; border-radius: 9px; background: var(--hi); transition: width .9s var(--ease); }
.lines { display: flex; flex-direction: column; gap: 10px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 12px; }
.line-art { width: 76px; height: 86px; border-radius: 12px; }
.line-art .bottle { height: 78%; }
.line-marca { font-size: 13px; font-weight: 500; color: var(--mut); }
.line-name { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.line-pres { margin-top: 1px; font-size: 14px; color: var(--mut); }
.line-ctrl { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.quitar { font-size: 14px; font-weight: 500; color: var(--mut); min-height: 36px; }
.quitar:hover { color: var(--hi); }
.line-total { font-size: 17px; font-weight: 600; color: var(--hi); white-space: nowrap; align-self: start; padding-top: 4px; font-variant-numeric: tabular-nums; }
.cart-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 520px) { .line { grid-template-columns: 66px 1fr; } .line-art { width: 66px; height: 78px; } .line-total { grid-column: 2; padding-top: 0; } }

.co-sec { padding: 22px; border-radius: var(--r-lg); background: var(--tile); }
.co-t { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.03em; color: var(--hi); }
.co-d { margin: 4px 0 0; font-size: 15px; color: var(--mut); }
.form { margin-top: 18px; display: grid; gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 500; color: var(--soft); }
.fld input, .fld textarea, .fld select, .input-box {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 0; background: var(--elev);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--hi); font-size: 16px; font-weight: 400; line-height: 1.45; outline: none; transition: box-shadow .2s ease; resize: vertical;
}
[data-theme="dark"] .fld input, [data-theme="dark"] .fld textarea, [data-theme="dark"] .fld select { background: rgba(255, 255, 255, .06); }
.fld select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.fld select option { background: var(--elev); color: var(--hi); }
.fld input:focus, .fld textarea:focus, .fld select:focus, .input-box:focus { box-shadow: inset 0 0 0 2px rgba(var(--ink), .55); }
.fld input::placeholder, .fld textarea::placeholder { color: var(--faint); }
.fld.invalid input, .fld.invalid select { box-shadow: inset 0 0 0 2px var(--danger); }
.fld .err { font-size: 13px; color: var(--danger); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; text-align: left; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s ease, background .2s ease; }
.opt b { font-weight: 600; font-size: 16px; color: var(--hi); letter-spacing: -.015em; }
.opt small { font-size: 13px; color: var(--mut); line-height: 1.4; }
.opt.on { box-shadow: inset 0 0 0 2px var(--hi); background: var(--tonal); }
@media (max-width: 380px) { .choice { grid-template-columns: 1fr; } }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); text-align: left; width: 100%; }
.switch-txt b { display: block; font-weight: 600; font-size: 16px; color: var(--hi); }
.switch-txt small { display: block; margin-top: 2px; font-size: 13px; color: var(--mut); line-height: 1.45; }
.knob { position: relative; width: 51px; height: 31px; border-radius: 999px; background: rgba(var(--ink), .2); flex: 0 0 auto; transition: background .25s ease; }
.knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .3s var(--spring); }
.switch[aria-checked="true"] .knob { background: #30d158; }
.switch[aria-checked="true"] .knob::after { transform: translateX(20px); }

.summary { position: sticky; top: calc(var(--header-h) + 18px); padding: 24px; }
.sum-t { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.03em; color: var(--hi); }
.sum-rows { margin-top: 16px; display: flex; flex-direction: column; gap: 11px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; color: var(--mut); }
.sum-row span + span { color: var(--hi); font-variant-numeric: tabular-nums; }
.sum-sep { height: 1px; background: var(--line); margin: 4px 0; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; }
.sum-total span:first-child { font-size: 17px; font-weight: 600; color: var(--hi); }
.sum-total span + span { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -.035em; color: var(--hi); font-variant-numeric: tabular-nums; }
.sum-note { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--mut); }
.summary .btn-solid { margin-top: 18px; min-height: 54px; font-size: 17px; }
.seguir { display: block; margin-top: 14px; text-align: center; font-size: 15px; font-weight: 500; color: var(--mut); }
.seguir:hover { color: var(--hi); }
@media (max-width: 900px) { .cart { grid-template-columns: 1fr; } .summary { position: static; } }

/* ---------- Reseñas, FAQ, envíos, contacto ---------- */
.rating { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.rating b { font-family: var(--display); font-weight: 700; font-size: 56px; letter-spacing: -.05em; color: var(--hi); line-height: 1; }
.rating span { font-size: 16px; color: var(--mut); }
.grid-reviews { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
@media (max-width: 400px) { .grid-reviews { grid-template-columns: 1fr; } }
.review-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.review-date { font-size: 13px; color: var(--faint); }

.faqs { margin-top: 26px; border-radius: var(--r-lg); background: var(--tile); padding: 0 22px; }
.faq + .faq { border-top: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; min-height: 64px; }
.faq-q span:first-child { font-size: clamp(17px, 2vw, 19px); font-weight: 600; letter-spacing: -.02em; color: var(--hi); }
.plus { font-size: 24px; font-weight: 300; color: var(--mut); transition: transform .4s var(--spring); line-height: 1; flex: 0 0 auto; }
.plus.open { transform: rotate(45deg); }
.faq-a { margin: 0; padding: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--soft); max-width: 66ch; }
.faq-more { margin-top: 18px; padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.faq-more p { margin: 0; font-size: 16px; color: var(--soft); }

.grid-envios { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.envio { padding: 26px; border-radius: var(--r-lg); }
.why-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--tonal); display: flex; align-items: center; justify-content: center; color: var(--hi); }
.why-ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.envio-t { margin-top: 16px; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.025em; color: var(--hi); }
.envio-d { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: var(--mut); }
.points-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.points-list span { padding: 6px 11px; border-radius: 999px; background: var(--tonal); font-size: 13px; font-weight: 500; color: var(--hi); }
.pagos { margin-top: 14px; padding: 26px; }
.pagos-t { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.025em; color: var(--hi); }
.pagos-list { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.pago { padding: 9px 15px; border-radius: 999px; background: var(--tonal); font-size: 14px; font-weight: 500; color: var(--hi); }

.contacto { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contacto { grid-template-columns: 1fr; } }
.datos { margin-top: 24px; display: grid; gap: 10px; }
.dato { display: flex; align-items: center; gap: 14px; padding: 16px; transition: background .2s ease; }
.dato svg { width: 22px; height: 22px; fill: none; stroke: var(--hi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dato-k { font-size: 13px; color: var(--mut); }
.dato-v { font-size: 17px; font-weight: 500; color: var(--hi); margin-top: 1px; word-break: break-word; }
a.dato:hover { background: var(--tile2); }
.contacto-b { padding: 26px; }
.form-note { font-size: 14px; line-height: 1.5; color: var(--mut); }

/* ---------- Panel de administración ---------- */
.admin-bar { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-count { font-size: 15px; color: var(--mut); }
.adm-list { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.adm-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.adm-head .acc-dot { width: 12px; height: 12px; }
.adm-head-txt { flex: 1; min-width: 0; display: block; }
.adm-sub { display: block; font-size: 13px; font-weight: 500; color: var(--mut); }
.adm-name { display: block; margin-top: 1px; font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.estado { font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--tonal); color: var(--mut); white-space: nowrap; }
.estado.ok { color: var(--ok); }
@media (max-width: 480px) { .adm-head .estado { display: none; } }
.adm-body { padding: 4px 18px 20px; display: flex; flex-direction: column; gap: 18px; }
.grid-f { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.fld input[type="color"] { padding: 4px; height: 48px; cursor: pointer; }
.adm-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.adm-foot p { margin: 0; font-size: 14px; color: var(--mut); line-height: 1.5; max-width: 52ch; }
.adm-panel { margin-top: 26px; padding: 22px; }
.adm-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.adm-panel-t { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--hi); }
.adm-panel > p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--mut); max-width: 62ch; }
.adm-reviews { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.adm-review { padding: 16px; display: flex; flex-direction: column; gap: 14px; background: var(--elev); border-radius: var(--r); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; font-size: 14px !important; }

/* ---------- Pie de página ---------- */
.footer { padding: clamp(40px, 5vw, 60px) 20px 26px; background: var(--tile); font-size: 14px; }
.footer-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.f-brand .logo-circle { width: 44px; height: 44px; }
.f-text { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: var(--mut); max-width: 34ch; }
.f-h { font-size: 14px; font-weight: 600; color: var(--hi); }
.f-links { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.f-links a { font-size: 15px; color: var(--mut); padding: 5px 0; }
.f-links a:hover { color: var(--hi); }
.f-bottom { margin: 32px auto 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: 13px; color: var(--faint); }
.f-bottom-r { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.f-admin { color: var(--faint); }
.f-admin:hover { color: var(--hi); }
@media (max-width: 860px) { .footer-in { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }

/* ---------- Flotantes ---------- */
.fab {
  position: fixed; z-index: 65; right: 18px; bottom: calc(var(--tabbar-h) + 18px); width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(37, 211, 102, .35), var(--shadow-sm);
  transition: transform .35s var(--spring);
}
.fab svg { fill: currentColor; }
.fab:hover { transform: scale(1.08); }
.fab:active { transform: scale(.92); }
@media (max-width: 979px) { .fab { width: 52px; height: 52px; right: 14px; bottom: calc(var(--tabbar-h) + 14px); } body.r-producto .fab, body.r-carrito .fab { display: none; } }

.toast {
  position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: calc(var(--tabbar-h) + 20px); z-index: 95;
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 20px; min-height: 52px; border-radius: 999px;
  background: var(--elev); color: var(--hi); font-size: 15px; font-weight: 500; box-shadow: var(--shadow), 0 0 0 1px var(--line);
  max-width: calc(100vw - 24px); animation: hsPop .4s var(--spring) both;
}
.toast[hidden] { display: none; }
.toast-msg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.toast-act { flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; background: var(--btn); color: var(--btn-fg); font-size: 14px; font-weight: 600; white-space: nowrap; }
.toast.plain { padding-right: 20px; }
@media (max-width: 979px) { body.r-producto .toast { bottom: calc(92px + env(safe-area-inset-bottom)); } }

/* Gota que vuela al pedido */
.fly { position: fixed; z-index: 99; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50% 50% 50% 0; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--acc) 55%, #fff), var(--acc)); box-shadow: 0 6px 16px color-mix(in srgb, var(--acc) 50%, transparent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .marquee { animation: none; }
  .marquee-mask { overflow-x: auto; }
}

/* ---------- Acceso privado al panel ---------- */
.login { padding: clamp(26px, 5vw, 40px); }
.login-ico { width: 54px; height: 54px; border-radius: 16px; background: var(--tonal); display: flex; align-items: center; justify-content: center; color: var(--hi); margin-bottom: 18px; }
.login-ico svg { width: 26px; height: 26px; }
.login-t { font-size: clamp(28px, 4vw, 34px); }
.login .muted { margin: 8px 0 0; font-size: 16px; line-height: 1.5; }
.login .form { margin-top: 22px; }
.login-err:empty { display: none; }
.admin-bar .btn svg { width: 16px; height: 16px; }

/* ---------- Frascos: próximamente ---------- */
.soon-pill { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--tonal); font-size: 10.5px; font-weight: 600; color: var(--mut); vertical-align: 1px; }
.nav-link.on .soon-pill { background: rgba(var(--ink), .12); }
.size.soon { cursor: default; opacity: .55; box-shadow: inset 0 0 0 1px var(--line); background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(var(--ink), .03) 8px 16px); }
.size.soon .size-p { font-weight: 600; }
.soon-tile { padding-top: clamp(30px, 5vw, 56px); }
.soon-art { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 3vw, 28px); height: clamp(140px, 22vw, 210px); margin-bottom: 26px; }
.soon-art span { height: 78%; }
.soon-art span.big { height: 100%; }
.soon-art .bottle { position: static; transform: none; height: 100%; width: auto; }

/* ---------- Panel: fotos y publicar ---------- */
.foto-edit { display: flex; gap: 14px; align-items: flex-start; margin-top: 4px; }
.foto-prev { width: 112px; height: 124px; border-radius: 14px; flex: 0 0 auto; }
.foto-side { min-width: 0; }
.foto-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.foto-btns label { cursor: pointer; }
.foto-btns label:focus-within { outline: 2px solid rgba(var(--ink), .75); outline-offset: 3px; }
.fld-help { margin: 8px 0 0; font-size: 13px; font-weight: 400; color: var(--mut); line-height: 1.45; word-break: break-word; }
@media (max-width: 460px) { .foto-edit { flex-direction: column; } .foto-prev { width: 100%; height: 200px; } }

/* ---------- Aviso de cookies ---------- */
.consent {
  position: fixed; z-index: 88; left: 16px; bottom: calc(var(--tabbar-h) + 16px); width: min(420px, calc(100vw - 32px));
  padding: 18px; border-radius: 20px; background: var(--elev); color: var(--txt); box-shadow: var(--shadow), 0 0 0 1px var(--line);
  animation: hsPop .5s var(--spring) .6s both;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--soft); }
.consent-btns { margin-top: 14px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
body.consent-open .fab { display: none; }
@media (max-width: 979px) { .consent { left: 12px; right: 12px; width: auto; bottom: calc(var(--tabbar-h) + 12px); } body.r-producto .consent { bottom: calc(92px + env(safe-area-inset-bottom)); } }

/* ---------- Páginas legales ---------- */
.legal { max-width: 760px; }
.legal-date { margin: 10px 0 0; font-size: 14px; color: var(--mut); }
.legal-intro { margin: 18px 0 0; font-size: 18px; line-height: 1.55; color: var(--soft); }
.legal-sec { margin-top: 34px; }
.legal-sec h2 { margin: 0 0 10px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.025em; color: var(--hi); }
.legal-sec p, .legal-sec li { font-size: 16px; line-height: 1.65; color: var(--soft); }
.legal-sec p { margin: 10px 0 0; }
.legal-sec ul { margin: 10px 0 0; padding-left: 20px; }
.legal-sec li + li { margin-top: 6px; }
.legal-sec a:not(.btn) { color: var(--hi); text-decoration: underline; text-underline-offset: 3px; }
.legal-sec .btn { margin-top: 14px; }
.legal-table { margin-top: 12px; border-radius: var(--r); background: var(--tile); overflow: hidden; }
.lt-row { display: grid; grid-template-columns: 1.1fr 1.3fr 1.3fr; gap: 12px; padding: 14px 16px; font-size: 15px; line-height: 1.45; color: var(--soft); }
.lt-row + .lt-row { border-top: 1px solid var(--line); }
.lt-head { font-size: 13px; font-weight: 600; color: var(--mut); background: var(--tonal); }
.lt-row b { color: var(--hi); font-weight: 600; }
@media (max-width: 640px) { .lt-row { grid-template-columns: 1fr; gap: 2px; } .lt-head { display: none; } }

/* Enlaces legales en pie, menú y pedido */
.f-bottom-r a { color: var(--mut); }
.f-bottom-r a:hover { color: var(--hi); text-decoration: underline; text-underline-offset: 3px; }
.menu-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding-top: 4px; font-size: 13px; color: var(--mut); }
.menu-legal a:hover { color: var(--hi); }
.sum-legal { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--mut); text-align: center; }
.sum-legal a { color: var(--soft); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Panel conectado al servidor ---------- */
.adm-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.adm-top .lead { margin-top: 8px; }
.adm-bar {
  position: sticky; top: var(--header-h); z-index: 30; margin: 22px -20px 0; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
  background: var(--header-bg); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--line);
}
.adm-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs button { padding: 9px 16px; font-size: 14.5px; font-weight: 600; }
.adm-estado { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; font-weight: 500; color: var(--soft); }
.adm-estado-t { max-width: 52ch; }
.adm-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: var(--ok); box-shadow: 0 0 0 4px rgba(48, 209, 88, .2); }
.adm-dot.pend { background: #ff9f0a; box-shadow: 0 0 0 4px rgba(255, 159, 10, .2); }
.adm-dot.saving { background: #0a84ff; box-shadow: 0 0 0 4px rgba(10, 132, 255, .22); animation: hsGlow 1s ease infinite; }
.adm-dot.err { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-line); }
.adm-content { margin-top: 20px; }
.adm-content > .adm-panel:first-child { margin-top: 0; }
.adm-tools { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.adm-search { position: relative; flex: 1 1 220px; max-width: 380px; }
.adm-search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--mut); pointer-events: none; }
.adm-search input { width: 100%; min-height: 42px; padding: 0 14px 0 40px; border: 0; border-radius: 999px; background: var(--tonal); color: var(--hi); font-size: 16px; }
.adm-search input:focus { outline: none; box-shadow: inset 0 0 0 2px rgba(var(--ink), .5); }
.adm-list { margin-top: 16px; }
.adm-item { transition: box-shadow .25s ease; }
.adm-item.open { box-shadow: inset 0 0 0 1px var(--line); }
.adm-row { display: flex; align-items: center; gap: 4px; padding-right: 10px; }
.adm-row .adm-head { flex: 1; min-width: 0; padding: 12px 8px 12px 12px; }
.adm-thumb { width: 52px; height: 58px; border-radius: 12px; flex: 0 0 auto; overflow: hidden; }
.adm-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.adm-tags:empty { display: none; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--tonal); color: var(--mut); }
.tag-off { color: #ff9f0a; background: rgba(255, 159, 10, .14); }
.tag-star { color: var(--hi); }
[data-theme="light"] .tag-off { color: #a74c00; }
.mini-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--mut); flex: 0 0 auto; }
.mini-switch[aria-checked="true"] { color: var(--ok); }
.mini-switch[aria-checked="true"] .knob { background: #30d158; }
.mini-switch[aria-checked="true"] .knob::after { transform: translateX(20px); }
.adm-open { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.adm-open:hover { background: var(--tonal); }
.adm-switches { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.adm-warn { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 159, 10, .12); color: #ff9f0a; font-size: 14px; font-weight: 500; }
[data-theme="light"] .adm-warn { color: #a74c00; }
.adm-new { margin-top: 14px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.adm-new-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.chip-radio { position: relative; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio input:checked + .chip { color: var(--btn-fg); background: var(--btn); }
.chip-radio input:focus-visible + .chip { outline: 2px solid rgba(var(--ink), .75); outline-offset: 2px; }
.adm-panel-body { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.adm-reviews .adm-review { background: var(--tile); }
.adm-fams { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.adm-fam { display: flex; flex-direction: column; gap: 12px; }
.adm-fam-img { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--slot); }
.adm-fam-img img { width: 100%; height: 100%; object-fit: cover; }
.adm-fam-img span { position: absolute; left: 14px; bottom: 10px; font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.is-busy { opacity: .7; pointer-events: none; }
.login-alt { display: block; margin: 18px auto 0; font-size: 15px; font-weight: 500; color: var(--mut); text-decoration: underline; text-underline-offset: 4px; }
.login-alt:hover { color: var(--hi); }
.login-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 159, 10, .12); font-size: 14px; line-height: 1.5; color: var(--soft); }
.oculto-aviso { margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 159, 10, .14); color: var(--hi); font-size: 15px; font-weight: 500; }
@media (max-width: 1240px) { .oculto-aviso { margin-left: 20px; margin-right: 20px; } }
@media (max-width: 640px) {
  .adm-bar { margin: 18px -20px 0; padding: 10px 14px; }
  .adm-tabs button { padding: 8px 13px; font-size: 14px; }
  .mini-switch-t { display: none; }
  .mini-switch { padding-left: 4px; }
  .adm-thumb { width: 44px; height: 50px; }
  .adm-row .adm-name { font-size: 17px; }
  .adm-estado { font-size: 13px; }
}

body.r-admin .fab { display: none; }

/* ---------- Próximamente y pirámide de notas ---------- */
.soldout.soon {
  inset: auto auto 12px 12px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px;
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line);
}
.pill.soon { color: #ff9f0a; }
[data-theme="light"] .pill.soon { color: #a74c00; }
.tag-soon { color: #0a84ff; background: rgba(10, 132, 255, .14); }
[data-theme="light"] .tag-soon { color: #0058b9; }
.piramide { margin-top: 20px; display: grid; gap: 12px; }
.pir-row { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: start; }
.pir-k { padding-top: 7px; font-size: 13px; font-weight: 600; color: var(--mut); }
.pir-row .notas { margin-top: 0; }
@media (max-width: 420px) { .pir-row { grid-template-columns: 1fr; gap: 6px; } .pir-k { padding-top: 0; } }
