/* ==========================================================================
   GM PERFUMERÍA - SISTEMA DE DISEÑO DE LUJO & EXPERIENCIA MÓVIL
   ========================================================================== */

:root {
  /* Paleta de Lujo */
  --bg-main: #0B0B0E;
  --bg-surface: #141419;
  --bg-surface-elevated: #1B1B22;
  --bg-glass: rgba(20, 20, 26, 0.75);

  --gold-primary: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-dark: #A68015;
  --gold-gradient: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #AA7C11 100%);
  --gold-glow: rgba(212, 175, 55, 0.25);

  --ruby-accent: #9B111E;
  --ruby-gradient: linear-gradient(135deg, #C02633 0%, #9B111E 100%);

  --wa-green: #25D366;
  --wa-hover: #20BD5A;

  --text-main: #FFFFFF;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-focus: rgba(212, 175, 55, 0.8);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --font-serif: 'Cinzel', 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.2);
  --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.85);

  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Reset y Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-main);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 100% 40%, rgba(155, 17, 30, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 0% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(75px + var(--safe-bottom));
  /* Espacio para barra móvil */
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select {
  font-family: inherit;
}

/* ==========================================================================
   TOP BAR DE AVISO / ENVIOS
   ========================================================================== */
.top-announcement {
  background: var(--ruby-gradient);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  text-align: center;
  position: relative;
  z-index: 101;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.top-announcement span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   HEADER PRINCIPAL (STICKY)
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  padding: 2px;
  background: var(--gold-gradient);
  box-shadow: 0 0 15px var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
  background: #FFFFFF;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Navegación Desktop */
.nav-desktop {
  display: none;
  gap: 24px;
  align-items: center;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.btn-header-icon:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-glow);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--ruby-accent);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--bg-main);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% {
    transform: scale(0);
  }

  80% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
  max-width: 1280px;
  margin: 12px auto 28px;
  padding: 0 16px;
}

.hero-card {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.24) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(192, 38, 51, 0.26) 0%, transparent 48%),
    radial-gradient(circle at 50% 95%, rgba(124, 58, 237, 0.22) 0%, transparent 55%),
    linear-gradient(145deg, #1E1629 0%, #14121D 52%, #0D0D14 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-lg);
  padding: 28px 20px 36px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(212, 175, 55, 0.12);
  text-align: center;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 320px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, transparent 70%);
  filter: blur(45px);
  pointer-events: none;
}

/* Carrusel continuo de perfumes en la parte superior de la portada */
.hero-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.hero-marquee-track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: max-content;
  animation: heroMarqueeScroll 40s linear infinite;
}

.hero-marquee-wrapper:hover .hero-marquee-track {
  animation-play-state: paused;
}

@keyframes heroMarqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-marquee-track {
    animation: none;
    overflow-x: auto;
    width: 100%;
  }
}

.hero-marquee-item {
  flex: 0 0 auto;
  width: 132px;
  background: linear-gradient(155deg, rgba(212, 175, 55, 0.24) 0%, rgba(28, 22, 16, 0.94) 100%);
  border: 1px solid rgba(243, 229, 171, 0.55);
  border-radius: 16px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #FFFFFF;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 236, 179, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-marquee-item:hover {
  transform: translateY(-4px);
  border-color: #F3E5AB;
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.4);
}

.hero-marquee-thumb-wrap {
  width: 82px;
  height: 82px;
  border-radius: 14px;
  padding: 6px;
  background: radial-gradient(circle at 50% 42%, #FFF3C4 0%, #E6C15A 46%, #A87C14 100%);
  border: 1px solid rgba(255, 236, 179, 0.65);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-marquee-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.06) saturate(1.08);
}

.hero-marquee-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.hero-marquee-brand {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-marquee-name {
  font-size: 0.74rem;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  color: #FFFFFF;
}

@media (min-width: 768px) {
  .hero-headline {
    font-size: 2.7rem;
  }
}

.hero-highlight {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 640px;
  margin: 0 auto 24px;
  color: #FFFFFF;
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 340px;
  margin: 0 auto 28px;
}

@media (min-width: 640px) {
  .hero-buttons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 560px;
  }
}

.hero-buttons .btn {
  width: 100%;
  min-height: 98px;
  padding: 14px 10px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  flex-direction: column;
  gap: 6px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.hero-btn-icon {
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Botones Principales */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0B0B0E;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border-gold);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20BD5A;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(37, 211, 102, 0.45);
}

