/* ============================================================
   DECANTS MX — Premium Custom CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --gold:        #c9a96e;
  --gold-light:  #e0c898;
  --black:       #1a1a1a;
  --dark:        #2d2d2d;
  --cream:       #faf8f5;
  --beige:       #f2ece4;
  --nude:        #e8ddd0;
  --white:       #ffffff;
  --muted:       #8a8a8a;
  --error:       #c62828;
  --whatsapp:    #25D366;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', sans-serif;

  --shadow:       0 4px 24px rgba(0, 0, 0, 0.07);
  --shadow-md:    0 8px 32px rgba(0, 0, 0, 0.12);
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    24px;
  --ease:         0.28s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--black);
}
.section-title   { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 3rem;
  line-height: 1.75;
}
.gold-line {
  display: inline-block;
  width: 46px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 1.4rem;
}

/* ── Layout ────────────────────────────────────────────────── */
.container   { max-width: 1120px; margin: 0 auto; width: 100%; }
section      { padding: 6rem 2rem; }
.section-center { text-align: center; }
.bg-beige    { background: var(--beige); }
.bg-dark-section { background: var(--black); }

/* ── Promo Bar ─────────────────────────────────────────────── */
.promo-bar {
  background: var(--gold);
  color: var(--black);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  background: rgba(26, 26, 26, 0.97);
  backdrop-filter: blur(12px);
  padding: 1.1rem 2.5rem;
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(201, 169, 110, 0.18);
}
.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  color: var(--gold) !important;
  letter-spacing: 3px;
  font-weight: 700;
}
.navbar-nav {
  display: flex; list-style: none; gap: 2.2rem;
}
.navbar-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: color var(--ease);
}
.navbar-nav a:hover { color: var(--gold); }
.navbar-toggle {
  display: none; background: none; border: none;
  cursor: pointer; flex-direction: column; gap: 5px;
}
.navbar-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: var(--ease);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  background: url('../img/hero-bg.png') center / cover no-repeat;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 6rem 2.5rem;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.80) 0%,
    rgba(0,0,0,0.55) 45%,
    rgba(0,0,0,0.15) 100%
  );
}
.hero-content { position: relative; z-index: 1; max-width: 660px; }
.hero-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.5rem;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  margin-bottom: 2.8rem;
  line-height: 1.85;
}
.hero-deco { display: none; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.4px;
  cursor: pointer; border: none;
  transition: all var(--ease);
}
.btn-primary  { background: var(--gold); color: var(--black); }
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(201,169,110,0.38);
  color: var(--black);
}
.btn-outline  { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.32); }
.btn-outline:hover { background: rgba(255,255,255,0.07); border-color: var(--gold); color: var(--gold); }
.btn-dark     { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #333; transform: translateY(-2px); color: var(--white); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #1ebe5c; transform: translateY(-2px); color: var(--white); }
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.82rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Filter Tabs ────────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: rgba(0,0,0,0.07);
  border-radius: 50px;
  padding: 5px;
  gap: 3px;
  max-width: 100%;
  margin-bottom: 2.75rem;
}
.filter-tab {
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.88rem; font-weight: 500;
  cursor: pointer;
  transition: all var(--ease);
  letter-spacing: 0.2px;
}
.filter-tab.active {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
}
.filter-tab:hover:not(.active) { color: var(--dark); background: rgba(0,0,0,0.05); }
.product-card.hidden { display: none; }

