/* ==========================================================================
   GA Essence Parfums · Lujo Oscuro + Tarjetas 1:1 Fondo Blanco Puro
   ========================================================================== */
:root {
  --bg: #0a0a0e;
  --surface: #12131a;
  --surface-2: #181a23;
  --border: rgba(212, 175, 55, 0.22);
  --border-soft: rgba(255, 255, 255, 0.09);
  --gold: #d4af37;
  --gold-light: #f3d778;
  --text: #f5f5f7;
  --muted: #a1a6b3;
  --wa: #22c55e;
  --wa-dark: #16a34a;
  --danger: #ef4444;
  --white: #ffffff;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top center, #181622 0%, var(--bg) 52%);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 84px;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.container {
  width: min(1160px, 100% - 28px);
  margin: 0 auto;
}

/* ---------- TOP PROMO BAR ---------- */
.top-promo-bar {
  background: linear-gradient(90deg, #b88b1e, #f1d06b, #c59724);
  color: #111;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.top-promo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #111;
  flex-shrink: 0;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 14, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-monogram {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold-light), #9d7718);
  color: #111;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  display: grid;
  place-items: center;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.brand-text strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}
.brand-text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 8px 13px; font-size: 12px; border-radius: 10px; }
.btn-xs { padding: 7px 11px; font-size: 12px; border-radius: 9px; }
.btn-block { width: 100%; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #111;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}
.btn-gold:hover { opacity: 0.94; }

.btn-gold-outline {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border);
  color: var(--gold-light);
}
.btn-gold-outline:hover { background: rgba(212, 175, 55, 0.18); }

.btn-wa {
  background: linear-gradient(135deg, #25d366, var(--wa-dark));
  color: #072211;
  font-weight: 800;
}
.btn-wa:hover { opacity: 0.95; }

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border-soft);
}

.wa-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa);
}

/* ---------- HERO ---------- */
.hero {
  padding: 28px 0 18px;
}
.hero-inner {
  text-align: center;
  max-width: 780px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.hero-title {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 5.4vw, 52px);
  line-height: 1.06;
  font-weight: 700;
  color: var(--white);
}
.strike-muted {
  color: #7c8190;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.gold-text {
  color: var(--gold-light);
}
.hero-copy {
  margin: 0 auto 16px;
  max-width: 620px;
  color: #cfd3de;
  font-size: 14px;
}
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}
.trust-pill {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #e9ecf3;
}
.combo-banner {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(24, 26, 35, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}
.combo-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #111;
  background: var(--gold-light);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.combo-desc {
  margin: 0;
  font-size: 13px;
  color: #eef1f7;
}

/* ---------- CATALOG CONTROLS ---------- */
.catalog-section {
  padding: 18px 0 36px;
}
.catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.section-title {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(26px, 4vw, 34px);
  color: var(--white);
}
.section-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.demo-pill {
  margin: 0;
  font-size: 11px;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
  border: 1px dashed var(--border);
  padding: 5px 10px;
  border-radius: 8px;
}

.controls-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}
.search-wrap {
  position: relative;
}
.search-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.7;
}
.search-wrap input,
#sortSelect {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 13px;
  outline: none;
}
.search-wrap input { padding-left: 36px; }
.search-wrap input:focus,
#sortSelect:focus { border-color: var(--gold); }

.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  white-space: nowrap;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #111;
  border-color: transparent;
}
.chip-promo:not(.active) {
  color: var(--gold-light);
  border-color: var(--border);
}

/* ---------- GRID & TARJETAS 1:1 FONDO BLANCO ---------- */
.perfume-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.p-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.p-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

