/* ==========================================================================
   DE CLUB PARFUM · FLAGSHIP DESIGN SYSTEM v5 (BBVA / Wallet / Disney+ / Prime)
   Arquitectura visual de nivel producción: Midnight Sapphire + Champagne Gold,
   superficies traslúcidas multicapa, jerarquía táctil de 4 niveles y modo claro.
   ========================================================================== */
:root {
  /* Paleta Principal Midnight Sapphire (Inspiración BBVA / Disney+ / Prime) */
  --bg-main: #050d1a;
  --bg-surface: #0a172b;
  --bg-card: #0e1f38;
  --bg-elevated: #152b4a;
  --border-hairline: rgba(148, 197, 255, 0.14);
  --border-subtle: rgba(148, 197, 255, 0.08);
  --border-active: rgba(229, 196, 131, 0.62);

  /* Acentos Cromáticos de Alta Gama */
  --gold-accent: #e5c483;
  --gold-bright: #f5dda9;
  --gold-muted: #a88950;
  --accent-cyan: #22d3ee;
  --accent-blue: #1d9bf0;
  --accent-sapphire: #1973b8;

  /* Jerarquía Tipográfica de Alto Contraste */
  --text-main: #f8fafc;
  --text-secondary: #a3b8d4;
  --text-tertiary: #6882a3;

  /* Estados Semánticos */
  --badge-green: #2ecc71;
  --badge-orange: #f59e0b;
  --badge-gray: #7f8c8d;

  /* Geometría y Curvaturas Orgánicas (Wallet / Instagram / iOS) */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --safe-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));

  /* Tipografía Flagship */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Sistema Táctil de Botones y Controles (Jerarquía BBVA / Wallet) */
  --btn-bg: rgba(16, 36, 66, 0.88);
  --btn-bg-hover: rgba(24, 52, 92, 0.96);
  --btn-border: rgba(148, 197, 255, 0.22);
  --btn-border-hover: rgba(229, 196, 131, 0.65);
  --btn-text: #f8fafc;
  --btn-font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --btn-active-bg: linear-gradient(135deg, #f4dca8 0%, #deb873 52%, #c5984e 100%);
  --btn-active-border: rgba(255, 248, 230, 0.78);
  --btn-active-text: #061326;
  --btn-shadow: 0 2px 8px rgba(2, 8, 20, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --btn-active-shadow: 0 6px 18px rgba(222, 184, 115, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55);

  /* Sombras Arquitectónicas Multicapa */
  --card-shadow: 0 10px 28px rgba(2, 8, 20, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --card-shadow-hover: 0 16px 36px rgba(2, 8, 20, 0.58), 0 0 0 1px rgba(229, 196, 131, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   MODO CLARO · BBVA DAYLIGHT & FOTOCASA / GMAIL PORCELAIN
   ========================================================================== */
body.theme-light {
  --bg-main: #f2f6fc;
  --bg-surface: #e6eef9;
  --bg-card: #ffffff;
  --bg-elevated: #dbe7f7;
  --border-hairline: rgba(11, 37, 75, 0.11);
  --border-subtle: rgba(11, 37, 75, 0.06);
  --border-active: rgba(154, 110, 34, 0.55);

  --gold-accent: #94681d;
  --gold-bright: #b07d27;
  --gold-muted: #755216;
  --accent-cyan: #0284c7;
  --accent-blue: #0066cc;
  --accent-sapphire: #072146;

  --text-main: #072146;
  --text-secondary: #3b5374;
  --text-tertiary: #677f9e;

  --btn-bg: #e9f0fa;
  --btn-bg-hover: #dbe7f7;
  --btn-border: rgba(11, 37, 75, 0.16);
  --btn-border-hover: rgba(148, 104, 29, 0.55);
  --btn-text: #072146;
  --btn-active-bg: linear-gradient(135deg, #0b2d5c 0%, #144687 100%);
  --btn-active-border: #072146;
  --btn-active-text: #ffffff;
  --btn-shadow: 0 2px 6px rgba(7, 33, 70, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --btn-active-shadow: 0 6px 16px rgba(11, 45, 92, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);

  --card-shadow: 0 8px 24px rgba(7, 33, 70, 0.06), 0 1px 3px rgba(7, 33, 70, 0.04);
  --card-shadow-hover: 0 14px 32px rgba(7, 33, 70, 0.11), 0 0 0 1px rgba(20, 70, 135, 0.20);
}

body.theme-light .app-header {
  background: rgba(242, 246, 252, 0.88);
  border-bottom-color: rgba(11, 37, 75, 0.09);
}

body.theme-light .app-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(7, 33, 70, 0.08);
}

body.theme-light .bottom-nav {
  background: rgba(255, 255, 255, 0.94);
  border-top-color: rgba(11, 37, 75, 0.10);
  box-shadow: 0 -6px 24px rgba(7, 33, 70, 0.06);
}

body.theme-light .card-stage {
  background: radial-gradient(circle at 50% 44%, rgba(25, 115, 184, 0.14) 0%, rgba(219, 231, 247, 0.65) 58%, transparent 82%), linear-gradient(180deg, #eef3fb 0%, #dfe9f6 100%) !important;
  border-bottom-color: rgba(11, 37, 75, 0.08);
}

body.theme-light .card-stage svg {
  filter: drop-shadow(0 8px 14px rgba(7, 33, 70, 0.16));
}

body.theme-light .clean-modal-card {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
  border-color: rgba(11, 37, 75, 0.14);
  box-shadow: 0 28px 70px rgba(7, 33, 70, 0.22), inset 0 1px 0 #ffffff;
}

body.theme-light .notif-dropdown-panel {
  background: #ffffff;
  border-color: rgba(11, 37, 75, 0.16);
  box-shadow: 0 22px 54px rgba(7, 33, 70, 0.18);
}

body.theme-light .card-perfume,
body.theme-light .card-perfume-list {
  background: #ffffff !important;
  box-shadow: var(--card-shadow);
}

body.theme-light .hero-stat-pill {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(7, 33, 70, 0.05);
}

body.theme-light .catalog-hero-banner {
  background: linear-gradient(135deg, #ffffff 0%, #eaf2fc 100%);
  border-color: rgba(20, 70, 135, 0.15);
  box-shadow: var(--card-shadow);
}

/* ==========================================================================
   RESET GLOBAL Y ATMÓSFERA DEL LIENZO
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  background-image:
    radial-gradient(ellipse 85% 420px at 50% -90px, rgba(25, 115, 184, 0.22) 0%, rgba(14, 165, 233, 0.06) 48%, transparent 80%),
    radial-gradient(circle 520px at 92% 12%, rgba(229, 196, 131, 0.06) 0%, transparent 70%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.theme-light {
  background-image:
    radial-gradient(ellipse 85% 380px at 50% -100px, rgba(25, 115, 184, 0.10) 0%, transparent 75%),
    radial-gradient(circle 460px at 90% 8%, rgba(180, 136, 52, 0.06) 0%, transparent 70%);
}

/* Scrollbars finos de estilo nativo */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 197, 255, 0.20);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(229, 196, 131, 0.45);
}

/* Números tabulares para precios, gramos, sprays y KPIs (estilo BBVA / Wallet) */
.kpi-num,
.hero-stat-pill strong,
.card-price-pvp,
.notif-badge-dot,
.vitrina-shelf-count,
.zone-count {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   HEADER CRISTALINO CON ELEVACIÒN DINÁMICA AL HACER SCROLL
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 13, 26, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-hairline);
  padding: calc(11px + var(--safe-top)) 20px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring), border-color 0.25s ease;
}

.app-header.is-scrolled {
  background: rgba(7, 18, 36, 0.94);
  border-bottom-color: rgba(148, 197, 255, 0.22);
  box-shadow: 0 10px 30px rgba(2, 6, 16, 0.55);
}

.brand-col {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.12;
  background: linear-gradient(135deg, #ffffff 0%, #e2ecfa 58%, #e5c483 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text-main);
}

body.theme-light .brand-name {
  background: linear-gradient(135deg, #072146 0%, #144687 65%, #94681d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-accent);
  opacity: 0.92;
  margin-top: 1px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.currency-pill, .notif-pill {
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--btn-font);
  letter-spacing: 0.2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--btn-shadow);
  transition: all 0.2s var(--ease-spring);
}

.currency-pill:hover, .notif-pill:hover, .user-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-text);
  transform: translateY(-1px);
}

.notif-badge-dot {
  background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 100%);
  color: #041022;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(34, 211, 238, 0.45);
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  border-radius: var(--radius-full);
  padding: 4px 12px 4px 5px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--btn-font);
  letter-spacing: 0.2px;
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.avatar-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3d9a4 0%, #c99d52 100%);
  color: #061326;
  font-weight: 800;
  font-size: 11px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   CONTENEDOR PRINCIPAL Y TIPOGRAFÍA EDITORIAL MODERNA
   ========================================================================== */
.main-wrapper {
  flex: 1;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 16px calc(92px + var(--safe-bottom));
}

.catalog-hero-banner {
  background:
    radial-gradient(circle at 92% 18%, rgba(34, 211, 238, 0.14) 0%, transparent 55%),
    linear-gradient(135deg, rgba(25, 64, 118, 0.55) 0%, rgba(11, 25, 46, 0.96) 100%);
  border: 1px solid rgba(148, 197, 255, 0.20);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--card-shadow);
}

.hero-stats-row {
  display: flex;
  gap: 10px;
}

.hero-stat-pill {
  background: rgba(6, 15, 30, 0.68);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.hero-stat-pill strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--gold-accent);
}

.hero-stat-pill span {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.section-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--accent-cyan);
  margin-bottom: 4px;
  font-weight: 800;
}

.section-h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
  color: var(--text-main);
  line-height: 1.2;
}

.section-p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ==========================================================================
   INPUTS, SELECTORES Y FORMULARIOS (CORRECCIÓN MURO + FOCUS GLOW BBVA)
   ========================================================================== */
.catalog-controls-grid {
  display: grid;
  grid-template-columns: 1fr 220px 210px;
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 780px) {
  .catalog-controls-grid {
    grid-template-columns: 1fr;
  }
}

.clean-input,
.search-input-box,
.clean-select,
textarea.clean-input,
input.clean-input {
  font-family: var(--font-sans);
  background: rgba(9, 21, 40, 0.82);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.45;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s var(--ease-spring), box-shadow 0.2s var(--ease-spring), background 0.2s ease;
}

body.theme-light .clean-input,
body.theme-light .search-input-box,
body.theme-light .clean-select,
body.theme-light textarea.clean-input,
body.theme-light input.clean-input {
  background: #ffffff;
  border-color: rgba(11, 37, 75, 0.16);
  color: var(--text-main);
  box-shadow: inset 0 1px 2px rgba(7, 33, 70, 0.04);
}

.clean-input::placeholder,
.search-input-box::placeholder,
textarea::placeholder {
  color: var(--text-tertiary);
}

.clean-select {
  cursor: pointer;
}

.clean-select option {
  background: var(--bg-surface);
  color: var(--text-main);
}

body.theme-light .clean-select option {
  background: #ffffff;
  color: #072146;
}

.clean-input:focus,
.search-input-box:focus,
.clean-select:focus,
textarea.clean-input:focus {
  border-color: var(--accent-cyan);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.theme-light .clean-input:focus,
body.theme-light .search-input-box:focus,
body.theme-light .clean-select:focus,
body.theme-light textarea.clean-input:focus {
  border-color: var(--accent-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.14);
}

/* Buscador Predictivo Instantáneo */
.search-container {
  position: relative;
  margin-bottom: 14px;
}

.search-input-box {
  width: 100%;
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 13.5px;
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  stroke: var(--text-tertiary);
  pointer-events: none;
}

.predictive-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(10, 23, 43, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  box-shadow: 0 22px 48px rgba(2, 6, 16, 0.85);
  z-index: 45;
  max-height: 310px;
  overflow-y: auto;
  display: none;
}

body.theme-light .predictive-dropdown {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(7, 33, 70, 0.16);
}

.predictive-dropdown.open {
  display: block;
  animation: subviewGlideIn 0.18s var(--ease-spring) both;
}

.predictive-item {
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-hairline);
  cursor: pointer;
  transition: background 0.15s ease;
}

.predictive-item:hover {
  background: var(--bg-elevated);
}

.predictive-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.predictive-house {
  font-size: 10.5px;
  color: var(--gold-accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* ==========================================================================
   CHIPS HORIZONTALES Y CAJAS KPI (ESTILO BBVA / APPLE WALLET)
   ========================================================================== */
.filter-scroll-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  margin-bottom: 16px;
}

.filter-scroll-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--btn-font);
  letter-spacing: 0.2px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: all 0.2s var(--ease-spring);
}

.filter-chip:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-text);
  transform: translateY(-1px);
}

.filter-chip.active {
  background: var(--btn-active-bg) !important;
  color: var(--btn-active-text) !important;
  font-weight: 800;
  border: 1px solid var(--btn-active-border) !important;
  box-shadow: var(--btn-active-shadow);
}

.showcase-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .showcase-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.kpi-box {
  background: linear-gradient(180deg, rgba(21, 43, 74, 0.72) 0%, rgba(14, 31, 56, 0.94) 100%);
  border: 1px solid var(--border-hairline);
  padding: 14px 12px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

body.theme-light .kpi-box {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
}

.kpi-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-accent);
  display: block;
  letter-spacing: -0.3px;
}

.kpi-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

/* ==========================================================================
   TARJETAS DE PERFUMES Y MODOS DE VISTA (FOTOCASA / PRIME / WALLET)
   ========================================================================== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.catalog-grid.mode-compact {
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .catalog-grid.mode-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.catalog-grid.mode-list {
  grid-template-columns: 1fr;
  gap: 9px;
}

.card-perfume-list {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  align-items: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.22s var(--ease-spring), border-color 0.22s ease, box-shadow 0.22s ease;
}

.card-perfume-list:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
  box-shadow: var(--card-shadow-hover);
}

.card-perfume {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: transform 0.26s var(--ease-spring), border-color 0.26s ease, box-shadow 0.26s ease;
}

.card-perfume:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 196, 131, 0.42);
  box-shadow: var(--card-shadow-hover);
}

.card-stage {
  height: 128px;
  background: radial-gradient(circle at 50% 42%, rgba(56, 189, 248, 0.12) 0%, transparent 65%), linear-gradient(180deg, #102340 0%, #071224 100%);
  display: grid;
  place-items: center;
  position: relative;
  border-bottom: 1px solid rgba(148, 197, 255, 0.08);
}

/* Pedestal de estudio fotográfico para fotos reales de frascos */
.card-stage .fx-photo-img,
.card-perfume-list .fx-photo-img,
.clean-modal-card .fx-photo-img {
  border-radius: 10px !important;
  padding: 4px;
  background: radial-gradient(circle at 50% 38%, #ffffff 62%, #eef3fa 100%) !important;
  box-shadow: 0 8px 20px rgba(2, 8, 20, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.32);
  transition: transform 0.28s var(--ease-spring);
}

.card-perfume:hover .card-stage .fx-photo-img {
  transform: scale(1.035);
}

.card-id-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  color: var(--text-secondary);
  background: rgba(5, 13, 26, 0.72);
  backdrop-filter: blur(8px);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-hairline);
}

