/* ==========================================================================
   PureLabMx — Tienda
   Usa los tokens compartidos de tracker/css/tokens.css (mismo sistema que PeptiTrack).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  font-family: var(--font-family);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(16, 185, 129, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 90% 30%, rgba(129, 140, 248, 0.06) 0%, transparent 45%),
    linear-gradient(rgba(99, 130, 201, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 130, 201, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  transition: background-color .3s ease, color .3s ease;
}
[data-theme="light"] body {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(16, 185, 129, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 90% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 45%);
  background-size: 100% 100%, 100% 100%;
}
body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select { font: inherit; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--primary-accent); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--font-mono); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── Botones (mismo lenguaje que PeptiTrack) ───────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 700; letter-spacing: .2px;
  transition: var(--transition); white-space: nowrap;
}
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-accent), var(--cyan-accent));
  color: #fff; box-shadow: 0 0 14px var(--primary-glow), 0 3px 10px rgba(0,0,0,.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 22px var(--primary-glow), 0 6px 16px rgba(0,0,0,.25); }
.btn-secondary { background: var(--bg-surface); border: 1px solid var(--border-color); color: var(--text-sub); }
.btn-secondary:hover { border-color: var(--primary-accent); color: var(--primary-accent); background: var(--primary-light); }
.btn-gold { background: var(--gold-accent); color: #0b1530; box-shadow: 0 0 14px var(--gold-glow); }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-sub);
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
  transition: var(--transition); position: relative; flex-shrink: 0;
}
.icon-btn:hover { border-color: var(--primary-accent); color: var(--primary-accent); }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 6px; font-size: 11px;
  background: var(--bg-surface); border: 1px solid var(--border-color); color: var(--text-muted);
}
.chip strong { color: var(--text-sub); font-weight: 700; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
}
.badge-green { background: rgba(16,185,129,.15); color: var(--primary-accent); border: 1px solid rgba(16,185,129,.3); }
.badge-amber { background: rgba(251,191,36,.15); color: var(--amber-accent); border: 1px solid rgba(251,191,36,.3); }
.badge-rose  { background: rgba(251,113,133,.15); color: var(--rose-accent); border: 1px solid rgba(251,113,133,.3); }
[data-theme="light"] .badge-amber { color: #b45309; }
[data-theme="light"] .badge-rose { color: #be123c; }

/* ─── Banner + Header ────────────────────────────────────────────── */
.top-banner {
  background: linear-gradient(90deg, #0b1530, #0f2a4a 50%, #0b1530);
  color: #e8f0fe; text-align: center; font-size: 12.5px; font-weight: 600;
  padding: 8px 16px; letter-spacing: .3px; border-bottom: 1px solid var(--border-color);
}

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-glass);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -.4px; white-space: nowrap; }
.brand strong { color: var(--primary-accent); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary-accent), var(--cyan-accent));
  box-shadow: 0 0 16px var(--primary-glow);
}
.site-nav { display: flex; gap: 2px; padding: 4px; border-radius: var(--radius-md); background: rgba(255,255,255,.04); border: 1px solid var(--border-color); }
[data-theme="light"] .site-nav { background: rgba(0,0,0,.03); }
.nav-link { padding: 7px 13px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--text-muted); transition: var(--transition); }
.nav-link:hover { color: var(--text-main); }
.nav-link.active { color: var(--primary-accent); background: var(--primary-light); }