/* ── Products ──────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  position: relative; padding: 0;
  transition: all var(--ease);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(201,169,110,0.15); }

/* Image area */
.product-image-area {
  height: 230px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

/* Fragrance backgrounds — neutros para que las fotos con fondo blanco se vean bien */
.pi-cdni    { background: #f7f7f8; }
.pi-9pm     { background: #f5f5f5; }
.pi-khamrah { background: #faf8f5; }
.pi-yara    { background: #fdf5fb; }
.pi-cloud      { background: #f4f7fd; }
.pi-acqua      { background: #eef4f8; }
.pi-lightblue  { background: #e8f3f9; }
.pi-tomford    { background: #f5f0eb; }
.pi-valentino  { background: #faf5f7; }
.pi-bleu        { background: #edf2f7; }
.pi-sauvage     { background: #f0f4f8; }
.pi-lemale      { background: #f5f0f5; }
.pi-million     { background: #fdf6e3; }
.pi-blackopium  { background: #1a1010; }
.pi-coco        { background: #fdf8f0; }
.pi-daisy       { background: #fffbf0; }
.pi-goodgirl    { background: #0d0d1a; }
.pi-jadore      { background: #fdf5e8; }
.pi-libre       { background: #f5f0e8; }
.pi-si          { background: #faf0f5; }
.pi-flowerbomb  { background: #fdf0f5; }

/* Product photo */
.product-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1rem 1.2rem 0.8rem;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.16));
  transition: transform var(--ease), filter var(--ease), opacity var(--ease);
}
.product-card:hover .product-img {
  transform: scale(1.07) translateY(-6px);
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.24));
}

/* Badges — scoped to product image area (evita conflicto con badges del admin) */
.product-image-area .badge-bestseller {
  position: absolute; top: 11px; left: 11px;
  background: var(--black); color: var(--white);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 0.27rem 0.62rem; border-radius: 4px;
  display: flex; align-items: center; gap: 4px;
  z-index: 1;
}
.product-image-area .badge-bestseller::before { content: '★'; color: var(--gold); }
.product-image-area .badge-nuevo {
  position: absolute; top: 11px; left: 11px;
  background: var(--gold); color: var(--black);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 0.27rem 0.62rem; border-radius: 4px;
  z-index: 1;
}
.product-image-area .badge-agotado {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.72); color: var(--white);
  text-align: center; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 0.48rem; z-index: 1;
}

/* Add button */
.product-add-btn {
  position: absolute; bottom: 11px; right: 11px;
  width: 36px; height: 36px;
  background: var(--black); color: var(--white);
  border: none; border-radius: 50%;
  font-size: 1.35rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none;
  transition: all var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  z-index: 2;
}
.product-add-btn:hover { background: var(--gold); color: var(--black); transform: scale(1.12); }

/* Hover swap — imagen de características al hacer hover sobre la imagen principal */
.product-img-hover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1rem 1.2rem 0.8rem;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.16));
  opacity: 0;
  z-index: 1;
  transition: opacity var(--ease), transform var(--ease), filter var(--ease);
}
.product-image-area.has-hover-img { cursor: zoom-in; }
.product-image-area.has-hover-img:hover .product-img { opacity: 0; }
.product-image-area.has-hover-img:hover .product-img-hover {
  opacity: 1;
  transform: scale(1.07) translateY(-6px);
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.24));
}

/* Lightbox */
.lb-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center; justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(4px);
}
.lb-overlay.open { display: flex; }
.lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: lb-in 0.22s ease;
}
@keyframes lb-in {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.lb-close {
  position: fixed; top: 18px; right: 22px;
  background: rgba(255,255,255,0.12);
  border: none; border-radius: 50%;
  color: #fff; font-size: 1.1rem;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1001;
}
.lb-close:hover { background: rgba(255,255,255,0.25); }

/* Card info */
.product-info { padding: 1rem 1.2rem 1.3rem; text-align: left; }
.product-brand {
  font-size: 0.67rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.2rem;
}
.product-info h3 { font-size: 0.95rem; margin-bottom: 0.2rem; color: var(--black); font-weight: 600; line-height: 1.3; }
.product-family {
  font-size: 0.7rem; color: var(--gold);
  font-weight: 500; margin-bottom: 0.3rem;
}
.product-notes {
  font-size: 0.72rem; color: var(--muted);
  margin-bottom: 0.45rem; line-height: 1.55;
}
.star-rating { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.45rem; }
.stars { color: #f5a623; font-size: 0.8rem; letter-spacing: 1px; }
.rating-num { font-size: 0.74rem; color: var(--muted); }
.product-price-tag { font-size: 0.92rem; font-weight: 600; color: var(--black); }
.product-price-tag .desde { font-size: 0.74rem; font-weight: 400; color: var(--muted); margin-right: 2px; }

/* ── Size options ───────────────────────────────────────────── */
.size-options { display: flex; gap: 0.5rem; margin-top: 0.3rem; }
.size-btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 0.45rem 0.5rem;
  border: 1.5px solid rgba(201,169,110,0.4);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: all var(--ease);
}
.size-btn:hover { background: var(--gold); border-color: var(--gold); }
.size-btn:hover .size-label, .size-btn:hover .size-price { color: var(--black); }
.size-label { font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.size-price { font-size: 0.9rem; font-weight: 700; color: var(--black); }

/* ── Colección divider ──────────────────────────────────────── */
.coleccion-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nude), transparent);
  margin: 4rem 0;
}

/* ── Próximamente grid ──────────────────────────────────────── */
.proxim-grid {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  justify-content: center; margin-bottom: 1.75rem;
}
.proxim-card {
  background: var(--white);
  border: 2px dashed var(--nude);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  text-align: center;
  min-width: 170px;
  opacity: 0.7;
  transition: opacity var(--ease);
}
.proxim-card:hover { opacity: 1; }
.proxim-more { border-color: rgba(201,169,110,0.3); opacity: 0.5; }
.proxim-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.proxim-label { font-size: 0.88rem; font-weight: 600; color: var(--dark); margin-bottom: 0.2rem; }
.proxim-marca { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.5px; }
.proxim-cta-text { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.75rem; }

/* ── Paquetes / Discovery Sets ──────────────────────────────── */
.paquetes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.4rem;
  margin-top: 0.5rem;
  align-items: stretch;
}
.paquete-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  display: flex; flex-direction: column;
  transition: all var(--ease);
  text-align: left;
}
.paquete-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(201,169,110,0.18); }
.paquete-featured {
  background: var(--black);
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  position: relative;
}
.paquete-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--black);
  font-size: 0.67rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 0.28rem 1rem; border-radius: 20px;
  white-space: nowrap;
}
.paquete-tag {
  font-size: 0.67rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.6rem;
}
.paquete-precio {
  font-family: var(--font-heading);
  font-size: 2.4rem; font-weight: 700;
  color: var(--black); line-height: 1;
  margin-bottom: 0.3rem;
}
.paquete-desc {
  font-size: 0.82rem; color: var(--muted);
  margin-bottom: 1.25rem;
}
.paquete-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.55rem;
  margin-bottom: 1.75rem; flex: 1;
}
.paquete-list li {
  font-size: 0.84rem; color: var(--dark);
  display: flex; align-items: center; gap: 0.6rem;
}
.paquete-list li::before {
  content: '✓';
  flex-shrink: 0;
  color: var(--gold); font-weight: 700; font-size: 0.8rem;
}
.paquete-list-dark li { color: rgba(255,255,255,0.75); }

/* ── Floating Discount Badge ────────────────────────────────── */
.floating-discount {
  position: fixed; right: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  background: var(--gold); color: var(--black);
  padding: 1.3rem 0.7rem;
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  box-shadow: -3px 0 16px rgba(0,0,0,0.13);
  transition: padding var(--ease), background var(--ease);
  text-decoration: none;
  display: flex; align-items: center;
}
.floating-discount span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  white-space: nowrap; color: var(--black);
}
.floating-discount:hover { background: var(--gold-light); padding-left: 1rem; }

/* ── Personalization ───────────────────────────────────────── */
.personal-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.personal-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 1.75rem; }
.personal-list li {
  display: flex; align-items: center; gap: 0.9rem;
  color: rgba(255,255,255,0.82); font-size: 1rem;
}
.personal-list li::before {
  content: '';
  flex-shrink: 0; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
}
.personal-visual {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}
.personal-bottle {
  width: 160px; height: 220px;
  background: linear-gradient(160deg, rgba(201,169,110,0.14), rgba(201,169,110,0.03));
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 80px 80px 16px 16px;
  margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 4rem; color: rgba(201,169,110,0.55);
  font-style: italic;
}
.personal-caption {
  font-size: 0.78rem; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
}