.btn-maps {
  background: linear-gradient(135deg, #0EA5E9 0%, #2563EB 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-maps:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.5);
  filter: brightness(1.08);
}

.btn-block {
  width: 100%;
}

/* Cinta de Ventajas / Trust Badges */
.trust-ribbon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .trust-ribbon {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: left;
}

.trust-icon {
  font-size: 1.15rem;
}

/* ==========================================================================
   BARRA DE CHIPS DE FILTRO (SWIPEABLE EN MÓVIL)
   ========================================================================== */
.filters-section {
  max-width: 1280px;
  margin: 0 auto 20px;
  padding: 0 16px;
}

.chips-scroll-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}

.chips-scroll-container::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--border-gold);
  color: var(--text-main);
}

.filter-chip.active {
  background: var(--gold-gradient);
  color: #0B0B0E;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

/* ==========================================================================
   BARRA DE BÚSQUEDA Y ORDENAMIENTO
   ========================================================================== */
.toolbar-section {
  max-width: 1280px;
  margin: 0 auto 24px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 640px) {
  .toolbar-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 520px;
}

.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  padding: 12px 42px 12px 42px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--border-focus);
  background: var(--bg-surface-elevated);
  box-shadow: 0 0 15px var(--gold-glow);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.clear-search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  display: none;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.results-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sort-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 9px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

.sort-select:focus {
  border-color: var(--gold-primary);
}

/* ==========================================================================
   CATÁLOGO: GRID DE PRODUCTOS
   ========================================================================== */
.catalog-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 columnas fijas en móvil */
  gap: 14px;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* Tarjeta de Producto */
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.15);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 50%, #202028 0%, #111116 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
}

.product-thumb {
  width: 86%;
  height: 86%;
  object-fit: contain;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
}

.product-card:hover .product-thumb {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: var(--ruby-gradient);
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(155, 17, 30, 0.4);
}

.quick-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 14, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-light);
}

@media (min-width: 900px) {
  .product-card:hover .quick-overlay {
    opacity: 1;
  }
}

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-brand {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.card-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-notes-chips {
  margin-bottom: 6px;
}

.notes-chip {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.notes-preview {
  font-size: 0.72rem;
  color: #FFFFFF;
  line-height: 1.35;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-pricing {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 10px;
}

.price-prefix {
  display: block;
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-amount {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
}

.pill-tag {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: var(--radius-full);
}

.decant-pill {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.full-only-pill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  gap: 6px;
}

.btn-select {
  flex: 1;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  padding: 9px 8px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-select:hover {
  background: var(--gold-gradient);
  color: #0B0B0E;
  border-color: transparent;
}

.btn-quick-add {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gold-gradient);
  color: #0B0B0E;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.btn-quick-add:hover {
  transform: scale(1.08);
}

/* Estado Vacío */
.empty-catalog {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-catalog h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.empty-catalog p {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 20px;
  font-size: 0.9rem;
}

/* ==========================================================================
   MODAL DE PRODUCTO / BOTTOM SHEET EN MÓVIL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  /* Bottom sheet en móvil */
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
    /* Centrado en desktop */
    padding: 24px;
  }
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-modal);
}

@media (min-width: 768px) {
  .modal-sheet {
    border-radius: var(--radius-lg);
    max-width: 820px;
    max-height: 85vh;
    transform: scale(0.95) translateY(0);
  }
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .modal-overlay.active .modal-sheet {
    transform: scale(1) translateY(0);
  }
}

/* Tirador móvil */
.sheet-drag-handle {
  width: 40px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  margin: 12px auto 6px;
}

@media (min-width: 768px) {
  .sheet-drag-handle {
    display: none;
  }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--ruby-accent);
}

.modal-body {
  padding: 16px 20px 32px;
}

@media (min-width: 768px) {
  .modal-body {
    padding: 32px;
  }
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .modal-grid {
    grid-template-columns: 320px 1fr;
    gap: 32px;
  }
}

.modal-img-container {
  background: radial-gradient(circle at 50% 50%, #252530 0%, #111116 100%);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 240px;
}

.modal-hero-img {
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.7));
}