.search-box { position: relative; flex: 1; max-width: 420px; margin-left: auto; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-box input {
  width: 100%; height: 42px; padding: 0 40px 0 40px; border-radius: var(--radius-full);
  background: var(--bg-input); border: 1px solid var(--border-color); font-size: 14px; transition: var(--transition);
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus { outline: none; border-color: var(--primary-accent); box-shadow: 0 0 0 3px var(--primary-light); }
.search-box kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
  border: 1px solid var(--border-color); border-radius: 5px; padding: 1px 6px; background: var(--bg-surface);
}

/* ─── Search Results Floating Dropdown ─── */
.search-results-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); box-shadow: 0 16px 40px rgba(0,0,0,0.55), 0 0 0 1px var(--border-glass);
  max-height: 440px; overflow-y: auto; scrollbar-width: thin;
  z-index: 600; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  animation: searchDropIn .2s cubic-bezier(.16,1,.3,1);
}
@keyframes searchDropIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.search-results-dropdown[hidden] { display: none; }
.search-dropdown-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--text-muted); border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
}
.search-dropdown-list { display: flex; flex-direction: column; }
.search-dropdown-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  cursor: pointer; transition: background .15s ease; border-bottom: 1px solid var(--border-color);
  text-decoration: none; color: var(--text-main);
}
.search-dropdown-item:last-child { border-bottom: none; }
.search-dropdown-item:hover, .search-dropdown-item.is-active {
  background: color-mix(in srgb, var(--primary-accent) 14%, var(--bg-surface));
}
.search-item-vial {
  width: 32px; height: 44px; flex-shrink: 0; border-radius: 6px;
  background: var(--bg-surface); display: grid; place-items: center; padding: 2px;
}
.search-item-vial svg { width: 100%; height: 100%; }
.search-item-info { flex: 1; min-width: 0; }
.search-item-title { font-size: 13.5px; font-weight: 700; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item-title mark { background: transparent; color: var(--gold-accent); font-weight: 800; }
.search-item-meta { font-size: 11.5px; color: var(--text-muted); display: flex; gap: 6px; align-items: center; margin-top: 2px; flex-wrap: wrap; }
.search-item-badge { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.search-item-price { text-align: right; font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--primary-accent); flex-shrink: 0; }
.search-item-price small { display: block; font-size: 10.5px; color: var(--text-muted); font-weight: 400; }
.search-dropdown-empty { padding: 28px 16px; text-align: center; color: var(--text-muted); font-size: 13px; }
.search-dropdown-foot {
  padding: 8px 14px; font-size: 11px; color: var(--text-muted); background: var(--bg-surface);
  border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center;
}
.search-dropdown-foot kbd { font-family: var(--font-mono); font-size: 10px; padding: 1px 4px; border: 1px solid var(--border-color); border-radius: 3px; background: var(--bg-card); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--gold-accent); color: #0b1530; font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
}
.cart-badge.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  color: var(--primary-accent); letter-spacing: .5px; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius-full); background: var(--primary-light); border: 1px solid rgba(16,185,129,.25);
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.08; letter-spacing: -1.2px; font-weight: 700;
  margin: 18px 0 14px; text-wrap: balance;
}
.hero h1 .grad { background: linear-gradient(90deg, var(--primary-accent), var(--cyan-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17px; color: var(--text-sub); max-width: 560px; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats { display: flex; gap: 32px; margin-top: 34px; }
.hero-stats strong { display: block; font-family: var(--font-mono); font-size: 24px; font-weight: 600; color: var(--text-main); }
.hero-stats span { font-size: 12.5px; color: var(--text-muted); }

.hero-vials { position: relative; height: 400px; }
.hero-vials::before {
  content: ''; position: absolute; inset: 10% 5% 0;
  background: radial-gradient(circle at 50% 55%, var(--primary-glow), transparent 65%); filter: blur(10px);
}
.hero-vial { position: absolute; bottom: 10px; width: 36%; animation: float 6s ease-in-out infinite; cursor: pointer; }
.hero-vial svg { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }
.hero-vial:nth-child(1) { left: 2%; transform: rotate(-8deg); animation-delay: -2s; bottom: 0; }
.hero-vial:nth-child(2) { left: 32%; width: 40%; bottom: 40px; z-index: 2; }
.hero-vial:nth-child(3) { right: 2%; transform: rotate(8deg); animation-delay: -4s; bottom: 0; }
@keyframes float { 50% { translate: 0 -10px; } }

/* ─── Trust bar ──────────────────────────────────────────────────── */
.trust-bar { border-block: 1px solid var(--border-color); background: var(--bg-surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 18px 16px; }
.trust-item + .trust-item { border-left: 1px solid var(--border-color); }
.trust-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary-accent); flex-shrink: 0; }
.trust-item strong { display: block; font-size: 13.5px; }
.trust-item span { font-size: 12px; color: var(--text-muted); }

/* ─── Catálogo ───────────────────────────────────────────────────── */
.catalog { padding: 56px 20px 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; letter-spacing: -.6px; line-height: 1.15; }
.section-head p { color: var(--text-muted); font-size: 13.5px; margin-top: 4px; }

/* Barra de controles del catálogo */
.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.stock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  transition: var(--transition);
  height: 40px;
}
.stock-toggle:hover {
  border-color: var(--primary-accent);
  color: var(--text-main);
}
.stock-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.stock-toggle-track {
  position: relative;
  width: 32px;
  height: 18px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  transition: all .2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.stock-toggle-thumb {
  position: absolute;
  left: 2px;
  width: 11px;
  height: 11px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1), background .2s ease;
}
.stock-toggle input:checked + .stock-toggle-track {
  background: color-mix(in srgb, var(--primary-accent) 22%, var(--bg-card));
  border-color: var(--primary-accent);
}
.stock-toggle input:checked + .stock-toggle-track .stock-toggle-thumb {
  transform: translateX(13px);
  background: var(--primary-accent);
  box-shadow: 0 0 6px color-mix(in srgb, var(--primary-accent) 60%, transparent);
}
.stock-toggle input:checked ~ .stock-toggle-label {
  color: var(--text-main);
}
.link-subtle {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary-accent);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .15s ease;
}
.link-subtle:hover {
  opacity: .8;
}