/* CONTENEDOR 1:1 CUADRADO CON FONDO BLANCO PURO */
.p-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.p-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.p-card:hover .p-media img {
  transform: scale(1.04);
}
.p-placeholder[hidden] { display: none; }
.p-placeholder {
  width: 100%;
  height: 100%;
  border: 1px dashed #d6d9e0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  color: #5b6170;
  background: radial-gradient(circle, #ffffff 30%, #f4f5f7 100%);
}
.p-placeholder .ph-bottle {
  font-size: 32px;
  margin-bottom: 6px;
}
.p-placeholder strong {
  font-size: 12px;
  color: #181a23;
  letter-spacing: 0.04em;
}
.p-placeholder span {
  font-size: 11px;
  color: #6c7280;
  margin-top: 2px;
}

.p-badge-top {
  position: absolute;
  top: 9px;
  left: 9px;
  background: #111217;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.p-badge-gender {
  position: absolute;
  bottom: 9px;
  right: 9px;
  background: rgba(17, 18, 23, 0.88);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.p-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.p-brand {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold);
}
.p-title {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  cursor: pointer;
}
.p-ml {
  font-size: 11px;
  color: var(--muted);
}
.p-desc {
  margin: 0;
  font-size: 12px;
  color: #c7ccd8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.note-tag {
  font-size: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  color: #d4d8e2;
  padding: 2px 7px;
  border-radius: 6px;
}

.p-price-row {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.p-price-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.p-now {
  font-size: 21px;
  font-weight: 800;
  color: var(--gold-light);
}
.p-old {
  font-size: 12px;
  color: #7c8190;
  text-decoration: line-through;
}
.p-save {
  font-size: 10px;
  font-weight: 800;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  padding: 2px 6px;
  border-radius: 6px;
}

.p-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}
.btn-combo.in-cart {
  background: var(--gold-light);
  color: #111;
  border-color: transparent;
}

/* ---------- WHY OPEN BOX ---------- */
.why-openbox {
  padding: 12px 0 38px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 20px;
}
.why-head {
  text-align: center;
  margin-bottom: 20px;
}
.why-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.why-head h2 {
  margin: 4px 0 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(24px, 4vw, 32px);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.why-item {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 16px;
}
.why-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.why-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.why-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.advisor-strip {
  margin-top: 18px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.advisor-strip p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #cbd5e1;
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: #07070a;
  padding: 28px 0 36px;
}
.footer-inner {
  text-align: center;
}
.footer-brand strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}
.footer-brand p {
  margin: 4px 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-pill {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
}
.footer-pill:hover { border-color: var(--gold); }
.footer-copy {
  margin: 0;
  font-size: 12px;
  color: #7c8190;
}

/* ---------- DOCK FLOTANTE COMBO ---------- */
.combo-dock {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 24px));
  background: rgba(18, 19, 26, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 60;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
}
.combo-dock[hidden] { display: none; }
.combo-dock-info strong {
  display: block;
  font-size: 13px;
  color: var(--white);
}
.combo-dock-info span {
  font-size: 12px;
  color: var(--gold-light);
  font-weight: 700;
}
.combo-dock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- MODAL DETALLE ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
}
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  background: #1d1f2a;
  color: #fff;
  border: 1px solid var(--border-soft);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}
.modal-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 18px;
  align-items: start;
}
.modal-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.modal-brand {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.modal-info h3 {
  margin: 4px 0 2px;
  font-size: 22px;
}
.modal-ml {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}
.modal-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.modal-desc {
  margin: 0 0 10px;
  font-size: 13px;
  color: #d6dbe6;
}
.modal-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.modal-guarantee {
  font-size: 11px;
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 12px;
}
.modal-actions {
  display: grid;
  gap: 8px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 16px;
  background: var(--surface);
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius);
  color: var(--muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .perfume-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .controls-bar { grid-template-columns: 1fr; }
  .perfume-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .p-media { padding: 8px; }
  .p-body { padding: 10px; gap: 6px; }
  .p-title { font-size: 13.5px; }
  .p-now { font-size: 18px; }
  .p-actions { grid-template-columns: 1fr; }
  .modal-layout { grid-template-columns: 1fr; }
  .combo-dock {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .combo-dock-actions {
    justify-content: center;
  }
}