/* ── Benefits ──────────────────────────────────────────────── */
.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.75rem; margin-top: 0.5rem;
}
.benefit-card {
  text-align: center; padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: all var(--ease);
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit-icon { font-size: 2.2rem; display: block; margin-bottom: 1.1rem; }
.benefit-card h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.benefit-card p  { font-size: 0.88rem; color: var(--muted); }

/* ── Gallery ───────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-top: 0.5rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 190px;
  transition: all var(--ease);
  cursor: pointer;
}
.gallery-item.large { grid-row: span 2; min-height: 400px; }
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.gallery-placeholder { text-align: center; color: rgba(45,45,45,0.35); }
.gallery-placeholder .icon { font-size: 2.2rem; display: block; margin-bottom: 0.4rem; }
.gallery-placeholder span { font-size: 0.73rem; letter-spacing: 1.2px; text-transform: uppercase; }
.gi-1 { background: linear-gradient(135deg, #e8ddd0, #d4c4b0); }
.gi-2 { background: linear-gradient(135deg, #f0e8dc, #e0d0c0); }
.gi-3 { background: linear-gradient(135deg, #ddd0c0, #cdc0aa); }
.gi-4 { background: linear-gradient(135deg, #ede4d8, #ddd0c0); }
.gi-5 { background: linear-gradient(135deg, #f5efe8, #e8ddd0); }

/* ── Contact ───────────────────────────────────────────────── */
.contact-section {
  background: linear-gradient(135deg, #141414 0%, #241a0e 100%);
  text-align: center; position: relative; overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,169,110,0.09) 0%, transparent 65%);
}
.contact-inner { position: relative; z-index: 1; }
.contact-section h2   { color: var(--white); }
.contact-section p    { color: rgba(255,255,255,0.62); font-size: 1.05rem; max-width: 480px; margin: 1rem auto 2.5rem; }
.social-handle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--gold); font-size: 0.9rem; margin-top: 1.5rem;
  transition: color var(--ease);
}
.social-handle:hover { color: var(--gold-light); }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: #0d0d0d;
  color: rgba(255,255,255,0.5);
  padding: 2.5rem 2rem; text-align: center;
}
footer .brand {
  font-family: var(--font-heading);
  font-size: 1.25rem; color: var(--gold);
  letter-spacing: 2.5px; display: block;
  margin-bottom: 0.5rem;
}
footer p { font-size: 0.8rem; }