.select {
  height: 40px; padding: 0 34px 0 12px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border-color); font-size: 13px; color: var(--text-sub);
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23607090' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.select option { background: var(--bg-card); color: var(--text-main); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 26px; }
.chips::-webkit-scrollbar { display: none; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 8px 14px; border-radius: var(--radius-full); font-size: 12.5px; font-weight: 700; letter-spacing: .3px;
  background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-sub); transition: var(--transition);
}
.cat-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--primary-accent)); }
.cat-chip .count { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.cat-chip:hover { border-color: var(--c, var(--primary-accent)); }
.cat-chip[aria-pressed="true"] { background: var(--text-main); color: var(--bg-main); border-color: var(--text-main); }
.cat-chip[aria-pressed="true"] .count { color: inherit; opacity: .7; }

/* ─── Rejilla 100% Adaptativa (Fluid Responsive Grid) ─────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 22px;
  width: 100%;
  align-items: stretch;
}
@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 16px;
  }
}
@media (max-width: 380px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.product-card {
  --cap: var(--primary-accent);
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .25s ease;
  animation: cardIn .35s cubic-bezier(0.16, 1, 0.3, 1) both;
  height: 100%;
}
.product-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--cap); z-index: 1; }
.product-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--cap) 60%, transparent); box-shadow: var(--shadow-md), 0 0 24px color-mix(in srgb, var(--cap) 20%, transparent); }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pc-media {
  position: relative; height: 230px; width: 100%; display: grid; place-items: center;
  --bench-y: 79%;
  border-bottom: 1px solid var(--border-color);
}
.pc-media .pc-vial { height: 200px; aspect-ratio: 120 / 200; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.pc-media .pc-vial svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 12px 14px rgba(0,0,0,.28)); }
.product-card:hover .pc-vial { transform: translateY(-6px) scale(1.04); }
.pc-flag { position: absolute; top: 12px; font-size: 10.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; backdrop-filter: blur(6px); }
.pc-cat { left: 12px; background: color-mix(in srgb, var(--cap) 18%, var(--bg-card)); color: var(--text-main); border: 1px solid color-mix(in srgb, var(--cap) 40%, transparent); }
.pc-stock { right: 12px; }
.pc-stock.in { background: rgba(16,185,129,.15); color: var(--primary-accent); border: 1px solid rgba(16,185,129,.35); }
.pc-stock.out { background: rgba(239,68,68,.15); color: #f87171; border: 1px solid rgba(239,68,68,.35); }

.pc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pc-title { font-size: 16.5px; font-weight: 700; letter-spacing: -.3px; line-height: 1.25; text-align: left; }
.pc-title:hover { color: var(--primary-accent); }
.pc-alt { font-size: 12px; color: var(--text-muted); margin-top: -6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pc-desc { font-size: 13px; color: var(--text-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Selector de variantes (radio buttons estilizados) */
.variant-group { border: 0; }
.variant-group legend { font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 7px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 6px; }
.variant-opt { position: relative; }
.variant-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.variant-opt span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px; border-radius: 9px;
  border: 1.5px solid var(--border-color); background: var(--bg-surface);
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--text-sub);
  transition: var(--transition);
}
.variant-opt span::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--text-muted); transition: var(--transition); flex-shrink: 0; }
.variant-opt:hover span { border-color: color-mix(in srgb, var(--cap) 70%, transparent); color: var(--text-main); }
.variant-opt input:checked + span { border-color: var(--cap); color: var(--text-main); background: color-mix(in srgb, var(--cap) 14%, var(--bg-card)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cap) 18%, transparent); }
.variant-opt input:checked + span::before { border-color: var(--cap); background: var(--cap); box-shadow: inset 0 0 0 2px var(--bg-card); }
.variant-opt input:focus-visible + span { outline: 2px solid var(--primary-accent); outline-offset: 2px; }
.variant-opt input:disabled + span { opacity: .45; text-decoration: line-through; cursor: not-allowed; }