.card-owned-pill {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 9.5px;
  font-weight: 700;
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.16);
  border: 1px solid rgba(46, 204, 113, 0.42);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.clean-flacon {
  width: 50px;
  height: 74px;
  border-radius: 6px 6px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, rgba(255,255,255,0.20), var(--perfume-color, #8c774a), #050d1a);
  box-shadow: 0 10px 22px rgba(0,0,0,0.6);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clean-flacon::before {
  content: '';
  position: absolute;
  top: -12px;
  width: 18px;
  height: 12px;
  background: linear-gradient(90deg, #2b2c30, #e5c483, #2b2c30);
  border-radius: 2px 2px 0 0;
}

.flacon-label {
  font-size: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.95);
  text-align: center;
  padding: 0 4px;
  line-height: 1.15;
}

.btn-fav-card {
  position: static;
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: transparent;
  border: none;
  color: rgba(248, 250, 252, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: transform 0.22s var(--ease-spring), color 0.18s ease;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.65));
  padding: 0;
  box-shadow: none;
  outline: none;
}

body.theme-light .card-body .btn-fav-card:not(.active),
body.theme-light .card-perfume-list .btn-fav-card:not(.active) {
  color: #647d9e;
  filter: none;
}

.btn-fav-card:active {
  transform: scale(1.28);
}

.btn-fav-card.active {
  color: var(--gold-accent);
  border: none;
  background: transparent;
  filter: drop-shadow(0 2px 8px rgba(229, 196, 131, 0.55));
}

@keyframes starPopBurst {
  0% { transform: scale(0.75); }
  50% { transform: scale(1.34) rotate(-8deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.btn-fav-card.star-burst {
  animation: starPopBurst 0.36s var(--ease-spring);
}

.card-body {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-brand {
  font-size: 10px;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-weight: 800;
  margin-bottom: 2px;
}

.card-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.28;
}

.card-details-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.mini-badge {
  background: rgba(15, 34, 62, 0.72);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
}

body.theme-light .mini-badge {
  background: #edf3fc;
  border-color: rgba(11, 37, 75, 0.10);
}

.mini-badge-accord {
  color: var(--gold-accent);
  background: rgba(229, 196, 131, 0.10);
  border-color: rgba(229, 196, 131, 0.28);
  font-weight: 700;
}

body.theme-light .mini-badge-accord {
  background: rgba(148, 104, 29, 0.09);
  border-color: rgba(148, 104, 29, 0.25);
}

.card-pyramid-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  margin-bottom: 12px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-secondary);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-note-line {
  display: block;
}

.note-tag-label {
  color: var(--gold-accent);
  font-weight: 700;
}

.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-hairline);
  padding-top: 10px;
  margin-top: auto;
}

.card-price-pvp {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.card-price-sub {
  font-size: 9.5px;
  color: var(--text-tertiary);
  display: block;
}

.btn-card-quick-own {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  font-weight: 700;
  font-family: var(--btn-font);
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: all 0.18s var(--ease-spring);
}

.btn-card-quick-own.owned {
  background: var(--btn-active-bg) !important;
  border: 1px solid var(--btn-active-border) !important;
  color: var(--btn-active-text) !important;
  box-shadow: var(--btn-active-shadow);
}

.btn-detail {
  background: rgba(25, 115, 184, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
  padding: 5px 11px;
  border-radius: var(--radius-xs);
  font-size: 11.5px;
  font-weight: 800;
  font-family: var(--btn-font);
  letter-spacing: 0.4px;
  box-shadow: 0 2px 6px rgba(2, 8, 20, 0.25);
  cursor: pointer;
  transition: all 0.18s var(--ease-spring);
}

.btn-detail:hover {
  background: var(--btn-active-bg);
  border-color: var(--btn-active-border);
  color: var(--btn-active-text);
}

.btn-text-link {
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  font-family: var(--btn-font);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2px;
  padding: 4px 9px;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--btn-shadow);
  transition: all 0.18s var(--ease-spring);
}

.btn-text-link:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-text);
}

.btn-market-star {
  background: transparent !important;
  border: none !important;
  text-decoration: none !important;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s var(--ease-spring);
}

.btn-market-star:hover {
  transform: scale(1.18);
  text-decoration: none !important;
}

/* Barra de nivel líquido para telemetría de Mi Vitrina */
.vitrina-liquid-meter {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 197, 255, 0.12);
  overflow: hidden;
  margin: 4px 0 6px;
}

body.theme-light .vitrina-liquid-meter {
  background: rgba(11, 37, 75, 0.09);
}

.vitrina-liquid-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9 0%, #22d3ee 55%, #2ecc71 100%);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.45);
  transition: width 0.45s var(--ease-spring);
}

@keyframes sprayMistPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.card-perfume.spray-mist-flash {
  animation: sprayMistPulse 0.65s var(--ease-spring);
}

/* ==========================================================================
   MODALES & BOTTOM SHEETS NATIVOS (ESTILO APPLE WALLET / DISNEY+ / BBVA)
   ========================================================================== */
@keyframes modalBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.clean-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 18, 0.78);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalBackdropFadeIn 0.22s var(--ease-snappy) both;
  will-change: opacity;
}

body.theme-light .clean-modal-backdrop {
  background: rgba(7, 33, 70, 0.45);
}

.clean-modal-backdrop.modal-closing {
  opacity: 0 !important;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 1, 1) !important;
  pointer-events: none !important;
}

.clean-modal-backdrop.modal-closing .clean-modal-card {
  transform: translateY(28px) scale(0.96) !important;
  opacity: 0 !important;
  transition: transform 0.2s cubic-bezier(0.4, 0, 1, 1), opacity 0.2s cubic-bezier(0.4, 0, 1, 1) !important;
}

@media (max-width: 640px) {
  .clean-modal-backdrop.modal-closing .clean-modal-card {
    transform: translate3d(0, 100%, 0) !important;
    opacity: 0.5 !important;
  }
}

.clean-modal-card {
  background: linear-gradient(180deg, #0e213d 0%, #09162a 100%);
  border: 1px solid rgba(148, 197, 255, 0.22);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
  position: relative;
  box-shadow: 0 28px 70px rgba(2, 6, 16, 0.88), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  will-change: transform, opacity;
}

body.theme-light .clean-modal-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fe 100%);
  border-color: rgba(11, 37, 75, 0.14);
  box-shadow: 0 24px 60px rgba(7, 33, 70, 0.22);
}

.modal-close-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  z-index: 5;
  transition: all 0.18s var(--ease-spring);
}

.modal-close-icon:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  transform: scale(1.06);
}

/* Segmented Tabs estilo iOS / BBVA */
.modal-tabs-segmented {
  display: flex;
  width: 100%;
  background: rgba(5, 13, 26, 0.65);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  margin-bottom: 14px;
  gap: 4px;
}

body.theme-light .modal-tabs-segmented {
  background: #e6eef9;
}

.tab-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 10px;
}

.tab-pill {
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--btn-font);
  letter-spacing: 0.2px;
  padding: 7px 12px;
  cursor: pointer;
  border-radius: var(--radius-xs);
  box-shadow: var(--btn-shadow);
  transition: all 0.18s var(--ease-spring);
  line-height: 1.25;
}

.tab-pill:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-text);
}

.tab-pill.active {
  color: var(--btn-active-text) !important;
  background: var(--btn-active-bg) !important;
  border: 1px solid var(--btn-active-border) !important;
  box-shadow: var(--btn-active-shadow);
  font-weight: 800;
}

/* Pirámide Olfativa Completa */
.pyramid-block {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--card-shadow);
}

.pyramid-level {
  margin-bottom: 12px;
}

.pyramid-level:last-child {
  margin-bottom: 0;
}

.pyramid-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.pyramid-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.note-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  color: var(--text-main);
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
}

/* Calibrador de Tara */
.size-selector-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.size-btn {
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  border-radius: var(--radius-xs);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--btn-font);
  letter-spacing: 0.2px;
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: all 0.18s var(--ease-spring);
}

.size-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-text);
}

.size-btn.active {
  background: var(--btn-active-bg) !important;
  border: 1px solid var(--btn-active-border) !important;
  color: var(--btn-active-text) !important;
  box-shadow: var(--btn-active-shadow);
  font-weight: 800;
}

/* Estado del Mercado */
.status-pill {
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.status-disponible {
  background: rgba(46, 204, 113, 0.16);
  border: 1px solid rgba(46, 204, 113, 0.55);
  color: #2ecc71;
}

.status-reservado {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fbbf24;
}

.status-vendido {
  background: rgba(127, 140, 141, 0.2);
  border: 1px solid #7f8c8d;
  color: #95a5a6;
}

.btn-status-set {
  flex: 1;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  padding: 5px 6px;
  border-radius: var(--radius-xs);
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--btn-font);
  letter-spacing: 0.2px;
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: all 0.18s var(--ease-spring);
}

.btn-status-set:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-text);
}

.btn-status-set.active {
  background: var(--btn-active-bg) !important;
  border: 1px solid var(--btn-active-border) !important;
  color: var(--btn-active-text) !important;
  box-shadow: var(--btn-active-shadow);
  font-weight: 800;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN INFERIOR (DOCK CRISTALINO CON INDICADOR LUMINOSO)
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(5, 13, 26, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border-hairline);
  padding: 6px 10px calc(6px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  box-shadow: 0 -8px 28px rgba(2, 6, 16, 0.55);
}

body.in-subpage .bottom-nav {
  display: none !important;
}
body.in-subpage .main-wrapper {
  padding-bottom: calc(24px + var(--safe-bottom)) !important;
}

.nav-item {
  position: relative;
  background: none;
  border: none;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.22s var(--ease-spring), transform 0.16s var(--ease-spring);
}

.nav-item::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 24px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--gold-accent));
  transform: translateX(-50%) scaleX(0);
  opacity: 0;
  transition: transform 0.26s var(--ease-spring), opacity 0.22s ease;
}

.nav-item.active::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.nav-item:active {
  transform: scale(0.90);
}

.nav-item:hover {
  color: var(--text-main);
}

.nav-item.active {
  color: var(--gold-accent);
  font-weight: 800;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: transform 0.24s var(--ease-spring), filter 0.24s ease;
}

.nav-item.active svg {
  transform: translateY(-1px) scale(1.12);
  filter: drop-shadow(0 3px 10px rgba(229, 196, 131, 0.48));
}

/* ==========================================================================
   SISTEMA TÁCTIL Y JERARQUÍA DE BOTONES (4 NIVELES + ONDA RIPPLE)
   ========================================================================== */
.btn-gold {
  background: var(--btn-active-bg) !important;
  color: var(--btn-active-text) !important;
  border: 1px solid var(--btn-active-border) !important;
  font-weight: 800 !important;
  font-family: var(--btn-font) !important;
  letter-spacing: 0.25px !important;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  box-shadow: var(--btn-active-shadow) !important;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s var(--ease-spring);
}

.btn-gold:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-clean {
  background: var(--btn-bg) !important;
  border: 1px solid var(--btn-border) !important;
  color: var(--btn-text) !important;
  font-weight: 700 !important;
  font-family: var(--btn-font) !important;
  letter-spacing: 0.2px !important;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.btn-clean:hover {
  background: var(--btn-bg-hover) !important;
  border-color: var(--btn-border-hover) !important;
  color: var(--btn-text) !important;
}

/* Coherencia tipográfica, superficie táctil y soporte de onda Ripple */
button:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
.btn-gold,
.btn-clean,
.btn-detail,
.filter-chip,
.tab-pill,
.subtab-pill,
.size-btn,
.analytics-cajetilla,
.vitrina-cajetilla-btn,
.community-cajetilla-btn,
.market-cajetilla-btn,
.currency-pill,
.notif-pill,
.user-btn,
.btn-card-quick-own,
.btn-status-set,
.btn-wear-today,
.zone-step,
.btn-follow-topic,
.btn-toggle-follow-user,
.btn-dm-collector,
.btn-wall-like,
.btn-layer-vote,
.btn-vote-comm-battle,
.btn-add-lab-ing,
.btn-add-aroma-select,
.btn-clone-community-formula,
.btn-like-community-formula,
.btn-publish-combo-wall,
.btn-resume-draft,
.modal-fam-chip,
.btn-text-link,
.chat-icon-btn,
.chat-back-btn,
.chip-remove,
.btn-delete-single-notif,
.btn-toggle-single-notif,
.btn-delete-decant,
.btn-delete-layering,
.btn-delete-chat,
.fab-scroll-top {
  font-family: var(--btn-font) !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  background: var(--btn-bg) !important;
  border: 1px solid var(--btn-border) !important;
  color: var(--btn-text) !important;
  box-shadow: var(--btn-shadow);
  outline: none !important;
  cursor: pointer;
  transition: transform 0.16s var(--ease-spring), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.18s ease;
  user-select: none;
  -webkit-user-select: none;
}

/* Herencia tipográfica limpia preservando insignias con contraste propio */
button:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) span:not(.notif-badge-dot):not(.user-avatar):not(.pill-count-badge):not(.avatar-badge):not(.nav-tab-badge),
button:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) strong,
button:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) div,
.btn-gold *:not(.notif-badge-dot):not(.pill-count-badge):not(.avatar-badge):not(.nav-tab-badge),
.btn-clean *:not(.notif-badge-dot):not(.pill-count-badge):not(.avatar-badge):not(.nav-tab-badge),
.btn-detail *,
.filter-chip *,
.tab-pill *,
.subtab-pill *,
.size-btn *,
.analytics-cajetilla *,
.community-cajetilla-btn *,
.market-cajetilla-btn * {
  font-family: inherit !important;
  color: inherit !important;
}

/* Hover elevado sutil */
button:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
.btn-clean:hover,
.filter-chip:hover,
.tab-pill:hover,
.subtab-pill:hover,
.size-btn:hover,
.analytics-cajetilla:hover,
.vitrina-cajetilla-btn:hover,
.community-cajetilla-btn:hover,
.market-cajetilla-btn:hover,
.currency-pill:hover,
.notif-pill:hover,
.user-btn:hover {
  background: var(--btn-bg-hover) !important;
  border-color: var(--btn-border-hover) !important;
  color: var(--btn-text) !important;
}

/* Nivel 1 (CTA Primario BBVA / Wallet) y Estado Activo / Seleccionado Luminoso */
button.btn-gold:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button.active:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
a.btn-gold,
.btn-gold,
.filter-chip.active,
.tab-pill.active,
.subtab-pill.active,
.size-btn.active,
.analytics-cajetilla.active,
.community-cajetilla-btn.active,
.market-cajetilla-btn.active,
.btn-status-set.active,
.btn-card-quick-own.owned,
.zone-step.active,
.modal-fam-chip.active {
  background: var(--btn-active-bg) !important;
  border: 1px solid var(--btn-active-border) !important;
  color: var(--btn-active-text) !important;
  box-shadow: var(--btn-active-shadow) !important;
  font-weight: 800 !important;
}

button.btn-gold:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
button.active:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
a.btn-gold:hover,
.btn-gold:hover {
  background: var(--btn-active-bg) !important;
  border-color: var(--btn-active-border) !important;
  color: var(--btn-active-text) !important;
  filter: brightness(1.06);
}

button.active:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) svg,
button.btn-gold:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) svg,
.btn-gold svg,
.analytics-cajetilla.active svg,
.community-cajetilla-btn.active svg,
.market-cajetilla-btn.active svg {
  color: var(--btn-active-text) !important;
  stroke: var(--btn-active-text) !important;
}

/* Nivel 2 Especializado: Botón técnico FICHA con identidad zafiro-cian */
button.btn-detail:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button[data-open-detail]:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
.btn-detail {
  background: rgba(25, 115, 184, 0.24) !important;
  border: 1px solid rgba(56, 189, 248, 0.44) !important;
  color: #e0f2fe !important;
  box-shadow: 0 2px 8px rgba(2, 8, 20, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

button.btn-detail:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
button[data-open-detail]:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
.btn-detail:hover {
  background: rgba(25, 115, 184, 0.40) !important;
  border-color: rgba(34, 211, 238, 0.72) !important;
  color: #ffffff !important;
}

body.theme-light button.btn-detail:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-light button[data-open-detail]:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-light .btn-detail {
  background: #e6f0fc !important;
  border-color: rgba(20, 70, 135, 0.26) !important;
  color: #0b3b78 !important;
  box-shadow: 0 1px 4px rgba(7, 33, 70, 0.06) !important;
}

body.theme-light button.btn-detail:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
body.theme-light button[data-open-detail]:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
body.theme-light .btn-detail:hover {
  background: #d4e5fb !important;
  border-color: rgba(20, 70, 135, 0.48) !important;
  color: #072146 !important;
}

/* Nivel 3 Semántico Destructivo: Botones tonales rubí estilo Apple Wallet / Gmail */
button#btn-profile-logout,
button#btn-remove-from-vitrina,
button#btn-clear-all-notifs,
button.btn-delete-single-notif:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button.btn-delete-decant:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button.btn-delete-layering:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button.btn-delete-chat:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button.btn-del-carrier:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button.btn-del-lab-ing:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button.chip-remove:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) {
  background: rgba(239, 68, 68, 0.13) !important;
  border: 1px solid rgba(248, 113, 113, 0.38) !important;
  color: #fca5a5 !important;
}

button#btn-profile-logout:hover,
button#btn-remove-from-vitrina:hover,
button#btn-clear-all-notifs:hover,
button.btn-delete-single-notif:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
button.btn-delete-decant:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
button.btn-delete-layering:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
button.btn-delete-chat:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
button.btn-del-carrier:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
button.btn-del-lab-ing:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
button.chip-remove:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover {
  background: rgba(239, 68, 68, 0.24) !important;
  border-color: rgba(248, 113, 113, 0.68) !important;
  color: #fee2e2 !important;
}

body.theme-light button#btn-profile-logout,
body.theme-light button#btn-remove-from-vitrina,
body.theme-light button#btn-clear-all-notifs,
body.theme-light button.btn-delete-single-notif:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-light button.btn-delete-decant:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-light button.btn-delete-layering:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-light button.btn-delete-chat:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-light button.btn-del-carrier:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-light button.btn-del-lab-ing:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-light button.chip-remove:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) {
  background: #fef2f2 !important;
  border-color: rgba(220, 38, 38, 0.28) !important;
  color: #dc2626 !important;
}