/* ── Form Page ─────────────────────────────────────────────── */
.form-page { min-height: 100vh; background: var(--cream); padding: 3rem 2rem; }
.form-header { text-align: center; margin-bottom: 2.5rem; }
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  max-width: 720px; margin: 0 auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.83rem; font-weight: 500;
  color: var(--dark); letter-spacing: 0.2px;
}
.required { color: var(--gold); margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 0.78rem 1rem;
  border: 1.5px solid var(--nude);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.94rem; color: var(--dark);
  background: var(--cream);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}
.form-control:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.13);
}
.form-control.is-invalid { border-color: var(--error); }
.field-error { font-size: 0.78rem; color: var(--error); }
select.form-control {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a96e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
textarea.form-control { resize: vertical; min-height: 96px; }
.form-section-title {
  grid-column: 1 / -1;
  font-family: var(--font-heading);
  font-size: 0.95rem; color: var(--gold);
  letter-spacing: 0.5px; margin-top: 0.5rem;
}
.form-divider {
  grid-column: 1 / -1;
  height: 1px; background: var(--nude); margin: 0.2rem 0;
}
.form-submit { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 0.75rem; }
.form-note   { grid-column: 1 / -1; font-size: 0.76rem; color: var(--muted); text-align: center; }

/* ── Confirmation ──────────────────────────────────────────── */
.confirmation-page {
  min-height: 100vh; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 2rem;
}
.confirmation-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 520px; width: 100%; text-align: center;
}
.check-circle {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2rem;
  font-size: 1.75rem; color: var(--black);
  animation: popIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.confirmation-card h1 { font-size: 1.75rem; margin-bottom: 0.6rem; }
.confirmation-card .subtitle { color: var(--muted); font-size: 0.93rem; margin-bottom: 2rem; }
.order-summary {
  background: var(--beige);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  text-align: left; margin-bottom: 2rem;
}
.order-summary-item {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--nude);
  font-size: 0.88rem;
}
.order-summary-item:last-child { border-bottom: none; }
.order-summary-item .label { color: var(--muted); }
.order-summary-item .value { font-weight: 500; }
.order-id { font-family: var(--font-heading); font-size: 1.4rem; color: var(--gold); }