.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-color); }
.price strong { display: block; font-family: var(--font-mono); font-size: 19px; font-weight: 600; letter-spacing: -.5px; }
.price small { font-size: 11.5px; color: var(--text-muted); font-family: var(--font-mono); }
.pc-actions { display: flex; gap: 6px; }
.pc-actions .btn { padding: 9px 13px; }
.btn-square { width: 40px; padding: 0 !important; height: 40px; font-size: 16px; }

/* ─── Banda Peptide Tracker ──────────────────────────────────────── */
.tracker-band { padding: 72px 0; }
.tracker-panel {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center;
  padding: 40px; border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 0% 0%, rgba(16,185,129,.16), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(6,182,212,.14), transparent 50%),
    var(--bg-card);
  border: 1px solid var(--border-color); box-shadow: var(--shadow-md);
}
.tracker-panel h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.8px; line-height: 1.12; margin: 14px 0 10px; text-wrap: balance; }
.tracker-panel > div > p { color: var(--text-sub); max-width: 540px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 26px; }
.feature { display: flex; gap: 10px; align-items: flex-start; }
.feature .fi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-surface); border: 1px solid var(--border-color); flex-shrink: 0; font-size: 16px; }
.feature strong { display: block; font-size: 13.5px; }
.feature span { font-size: 12px; color: var(--text-muted); }
.protocol-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 20px; }
.protocol-card h3 { font-size: 14px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.protocol-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border-color); }
.protocol-row .mini-vial { width: 30px; height: 50px; flex-shrink: 0; }
.protocol-row .mini-vial svg { width: 100%; height: 100%; }
.protocol-row strong { font-size: 13.5px; display: block; }
.protocol-row span { font-size: 11.5px; color: var(--text-muted); font-family: var(--font-mono); }
.protocol-empty { font-size: 13px; color: var(--text-muted); padding: 14px; border: 1px dashed var(--border-color); border-radius: var(--radius-sm); text-align: center; }

/* ─── FAQ ────────────────────────────────────────────────────────── */
.faq-section { padding: 24px 0 80px; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--primary-accent); transition: transform .25s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 18px; color: var(--text-sub); font-size: 14px; }

/* ─── Footer ─────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border-color); background: var(--bg-surface); padding: 48px 0 28px; color: var(--text-sub); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-grid h4 { color: var(--text-main); font-size: 13px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a:hover { color: var(--primary-accent); }
.footer-disclaimer { border-top: 1px solid var(--border-color); padding-top: 22px; font-size: 12px; color: var(--text-muted); text-align: center; max-width: 820px; margin: 0 auto; }

/* ─── Overlays ───────────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; background: rgba(3, 7, 18, .62); backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 900;
}
.overlay.open { opacity: 1; pointer-events: auto; }

/* Carrito */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 950;
  background: var(--bg-card); border-left: 1px solid var(--border-color); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border-color); }