button.btn-del-carrier:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button.btn-del-lab-ing:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) {
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
}

/* Destacado Champagne para acceso a Rankings y Burbuja de Chat del Mercado */
button#btn-muro-to-rankings {
  background: linear-gradient(135deg, rgba(229, 196, 131, 0.18) 0%, rgba(16, 36, 66, 0.94) 100%) !important;
  border-color: rgba(229, 196, 131, 0.55) !important;
  color: var(--gold-bright) !important;
}

body.theme-light button#btn-muro-to-rankings {
  background: linear-gradient(135deg, rgba(180, 136, 52, 0.14) 0%, #ffffff 100%) !important;
  border-color: rgba(148, 104, 29, 0.45) !important;
  color: #7c5412 !important;
}

button.market-chat-bubble:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) {
  background: var(--btn-active-bg) !important;
  color: var(--btn-active-text) !important;
  border: 1px solid var(--btn-active-border) !important;
  box-shadow: 0 10px 26px rgba(2, 8, 20, 0.62), 0 0 0 1px rgba(229, 196, 131, 0.35) !important;
  overflow: visible !important;
}

/* Insignias internas con contraste garantizado (Avisos, Avatar, Contadores de Seguidores) */
.notif-badge-dot {
  color: #041022 !important;
  font-weight: 800 !important;
}

.user-avatar {
  color: #061326 !important;
  font-weight: 800 !important;
}

.pill-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
  border-radius: 6px;
  background: rgba(5, 13, 26, 0.55);
  border: 1px solid rgba(148, 197, 255, 0.20);
  color: #e8f1fc !important;
}

body.theme-light .pill-count-badge {
  background: rgba(7, 33, 70, 0.08);
  border-color: rgba(7, 33, 70, 0.14);
  color: #072146 !important;
}

button.active .pill-count-badge {
  background: rgba(5, 13, 26, 0.86) !important;
  border-color: rgba(5, 13, 26, 0.45) !important;
  color: #f8dfa5 !important;
}

body.theme-light button.active .pill-count-badge {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

/* Respuesta física inmediata al tacto */
button:active:not(:disabled):not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
.btn-gold:active,
.btn-clean:active,
.btn-detail:active,
.filter-chip:active,
.tab-pill:active,
.subtab-pill:active,
.analytics-cajetilla:active,
.vitrina-cajetilla-btn:active,
.community-cajetilla-btn:active,
.market-cajetilla-btn:active {
  transform: scale(0.962) !important;
}

button:disabled:not(.nav-item) {
  opacity: 0.42 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* Onda táctil interactiva (Tactile Ripple Wave) */
.tactile-ripple-host {
  position: relative;
  overflow: hidden;
}

@keyframes tactileRippleExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.15);
    opacity: 0.42;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
  }
}

.tactile-ripple-wave {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(56, 189, 248, 0.22) 60%, transparent 100%);
  animation: tactileRippleExpand 0.48s var(--ease-spring) forwards;
  z-index: 2;
}

/* Excepciones intencionales: barra inferior dock y estrellas de favoritos */
.bottom-nav .nav-item {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-tertiary) !important;
  transform: none !important;
}
.bottom-nav .nav-item.active {
  color: var(--gold-accent) !important;
}
.bottom-nav .nav-item svg {
  color: inherit !important;
  stroke: currentColor !important;
}
.btn-fav-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.btn-fav-card.active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--gold-accent) !important;
}
.btn-market-star {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
button.chat-row-main:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  text-align: left !important;
}
button.chat-row-main:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover {
  background: rgba(148, 197, 255, 0.06) !important;
  border: none !important;
}
body.theme-light button.chat-row-main:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover {
  background: rgba(7, 33, 70, 0.04) !important;
}

/* ==========================================================================
   TOAST FLOTANTE & FAB VOLVER ARRIBA
   ========================================================================== */
.app-toast {
  position: fixed;
  bottom: calc(84px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px) scale(0.96);
  background: rgba(11, 26, 48, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #f8fafc;
  border: 1px solid rgba(229, 196, 131, 0.55);
  border-radius: var(--radius-full);
  padding: 10px 22px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s var(--ease-spring);
  z-index: 140;
  box-shadow: 0 14px 36px rgba(2, 6, 16, 0.75);
  max-width: calc(100vw - 28px);
  text-align: center;
}

body.theme-light .app-toast {
  background: rgba(7, 33, 70, 0.95);
  color: #ffffff;
}

.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.fab-scroll-top {
  position: fixed;
  right: 20px;
  bottom: calc(82px + var(--safe-bottom));
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--btn-active-bg) !important;
  color: var(--btn-active-text) !important;
  border: 1px solid var(--btn-active-border) !important;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(2, 8, 20, 0.55) !important;
  cursor: pointer;
  z-index: 55;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.24s var(--ease-spring), transform 0.24s var(--ease-spring);
}

.fab-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   BOTTOM SHEETS MÓVILES CON ASA TÁCTIL (WALLET / INSTAGRAM)
   ========================================================================== */
@keyframes m3SheetUpDesktop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes m3SheetUpMobile {
  from {
    opacity: 0.6;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes m3SheetUp {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.clean-modal-card {
  animation: m3SheetUpDesktop 0.28s var(--ease-spring) both;
}

@media (max-width: 640px) {
  .clean-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .clean-modal-card {
    border-radius: 26px 26px 0 0;
    max-height: 92vh;
    padding: 24px 18px calc(24px + var(--safe-bottom));
    animation: m3SheetUpMobile 0.32s cubic-bezier(0.32, 0.72, 0, 1) both;
  }
  .clean-modal-card::before {
    content: '';
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 197, 255, 0.28);
    margin: -10px auto 14px;
  }
  body.theme-light .clean-modal-card::before {
    background: rgba(11, 37, 75, 0.18);
  }
}

/* ==========================================================================
   TRANSICIONES DE PANTALLA DUAL-LAYER (ESTILO BBVA / iOS / DISNEY+)
   ========================================================================== */
.main-wrapper {
  position: relative;
  overflow-x: clip;
}

.app-screen-stage {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 160px);
}

.app-screen {
  width: 100%;
  background: transparent;
  min-height: calc(100vh - 160px);
  touch-action: pan-y;
}

.app-screen.current {
  position: relative;
  width: 100%;
}

.app-screen.outgoing {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none !important;
  z-index: 1;
}

.app-screen.incoming {
  position: relative;
  width: 100%;
  z-index: 2;
  background: var(--bg-main);
  box-shadow: -18px 0 44px rgba(2, 6, 16, 0.55);
}

@keyframes nativeSlideInFromRight {
  0% {
    transform: translate3d(100%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes nativeSlideOutToLeft {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(-22%, 0, 0) scale(0.985);
    opacity: 0.18;
  }
}

@keyframes nativeSlideInFromLeft {
  0% {
    transform: translate3d(-100%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes nativeSlideOutToRight {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(22%, 0, 0) scale(0.985);
    opacity: 0.18;
  }
}

@keyframes screenSlideInRight {
  0% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes screenSlideInLeft {
  0% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes screenFadeScale {
  0% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes subviewGlideIn {
  0% {
    opacity: 0.65;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.subview-animate-in {
  animation: subviewGlideIn 0.22s var(--ease-spring) both;
}

.app-screen.enter-from-right {
  animation: nativeSlideInFromRight 0.28s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  will-change: transform;
}

.app-screen.exit-to-left {
  animation: nativeSlideOutToLeft 0.28s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  will-change: transform, opacity;
}

.app-screen.enter-from-left {
  animation: nativeSlideInFromLeft 0.28s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  will-change: transform;
}

.app-screen.exit-to-right {
  animation: nativeSlideOutToRight 0.28s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  will-change: transform, opacity;
}

.app-screen.enter-fade,
.app-screen.exit-fade,
.screen-transition-right,
.screen-transition-left,
.screen-transition-fade,
.screen-transition-instant {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.tab-content-enter {
  animation: screenFadeScale 0.15s ease-out both;
}

::view-transition-old(root) {
  animation: 0.18s cubic-bezier(0.4, 0, 1, 1) both fadeOut;
}
::view-transition-new(root) {
  animation: 0.24s cubic-bezier(0.16, 1, 0.3, 1) both fadeIn;
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   PANEL DE NOTIFICACIONES, BARRAS OLFATIVAS Y TIENDAS OFICIALES
   ========================================================================== */
.notif-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: 90vw;
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  box-shadow: 0 22px 54px rgba(2, 6, 16, 0.85);
  padding: 14px;
  z-index: 120;
  display: none;
}

.notif-dropdown-panel.open {
  display: block;
  animation: m3SheetUp 0.2s var(--ease-spring);
}

.notif-item-row {
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  border-left: 3px solid var(--gold-accent);
  background: var(--bg-card);
}

.notif-item-row.read {
  border-left-color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.62;
}

.card-olfactive-bars {
  background: transparent;
  border: none;
  padding: 0;
  margin: 3px 0 5px;
}

body.theme-light .card-olfactive-bars {
  background: transparent;
}

.olfactive-bar-track {
  height: 4px;
  background: rgba(148, 197, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  margin: 3px 0 2px;
}

body.theme-light .olfactive-bar-track {
  background: rgba(11, 37, 75, 0.10);
}

.store-chip-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.25px;
  transition: transform 0.16s var(--ease-spring), opacity 0.16s ease, box-shadow 0.16s ease;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.store-badge-link:hover {
  transform: translateY(-1px);
  opacity: 0.95;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.icon-square-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  color: var(--text-main);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s, transform 0.16s var(--ease-spring);
}

.icon-square-btn:hover {
  border-color: var(--gold-accent);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}

.icon-square-btn[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #071426;
  color: var(--gold-accent);
  border: 1px solid var(--gold-accent);
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 90;
  pointer-events: none;
}

/* ==========================================================================
   MERCADO SPLIT-VIEW, AUTH GATE Y ADAPTACIÓN MÓVIL
   ========================================================================== */
.market-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.market-split-layout > div {
  min-width: 0;
}

@media (max-width: 920px) {
  .market-split-layout {
    grid-template-columns: 1fr;
  }
}

.market-chat-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 16px;
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 170px);
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: var(--card-shadow);
}

@media (max-width: 920px) {
  .market-chat-sidebar {
    position: static;
    max-height: none;
  }
}

body.auth-locked .app-header,
body.auth-locked .bottom-nav,
body.auth-locked .main-wrapper,
body.auth-locked .fab-scroll-top { display: none !important; }
#auth-gate {
  position: fixed; inset: 0; z-index: 1000; overflow-y: auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(25, 115, 184, 0.28), transparent 55%),
    radial-gradient(circle at 80% 15%, rgba(229, 196, 131, 0.14), var(--bg-main) 65%);
  display: flex; align-items: center; justify-content: center;
  padding: calc(20px + var(--safe-top)) 16px calc(20px + var(--safe-bottom));
}
.auth-gate-card {
  width: 100%; max-width: 420px; margin: auto;
  background: linear-gradient(180deg, rgba(16, 35, 64, 0.96) 0%, rgba(9, 21, 40, 0.98) 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg); padding: 26px 22px;
  box-shadow: 0 28px 70px rgba(2, 6, 16, 0.80), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body.theme-light .auth-gate-card {
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(7, 33, 70, 0.16);
}
.auth-gate-error {
  display: none; color: #f87171; font-size: 12px; margin-bottom: 10px;
  background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-xs); padding: 8px 10px;
}

img, svg, video { max-width: 100%; }
.main-wrapper { overflow-x: hidden; }
.app-header { gap: 8px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
.brand-col { flex-shrink: 1; min-width: 0; }
.header-tools { flex-shrink: 0; gap: 6px; }
.user-btn { max-width: 150px; min-width: 0; }
.user-btn > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 19.5px; letter-spacing: -0.3px; }
  .main-wrapper { padding-left: 12px; padding-right: 12px; }
  .currency-pill, .notif-pill { padding: 5px 9px; }
  .user-btn { max-width: 112px; padding-right: 9px; }
  .nav-item { font-size: 9.5px; }
}
@media (max-width: 360px) {
  #header-currency-btn { display: none; }
  .user-btn { max-width: 90px; }
}

.info-wrap { position: relative; display: inline-flex; }
.info-dot {
  width: 20px; height: 20px; border-radius: 50%; padding: 0; cursor: pointer;
  background: transparent; color: var(--gold-accent); border: 1px solid var(--gold-accent);
  font-size: 12px; font-weight: 700; line-height: 1; display: grid; place-items: center;
}
.info-note {
  display: none; position: absolute; top: 26px; left: 0; z-index: 100;
  width: min(300px, calc(100vw - 40px)); max-width: calc(100vw - 40px);
  padding: 10px 12px; font-size: 11.5px; line-height: 1.45;
  background: var(--bg-card); color: var(--text-main);
  border: 1px solid var(--gold-accent); border-radius: var(--radius-xs);
  box-shadow: 0 12px 32px rgba(0,0,0,0.65);
  box-sizing: border-box; word-break: break-word; white-space: normal;
}
@media (max-width: 600px) {
  .info-note {
    left: -12px;
    width: calc(100vw - 48px);
    max-width: 310px;
  }
}
.info-wrap.open .info-note { display: block; }
.lab-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  background: var(--bg-card); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-full); padding: 3px 4px 3px 10px;
}
.chip-remove {
  width: 18px; height: 18px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(231,76,60,0.15); color: #e74c3c; font-size: 14px; line-height: 1;
  display: grid; place-items: center; padding: 0;
}
.zone-step {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer; padding: 0;
  background: var(--bg-card); color: var(--gold-accent); border: 1px solid var(--border-hairline);
  font-size: 14px; line-height: 1; display: grid; place-items: center;
}

@media (max-width: 600px) {
  .notif-dropdown-panel {
    position: fixed;
    top: calc(var(--safe-top) + 58px);
    left: 10px; right: 10px;
    width: auto; max-width: none;
    max-height: calc(100vh - var(--safe-top) - 140px);
    overflow-y: auto;
  }
}

/* ==========================================================================
   CHATS DEL MERCADO: BURBUJA COMPACTA + CAJÓN LATERAL
   ========================================================================== */
.market-chat-bubble {
  position: fixed; right: 14px; bottom: calc(92px + var(--safe-bottom)); z-index: 55;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); cursor: grab;
  background: var(--gold-accent); color: #061326; font-size: 16px; font-weight: 800;
  box-shadow: 0 6px 20px rgba(2, 8, 20, 0.55);
  display: inline-flex; align-items: center; justify-content: center;
  user-select: none; -webkit-user-select: none;
  touch-action: none;
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s ease, opacity 0.15s ease;
}
.market-chat-bubble:active {
  transform: scale(0.94);
}
.market-chat-bubble.is-dragging {
  cursor: grabbing !important;
  opacity: 0.94;
  transform: scale(1.08) !important;
  box-shadow: 0 10px 28px rgba(229, 196, 131, 0.5);
  transition: none !important;
}

.market-chat-bubble.chat-shape-pill {
  width: 42px; height: 36px; border-radius: 999px; padding: 0;
  font-size: 15px; font-weight: 700;
}
.market-chat-bubble.chat-shape-square {
  width: 36px; height: 36px; border-radius: 9px; font-size: 15px;
}
.market-chat-bubble.chat-shape-tab {
  width: 32px; height: 36px; padding: 0; font-size: 15px;
}

.market-chat-bubble.pos-tab-right,
.market-chat-bubble.chat-shape-tab.pos-tab-right {
  width: 30px !important; height: 36px !important;
  border-radius: 10px 0 0 10px !important;
  border-right: none !important;
  padding: 0 !important;
}
.market-chat-bubble.pos-tab-left,
.market-chat-bubble.chat-shape-tab.pos-tab-left {
  width: 30px !important; height: 36px !important;
  border-radius: 0 10px 10px 0 !important;
  border-left: none !important;
  padding: 0 !important;
}

.market-chat-drawer {
  position: fixed;
  top: var(--app-header-h, calc(60px + var(--safe-top)));
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(420px, 100vw);
  display: flex;
  flex-direction: column;
  background: rgba(10, 23, 43, 0.97);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-left: 1px solid var(--border-active);
  border-top: 1px solid var(--border-hairline);
  box-shadow: -16px 0 48px rgba(2, 6, 16, 0.72);
  padding-bottom: calc(8px + var(--safe-bottom));
  animation: m3SheetUp 0.22s var(--ease-spring);
}
body.theme-light .market-chat-drawer {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -12px 0 40px rgba(7, 33, 70, 0.18);
}
.market-chat-drawer.dock-left {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--border-active);
  border-top: 1px solid var(--border-hairline);
  box-shadow: 16px 0 48px rgba(2, 6, 16, 0.72);
  animation: m3SheetLeft 0.22s var(--ease-spring);
}
@keyframes m3SheetLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px; border-bottom: 1px solid var(--border-hairline); }
.chat-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-hairline);
  min-height: 48px;
  flex-shrink: 0;
  gap: 8px;
}
.chat-top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.chat-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--gold-accent);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  transition: background 0.15s ease;
}
.chat-back-btn:hover { background: var(--bg-card); }
.chat-back-arrow { font-size: 20px; line-height: 1; font-weight: 700; }
.chat-partner-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-hairline);
  flex-shrink: 0;
}
.chat-partner-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-accent), #8f6f36);
  color: #061326;
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.chat-partner-info { min-width: 0; flex: 1; }
.chat-partner-name { font-size: 14px; font-weight: 700; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-partner-sub { font-size: 11px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.chat-icon-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 17px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.chat-icon-btn:hover { background: var(--bg-card); color: var(--text-main); border-color: var(--border-hairline); }
.chat-list { flex: 1; overflow-y: auto; }
.chat-row { display: flex; align-items: center; border-bottom: 1px solid var(--border-hairline); padding-right: 6px; }
.chat-row-main { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; background: none; border: none; color: var(--text-main); padding: 12px; cursor: pointer; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-accent); color: #061326; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; }
.chat-bubble { align-self: flex-start; max-width: 82%; background: var(--bg-card); border: 1px solid var(--border-hairline); padding: 9px 12px; border-radius: 16px 16px 16px 4px; font-size: 13px; overflow-wrap: anywhere; box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
.chat-bubble.mine { align-self: flex-end; background: linear-gradient(135deg, rgba(25, 115, 184, 0.42) 0%, rgba(14, 58, 110, 0.65) 100%); border-color: rgba(56, 189, 248, 0.32); border-radius: 16px 16px 4px 16px; }
body.theme-light .chat-bubble.mine { background: #e0edff; border-color: rgba(20, 70, 135, 0.2); }
.chat-time { font-size: 9.5px; color: var(--text-tertiary); text-align: right; margin-top: 2px; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border-hairline); }

/* ==========================================================================
   SUBMENÚS FLOTANTES DE COMUNIDAD, MI VITRINA Y MERCADO
   ========================================================================== */
.community-bottom-subbar {
  position: fixed;
  bottom: calc(58px + var(--safe-bottom));
  left: 0;
  right: 0;
  z-index: 48;
  display: flex;
  justify-content: center;
  padding: 0 10px;
  pointer-events: none;
}
.community-subbar-container {
  pointer-events: auto;
  width: 100%;
  max-width: 500px;
  background: rgba(7, 18, 36, 0.92);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 5px 6px;
  box-shadow: 0 10px 30px rgba(2, 6, 16, 0.65);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  position: relative;
}
body.theme-light .community-subbar-container {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 22px rgba(7, 33, 70, 0.12);
  border-color: rgba(11, 37, 75, 0.12);
}
.community-cajetilla-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 3px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  font-family: var(--btn-font);
  border-radius: 9px;
  cursor: pointer;
  text-align: center;
  min-height: 40px;
  transition: all 0.18s var(--ease-spring);
  user-select: none;
  -webkit-user-select: none;
  box-shadow: var(--btn-shadow);
}
.community-cajetilla-btn span {
  font-size: 9.5px;
  font-weight: 700;
  font-family: inherit;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.1;
}
body.theme-light .community-cajetilla-btn span,
body.theme-light .community-cajetilla-btn svg {
  color: #072146;
}
.community-cajetilla-btn svg {
  color: #ffffff;
  transition: color 0.12s ease;
}
.community-cajetilla-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
}
.community-cajetilla-btn:active {
  transform: scale(0.95);
}
.community-cajetilla-btn.active {
  background: var(--btn-active-bg) !important;
  border: 1px solid var(--btn-active-border) !important;
  box-shadow: var(--btn-active-shadow);
}
.community-cajetilla-btn.active span {
  color: var(--btn-active-text) !important;
  font-weight: 800;
}
.community-cajetilla-btn.active svg {
  color: var(--btn-active-text) !important;
}

.community-top-subbar {
  margin-bottom: 12px;
  position: relative;
  z-index: 10;
}

body.in-tab-comunidad .main-wrapper {
  padding-bottom: calc(72px + var(--safe-bottom)) !important;
}

/* Submenú inferior de Mi Vitrina (con contraste AAA garantizado sobre texto dorado activo) */
.vitrina-bottom-subbar {
  position: fixed;
  bottom: calc(58px + var(--safe-bottom));
  left: 0;
  right: 0;
  z-index: 48;
  display: flex;
  justify-content: center;
  padding: 0 10px;
  pointer-events: none;
}
.vitrina-subbar-container {
  pointer-events: auto;
  width: 100%;
  max-width: 500px;
  background: rgba(7, 18, 36, 0.92);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 5px 6px;
  box-shadow: 0 10px 30px rgba(2, 6, 16, 0.65);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  position: relative;
}
body.theme-light .vitrina-subbar-container {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 22px rgba(7, 33, 70, 0.12);
  border-color: rgba(11, 37, 75, 0.12);
}
.vitrina-cajetilla-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: 9px;
  cursor: pointer;
  text-align: center;
  min-height: 40px;
  transition: all 0.18s var(--ease-spring);
  user-select: none;
  -webkit-user-select: none;
  box-shadow: var(--btn-shadow);
}
.vitrina-cajetilla-btn .vitrina-tab-label,
.vitrina-cajetilla-btn span {
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--btn-font);
  color: #ffffff;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.vitrina-cajetilla-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
}
.vitrina-cajetilla-btn.active {
  background: linear-gradient(180deg, #1b467e 0%, #0d2649 100%) !important;
  border: 1px solid rgba(229, 196, 131, 0.78) !important;
  color: var(--gold-accent) !important;
  box-shadow: 0 6px 18px rgba(13, 38, 73, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
.vitrina-cajetilla-btn.active .vitrina-tab-label,
.vitrina-cajetilla-btn.active span {
  color: var(--gold-accent) !important;
  font-weight: 800;
}
body.theme-light .vitrina-cajetilla-btn .vitrina-tab-label,
body.theme-light .vitrina-cajetilla-btn span {
  color: #072146;
}
body.theme-light .vitrina-cajetilla-btn.active {
  background: linear-gradient(180deg, #0b2d5c 0%, #072146 100%) !important;
  border-color: #072146 !important;
}
body.theme-light .vitrina-cajetilla-btn.active .vitrina-tab-label,
body.theme-light .vitrina-cajetilla-btn.active span {
  color: #f4dca8 !important;
}
body.in-tab-vitrina .main-wrapper {
  padding-bottom: calc(75px + var(--safe-bottom)) !important;
}

/* Barra Superior Sticky de Mi Vitrina */
.vitrina-sticky-nav-bar {
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(5, 13, 26, 0.88);
  padding: 6px 0 10px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-hairline);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
body.theme-light .vitrina-sticky-nav-bar {
  background: rgba(242, 246, 252, 0.92);
}

/* Submenú superior de Mercado (homogéneo con Comunidad y Mi Vitrina) */
.market-top-subbar {
  margin-bottom: 14px;
}
.market-subbar-container {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  position: relative;
}
body.theme-light .market-subbar-container {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(11, 37, 75, 0.12);
}
.market-cajetilla-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 4px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--btn-text);
  font-family: var(--btn-font);
  border-radius: var(--radius-xs);
  cursor: pointer;
  text-align: center;
  min-height: 30px;
  height: 30px;
  transition: all 0.16s var(--ease-spring);
  user-select: none;
  -webkit-user-select: none;
}
.market-cajetilla-btn span {
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.12;
}
.market-cajetilla-btn svg {
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: color 0.12s ease;
}
.market-cajetilla-btn:hover {
  background: var(--bg-surface);
  border-color: var(--border-hairline);
}
.market-cajetilla-btn:active {
  transform: scale(0.96);
}
.market-cajetilla-btn.active {
  background: var(--btn-active-bg) !important;
  border: 1px solid var(--btn-active-border) !important;
  box-shadow: var(--btn-active-shadow);
}
.market-cajetilla-btn.active span,
.market-cajetilla-btn.active svg {
  color: var(--btn-active-text) !important;
  font-weight: 800;
}

body.in-tab-mercado .main-wrapper {
  padding-bottom: calc(92px + var(--safe-bottom));
}

/* ==========================================================================
   VISTA 4: ESTANTERÍA DE BALDAS ILUMINADAS (VITRINA DE CRISTAL)
   ========================================================================== */
.vitrina-shelf-cabinet {
  background: radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.10) 0%, transparent 65%), linear-gradient(180deg, #0b192e 0%, #071120 100%);
  border-radius: var(--radius-md);
  padding: 16px 12px 14px;
  border: 1px solid rgba(148, 197, 255, 0.16);
  box-shadow: inset 0 2px 18px rgba(0, 0, 0, 0.65), 0 12px 32px rgba(2, 6, 16, 0.55);
  margin-bottom: 24px;
}

.vitrina-shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 4px;
}