/* ── Admin ─────────────────────────────────────────────────── */
.admin-page { min-height: 100vh; background: #f5f5f5; padding: 2rem; }
.admin-header {
  background: var(--black); color: var(--white);
  padding: 1.2rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: var(--radius); margin-bottom: 1.75rem;
}
.admin-header h1 { color: var(--white); font-size: 1.2rem; }
.admin-brand { font-family: var(--font-heading); color: var(--gold); font-style: italic; font-size: 1.1rem; }
.admin-card  { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.admin-card-header {
  padding: 1.2rem 1.75rem;
  border-bottom: 1px solid #ececec;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-card-header h2 { font-size: 1rem; font-weight: 600; color: var(--dark); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th {
  background: var(--beige); padding: 0.8rem 1.2rem;
  text-align: left; font-size: 0.72rem;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--muted);
}
.admin-table td {
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid #f0f0f0;
  color: var(--dark); vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }
.admin-link { color: var(--gold); font-weight: 500; font-size: 0.83rem; }
.admin-link:hover { text-decoration: underline; }
.badge {
  display: inline-flex; padding: 0.28rem 0.75rem;
  border-radius: 20px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2px;
}
.badge-nuevo      { background: #e3f2fd; color: #1565c0; }
.badge-revision   { background: #fff8e1; color: #e65100; }
.badge-confirmado { background: #e8f5e9; color: #2e7d32; }
.badge-cancelado  { background: #fce4ec; color: #c62828; }
.badge-entregado  { background: #f3e5f5; color: #6a1b9a; }
.badge-activo     { background: #e8f5e9; color: #2e7d32; }
.badge-inactivo   { background: #fce4ec; color: #c62828; }

/* Toggle buttons en tabla de productos admin */
.btn-toggle {
  border: none; border-radius: 6px; padding: 0.32rem 0.85rem;
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
  transition: opacity 0.15s;
}
.btn-toggle:hover { opacity: 0.8; }
.btn-toggle-off { background: #fce4ec; color: #c62828; }
.btn-toggle-on  { background: #e8f5e9; color: #2e7d32; }
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; padding: 2rem;
}
.detail-field { display: flex; flex-direction: column; gap: 0.3rem; }
.detail-field.full-width { grid-column: 1 / -1; }
.field-label {
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted);
}
.field-value { font-size: 0.93rem; color: var(--dark); }

/* ── Cart ──────────────────────────────────────────────────── */
.cart-nav-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.8); position: relative;
  display: flex; align-items: center; padding: 0.2rem;
  transition: color var(--ease);
}
.cart-nav-btn:hover { color: var(--gold); }
.cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--gold); color: var(--black);
  font-size: 0.62rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.48);
  z-index: 1100; opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 390px; max-width: 95vw;
  background: var(--white); z-index: 1200;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 40px rgba(0,0,0,0.14);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--nude);
}
.cart-header h3 { font-size: 1rem; font-weight: 600; color: var(--black); }
.cart-close {
  background: none; border: none; font-size: 1rem;
  cursor: pointer; color: var(--muted); padding: 0.3rem;
  line-height: 1; transition: color var(--ease);
}
.cart-close:hover { color: var(--dark); }
.cart-items { flex: 1; overflow-y: auto; padding: 0.5rem 1.5rem; }
.cart-empty {
  text-align: center; color: var(--muted);
  font-size: 0.88rem; line-height: 1.8;
  padding: 3rem 1rem;
}
.cart-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 1rem 0;
  border-bottom: 1px solid #f2f2f2;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.86rem; font-weight: 500; color: var(--dark);
  margin-bottom: 0.15rem; line-height: 1.3;
}
.cart-item-unit { font-size: 0.76rem; color: var(--muted); }
.cart-item-controls { display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--nude); background: transparent;
  font-size: 1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark); transition: all var(--ease);
}
.qty-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.qty-num { font-size: 0.9rem; font-weight: 600; min-width: 22px; text-align: center; }
.remove-btn {
  background: none; border: none; color: var(--muted);
  font-size: 0.78rem; cursor: pointer; padding: 0.25rem;
  margin-left: 0.1rem; transition: color var(--ease);
}
.remove-btn:hover { color: var(--error); }
.cart-footer {
  padding: 1.2rem 1.5rem 1.6rem;
  border-top: 1px solid var(--nude);
  display: flex; flex-direction: column; gap: 1rem;
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.9rem; color: var(--muted);
}
.cart-total-row strong { font-size: 1.25rem; color: var(--black); font-family: var(--font-heading); }
.cart-footer-note { text-align: center; font-size: 0.73rem; color: var(--muted); }
.cart-total-final strong { font-size: 1.35rem; color: var(--black); }
.cart-cupon-section { display: flex; flex-direction: column; gap: 0.4rem; }
.cart-cupon-row { display: flex; gap: 0.5rem; }
.cupon-input {
  flex: 1; padding: 0.5rem 0.75rem; border: 1.5px solid #e0e0e0; border-radius: 8px;
  font-size: 0.82rem; font-family: inherit; outline: none; letter-spacing: 0.5px;
  transition: border-color 0.2s;
}
.cupon-input:focus { border-color: var(--gold); }
.cupon-apply-btn {
  padding: 0.5rem 1rem; background: #1a1a1a; color: #fff; border: none; border-radius: 8px;
  font-size: 0.8rem; font-family: inherit; cursor: pointer; font-weight: 600; white-space: nowrap;
  transition: background 0.2s;
}
.cupon-apply-btn:hover { background: var(--gold); }
.cupon-aplicado-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #e8f5e9; border-radius: 8px; padding: 0.45rem 0.75rem;
  font-size: 0.82rem; font-weight: 600; color: #2e7d32;
}
.cupon-quitar-btn {
  background: none; border: none; cursor: pointer; color: #2e7d32;
  font-size: 0.85rem; line-height: 1; padding: 0 0.2rem;
}
.cupon-msg { font-size: 0.78rem; }
.cupon-error { color: #c62828; }
.cart-toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--black); color: var(--white);
  padding: 0.7rem 1.4rem; border-radius: 30px;
  font-size: 0.83rem; font-weight: 500;
  z-index: 2000; opacity: 0; pointer-events: none;
  transition: all 0.28s ease; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Cart summary on form page */