.drawer-head h3 { font-size: 17px; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-empty { text-align: center; color: var(--text-muted); padding: 60px 10px; }
.cart-empty .big { font-size: 40px; display: block; margin-bottom: 8px; }
.cart-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-color); align-items: center; }
.cart-item .mini-vial { width: 52px; height: 72px; border-radius: 10px; background: var(--bg-surface); display: grid; place-items: center; padding: 4px; }
.cart-item .mini-vial svg { height: 100%; width: auto; }
.cart-item h4 { font-size: 13.5px; line-height: 1.3; }
.cart-item .variant-tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--primary-accent); }
.cart-item .unit { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; margin-top: 6px; }
.qty button { width: 28px; height: 28px; font-weight: 700; color: var(--text-sub); }
.qty button:hover { background: var(--bg-surface); color: var(--primary-accent); }
.qty span { min-width: 28px; text-align: center; font-family: var(--font-mono); font-size: 13px; }
.cart-item .line-total { font-family: var(--font-mono); font-weight: 600; font-size: 14px; text-align: right; }
.cart-item .remove { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; display: block; margin-left: auto; }
.cart-item .remove:hover { color: var(--danger); }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--border-color); background: var(--bg-surface); }
.ship-progress { font-size: 12px; color: var(--text-sub); margin-bottom: 14px; }
.ship-bar { height: 6px; border-radius: 3px; background: var(--border-color); margin-top: 6px; overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary-accent), var(--cyan-accent)); border-radius: 3px; transition: width .4s; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-sub); margin-bottom: 8px; }
.sum-row span:last-child { font-family: var(--font-mono); }
.sum-total { font-size: 18px; font-weight: 700; color: var(--text-main); padding-top: 10px; border-top: 1px dashed var(--border-color); margin: 10px 0 16px; }
.btn-whatsapp { width: 100%; background: #25D366; color: #fff; padding: 14px; font-size: 15px; }
.btn-whatsapp:hover { background: #1ebe5b; transform: translateY(-1px); }
.drawer-note { font-size: 11.5px; color: var(--text-muted); text-align: center; margin-top: 10px; }
.drawer-note a { color: var(--primary-accent); font-weight: 600; }

/* Modal de producto */
.modal {
  position: fixed; inset: 0; z-index: 960; display: grid; place-items: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card {
  --cap: var(--primary-accent);
  width: min(1040px, 94vw); max-height: min(88vh, 840px); height: min(88vh, 840px); overflow: hidden;
  display: grid; grid-template-columns: 360px 1fr;
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0,0,0,0.6);
  transform: translateY(14px) scale(.98); transition: transform .3s ease; position: relative;
}
.modal.open .modal-card { transform: none; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 40;
  width: 34px; height: 34px; border-radius: var(--radius-full);
  background: var(--bg-surface); border: 1px solid var(--border-color);
  backdrop-filter: blur(8px); display: grid; place-items: center;
  color: var(--text-sub); transition: var(--transition);
}
.modal-close:hover { color: var(--text-main); border-color: var(--primary-accent); transform: scale(1.05); }
.modal-media {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 16px; padding: 30px 20px;
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--cap) 30%, transparent), transparent 65%),
    var(--bg-surface);
  border-right: 1px solid var(--border-color);
  overflow-y: auto; scrollbar-width: thin;
}
.modal-media .big-vial { width: 190px; max-height: 230px; aspect-ratio: 120 / 200; }
.modal-media .big-vial svg { width: 100%; height: 100%; filter: drop-shadow(0 16px 20px rgba(0,0,0,.35)); }
.modal-media .spec-strip { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; width: 100%; }
.modal-body {
  height: 100%; overflow-y: auto; scrollbar-width: thin;
  padding: 26px 28px; display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.modal-body > * { flex-shrink: 0; }
.modal-badges { display: flex; flex-wrap: wrap; gap: 6px; padding-right: 48px; }
.modal-body h2 { font-size: 26px; letter-spacing: -.6px; line-height: 1.15; }
.modal-alt { color: var(--text-muted); font-size: 13.5px; margin-top: -10px; }
.buy-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border-radius: var(--radius-md); background: var(--bg-surface); border: 1px solid var(--border-color); }
.buy-row .price { margin-right: auto; }
.buy-row .price strong { font-size: 24px; }
.buy-row .qty { margin-top: 0; }
.buy-row .qty button { width: 34px; height: 38px; }
.tracker-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tracker-actions .btn { flex: 1; min-width: 200px; }