.vitrina-shelf-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.2px;
}

.vitrina-shelf-count {
  color: var(--teal-accent, #2dd4bf);
  font-size: 13px;
  font-weight: 700;
}

.vitrina-shelf-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8b92a5;
}

.vitrina-shelf-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 36, 66, 0.78);
  border: 1px solid rgba(148, 197, 255, 0.16);
  border-radius: 20px;
  padding: 8px 14px;
  margin-bottom: 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vitrina-shelf-search-bar:focus-within {
  border-color: #2dd4bf;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.28);
}

.vitrina-shelf-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
}

.vitrina-shelf-search-input::placeholder {
  color: #8ba3c4;
  font-size: 12px;
}

.vitrina-shelf-level {
  position: relative;
  margin-bottom: 24px;
}

.vitrina-shelf-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  align-items: flex-end;
  min-height: 94px;
  padding: 0 4px;
}

.shelf-bottle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 92px;
  cursor: pointer;
  padding-bottom: 1px;
  transition: transform 0.22s var(--ease-spring);
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.shelf-bottle-item:hover {
  transform: translateY(-6px) scale(1.07);
  z-index: 2;
}

.shelf-bottle-item:active {
  transform: translateY(-2px) scale(0.98);
}

.vitrina-shelf-plank {
  position: relative;
  width: 100%;
  height: 4px;
  background: linear-gradient(180deg, #2dd4bf 0%, #0d9488 45%, #042f2e 100%);
  border-top: 1.5px solid #5eead4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75), 0 0 14px rgba(45, 212, 191, 0.45);
  margin-top: 2px;
  border-radius: 2px;
}

.vitrina-shelf-plank::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 9px;
  background: linear-gradient(180deg, rgba(2, 8, 20, 0.62) 0%, transparent 100%);
  pointer-events: none;
}

/* Botón Cuadrado de Añadir / Tick en Escenario de Frasco */
.btn-card-stage-add {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.18s var(--ease-spring), background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-card-stage-add:hover {
  transform: scale(1.10);
}
.btn-card-stage-add:active {
  transform: scale(0.94);
}
.btn-card-stage-add.active {
  background: var(--gold-accent) !important;
  color: #061326 !important;
  border-color: var(--gold-accent) !important;
  box-shadow: 0 2px 10px rgba(229, 196, 131, 0.55) !important;
}

.btn-vitrina-size-chip.active {
  background: var(--gold-accent) !important;
  color: #061326 !important;
  border-color: var(--gold-accent) !important;
}

/* ==========================================================================
   BOTÓN UNIFICADO DE TIENDAS EN CATÁLOGO ("N tiendas ↗")
   ========================================================================== */
button.btn-catalog-stores:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding: 5px 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: var(--radius-xs) !important;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-active) !important;
  color: var(--gold-accent) !important;
  box-shadow: none !important;
  letter-spacing: 0.15px;
}

button.btn-catalog-stores.compact:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) {
  width: auto;
  padding: 3px 8px !important;
  font-size: 9.5px !important;
  gap: 4px;
}

button.btn-catalog-stores:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover {
  background: var(--bg-elevated) !important;
  border-color: var(--gold-bright) !important;
}

button.btn-catalog-stores .stores-btn-arrow {
  opacity: 0.78;
  font-size: 10px;
}

/* ==========================================================================
   TEMAS NO DESTRUCTIVOS: ZARA EDITORIAL (CLARO Y BLACK) & AIRBNB SENSORY (CLARO Y BLACK)
   Conserva al 100% la estructura actual de la app cambiando solo paleta,
   sombras, radios de borde y contraste tipográfico.
   ========================================================================== */

/* --- 1. ZARA EDITORIAL CLARO --- */
body.theme-zara-light {
  --bg-main: #FDFCFB;
  --bg-surface: #F4F1EC;
  --bg-card: #FFFFFF;
  --bg-elevated: #EAE5DD;
  --border-hairline: #E5E2DC;
  --border-subtle: #EFECE6;
  --border-active: #161514;
  --gold-accent: #8B6D47;
  --gold-bright: #A88456;
  --gold-muted: #695031;
  --accent-cyan: #8B6D47;
  --accent-blue: #161514;
  --accent-sapphire: #161514;
  --text-main: #161514;
  --text-secondary: #57534E;
  --text-tertiary: #8C857B;
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --btn-bg: #FFFFFF;
  --btn-bg-hover: #F4F1EC;
  --btn-border: #D5D0C8;
  --btn-border-hover: #161514;
  --btn-text: #161514;
  --btn-active-bg: #161514;
  --btn-active-border: #161514;
  --btn-active-text: #FDFCFB;
  --btn-shadow: none;
  --btn-active-shadow: 0 4px 12px rgba(22, 21, 20, 0.14);
  --card-shadow: 0 2px 10px rgba(22, 21, 20, 0.04);
  --card-shadow-hover: 0 8px 22px rgba(22, 21, 20, 0.09), 0 0 0 1px #161514;
  background-color: #FDFCFB !important;
  background-image: none !important;
}

body.theme-zara-light .app-header {
  background: rgba(253, 252, 251, 0.94);
  border-bottom-color: #E5E2DC;
}

body.theme-zara-light .brand-name {
  background: none;
  -webkit-text-fill-color: #161514;
  color: #161514;
  letter-spacing: 0.5px;
}

body.theme-zara-light .bottom-nav {
  background: rgba(253, 252, 251, 0.96);
  border-top-color: #E5E2DC;
  box-shadow: 0 -2px 14px rgba(22, 21, 20, 0.04);
}

body.theme-zara-light .card-perfume,
body.theme-zara-light .card-perfume-list,
body.theme-zara-light .catalog-hero-banner {
  background: #FFFFFF !important;
  border-color: #E5E2DC;
  box-shadow: var(--card-shadow);
}

body.theme-zara-light .hero-stat-pill {
  background: #F7F5F0;
  border-color: #E5E2DC;
}