.cart-summary-form {
  background: var(--beige); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; margin-bottom: 1.75rem;
}
.cart-summary-form h4 {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.cart-form-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0; border-bottom: 1px solid var(--nude);
  font-size: 0.88rem;
}
.cart-form-item:last-of-type { border-bottom: none; }
.cart-form-item-name { color: var(--dark); font-weight: 500; }
.cart-form-item-sub { color: var(--muted); font-size: 0.8rem; margin-top: 0.1rem; }
.cart-form-price { font-weight: 600; color: var(--black); white-space: nowrap; }
.cart-form-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.9rem; padding-top: 0.9rem;
  border-top: 2px solid var(--nude);
  font-size: 0.92rem;
}
.cart-form-total-row strong { font-size: 1.15rem; font-family: var(--font-heading); }
.cart-form-edit {
  display: inline-block; margin-top: 0.8rem;
  font-size: 0.78rem; color: var(--gold); font-weight: 500;
}
.cart-form-edit:hover { text-decoration: underline; }

/* ── Package Banner ─────────────────────────────────────────── */
.pkg-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1050;
  background: var(--black);
  border-top: 2px solid var(--gold);
  padding: 0.9rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  flex-wrap: wrap;
}
.pkg-banner.visible { transform: translateY(0); }
.pkg-banner-left { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.pkg-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
}
.pkg-dots { display: flex; gap: 6px; align-items: center; }
.pkg-dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: transparent;
  transition: all 0.2s ease;
}
.pkg-dot.filled { background: var(--gold); border-color: var(--gold); }
.pkg-dot.locked { background: var(--gold); border-color: var(--gold); opacity: 0.6; }
.pkg-progress {
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
}
.pkg-progress strong { color: var(--white); }
.pkg-banner-right { display: flex; align-items: center; gap: 0.75rem; }
.pkg-cancel-btn {
  background: none; border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5); font-size: 0.78rem;
  padding: 0.45rem 0.9rem; border-radius: 6px;
  cursor: pointer; transition: all var(--ease);
}
.pkg-cancel-btn:hover { border-color: var(--error); color: var(--error); }
.pkg-proceed-btn {
  background: var(--gold); color: var(--black);
  border: none; font-size: 0.88rem; font-weight: 700;
  padding: 0.6rem 1.5rem; border-radius: 8px;
  cursor: pointer; transition: all var(--ease);
  display: none; text-decoration: none;
  align-items: center;
}
.pkg-proceed-btn.ready { display: inline-flex; }
.pkg-proceed-btn:hover { background: var(--gold-light); color: var(--black); }