.tabs {
  position: sticky; top: 0; background: var(--bg-card); z-index: 25;
  padding: 14px 0 0; margin: 0 -28px; padding-left: 28px; padding-right: 28px;
  display: flex; gap: 8px; border-bottom: 1px solid var(--border-color);
  overflow-x: auto; scrollbar-width: none;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  align-items: flex-end;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  appearance: none; background: transparent; border: none;
  padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--text-muted);
  font-family: inherit; line-height: 1.4;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap; transition: var(--transition);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: block;
  cursor: pointer;
}
.tab:hover { color: var(--text-main); background: var(--bg-surface); }
.tab[aria-selected="true"] { color: var(--primary-accent); border-bottom-color: var(--primary-accent); background: color-mix(in srgb, var(--primary-accent) 10%, transparent); }
.tab-panel { font-size: 14px; color: var(--text-sub); min-height: 140px; }
.tab-panel h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin: 16px 0 8px; }
.tab-panel h4:first-child { margin-top: 0; }
.tab-panel ul.bullets { display: grid; gap: 6px; }
.tab-panel ul.bullets li { padding-left: 18px; position: relative; }
.tab-panel ul.bullets li::before { content: ''; position: absolute; left: 3px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-accent); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-table th { text-align: left; color: var(--text-muted); font-weight: 600; width: 38%; padding: 9px 12px 9px 0; vertical-align: top; }
.spec-table td { padding: 9px 0; color: var(--text-main); word-break: break-word; }
.spec-table tr + tr { border-top: 1px solid var(--border-color); }
.spec-table td.seq { font-family: var(--font-mono); font-size: 12px; color: var(--text-sub); }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.info-cell { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-surface); border: 1px solid var(--border-color); }
.info-cell small { display: block; font-size: 11px; color: var(--text-muted); }
.info-cell strong { font-size: 13.5px; color: var(--text-main); }
.symptom { display: flex; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--bg-surface); border-left: 3px solid var(--amber-accent); margin-bottom: 6px; }
.symptom.info { border-left-color: var(--sky-accent); }
.symptom strong { font-size: 13px; color: var(--text-main); display: block; }
.symptom span { font-size: 12px; color: var(--text-muted); }
.component-title { font-size: 15px; color: var(--text-main); margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--border-color); }
.component-title:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.source-note { font-size: 11.5px; color: var(--text-muted); margin-top: 14px; }