body.theme-zara-light .card-stage {
  background: linear-gradient(180deg, #F7F5F0 0%, #ECE8E0 100%) !important;
  border-bottom-color: #E5E2DC;
}

body.theme-zara-light .clean-modal-card,
body.theme-zara-light .notif-dropdown-panel {
  background: #FFFFFF !important;
  border-color: #D5D0C8;
  box-shadow: 0 24px 60px rgba(22, 21, 20, 0.16);
}

body.theme-zara-light button.btn-detail:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-zara-light button[data-open-detail]:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-zara-light .btn-detail {
  background: #F4F1EC !important;
  border-color: #C7C0B6 !important;
  color: #161514 !important;
  box-shadow: none !important;
}

body.theme-zara-light .vitrina-cajetilla-btn.active {
  background: #161514 !important;
  border-color: #161514 !important;
  color: #FDFCFB !important;
}

body.theme-zara-light .vitrina-cajetilla-btn.active .vitrina-tab-label,
body.theme-zara-light .vitrina-cajetilla-btn.active span,
body.theme-zara-light .pill-count-badge {
  color: inherit !important;
}

body.theme-zara-light .pill-count-badge {
  background: rgba(22, 21, 20, 0.08);
  border-color: rgba(22, 21, 20, 0.14);
  color: #161514 !important;
}

/* --- 2. ZARA EDITORIAL BLACK --- */
body.theme-zara-black {
  --bg-main: #09090B;
  --bg-surface: #131317;
  --bg-card: #18181D;
  --bg-elevated: #222229;
  --border-hairline: rgba(245, 243, 239, 0.13);
  --border-subtle: rgba(245, 243, 239, 0.07);
  --border-active: #C5A880;
  --gold-accent: #C5A880;
  --gold-bright: #DFC49E;
  --gold-muted: #987E5B;
  --accent-cyan: #C5A880;
  --accent-blue: #C5A880;
  --accent-sapphire: #18181D;
  --text-main: #F5F3EF;
  --text-secondary: #A8A29E;
  --text-tertiary: #78716C;
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --btn-bg: #18181D;
  --btn-bg-hover: #23232A;
  --btn-border: rgba(245, 243, 239, 0.20);
  --btn-border-hover: #C5A880;
  --btn-text: #F5F3EF;
  --btn-active-bg: #F5F3EF;
  --btn-active-border: #F5F3EF;
  --btn-active-text: #09090B;
  --btn-shadow: none;
  --btn-active-shadow: 0 4px 14px rgba(197, 168, 128, 0.20);
  --card-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  --card-shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(197, 168, 128, 0.42);
  background-color: #09090B !important;
  background-image: radial-gradient(ellipse 80% 340px at 50% -120px, rgba(197, 168, 128, 0.09) 0%, transparent 72%) !important;
}

body.theme-zara-black .app-header {
  background: rgba(9, 9, 11, 0.90);
  border-bottom-color: rgba(245, 243, 239, 0.12);
}

body.theme-zara-black .brand-name {
  background: linear-gradient(135deg, #F5F3EF 0%, #DFC49E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.theme-zara-black .bottom-nav {
  background: rgba(9, 9, 11, 0.95);
  border-top-color: rgba(245, 243, 239, 0.12);
}

body.theme-zara-black .card-perfume,
body.theme-zara-black .card-perfume-list,
body.theme-zara-black .catalog-hero-banner {
  background: #141418 !important;
  border-color: rgba(245, 243, 239, 0.12);
}

body.theme-zara-black .card-stage {
  background: radial-gradient(circle at 50% 42%, rgba(197, 168, 128, 0.15) 0%, #0D0D10 78%) !important;
  border-bottom-color: rgba(245, 243, 239, 0.10);
}

body.theme-zara-black .clean-modal-card,
body.theme-zara-black .notif-dropdown-panel {
  background: linear-gradient(180deg, #16161B 0%, #0D0D10 100%) !important;
  border-color: rgba(197, 168, 128, 0.30);
}

body.theme-zara-black button.btn-detail:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-zara-black button[data-open-detail]:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-zara-black .btn-detail {
  background: #202026 !important;
  border-color: rgba(197, 168, 128, 0.45) !important;
  color: #DFC49E !important;
}

body.theme-zara-black .vitrina-cajetilla-btn.active {
  background: #F5F3EF !important;
  border-color: #F5F3EF !important;
  color: #09090B !important;
}

/* --- 3. AIRBNB SENSORY CLARO --- */
body.theme-airbnb-light {
  --bg-main: #FFFFFF;
  --bg-surface: #F7F7F7;
  --bg-card: #FFFFFF;
  --bg-elevated: #EFEFEF;
  --border-hairline: #EBEBEB;
  --border-subtle: #F4F4F4;
  --border-active: #D9385A;
  --gold-accent: #D9385A;
  --gold-bright: #FF385C;
  --gold-muted: #B02342;
  --accent-cyan: #D9385A;
  --accent-blue: #FF385C;
  --accent-sapphire: #222222;
  --text-main: #222222;
  --text-secondary: #6A6A6A;
  --text-tertiary: #8E8E8E;
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --btn-bg: #F7F7F7;
  --btn-bg-hover: #EFEFEF;
  --btn-border: #DDDDDD;
  --btn-border-hover: #222222;
  --btn-text: #222222;
  --btn-active-bg: linear-gradient(135deg, #FF385C 0%, #D90B63 100%);
  --btn-active-border: #D90B63;
  --btn-active-text: #FFFFFF;
  --btn-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  --btn-active-shadow: 0 6px 16px rgba(255, 56, 92, 0.28);
  --card-shadow: 0 6px 20px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.11), 0 0 0 1px rgba(217, 56, 90, 0.25);
  background-color: #FFFFFF !important;
  background-image: radial-gradient(ellipse 80% 340px at 50% -110px, rgba(255, 56, 92, 0.06) 0%, transparent 72%) !important;
}

body.theme-airbnb-light .app-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: #EBEBEB;
}

body.theme-airbnb-light .brand-name {
  background: linear-gradient(135deg, #222222 0%, #D9385A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.theme-airbnb-light .bottom-nav {
  background: rgba(255, 255, 255, 0.96);
  border-top-color: #EBEBEB;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.05);
}

body.theme-airbnb-light .card-perfume,
body.theme-airbnb-light .card-perfume-list,
body.theme-airbnb-light .catalog-hero-banner {
  background: #FFFFFF !important;
  border-color: #EBEBEB;
  box-shadow: var(--card-shadow);
}

body.theme-airbnb-light .hero-stat-pill {
  background: #F7F7F7;
  border-color: #EBEBEB;
}

body.theme-airbnb-light .card-stage {
  background: linear-gradient(180deg, #FAFAFB 0%, #F1F1F4 100%) !important;
  border-bottom-color: #EBEBEB;
}

body.theme-airbnb-light .clean-modal-card,
body.theme-airbnb-light .notif-dropdown-panel {
  background: #FFFFFF !important;
  border-color: #E2E2E2;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

body.theme-airbnb-light button.btn-detail:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-airbnb-light button[data-open-detail]:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-airbnb-light .btn-detail {
  background: #FFF1F4 !important;
  border-color: rgba(217, 56, 90, 0.34) !important;
  color: #B02342 !important;
}

body.theme-airbnb-light .vitrina-cajetilla-btn.active {
  background: linear-gradient(135deg, #FF385C 0%, #D90B63 100%) !important;
  border-color: #D90B63 !important;
  color: #FFFFFF !important;
}

body.theme-airbnb-light .pill-count-badge {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.10);
  color: #222222 !important;
}

/* --- 4. AIRBNB SENSORY BLACK --- */
body.theme-airbnb-black {
  --bg-main: #0D0E11;
  --bg-surface: #15171D;
  --bg-card: #1A1D24;
  --bg-elevated: #242832;
  --border-hairline: rgba(255, 255, 255, 0.11);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-active: #FF385C;
  --gold-accent: #FF385C;
  --gold-bright: #FF6B86;
  --gold-muted: #C82347;
  --accent-cyan: #FF5A79;
  --accent-blue: #FF385C;
  --accent-sapphire: #1A1D24;
  --text-main: #F7F7F8;
  --text-secondary: #B0B3B8;
  --text-tertiary: #7C8089;
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --btn-bg: #20232C;
  --btn-bg-hover: #2A2E3A;
  --btn-border: rgba(255, 255, 255, 0.16);
  --btn-border-hover: #FF385C;
  --btn-text: #F7F7F8;
  --btn-active-bg: linear-gradient(135deg, #FF385C 0%, #D90B63 100%);
  --btn-active-border: #FF6B86;
  --btn-active-text: #FFFFFF;
  --btn-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
  --btn-active-shadow: 0 6px 18px rgba(255, 56, 92, 0.34);
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --card-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 56, 92, 0.42);
  background-color: #0D0E11 !important;
  background-image: radial-gradient(ellipse 80% 340px at 50% -110px, rgba(255, 56, 92, 0.12) 0%, transparent 72%) !important;
}

body.theme-airbnb-black .app-header {
  background: rgba(13, 14, 17, 0.90);
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

body.theme-airbnb-black .brand-name {
  background: linear-gradient(135deg, #FFFFFF 0%, #FF6B86 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.theme-airbnb-black .bottom-nav {
  background: rgba(13, 14, 17, 0.95);
  border-top-color: rgba(255, 255, 255, 0.10);
}

body.theme-airbnb-black .card-perfume,
body.theme-airbnb-black .card-perfume-list,
body.theme-airbnb-black .catalog-hero-banner {
  background: #171920 !important;
  border-color: rgba(255, 255, 255, 0.10);
}

body.theme-airbnb-black .card-stage {
  background: radial-gradient(circle at 50% 42%, rgba(255, 56, 92, 0.16) 0%, #101116 78%) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.theme-airbnb-black .clean-modal-card,
body.theme-airbnb-black .notif-dropdown-panel {
  background: linear-gradient(180deg, #1B1E26 0%, #111318 100%) !important;
  border-color: rgba(255, 56, 92, 0.30);
}

body.theme-airbnb-black button.btn-detail:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-airbnb-black button[data-open-detail]:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-airbnb-black .btn-detail {
  background: rgba(255, 56, 92, 0.16) !important;
  border-color: rgba(255, 56, 92, 0.45) !important;
  color: #FF8AA0 !important;
}

body.theme-airbnb-black .vitrina-cajetilla-btn.active {
  background: linear-gradient(135deg, #FF385C 0%, #D90B63 100%) !important;
  border-color: #FF6B86 !important;
  color: #FFFFFF !important;
}

/* Contraste universal del botón "+ / ✓" en esquinas sobre fondos claros */
body.theme-light .btn-card-stage-add:not(.active),
body.theme-zara-light .btn-card-stage-add:not(.active),
body.theme-airbnb-light .btn-card-stage-add:not(.active) {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: var(--border-active) !important;
  color: var(--gold-accent) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

body.theme-zara-light .btn-card-stage-add.active,
body.theme-zara-black .btn-card-stage-add.active,
body.theme-airbnb-light .btn-card-stage-add.active,
body.theme-airbnb-black .btn-card-stage-add.active {
  background: var(--gold-accent) !important;
  color: #FFFFFF !important;
  border-color: var(--gold-accent) !important;
}

/* Ajuste #card-club-prive en temas claros para evitar bloque azul oscuro fijo */
body.theme-light #card-club-prive,
body.theme-zara-light #card-club-prive,
body.theme-airbnb-light #card-club-prive {
  background: var(--bg-surface) !important;
  border-color: var(--border-active) !important;
}

/* Inputs, selectores y badge de avisos cohesionados por tema (sin azul marino residual) */
body.theme-zara-light .search-input-box,
body.theme-zara-light .clean-select,
body.theme-zara-light textarea.clean-input,
body.theme-zara-light input.clean-input {
  background: #FFFFFF !important;
  border-color: #D5D0C8 !important;
  color: #161514 !important;
  box-shadow: none !important;
}
body.theme-zara-light .notif-badge-dot {
  background: #161514 !important;
  color: #FDFCFB !important;
  box-shadow: none !important;
}

body.theme-zara-black .search-input-box,
body.theme-zara-black .clean-select,
body.theme-zara-black textarea.clean-input,
body.theme-zara-black input.clean-input {
  background: #141418 !important;
  border-color: rgba(245, 243, 239, 0.16) !important;
  color: #F5F3EF !important;
}
body.theme-zara-black .notif-badge-dot {
  background: #C5A880 !important;
  color: #09090B !important;
  box-shadow: 0 2px 8px rgba(197, 168, 128, 0.35) !important;
}

body.theme-airbnb-light .search-input-box,
body.theme-airbnb-light .clean-select,
body.theme-airbnb-light textarea.clean-input,
body.theme-airbnb-light input.clean-input {
  background: #FFFFFF !important;
  border-color: #DDDDDD !important;
  color: #222222 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}
body.theme-airbnb-light .notif-badge-dot,
body.theme-airbnb-black .notif-badge-dot {
  background: #FF385C !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(255, 56, 92, 0.38) !important;
}

body.theme-airbnb-black .search-input-box,
body.theme-airbnb-black .clean-select,
body.theme-airbnb-black textarea.clean-input,
body.theme-airbnb-black input.clean-input {
  background: #1A1D24 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #F7F7F8 !important;
}

/* Cajones flotantes (Mercado + Directos 1 a 1 de Comunidad) adaptados a todos los temas 2026 */
body.theme-zara-light .market-chat-drawer,
body.theme-airbnb-light .market-chat-drawer {
  background: rgba(255, 255, 255, 0.985) !important;
  border-color: rgba(17, 17, 17, 0.14) !important;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.14) !important;
}
body.theme-zara-black .market-chat-drawer {
  background: rgba(9, 9, 11, 0.98) !important;
  border-color: rgba(197, 168, 128, 0.28) !important;
}
body.theme-airbnb-black .market-chat-drawer {
  background: rgba(17, 18, 21, 0.98) !important;
  border-color: rgba(255, 56, 92, 0.28) !important;
}
body.theme-zara-light .chat-bubble.mine,
body.theme-airbnb-light .chat-bubble.mine {
  background: #f3f1ed !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #111111 !important;
}

/* ==========================================================================
   BOLITAS DE AVISO POR SECCIÓN + ACORDEONES EDITORIALES ZARA (LIMPIEZA VISUAL)
   ========================================================================== */
.nav-tab-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 20px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #c92a2a;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
  border: 1.5px solid var(--bg-main);
  pointer-events: none;
  z-index: 6;
}
.header-profile-badge {
  top: -5px;
  right: -5px;
}
.section-alerts-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-left: 3px solid #c92a2a;
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  margin-bottom: 14px;
}
.section-alerts-bar summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
}
.section-alerts-bar summary::-webkit-details-marker {
  display: none;
}

details.zara-accordion {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
details.zara-accordion > summary {
  list-style: none;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
}
details.zara-accordion > summary::-webkit-details-marker {
  display: none;
}
details.zara-accordion > summary::after {
  content: '▾';
  font-size: 12px;
  color: var(--text-tertiary);
  transition: transform 0.16s ease;
}
details.zara-accordion[open] > summary::after {
  transform: rotate(180deg);
}
details.zara-accordion .zara-accordion-body {
  padding: 0 15px 15px;
  border-top: 1px solid var(--border-hairline);
  padding-top: 12px;
}

/* Pulido Zara Editorial Light: aire, limpieza de fondo y cero oscuros residuales */
body.theme-zara-light .card-perfume,
body.theme-zara-light .card-perfume-list {
  background: #FFFFFF !important;
  border: 1px solid #E5E2DC !important;
}
body.theme-zara-light .card-perfume .card-stage,
body.theme-zara-light .card-perfume-list .card-stage {
  background: #F4F1EC !important;
  border-bottom: 1px solid #E5E2DC !important;
}
body.theme-zara-light .section-h1 {
  color: #161514;
  letter-spacing: -0.02em;
  font-weight: 700;
}
body.theme-zara-light .section-eyebrow {
  color: #8C857B;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body.theme-zara-light .analytics-cajetilla:not(.active),
body.theme-zara-light .community-cajetilla-btn:not(.active),
body.theme-zara-light .market-cajetilla-btn:not(.active) {
  color: #161514 !important;
  background: #FFFFFF !important;
  border-color: #E5E2DC !important;
}
body.theme-zara-light .analytics-cajetilla:not(.active) span,
body.theme-zara-light .community-cajetilla-btn:not(.active) span,
body.theme-zara-light .market-cajetilla-btn:not(.active) span {
  color: #161514 !important;
}
body.theme-zara-light .analytics-cajetilla.active,
body.theme-zara-light .community-cajetilla-btn.active {
  background: #161514 !important;
  border-color: #161514 !important;
  color: #FDFCFB !important;
}
body.theme-zara-light .analytics-cajetilla.active span,
body.theme-zara-light .community-cajetilla-btn.active span {
  color: #FDFCFB !important;
}
body.theme-zara-light .btn-gold {
  background: #161514 !important;
  border-color: #161514 !important;
  color: #FDFCFB !important;
}
body.theme-zara-light .user-btn {
  background: #F4F1EC;
  border: 1px solid #D5D0C8;
  color: #161514;
}
body.theme-zara-light .user-btn .avatar-badge,
body.theme-zara-light .avatar-badge {
  background: #161514 !important;
  color: #FDFCFB !important;
}

/* ==========================================================================
   BLOQUE A + B UX/UI 2026: MENÚ LATERAL, TRANSICIONES FLUIDAS,
   FICHA FULL-SCREEN, GRÁFICOS VISUALES Y COMPARADOR PERFUMON
   ========================================================================== */

/* 1. Transiciones de Pantalla iOS / Editorial Parallax & Micro-glides */
@keyframes nativeSlideInFromRight {
  0% {
    opacity: 0.25;
    transform: translate3d(28%, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes nativeSlideOutToLeft {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-10%, 0, 0) scale(0.988);
  }
}

@keyframes nativeSlideInFromLeft {
  0% {
    opacity: 0.25;
    transform: translate3d(-28%, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes nativeSlideOutToRight {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(10%, 0, 0) scale(0.988);
  }
}

.app-screen.incoming {
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.08);
}

.app-screen.enter-from-right,
.app-screen.exit-to-left,
.app-screen.enter-from-left,
.app-screen.exit-to-right {
  animation-duration: 0.26s !important;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

@keyframes subviewGlideFromRight {
  0% {
    opacity: 0.15;
    transform: translate3d(16px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes subviewGlideFromLeft {
  0% {
    opacity: 0.15;
    transform: translate3d(-16px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.subview-glide-right {
  animation: subviewGlideFromRight 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.subview-glide-left {
  animation: subviewGlideFromLeft 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

button:active:not(:disabled):not(.nav-item):not(.btn-fav-card):not(.btn-market-star) {
  transform: scale(0.97);
}

.bottom-nav .nav-item {
  transition: color 0.22s var(--ease-spring), transform 0.16s var(--ease-spring);
}
.bottom-nav .nav-item svg {
  transition: transform 0.24s var(--ease-spring);
}
.bottom-nav .nav-item.active svg {
  transform: translateY(-2px) scale(1.06);
}
.bottom-nav .nav-item::after {
  transition: transform 0.26s var(--ease-spring), opacity 0.22s ease;
}

/* 2. Control Segmentado con Píldora Deslizante (.ux-segmented) */
.ux-segmented {
  position: relative;
  display: grid;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
  overflow: hidden;
  isolation: isolate;
}

.ux-seg-indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 7px;
  background: var(--btn-active-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), width 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.15s ease;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

.ux-seg-indicator.is-ready {
  opacity: 1;
}

button.ux-seg-btn:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button.ux-seg-btn.active:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) {
  position: relative;
  z-index: 1;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  color: var(--text-secondary) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  min-height: 32px;
  padding: 4px 6px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 700 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.22s ease, transform 0.14s var(--ease-spring);
}

button.ux-seg-btn:not(.nav-item):hover {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--text-main) !important;
}

button.ux-seg-btn.active:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
button.ux-seg-btn.active:not(.nav-item):hover {
  color: var(--btn-active-text) !important;
}

button.ux-seg-btn.active:not(.nav-item) svg {
  color: var(--btn-active-text) !important;
  stroke: var(--btn-active-text) !important;
}

button.ux-seg-btn svg {
  flex-shrink: 0;
  stroke: currentColor;
}

/* Fallback cuando el indicador aún no se midió */
.ux-segmented:not(.has-indicator) button.ux-seg-btn.active:not(.nav-item) {
  background: var(--btn-active-bg) !important;
}

/* 3. Cabecera Menú Hamburguesa Derecha + Menú Lateral Deslizable */
.header-menu-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-left: 1px;
}

@keyframes drawerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drawerSlideIn {
  from { transform: translate3d(100%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.app-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999990;
  background: rgba(12, 12, 16, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: flex-end;
  animation: drawerFadeIn 0.22s ease both;
}

.app-drawer-panel {
  width: min(86vw, 346px);
  height: 100%;
  height: 100dvh;
  background: rgba(253, 252, 251, 0.97);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-left: 1px solid var(--border-hairline);
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: calc(16px + var(--safe-top)) 16px calc(24px + var(--safe-bottom));
  animation: drawerSlideIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.theme-zara-black .app-drawer-panel {
  background: rgba(16, 16, 20, 0.96);
  border-left-color: rgba(197, 168, 128, 0.25);
}

body.theme-airbnb-black .app-drawer-panel,
body:not(.theme-light):not(.theme-zara-light):not(.theme-airbnb-light):not(.theme-zara-black) .app-drawer-panel {
  background: rgba(11, 23, 42, 0.96);
  border-left-color: rgba(148, 197, 255, 0.18);
}

body.theme-airbnb-light .app-drawer-panel,
body.theme-light .app-drawer-panel {
  background: rgba(255, 255, 255, 0.97);
}

.app-drawer-backdrop.drawer-closing {
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.app-drawer-backdrop.drawer-closing .app-drawer-panel {
  transform: translate3d(100%, 0, 0);
  transition: transform 0.22s cubic-bezier(0.4, 0, 1, 1);
}

.drawer-user-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  margin-bottom: 14px;
}

.drawer-section-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 12px 4px 6px;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

button.app-drawer-item:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 10px;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  color: var(--text-main) !important;
  font-size: 13px;
  font-weight: 600 !important;
  text-align: left;
  transition: background 0.16s ease, transform 0.14s var(--ease-spring);
}

button.app-drawer-item:not(.nav-item):hover {
  background: var(--bg-surface) !important;
  border-color: var(--border-hairline) !important;
}

.app-drawer-item-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-drawer-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-accent);
  flex-shrink: 0;
}

.drawer-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 4px;
}

button.drawer-theme-swatch:not(.nav-item) {
  padding: 8px 9px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-hairline) !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
}

button.drawer-theme-swatch.active:not(.nav-item) {
  background: var(--btn-active-bg) !important;
  border-color: var(--btn-active-border) !important;
  color: var(--btn-active-text) !important;
}

.swatch-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(128, 128, 128, 0.35);
  flex-shrink: 0;
}

/* 4. Barra Superior de Subpantalla Completa (← Volver + Título) */
.subpage-top-bar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0 12px;
  margin-bottom: 10px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-hairline);
}

button.subpage-back-btn:not(.nav-item) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-hairline) !important;
  color: var(--text-main) !important;
  box-shadow: none !important;
  height: 32px;
  flex-shrink: 0;
}

.subpage-top-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  text-align: center;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 5. Ficha Técnica Full-Screen Push (Móvil pantalla completa, Escritorio hoja amplia) */
@keyframes detailPushInRight {
  from {
    opacity: 0.45;
    transform: translate3d(100%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.clean-modal-backdrop.detail-fullscreen-backdrop {
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
}

.clean-modal-backdrop.detail-fullscreen-backdrop .clean-modal-card.detail-fullscreen-sheet {
  width: 100%;
  max-width: 720px;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  border-top: none;
  border-bottom: none;
  border-right: none;
  padding: 0 18px calc(26px + var(--safe-bottom));
  animation: detailPushInRight 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.clean-modal-backdrop.detail-fullscreen-backdrop .clean-modal-card.detail-fullscreen-sheet::before {
  display: none !important;
}

@media (min-width: 769px) {
  .clean-modal-backdrop.detail-fullscreen-backdrop {
    padding: 14px;
  }
  .clean-modal-backdrop.detail-fullscreen-backdrop .clean-modal-card.detail-fullscreen-sheet {
    height: calc(100vh - 28px);
    max-height: calc(100vh - 28px);
    border-radius: 18px;
    border: 1px solid var(--border-hairline);
    padding: 0 22px 24px;
  }
}

.clean-modal-backdrop.detail-fullscreen-backdrop.modal-closing .clean-modal-card.detail-fullscreen-sheet {
  transform: translate3d(100%, 0, 0) !important;
  opacity: 0.6 !important;
  transition: transform 0.22s cubic-bezier(0.4, 0, 1, 1), opacity 0.2s ease !important;
}

.detail-sticky-header {
  position: sticky;
  top: 0;
  z-index: 14;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(12px + var(--safe-top)) 0 10px;
  margin-bottom: 12px;
  background: inherit;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-hairline);
}

/* 6. Escenario de Frascos Claro/Oscuro (Bloque A: Pedestal editorial vs Espresso) */
.bottle-thumb-stage {
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-hairline);
  background: radial-gradient(circle at 50% 34%, rgba(197, 168, 128, 0.16) 0%, #141210 78%);
}

body.theme-zara-light .bottle-thumb-stage,
body.theme-airbnb-light .bottle-thumb-stage,
body.theme-light .bottle-thumb-stage {
  background: radial-gradient(circle at 50% 42%, #FAF8F4 0%, #EFEBE3 100%) !important;
  border-color: #E5E2DC !important;
}

body.theme-zara-black .card-stage {
  background: radial-gradient(circle at 50% 34%, rgba(205, 168, 118, 0.20) 0%, #151210 66%, #0B0A09 100%) !important;
}

body.theme-zara-light .card-perfume .card-stage img,
body.theme-airbnb-light .card-perfume .card-stage img,
body.theme-zara-light .bottle-thumb-stage img {
  filter: drop-shadow(0 8px 14px rgba(22, 21, 20, 0.14));
}

/* Tarjetas Vitrina más limpias + Acordeón Técnico Plegable */
details.vitrina-tech-accordion {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

details.vitrina-tech-accordion > summary {
  list-style: none;
  padding: 6px 9px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
}

details.vitrina-tech-accordion > summary::-webkit-details-marker {
  display: none;
}

details.vitrina-tech-accordion > summary::after {
  content: '▾';
  font-size: 11px;
  color: var(--text-tertiary);
  transition: transform 0.18s ease;
}

details.vitrina-tech-accordion[open] > summary::after {
  transform: rotate(180deg);
}

.vitrina-tech-body {
  padding: 0 9px 9px;
  border-top: 1px solid var(--border-hairline);
  padding-top: 7px;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

/* Botón inline de Escáner EAN dentro del buscador de Catálogo */
button.catalog-scan-inline-btn:not(.nav-item) {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 32px;
  padding: 0 !important;
  border-radius: 8px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-hairline) !important;
  color: var(--gold-accent) !important;
  box-shadow: none !important;
  z-index: 4;
}

button.catalog-scan-inline-btn:not(.nav-item):active {
  transform: translateY(-50%) scale(0.95) !important;
}

/* 7. Bottom Sheet Translúcido Nativo (.ux-bottom-sheet-backdrop / .ux-bottom-sheet) */
@keyframes sheetSlideUp {
  from {
    opacity: 0.4;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.ux-bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999995;
  background: rgba(12, 12, 16, 0.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: drawerFadeIn 0.18s ease both;
}

.ux-bottom-sheet {
  width: 100%;
  max-width: 580px;
  max-height: 78dvh;
  overflow-y: auto;
  background: rgba(253, 252, 251, 0.97);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--border-hairline);
  padding: 12px 16px calc(24px + var(--safe-bottom));
  box-shadow: 0 -16px 46px rgba(0, 0, 0, 0.18);
  animation: sheetSlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.theme-zara-black .ux-bottom-sheet {
  background: rgba(20, 20, 25, 0.97);
  border-top-color: rgba(197, 168, 128, 0.28);
}

body.theme-airbnb-black .ux-bottom-sheet,
body:not(.theme-light):not(.theme-zara-light):not(.theme-airbnb-light):not(.theme-zara-black) .ux-bottom-sheet {
  background: rgba(12, 26, 48, 0.97);
}

.ux-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--text-tertiary);
  opacity: 0.38;
  margin: 0 auto 12px;
}

.ux-sheet-group-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 10px 4px 5px;
}

button.ux-sheet-option:not(.nav-item) {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  margin-bottom: 4px;
  border-radius: 10px !important;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-hairline) !important;
  color: var(--text-main) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  text-align: left;
}

button.ux-sheet-option.active:not(.nav-item) {
  background: var(--btn-active-bg) !important;
  border-color: var(--btn-active-border) !important;
  color: var(--btn-active-text) !important;
}

.ux-bottom-sheet-backdrop.sheet-closing {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.ux-bottom-sheet-backdrop.sheet-closing .ux-bottom-sheet {
  transform: translate3d(0, 100%, 0);
  transition: transform 0.2s cubic-bezier(0.4, 0, 1, 1);
}

/* 8. BLOQUE B · Ficha de Perfume 10/10 (Acordes Parfumo, Arcos, Estaciones, Radar, Perfumon) */
.accord-bars-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.accord-bar-row {
  position: relative;
  height: 26px;
  background: var(--bg-surface);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
}

.accord-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

body:not(.theme-zara-light):not(.theme-airbnb-light):not(.theme-light) .accord-bar-fill {
  opacity: 0.32;
}

.accord-bar-label {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1f1b17;
}

body:not(.theme-zara-light):not(.theme-airbnb-light):not(.theme-light) .accord-bar-label {
  color: var(--text-main);
}

.perf-arcs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.perf-arc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.perf-arc-svg {
  width: 118px;
  height: 66px;
  overflow: visible;
}

.seasons-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.season-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 9px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  opacity: 0.6;
}

.season-pill.is-match {
  opacity: 1;
  color: var(--text-main);
  border-color: var(--gold-accent);
  background: rgba(140, 109, 63, 0.10);
  font-weight: 700;
}

.olfactive-radar-card {
  display: grid;
  grid-template-columns: 152px 1fr;
  gap: 12px;
  align-items: center;
}

@media (max-width: 440px) {
  .olfactive-radar-card {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.pyramid-visual-tier {
  text-align: center;
  margin: 0 auto 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
}

.pyramid-visual-tier.tier-top { width: 82%; }
.pyramid-visual-tier.tier-mid { width: 92%; }
.pyramid-visual-tier.tier-base { width: 100%; margin-bottom: 0; }

/* Comparador Editorial estilo Perfumon (Ofertas & Tiendas) */
.perfumon-hero-price {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-hairline);
}

.perfumon-best-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.perfumon-store-list {
  display: flex;
  flex-direction: column;
}

.perfumon-store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--border-hairline);
  text-decoration: none;
  color: inherit;
  transition: background 0.16s ease, padding 0.16s ease;
}

.perfumon-store-row:last-child {
  border-bottom: none;
}

.perfumon-store-row:hover {
  background: var(--bg-surface);
  padding-left: 6px;
  padding-right: 6px;
  border-radius: 6px;
}

.store-monogram-badge {
  min-width: 68px;
  height: 26px;
  padding: 0 7px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
  border: 1px solid rgba(128, 128, 128, 0.22);
}

.price-history-card {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
}

.price-history-range-btn {
  padding: 3px 9px !important;
  font-size: 10px !important;
  border-radius: 4px !important;
  height: 22px;
  min-height: 22px;
}

/* Fix 2: Cabeceras sticky translúcidas opacas + Especificidad .ux-segmented por tema */
.detail-sticky-header {
  background: rgba(14, 31, 56, 0.94);
}
body.theme-light .detail-sticky-header {
  background: rgba(255, 255, 255, 0.94);
}
body.theme-zara-light .detail-sticky-header {
  background: rgba(255, 255, 255, 0.95);
}
body.theme-zara-black .detail-sticky-header {
  background: rgba(20, 20, 25, 0.94);
}
body.theme-airbnb-light .detail-sticky-header {
  background: rgba(255, 255, 255, 0.95);
}
body.theme-airbnb-black .detail-sticky-header {
  background: rgba(26, 29, 36, 0.94);
}

body.theme-zara-light .ux-segmented,
body.theme-airbnb-light .ux-segmented,
body.theme-light .ux-segmented {
  background: var(--bg-surface) !important;
  border-color: var(--border-hairline) !important;
}

body.theme-zara-light .ux-segmented button.ux-seg-btn:not(.active),
body.theme-zara-black .ux-segmented button.ux-seg-btn:not(.active),
body.theme-airbnb-light .ux-segmented button.ux-seg-btn:not(.active),
body.theme-airbnb-black .ux-segmented button.ux-seg-btn:not(.active),
body.theme-light .ux-segmented button.ux-seg-btn:not(.active),
.ux-segmented button.ux-seg-btn:not(.active) {
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  color: var(--text-secondary) !important;
}

body.theme-zara-light .ux-segmented button.ux-seg-btn:not(.active) span,
body.theme-zara-black .ux-segmented button.ux-seg-btn:not(.active) span,
body.theme-airbnb-light .ux-segmented button.ux-seg-btn:not(.active) span,
body.theme-airbnb-black .ux-segmented button.ux-seg-btn:not(.active) span,
body.theme-light .ux-segmented button.ux-seg-btn:not(.active) span {
  color: var(--text-secondary) !important;
}

body.theme-zara-light .ux-segmented button.ux-seg-btn.active,
body.theme-zara-black .ux-segmented button.ux-seg-btn.active,
body.theme-airbnb-light .ux-segmented button.ux-seg-btn.active,
body.theme-airbnb-black .ux-segmented button.ux-seg-btn.active,
body.theme-light .ux-segmented button.ux-seg-btn.active,
.ux-segmented button.ux-seg-btn.active {
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  color: var(--btn-active-text) !important;
}

body.theme-zara-light .ux-segmented button.ux-seg-btn.active span,
body.theme-zara-black .ux-segmented button.ux-seg-btn.active span,
body.theme-airbnb-light .ux-segmented button.ux-seg-btn.active span,
body.theme-airbnb-black .ux-segmented button.ux-seg-btn.active span,
body.theme-light .ux-segmented button.ux-seg-btn.active span,
body.theme-zara-light .ux-segmented button.ux-seg-btn.active svg,
body.theme-zara-black .ux-segmented button.ux-seg-btn.active svg,
body.theme-airbnb-light .ux-segmented button.ux-seg-btn.active svg,
body.theme-airbnb-black .ux-segmented button.ux-seg-btn.active svg,
body.theme-light .ux-segmented button.ux-seg-btn.active svg {
  color: var(--btn-active-text) !important;
  stroke: var(--btn-active-text) !important;
}

body.theme-zara-light .ux-segmented:not(.has-indicator) button.ux-seg-btn.active,
body.theme-zara-black .ux-segmented:not(.has-indicator) button.ux-seg-btn.active,
body.theme-airbnb-light .ux-segmented:not(.has-indicator) button.ux-seg-btn.active,
body.theme-airbnb-black .ux-segmented:not(.has-indicator) button.ux-seg-btn.active,
body.theme-light .ux-segmented:not(.has-indicator) button.ux-seg-btn.active {
  background: var(--btn-active-bg) !important;
}

/* Fix 3: Contraste limpio en .mini-badge (100 ml / metadata) en todos los temas Zara y Airbnb */
body.theme-zara-light .mini-badge:not(.mini-badge-accord),
body.theme-airbnb-light .mini-badge:not(.mini-badge-accord) {
  background: var(--bg-surface);
  border-color: var(--border-hairline);
  color: var(--text-main);
}

body.theme-zara-black .mini-badge:not(.mini-badge-accord),
body.theme-airbnb-black .mini-badge:not(.mini-badge-accord) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-main);
}

/* ==========================================================================
   FLAGSHIP v7 · OLFUMO PRIVÉ (6 Pantallas + Relieve 3D + Dock + 2 Ruedas)
   ========================================================================== */

/* 1. Tipografía editorial serif para la cabecera Olfumo Privé */
.brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.05 !important;
}

.brand-tag {
  font-size: 9.5px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.main-wrapper {
  padding-bottom: 108px !important;
}

/* 2. Dock inferior flotante y separado del borde */
.bottom-nav {
  left: 12px !important;
  right: 12px !important;
  bottom: max(10px, env(safe-area-inset-bottom)) !important;
  width: auto !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  height: 64px !important;
  padding: 4px 8px !important;
  border-radius: 26px !important;
  border-top: none !important;
  backdrop-filter: blur(22px) saturate(165%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(165%) !important;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

body.theme-zara-light .bottom-nav,
body.theme-airbnb-light .bottom-nav,
body.theme-light .bottom-nav {
  background: rgba(253, 251, 247, 0.90) !important;
  border: 1px solid rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 12px 32px rgba(24, 18, 12, 0.14), 0 2px 6px rgba(24, 18, 12, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

body.theme-zara-black .bottom-nav,
body.theme-airbnb-black .bottom-nav {
  background: rgba(18, 16, 14, 0.90) !important;
  border: 1px solid rgba(226, 190, 124, 0.24) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 240, 210, 0.12) !important;
}

.bottom-nav .nav-item {
  border-radius: 18px !important;
}

.bottom-nav .nav-item::after,
.bottom-nav .nav-item.active::after {
  display: none !important;
  opacity: 0 !important;
}

body.theme-zara-light .bottom-nav .nav-item.active,
body.theme-airbnb-light .bottom-nav .nav-item.active {
  background: rgba(185, 139, 72, 0.13) !important;
  color: #1A1612 !important;
}

.fab-scroll-top {
  bottom: 88px !important;
}

/* 3. Relieve táctil 3D esculpido (Tarjetas, botones, buscador y cabecera) */
body.theme-zara-light #header-user-btn,
body.theme-airbnb-light #header-user-btn {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4EFE7 100%) !important;
  border: 1px solid rgba(168, 155, 136, 0.42) !important;
  box-shadow: 0 4px 12px rgba(28, 22, 16, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

body.theme-zara-light.in-tab-catalogo {
  background-color: #F6F3EC !important;
  background-image:
    linear-gradient(125deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 34%, rgba(214, 204, 189, 0.26) 54%, rgba(255, 255, 255, 0.45) 78%, rgba(214, 204, 189, 0.16) 100%) !important;
}

body.theme-zara-light .search-input-box,
body.theme-zara-light #btn-open-unified-filters,
body.theme-zara-light #btn-open-occasion-sheet,
body.theme-zara-light #btn-open-propose-perfume {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F1EA 100%) !important;
  border-color: rgba(180, 168, 150, 0.45) !important;
  box-shadow: 0 5px 14px rgba(28, 22, 16, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

body.theme-zara-light .card-perfume,
body.theme-zara-light .card-perfume-list {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF7F2 100%) !important;
  border: 1px solid rgba(190, 178, 160, 0.42) !important;
  border-radius: 18px !important;
  box-shadow:
    0 12px 26px rgba(32, 24, 16, 0.08),
    0 3px 8px rgba(32, 24, 16, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
}

body.theme-zara-light button.btn-detail:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-zara-light button.btn-clean:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1ECE4 100%) !important;
  border: 1px solid rgba(176, 164, 146, 0.5) !important;
  box-shadow: 0 3px 8px rgba(28, 22, 16, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

body.theme-zara-light .card-perfume .btn-gold,
body.theme-zara-light .btn-gold {
  box-shadow: 0 6px 14px rgba(130, 96, 40, 0.24), inset 0 1px 0 rgba(255, 244, 215, 0.45) !important;
}

/* 4. Frascos recortados sobre plataforma cilíndrica 3D (sin caja) */
.card-stage {
  overflow: visible;
  padding-bottom: 10px;
}

body.theme-zara-light .card-stage {
  background: linear-gradient(180deg, #FAF8F4 0%, #EFECE5 100%) !important;
  border-bottom: 1px solid rgba(190, 178, 160, 0.28) !important;
}

.card-stage::after,
.bottle-pedestal-3d::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 82px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #EAE5DC 0%, #D5CEC2 100%);
  box-shadow:
    0 5px 0 #C4BCB0,
    0 12px 18px rgba(32, 24, 16, 0.16),
    inset 0 1px 2px rgba(255, 255, 255, 0.85);
  z-index: 0;
  pointer-events: none;
}

.bottle-pedestal-3d {
  position: relative;
  display: grid;
  place-items: center;
}

.bottle-pedestal-3d::after {
  width: 68px;
  height: 16px;
  bottom: 6px;
}

.card-stage .fx-photo,
.bottle-pedestal-3d .fx-photo {
  position: relative;
  z-index: 2;
  transform: translateY(-6px);
  filter: drop-shadow(0 8px 10px rgba(24, 18, 12, 0.22));
}

.card-stage .fx-photo-img,
.bottle-pedestal-3d .fx-photo-img,
.wheel-bottle-wrap .fx-photo-img,
.detail-hero-bottle-wrap .fx-photo-img {
  background: transparent !important;
  box-shadow: none !important;
  mix-blend-mode: multiply;
}

/* 5. MI VITRINA · Ámbar Nocturno de Alto Contraste (dentro del modo Editorial) */
body.theme-zara-light.in-tab-vitrina {
  --bg-main: #0C0907;
  --bg-surface: rgba(34, 27, 21, 0.88);
  --bg-card: rgba(24, 19, 15, 0.90);
  --bg-elevated: rgba(42, 33, 25, 0.94);
  --border-hairline: rgba(226, 190, 124, 0.24);
  --border-subtle: rgba(226, 190, 124, 0.14);
  --border-active: #E2BE7C;
  --gold-accent: #E2BE7C;
  --gold-bright: #F4DA9E;
  --text-main: #F6F1E8;
  --text-secondary: #C8BDAE;
  --text-tertiary: #968978;
  --btn-bg: rgba(32, 25, 19, 0.92);
  --btn-bg-hover: rgba(48, 37, 27, 0.96);
  --btn-border: rgba(226, 190, 124, 0.30);
  --btn-text: #F6F1E8;
  --btn-active-bg: #E6C78B;
  --btn-active-border: #F2D79E;
  --btn-active-text: #17120C;
  background-color: #090705 !important;
  background-image:
    radial-gradient(ellipse 85% 320px at 14% 26%, rgba(206, 132, 42, 0.28) 0%, rgba(128, 72, 18, 0.08) 52%, transparent 74%),
    radial-gradient(ellipse 75% 280px at 88% 58%, rgba(228, 166, 68, 0.22) 0%, rgba(118, 66, 16, 0.07) 50%, transparent 72%),
    radial-gradient(ellipse 90% 240px at 50% 0%, rgba(196, 140, 56, 0.18) 0%, transparent 65%),
    linear-gradient(165deg, #0E0A07 0%, #160F09 46%, #090705 100%) !important;
  background-attachment: fixed !important;
  color: #F6F1E8 !important;
}

body.theme-zara-light.in-tab-vitrina .app-header {
  background: rgba(14, 11, 8, 0.88) !important;
  border-bottom-color: rgba(226, 190, 124, 0.18) !important;
}

body.theme-zara-light.in-tab-vitrina .brand-name {
  color: #F6F1E8 !important;
  -webkit-text-fill-color: #F6F1E8 !important;
}

body.theme-zara-light.in-tab-vitrina #header-user-btn {
  background: linear-gradient(180deg, rgba(40, 32, 24, 0.94) 0%, rgba(24, 19, 14, 0.96) 100%) !important;
  border-color: rgba(226, 190, 124, 0.34) !important;
  color: #F6F1E8 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 240, 210, 0.14) !important;
}

body.theme-zara-light.in-tab-vitrina .avatar-badge {
  background: #E6C78B !important;
  color: #17120C !important;
}

body.theme-zara-light.in-tab-vitrina .bottom-nav {
  background: rgba(18, 14, 10, 0.90) !important;
  border: 1px solid rgba(226, 190, 124, 0.26) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 240, 210, 0.14) !important;
}

body.theme-zara-light.in-tab-vitrina .bottom-nav .nav-item {
  color: #A89C8C !important;
}

body.theme-zara-light.in-tab-vitrina .bottom-nav .nav-item.active {
  background: rgba(226, 190, 124, 0.16) !important;
  color: #F2D79E !important;
}

body.theme-zara-light.in-tab-vitrina .card-perfume,
body.theme-zara-light.in-tab-vitrina .card-perfume-list,
body.theme-zara-light.in-tab-vitrina .vitrina-collection-card {
  background: linear-gradient(180deg, rgba(32, 25, 19, 0.92) 0%, rgba(20, 15, 11, 0.95) 100%) !important;
  border: 1px solid rgba(226, 190, 124, 0.26) !important;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 236, 196, 0.18) !important;
  backdrop-filter: blur(14px);
}

body.theme-zara-light.in-tab-vitrina .card-stage {
  background:
    radial-gradient(ellipse 68% 54% at 50% 42%, rgba(226, 190, 124, 0.18) 0%, rgba(16, 12, 9, 0.92) 76%) !important;
  border-bottom: 1px solid rgba(226, 190, 124, 0.16) !important;
}

body.theme-zara-light.in-tab-vitrina .card-stage::after {
  background: linear-gradient(180deg, #27201A 0%, #120E0B 100%) !important;
  box-shadow:
    0 5px 0 #080605,
    0 0 0 1.5px rgba(226, 190, 124, 0.48),
    0 10px 22px rgba(226, 190, 124, 0.16),
    inset 0 1px 2px rgba(255, 240, 210, 0.25) !important;
}

body.theme-zara-light.in-tab-vitrina .fx-photo-img {
  mix-blend-mode: normal !important;
}

body.theme-zara-light.in-tab-vitrina button.btn-detail:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-zara-light.in-tab-vitrina button.btn-clean:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-zara-light.in-tab-vitrina button[data-open-detail]:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-zara-light.in-tab-vitrina #btn-add-perfume-shortcut,
body.theme-zara-light.in-tab-vitrina .section-alerts-dismiss,
body.theme-zara-light.in-tab-vitrina .filter-chip:not(.active) {
  background: linear-gradient(180deg, rgba(44, 34, 25, 0.94) 0%, rgba(26, 20, 14, 0.96) 100%) !important;
  border: 1px solid rgba(226, 190, 124, 0.34) !important;
  color: #F6F1E8 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 240, 210, 0.12) !important;
}

body.theme-zara-light.in-tab-vitrina .section-h1 {
  color: #F6F1E8 !important;
  -webkit-text-fill-color: #F6F1E8 !important;
}

body.theme-zara-light.in-tab-vitrina .section-eyebrow {
  color: #DFC49E !important;
  background: transparent !important;
  border-color: transparent !important;
}

body.theme-zara-light.in-tab-vitrina .filter-chip.active,
body.theme-zara-light.in-tab-vitrina .btn-gold {
  background: linear-gradient(180deg, #F0D69A 0%, #D4AF6A 100%) !important;
  border-color: #F5E0AD !important;
  color: #17120B !important;
  box-shadow: 0 6px 16px rgba(212, 175, 106, 0.28), inset 0 1px 0 rgba(255, 250, 232, 0.72) !important;
}

body.theme-zara-light.in-tab-vitrina .clean-select,
body.theme-zara-light.in-tab-vitrina .search-input-box {
  background: rgba(28, 22, 16, 0.94) !important;
  border-color: rgba(226, 190, 124, 0.28) !important;
  color: #F6F1E8 !important;
  box-shadow: none !important;
}

body.theme-zara-light.in-tab-vitrina .ux-segmented {
  background: rgba(24, 19, 14, 0.92) !important;
  border-color: rgba(226, 190, 124, 0.24) !important;
}

body.theme-zara-light.in-tab-vitrina .ux-seg-indicator {
  background: linear-gradient(180deg, #F0D69A 0%, #D4AF6A 100%) !important;
}

body.theme-zara-light.in-tab-vitrina .ux-segmented button.ux-seg-btn:not(.active),
body.theme-zara-light.in-tab-vitrina .ux-segmented button.ux-seg-btn:not(.active) span {
  color: #C8BDAE !important;
}

body.theme-zara-light.in-tab-vitrina .ux-segmented button.ux-seg-btn.active,
body.theme-zara-light.in-tab-vitrina .ux-segmented button.ux-seg-btn.active span,
body.theme-zara-light.in-tab-vitrina .ux-segmented button.ux-seg-btn.active svg {
  color: #17120B !important;
  stroke: #17120B !important;
}

body.theme-zara-light.in-tab-vitrina .mini-badge:not(.mini-badge-accord),
body.theme-zara-light.in-tab-vitrina .pill-count-badge {
  background: rgba(255, 240, 214, 0.10) !important;
  border-color: rgba(226, 190, 124, 0.28) !important;
  color: #F4DA9E !important;
}

body.theme-zara-light.in-tab-vitrina .subpage-back-btn {
  background: rgba(34, 27, 20, 0.94) !important;
  border-color: rgba(226, 190, 124, 0.30) !important;
  color: #F6F1E8 !important;
}

body.theme-zara-light.in-tab-vitrina .vitrina-tech-accordion {
  background: rgba(30, 24, 18, 0.85) !important;
  border-color: rgba(226, 190, 124, 0.22) !important;
}

/* 6. LABORATORIO · Grafito Cepillado & Oro */
body.theme-zara-light.in-tab-laboratorio {
  --bg-main: #131519;
  --bg-surface: #1D2027;
  --bg-card: #181A20;
  --bg-elevated: #232730;
  --border-hairline: rgba(226, 190, 124, 0.22);
  --border-active: #E2BE7C;
  --gold-accent: #E2BE7C;
  --text-main: #F4F1EA;
  --text-secondary: #B8B4AC;
  --text-tertiary: #84817A;
  --btn-bg: #20232B;
  --btn-border: rgba(226, 190, 124, 0.28);
  --btn-text: #F4F1EA;
  --btn-active-bg: #E4C386;
  --btn-active-text: #14161A;
  background-color: #131519 !important;
  background-image:
    radial-gradient(ellipse 60% 240px at 8% 35%, rgba(218, 162, 68, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 60% 240px at 92% 65%, rgba(218, 162, 68, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, #16181D 0%, #101216 100%) !important;
  background-attachment: fixed !important;
  color: #F4F1EA !important;
}

body.theme-zara-light.in-tab-laboratorio .app-header {
  background: rgba(19, 21, 25, 0.90) !important;
  border-bottom-color: rgba(226, 190, 124, 0.18) !important;
}

body.theme-zara-light.in-tab-laboratorio .brand-name {
  color: #F4F1EA !important;
  -webkit-text-fill-color: #F4F1EA !important;
}

body.theme-zara-light.in-tab-laboratorio #header-user-btn {
  background: linear-gradient(180deg, #252830 0%, #1A1C22 100%) !important;
  border-color: rgba(226, 190, 124, 0.30) !important;
  color: #F4F1EA !important;
}

body.theme-zara-light.in-tab-laboratorio .bottom-nav {
  background: rgba(22, 24, 29, 0.92) !important;
  border: 1px solid rgba(226, 190, 124, 0.22) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.62) !important;
}

body.theme-zara-light.in-tab-laboratorio .bottom-nav .nav-item {
  color: #9CA0AA !important;
}

body.theme-zara-light.in-tab-laboratorio .bottom-nav .nav-item.active {
  background: rgba(226, 190, 124, 0.15) !important;
  color: #EED096 !important;
}

body.theme-zara-light.in-tab-laboratorio .search-input-box,
body.theme-zara-light.in-tab-laboratorio .clean-select,
body.theme-zara-light.in-tab-laboratorio textarea.clean-input,
body.theme-zara-light.in-tab-laboratorio input.clean-input {
  background: #1E2128 !important;
  border-color: rgba(226, 190, 124, 0.26) !important;
  color: #F4F1EA !important;
}

body.theme-zara-light.in-tab-laboratorio button.btn-clean:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-zara-light.in-tab-laboratorio button.btn-detail:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-zara-light.in-tab-laboratorio button.btn-add-lab-ing:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-zara-light.in-tab-laboratorio #btn-lab-go-raw-materials,
body.theme-zara-light.in-tab-laboratorio .section-alerts-dismiss {
  background: linear-gradient(180deg, #272B34 0%, #1D2027 100%) !important;
  border: 1px solid rgba(226, 190, 124, 0.34) !important;
  color: #F4F1EA !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.theme-zara-light.in-tab-laboratorio .analytics-cajetilla:not(.active) {
  background: #20232B !important;
  border-color: rgba(226, 190, 124, 0.22) !important;
  color: #EAE5DC !important;
}

body.theme-zara-light.in-tab-laboratorio .analytics-cajetilla:not(.active) span {
  color: #EAE5DC !important;
}

body.theme-zara-light.in-tab-laboratorio .analytics-cajetilla.active {
  background: linear-gradient(180deg, #F0D69A 0%, #D4AF6A 100%) !important;
  border-color: #F5E0AD !important;
  color: #14161A !important;
}

body.theme-zara-light.in-tab-laboratorio .analytics-cajetilla.active span {
  color: #14161A !important;
}

body.theme-zara-light.in-tab-laboratorio .section-h1 {
  color: #F4F1EA !important;
  -webkit-text-fill-color: #F4F1EA !important;
}

body.theme-zara-light.in-tab-laboratorio .btn-gold {
  background: linear-gradient(180deg, #EED296 0%, #CFA660 100%) !important;
  color: #14161A !important;
}

/* 7. MERCADO · Cabecera Arquitectónica Carbón + Cuerpo Travertino */
body.theme-zara-light.in-tab-mercado {
  background-color: #F1EFEA !important;
}

.market-architectural-hero {
  margin: 0 0 14px;
  padding: 18px 14px 14px;
  border-radius: 20px;
  background: linear-gradient(160deg, #212329 0%, #14161A 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 30px rgba(18, 20, 26, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  color: #F6F4EF;
}

.market-architectural-hero .section-h1 {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

.market-architectural-hero .section-eyebrow {
  color: #DFC49E !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  letter-spacing: 0.14em !important;
}

.market-architectural-hero .market-top-subbar {
  margin-bottom: 0 !important;
}

.market-architectural-hero .market-subbar-container {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.market-architectural-hero .market-cajetilla-btn:not(.active) span,
.market-architectural-hero .market-cajetilla-btn:not(.active) svg {
  color: #D2CEC6 !important;
  stroke: #D2CEC6 !important;
}

.market-architectural-hero .market-cajetilla-btn.active {
  background: #FFFFFF !important;
  border-color: #FFFFFF !important;
}

.market-architectural-hero .market-cajetilla-btn.active span,
.market-architectural-hero .market-cajetilla-btn.active svg {
  color: #14161A !important;
  stroke: #14161A !important;
}

/* Botón Rankings en Comunidad editorial */
body.theme-zara-light button#btn-muro-to-rankings:not(.nav-item):not(.btn-fav-card):not(.btn-market-star) {
  background: linear-gradient(180deg, #FBF6EA 0%, #EFE2C6 100%) !important;
  border: 1px solid rgba(176, 132, 62, 0.52) !important;
  color: #3D2C12 !important;
  box-shadow: 0 3px 8px rgba(45, 32, 12, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* 8. COMUNIDAD · Tarjeta Spotlight Oscura Editorial */
.community-spotlight-card {
  background: linear-gradient(145deg, #221A13 0%, #120E0A 100%) !important;
  border: 1px solid rgba(226, 190, 124, 0.34) !important;
  border-radius: 18px !important;
  padding: 14px !important;
  color: #F6F1E8 !important;
  box-shadow: 0 14px 32px rgba(22, 16, 10, 0.22), inset 0 1px 0 rgba(255, 236, 196, 0.16) !important;
}

.community-spotlight-card,
.community-spotlight-card strong,
.community-spotlight-card div,
.community-spotlight-card span,
.community-spotlight-card p {
  color: #EDE6DA;
}

.community-spotlight-kicker {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #E4C386 !important;
  margin-bottom: 10px;
}

.community-spotlight-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.community-spotlight-bottle {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 45%, rgba(226, 190, 124, 0.14) 0%, transparent 72%);
}

.community-spotlight-bottle strong {
  font-size: 12px;
  color: #FFFFFF !important;
  margin-top: 4px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-spotlight-bottle span {
  font-size: 10px;
  color: #C8BDAE !important;
}

.community-spotlight-plus {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #F0D69A 0%, #CFA660 100%);
  color: #17120B !important;
  font-weight: 800;
  font-size: 17px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(226, 190, 124, 0.42);
}

.community-spotlight-ratio {
  position: relative;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(226, 190, 124, 0.22);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.community-spotlight-ratio .ratio-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, rgba(226, 190, 124, 0.45), rgba(226, 190, 124, 0.22));
}

.community-spotlight-ratio .ratio-text {
  position: relative;
  z-index: 1;
  font-size: 10.5px;
  font-weight: 700;
  color: #F6F1E8 !important;
}

.community-spotlight-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #C8BDAE !important;
}

/* 9. FICHA DE PERFUME · Cabecera Fotográfica Panorámica a Todo Ancho */
.detail-panoramic-hero {
  position: relative;
  margin: -16px -16px 14px;
  padding: 8px 16px 20px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 130px at 50% 96%, rgba(214, 198, 174, 0.65) 0%, transparent 72%),
    linear-gradient(122deg, rgba(255, 248, 232, 0.92) 0%, color-mix(in srgb, var(--hero-tint, #D4AF6A) 22%, #EFE8DC) 46%, #D8CEC0 100%);
  border-bottom: 1px solid var(--border-hairline);
}

body.theme-zara-black .detail-panoramic-hero,
body.theme-airbnb-black .detail-panoramic-hero,
body.theme-zara-light.in-tab-vitrina .detail-panoramic-hero {
  background:
    radial-gradient(ellipse 80% 120px at 50% 70%, color-mix(in srgb, var(--hero-tint, #D4AF6A) 34%, rgba(36, 26, 16, 0.85)) 0%, rgba(14, 11, 8, 0.98) 76%),
    linear-gradient(155deg, #1E1710 0%, #0D0A07 100%);
}

.detail-hero-caustics {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, rgba(255, 240, 200, 0.48) 12%, transparent 38%, rgba(255, 232, 184, 0.25) 62%, transparent 86%),
    radial-gradient(ellipse 110% 34px at 50% 100%, #F8F5F0 0%, transparent 85%);
  opacity: 0.72;
}

body.theme-zara-black .detail-hero-caustics,
body.theme-airbnb-black .detail-hero-caustics,
body.theme-zara-light.in-tab-vitrina .detail-hero-caustics {
  opacity: 0.35;
  background: linear-gradient(112deg, rgba(226, 190, 124, 0.32) 10%, transparent 45%, rgba(226, 190, 124, 0.16) 72%, transparent 92%);
}

.detail-sticky-header.is-panoramic {
  position: sticky;
  top: 0;
  width: calc(100% + 32px);
  margin: -8px -16px 6px;
  padding: 10px 16px;
  z-index: 25;
  background: transparent !important;
  backdrop-filter: none !important;
  border-bottom: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-sticky-header.is-panoramic .subpage-back-btn,
.detail-panoramic-counter,
.detail-panoramic-nav-btn {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 6px 16px rgba(24, 18, 12, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  color: #161412 !important;
}

body.theme-zara-black .detail-sticky-header.is-panoramic .subpage-back-btn,
body.theme-airbnb-black .detail-sticky-header.is-panoramic .subpage-back-btn,
body.theme-zara-light.in-tab-vitrina .detail-sticky-header.is-panoramic .subpage-back-btn,
body.theme-zara-black .detail-panoramic-counter,
body.theme-airbnb-black .detail-panoramic-counter,
body.theme-zara-light.in-tab-vitrina .detail-panoramic-counter,
body.theme-zara-black .detail-panoramic-nav-btn,
body.theme-airbnb-black .detail-panoramic-nav-btn,
body.theme-zara-light.in-tab-vitrina .detail-panoramic-nav-btn {
  background: rgba(24, 20, 16, 0.78) !important;
  border-color: rgba(226, 190, 124, 0.34) !important;
  color: #F6F1E8 !important;
}

.detail-panoramic-counter {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.detail-panoramic-nav-btn {
  width: 32px;
  height: 32px;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.detail-hero-bottle-wrap {
  position: relative;
  z-index: 2;
  padding-top: 4px;
  filter: drop-shadow(0 16px 22px rgba(28, 20, 10, 0.28));
}

.detail-hero-bottle-wrap::after {
  content: '';
  display: block;
  width: 96px;
  height: 18px;
  margin: -10px auto 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(24, 18, 12, 0.24) 0%, transparent 72%);
}

/* 10. PROPUESTA 1 · Carrusel Horizontal tipo Netflix (Rueda Infinita) */
.ux-netflix-section {
  margin-bottom: 18px;
}

.ux-netflix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ux-netflix-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.ux-netflix-meta-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ux-netflix-loop-badge {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}

.ux-rail-nav-btn {
  width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-hairline) !important;
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  cursor: pointer;
}

.ux-netflix-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 6px 10px;
  margin: 0 -6px;
  scrollbar-width: none;
}

.ux-netflix-rail::-webkit-scrollbar {
  display: none;
}

.ux-netflix-card {
  flex: 0 0 136px;
  scroll-snap-align: start;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF7F2 100%);
  border: 1px solid rgba(190, 178, 160, 0.42);
  border-radius: 16px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 18px rgba(32, 24, 16, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.theme-zara-black .ux-netflix-card,
body.theme-airbnb-black .ux-netflix-card,
body.theme-zara-light.in-tab-vitrina .ux-netflix-card {
  background: linear-gradient(180deg, rgba(32, 26, 20, 0.94) 0%, rgba(20, 16, 12, 0.96) 100%);
  border-color: rgba(226, 190, 124, 0.25);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 236, 196, 0.14);
}

.ux-netflix-stage {
  position: relative;
  height: 92px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 42%, var(--stage-tint, rgba(212, 175, 106, 0.16)), rgba(239, 234, 224, 0.65));
  display: grid;
  place-items: center;
  margin-bottom: 7px;
  overflow: hidden;
}

body.theme-zara-black .ux-netflix-stage,
body.theme-airbnb-black .ux-netflix-stage,
body.theme-zara-light.in-tab-vitrina .ux-netflix-stage {
  background: radial-gradient(circle at 50% 45%, rgba(226, 190, 124, 0.16), rgba(14, 11, 8, 0.85));
}

.ux-netflix-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.ux-netflix-floating-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 4;
  background: rgba(17, 17, 17, 0.86);
  color: #FFFFFF;
  font-size: 7.5px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.ux-netflix-stage .fx-photo {
  transform: translateY(-2px);
}

.ux-netflix-house {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ux-netflix-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 1px 0 4px;
}

.ux-netflix-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--text-secondary);
}

.ux-netflix-foot strong {
  color: var(--text-main);
  font-size: 11px;
}

.ux-netflix-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.ux-dot {
  width: 6px !important;
  height: 6px !important;
  min-height: 6px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 999px !important;
  background: rgba(130, 120, 108, 0.35) !important;
  transition: width 0.22s ease, background 0.22s ease;
}

.ux-dot.active {
  width: 18px !important;
  background: var(--gold-accent) !important;
}

/* 11. PROPUESTA 2 · Mi Vitrina Modo Rueda 3D Spotlight */
.vitrina-wheel-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(78px, 1fr) minmax(136px, 1.45fr) minmax(78px, 1fr);
  align-items: end;
  gap: 4px;
  padding: 28px 2px 12px;
  margin: 4px -4px 6px;
  overflow: hidden;
  touch-action: pan-y;
}

body .vitrina-wheel-stage button.wheel-slot:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body .vitrina-wheel-stage button.wheel-slot:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
body.theme-zara-light.in-tab-vitrina .vitrina-wheel-stage button.wheel-slot:not(.nav-item):not(.btn-fav-card):not(.btn-market-star),
body.theme-zara-light.in-tab-vitrina .vitrina-wheel-stage button.wheel-slot:not(.nav-item):not(.btn-fav-card):not(.btn-market-star):hover,
.wheel-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  cursor: pointer;
}

.wheel-slot.slot-left,
.wheel-slot.slot-right {
  opacity: 0.62;
  transform: scale(0.84) translateY(-6px);
  filter: saturate(0.82);
  transition: transform 0.26s ease, opacity 0.26s ease;
}

.wheel-slot.slot-left:hover,
.wheel-slot.slot-right:hover {
  opacity: 0.88;
}

.wheel-slot.slot-center {
  z-index: 3;
  transform: scale(1);
}

.wheel-center-pill {
  position: relative;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #4ade80;
  background: rgba(16, 48, 30, 0.86);
  border: 1px solid rgba(74, 222, 128, 0.52);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.wheel-bottle-wrap {
  position: relative;
  z-index: 2;
  margin-bottom: -10px;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
}

.wheel-bottle-wrap.is-center {
  filter: drop-shadow(0 14px 24px rgba(226, 190, 124, 0.26)) drop-shadow(0 12px 18px rgba(0, 0, 0, 0.65));
}

.wheel-pedestal {
  width: 82px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2C2722 0%, #15120F 100%);
  box-shadow: 0 5px 0 #0B0907, inset 0 1px 2px rgba(255, 255, 255, 0.16);
}

.wheel-pedestal.is-center {
  width: 124px;
  height: 24px;
  background: linear-gradient(180deg, #322A22 0%, #17130F 100%);
  box-shadow:
    0 7px 0 #0A0806,
    0 0 0 1.5px rgba(226, 190, 124, 0.62),
    0 14px 28px rgba(226, 190, 124, 0.24),
    inset 0 1px 3px rgba(255, 240, 210, 0.32);
}

.vitrina-wheel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 4px 0;
}

.wheel-arrow-btn {
  width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-hairline) !important;
  color: var(--text-main) !important;
}

.wheel-dots-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wheel-dot {
  width: 6px !important;
  height: 6px !important;
  min-height: 6px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: var(--text-tertiary) !important;
  opacity: 0.42;
}

.wheel-dot.active {
  width: 9px !important;
  height: 9px !important;
  background: var(--gold-accent) !important;
  opacity: 1;
}

.vitrina-wheel-hint {
  text-align: center;
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.vitrina-wheel-telemetry {
  margin-top: 2px;
}