/* Box options on form (paquete regalo) */
.box-options { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }
.box-option input[type="radio"] { display: none; }
.box-option-label {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.4rem; padding: 0.9rem 1.2rem; border-radius: var(--radius-sm);
  border: 2px solid var(--nude); background: var(--cream);
  cursor: pointer; transition: all var(--ease);
  font-size: 0.83rem; font-weight: 500;
}
.box-option input[type="radio"]:checked + .box-option-label {
  border-color: var(--gold); background: rgba(201,169,110,0.08);
  color: var(--black);
}
.box-option-icon { font-size: 1.5rem; }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { opacity: 0; animation: fadeUp 0.65s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.22s; }
.fade-up-3 { animation-delay: 0.36s; }
.fade-up-4 { animation-delay: 0.5s; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { position: relative; padding: 1rem 1.5rem; }
  .navbar-nav {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(26,26,26,0.98);
    flex-direction: column;
    padding: 1.5rem 2rem; gap: 1.25rem;
    border-top: 1px solid rgba(201,169,110,0.2);
  }
  .navbar-nav.open { display: flex; }
  .navbar-toggle { display: flex; }

  .hero { min-height: auto; padding: 5rem 1.5rem 4rem; }
  .hero-deco { display: none; }

  .personal-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .floating-discount { display: none; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.large { grid-row: span 1; min-height: 190px; }

  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width,
  .form-section-title,
  .form-divider,
  .form-submit,
  .form-note { grid-column: 1; }
  .form-card { padding: 2rem 1.5rem; }

  .detail-grid { grid-template-columns: 1fr; }
  .detail-field.full-width { grid-column: 1; }

  section { padding: 4rem 1.5rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .admin-page { padding: 1rem; }
  .admin-header { padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
  .admin-header h1 { font-size: 1rem; }
  .admin-card-header {
    flex-direction: column; align-items: flex-start;
    gap: 0.4rem; padding: 1rem 1.25rem;
  }
  .admin-table th,
  .admin-table td { padding: 0.75rem 0.85rem; font-size: 0.82rem; }
}