/* Calculadora embebida */
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.field label { display: block; font-size: 11.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 5px; }
.field input {
  width: 100%; height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
  background: var(--bg-input); border: 1px solid var(--border-color); font-family: var(--font-mono); font-size: 14px;
}
.field input:focus { outline: none; border-color: var(--primary-accent); box-shadow: 0 0 0 3px var(--primary-light); }
.field input[readonly] { opacity: .75; }
.calc-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.calc-results .info-cell strong { font-family: var(--font-mono); font-size: 16px; color: var(--primary-accent); }
.syringe { margin-top: 14px; }
.syringe-track { position: relative; height: 18px; border-radius: 9px; background: var(--bg-surface); border: 1px solid var(--border-color); overflow: hidden; }
.syringe-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, color-mix(in srgb, var(--cap) 60%, transparent), var(--cap)); transition: width .3s; }
.syringe-ticks { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.calc-warning { font-size: 12px; color: var(--amber-accent); margin-top: 8px; }
[data-theme="light"] .calc-warning { color: #b45309; }

/* Toast */
.toast-stack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; display: grid; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border-color); box-shadow: var(--shadow-lg);
  font-size: 13.5px; font-weight: 600; animation: toastIn .3s ease; pointer-events: auto;
}
.toast .tv { width: 22px; height: 34px; }
.toast .tv svg { width: 100%; height: 100%; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

.floating-wa {
  position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; z-index: 150;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .35); transition: transform .2s;
}
.floating-wa:hover { transform: scale(1.08); }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-vials { height: 300px; max-width: 460px; margin: 0 auto; width: 100%; }
  .tracker-panel { grid-template-columns: 1fr; padding: 28px; }
  .modal-card { grid-template-columns: 1fr; height: auto; max-height: min(92vh, 900px); overflow-y: auto; }
  .modal-media { border-right: 0; border-bottom: 1px solid var(--border-color); padding: 24px 20px; overflow: visible; }
  .modal-media .big-vial { width: 140px; max-height: 180px; }
  .modal-body { overflow: visible; height: auto; padding: 24px 20px; }
  .tabs { position: static; margin: 0; padding: 0; }
}
@media (max-width: 780px) {
  .header-inner { flex-wrap: wrap; height: auto; padding-block: 10px; row-gap: 10px; }
  .search-box { order: 3; max-width: none; flex-basis: 100%; }
  .header-actions { margin-left: auto; }
  .tracker-launch span { display: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--border-color); }
  .feature-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding-top: 36px; }
  .hero-stats { gap: 22px; }
  .calc-grid, .calc-results { grid-template-columns: 1fr 1fr; }
  .modal { padding: 0; }
  .modal-card { max-height: 100vh; height: 100vh; border-radius: 0; }
  .modal-body { padding: 20px 16px 40px; }
  .info-grid { grid-template-columns: 1fr; }
  .search-box kbd { display: none; }
  .catalog-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .catalog-toolbar { justify-content: space-between; width: 100%; }
  .catalog-toolbar .select { flex: 1; }
}
@media (max-width: 480px) {
  .catalog-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .stock-toggle { justify-content: space-between; width: 100%; }
  .catalog-toolbar .select { width: 100%; }
}
@media (max-width: 420px) {
  .brand-text { display: none; }
  .tracker-actions .btn { min-width: 100%; }
}

/* ─── Productos agotados ─────────────────────────────────────────── */
.product-card.is-soldout {
  border-style: dashed;
  opacity: 0.76;
  transition: opacity .25s ease, border-color .25s ease, transform .25s ease;
}
.product-card.is-soldout:hover {
  opacity: 0.96;
  border-color: var(--border-color-strong, #64748b);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.product-card.is-soldout::before {
  background: repeating-linear-gradient(45deg, #475569 0 8px, #334155 8px 16px);
}
.product-card.is-soldout .pc-title,
.product-card.is-soldout .pc-desc,
.product-card.is-soldout .price { opacity: .7; }
.product-card.is-soldout .price strong { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--text-muted); }
.soldout-ribbon {
  position: absolute; top: 18px; right: -38px; transform: rotate(35deg);
  width: 155px; padding: 5px 0; text-align: center;
  background: #dc2626; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35); z-index: 2; pointer-events: none;
}
.pc-media { overflow: hidden; }
.modal-card.is-soldout .modal-media::after {
  content: 'Agotado'; position: absolute; top: 18px; left: 18px; z-index: 2;
  background: #dc2626; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 10px; border-radius: 6px;
}
.variant-opt input:disabled + span::after { content: 'agotado'; font-size: 9.5px; font-family: var(--font-family); text-transform: uppercase; letter-spacing: .5px; color: #f87171; text-decoration: none; display: inline-block; }

/* ─── Avisos RUO en la tienda ────────────────────────────────────── */
.hero-ruo { margin-top: 26px; max-width: 560px; }
.footer-ruo { margin: 0 auto 22px; max-width: 900px; }
.modal-body .ruo-full { padding: 16px 18px 14px 20px; }
.modal-body .ruo-full .ruo-text { font-size: 13px; }
.modal-media .ruo-strip { max-width: 260px; }
.ruo-confirm {
  display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; padding: 12px;
  border-radius: var(--radius-sm); font-size: 12px; line-height: 1.5; color: var(--text-sub); cursor: pointer;
  background: color-mix(in srgb, var(--gold-accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold-accent) 50%, transparent);
}
.ruo-confirm[hidden] { display: none; }
.ruo-confirm strong { color: var(--text-main); }
.ruo-confirm a { color: var(--primary-accent); }
.ruo-confirm input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary-accent); flex-shrink: 0; }
.shake { animation: shake .5s; border-color: #dc2626; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.drawer-foot { max-height: 70vh; overflow-y: auto; }

@media (max-width: 420px) {
  .header-actions { gap: 6px; }
  .icon-btn { width: 38px; height: 38px; }
}

/* ─── Escenario de laboratorio en ficha y portada ───────────────── */
.vial-stage {
  width: 100%; max-width: 300px; display: flex; justify-content: center;
  padding: 22px 0 12px; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border-color); --bench-y: 83%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 30px rgba(0,0,0,.25);
}
.hero-vials.lab-stage {
  --bench-y: 76%; border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border-color); box-shadow: var(--shadow-lg);
}
.hero-vials.lab-stage::before { content: none; }
.hero-vials.lab-stage .hero-vial:nth-child(1), .hero-vials.lab-stage .hero-vial:nth-child(3) { bottom: 5%; }
.hero-vials.lab-stage .hero-vial:nth-child(2) { bottom: 9%; }
@media (max-width: 780px) { .vial-stage { max-width: 220px; } }