.modal-badge-floating {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-subtle);
  color: var(--gold-light);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.modal-brand-tag {
  color: var(--gold-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-perfume-name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin: 4px 0 8px;
}

.modal-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.stars {
  color: var(--gold-primary);
  font-size: 0.85rem;
}

.rating-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stock-pill {
  font-size: 0.72rem;
  color: #34D399;
  font-weight: 600;
  margin-left: auto;
}

.modal-description {
  color: #FFFFFF;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Pirámide Olfativa */
.olfactory-pyramid {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pyramid-step {
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 480px) {
  .pyramid-step {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }
}

.step-label {
  font-weight: 700;
  color: var(--gold-light);
  flex-shrink: 0;
}

.step-val {
  color: #FFFFFF;
}

/* Selector de Tamaño */
.selector-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.size-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}


.size-option-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.size-option-card:hover {
  border-color: var(--border-gold);
}

.size-option-card.selected {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 15px var(--gold-glow);
}

.opt-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.opt-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 3px 0;
}

.opt-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.opt-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-top: 6px;
}

/* Modal Pricing Box */
.modal-pricing-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.p-sublabel {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.p-final {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
}

.quantity-stepper {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.step-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.step-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.step-num {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
}

/* Modal Action Buttons */
.modal-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.guarantee-mini-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   CARRITO DE COMPRAS / DRAWER
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 210;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  background: var(--bg-surface);
  border-left: 1px solid var(--border-gold);
  width: 100%;
  max-width: 440px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-modal);
}

.cart-drawer-overlay.active .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #FFFFFF;
}

.cart-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.cart-close-btn:hover {
  color: #FFFFFF;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.empty-cart-view {
  text-align: center;
  padding: 50px 20px;
}

.empty-cart-view .empty-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

.empty-cart-view h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.empty-cart-view p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item-row {
  display: flex;
  gap: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  align-items: center;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #111116;
  border-radius: var(--radius-sm);
  padding: 4px;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-size {
  font-size: 0.72rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  background: var(--bg-main);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.cart-qty-ctrl button {
  background: none;
  border: none;
  color: #FFFFFF;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 0.9rem;
}

.cart-qty-ctrl span {
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.88rem;
}

.cart-remove-btn:hover {
  color: var(--ruby-accent);
}

.cart-item-total {
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
  text-align: right;
  flex-shrink: 0;
}

/* Footer del Carrito */
.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.cart-client-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.cart-input {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  padding: 8px 10px;
  font-size: 0.8rem;
  outline: none;
}

.cart-input:focus {
  border-color: var(--gold-primary);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cart-total-line {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.total-gold {
  color: var(--gold-light);
}

.cart-shipping-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* ==========================================================================
   SECCIÓN EDUCATIVA: ¿POR QUÉ DECANTS?
   ========================================================================== */
.why-decants-section {
  max-width: 1280px;
  margin: 30px auto;
  padding: 0 16px;
}

.why-decants-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
}

.section-tag {
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 6px 0 24px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.1rem;
  }
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: left;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefit-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.2s ease;
}

.benefit-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
}

.b-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.b-title {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.b-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-section {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 12px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #070709;
  padding: 48px 20px 32px;
  margin-top: 60px;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-payment-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.payment-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN INFERIOR PARA MÓVILES (FIXED BOTTOM NAV)
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(14, 14, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 12px calc(8px + var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

@media (min-width: 900px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--gold-primary);
}

.nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

/* Botón Flotante de WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: calc(85px + var(--safe-bottom));
  right: 16px;
  z-index: 95;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease;
  animation: pulse 2.5s infinite;
}

@media (min-width: 900px) {
  .floating-whatsapp {
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
  }
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

.floating-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Toast flotante */
.gm-toast {
  position: fixed;
  bottom: calc(90px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-gold);
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 300;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .gm-toast {
    bottom: 30px;
  }
}

.gm-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================
   INSTAGRAM INTEGRATION (GM PERFUMERÍA)
========================================== */
.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.55);
  filter: brightness(1.08);
}

.btn-instagram-header {
  text-decoration: none;
}

.btn-instagram-header:hover {
  border-color: #cc2366 !important;
  color: #FFFFFF !important;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  box-shadow: 0 0 12px rgba(220, 39, 67, 0.5) !important;
}

.floating-instagram {
  position: fixed;
  bottom: calc(145px + var(--safe-bottom));
  right: 16px;
  z-index: 95;
  width: 52px;
  height: 52px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.45);
  transition: transform 0.25s ease;
  animation: pulseInstagram 3s infinite;
  text-decoration: none;
}

@media (min-width: 900px) {
  .floating-instagram {
    bottom: 92px;
    right: 24px;
    width: 58px;
    height: 58px;
  }
}

.floating-instagram:hover {
  transform: scale(1.1);
  color: #FFFFFF;
}

.floating-instagram svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

@keyframes pulseInstagram {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 39, 67, 0.5);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(220, 39, 67, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(220, 39, 67, 0);
  }
}