/* ─── Calculadora: acceso con cuenta y aviso de simulación ───────── */
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.calc-locked { text-align: center; padding: 26px 18px; border-radius: var(--radius-md); border: 1px dashed var(--border-color); background: var(--bg-surface); }
.calc-locked .lock { font-size: 30px; display: block; margin-bottom: 6px; }
.calc-locked h4 { color: var(--text-main); font-size: 16px; text-transform: none; letter-spacing: 0; margin: 0 0 6px; }
.calc-locked p { margin-bottom: 14px; }
.calc-banner {
  padding: 10px 12px; border-radius: var(--radius-sm); font-size: 12.5px;
  background: color-mix(in srgb, var(--gold-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold-accent) 45%, transparent); color: var(--text-sub);
}
.calc-banner strong { color: var(--text-main); }

/* ─── Efectos Parallax & Depth 3D (PureLabMx) ─────────────────────── */
.scroll-progress-bar {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary-accent), var(--cyan-accent), var(--indigo-accent));
  transform-origin: left center; transform: scaleX(0);
  transition: transform .08s linear; z-index: 210;
  box-shadow: 0 0 10px var(--primary-glow);
}

.site-header {
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .25s ease;
}
.site-header.header-scrolled {
  background: var(--bg-card);
  border-bottom-color: var(--border-active);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.parallax-bg-layer {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden;
}
.parallax-orb {
  position: absolute; border-radius: 50%; filter: blur(75px); opacity: .45;
  will-change: transform; transition: margin-left .4s cubic-bezier(.16,1,.3,1);
}
.parallax-orb.orb-1 {
  width: 520px; height: 520px; top: -100px; left: -120px;
  background: radial-gradient(circle, rgba(16,185,129,.18) 0%, rgba(6,182,212,.08) 50%, transparent 70%);
}
.parallax-orb.orb-2 {
  width: 600px; height: 600px; top: 35%; right: -160px;
  background: radial-gradient(circle, rgba(129,140,248,.16) 0%, rgba(192,132,252,.08) 50%, transparent 70%);
}
.parallax-orb.orb-3 {
  width: 500px; height: 500px; bottom: 5%; left: 15%;
  background: radial-gradient(circle, rgba(6,182,212,.14) 0%, rgba(16,185,129,.06) 50%, transparent 70%);
}
[data-theme="light"] .parallax-orb { opacity: .25; filter: blur(90px); }

.hero-vials.lab-stage {
  perspective: 1200px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .2s cubic-bezier(.16,1,.3,1);
}
.hero-vials .hero-vial {
  will-change: transform;
}

.product-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.product-card .pc-vial {
  will-change: transform;
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}

.tracker-panel {
  will-change: background-position-y;
  transition: background-position-y .1s linear;
}

