/* Les Parfums de la blonde — Design System */

:root {
  /* Colors — Ivory warm palette */
  --ivory: #faf6f1;
  --ivory-soft: #f3ede3;
  --ivory-deep: #ebe2d3;
  --gold: #c9a961;
  --gold-deep: #a8864a;
  --gold-soft: #dcc38a;
  --rose: #e8d4c8;
  --rose-soft: #f0e0d5;
  --rose-deep: #d4b3a4;
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --ink-muted: #6b6b6b;
  --ink-line: #d8ccba;
  --jade: #6b8578;

  /* Type */
  --serif: 'Cormorant Garamond', 'Cormorant', Didot, 'Times New Roman', serif;
  --display-elegant: 'Italiana', 'Cormorant', Didot, serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --mont: 'Montserrat', 'Inter', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  /* Pastel accents */
  --pastel-rose: #f5e3dc;
  --pastel-rose-deep: #ecd0c4;
  --pastel-cream: #f7eee2;
  --pastel-blush: #fae5dc;

  /* Scale */
  --hairline: 1px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

/* Type utilities */
.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow-ink { color: var(--ink-soft); }
.eyebrow-ivory { color: var(--ivory); }

.display {
  font-family: var(--display-elegant);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.02;
}
.display-classic {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
}

.caps-sm {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
}

.roman {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ivory);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ivory); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ivory);
}
.btn-gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); }

.btn-ivory {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}
.btn-ivory:hover { background: var(--gold); color: var(--ivory); border-color: var(--gold); }

/* Link */
.link-gold {
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: all 0.3s ease;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.link-gold:hover { color: var(--ink); border-color: var(--ink); }

/* Hairline divider */
.hairline {
  height: 1px;
  background: var(--ink-line);
  width: 100%;
}
.hairline-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

/* Ornament */
.diamond {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
  margin: 0 10px;
  vertical-align: middle;
}

/* Placeholder imagery (stripe pattern) */
.placeholder {
  background:
    repeating-linear-gradient(135deg,
      transparent 0px,
      transparent 14px,
      rgba(201, 169, 97, 0.08) 14px,
      rgba(201, 169, 97, 0.08) 15px
    ),
    linear-gradient(180deg, var(--ivory-soft) 0%, var(--ivory-deep) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.placeholder-dark {
  background:
    repeating-linear-gradient(135deg,
      transparent 0px,
      transparent 14px,
      rgba(201, 169, 97, 0.12) 14px,
      rgba(201, 169, 97, 0.12) 15px
    ),
    linear-gradient(180deg, #1a1410 0%, #0d0907 100%);
  color: var(--gold-soft);
}
.placeholder-rose {
  background:
    repeating-linear-gradient(135deg,
      transparent 0px,
      transparent 14px,
      rgba(212, 179, 164, 0.15) 14px,
      rgba(212, 179, 164, 0.15) 15px
    ),
    linear-gradient(180deg, var(--rose-soft) 0%, var(--rose) 100%);
}
.placeholder-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  opacity: 0.65;
  padding: 8px 14px;
  border: 1px solid var(--gold);
  background: rgba(250, 246, 241, 0.85);
  text-align: center;
  max-width: 80%;
  line-height: 1.4;
}
.placeholder-dark .placeholder-label {
  background: rgba(26, 20, 16, 0.6);
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}

/* Bottle silhouette placeholder */
.bottle-silhouette {
  width: 40%;
  height: 70%;
  position: relative;
  margin: auto;
}
.bottle-silhouette::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(201, 169, 97, 0.12) 0%,
    rgba(201, 169, 97, 0.28) 40%,
    rgba(201, 169, 97, 0.18) 100%);
  border-radius: 4px 4px 8px 8px;
  clip-path: polygon(
    30% 0%, 70% 0%, 70% 8%, 78% 8%, 78% 18%, 92% 22%, 92% 100%, 8% 100%, 8% 22%, 22% 18%, 22% 8%, 30% 8%
  );
  border: 1px solid rgba(201, 169, 97, 0.4);
}

/* Header / Nav */
.nav-top {
  padding: 12px 40px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.nav-top span { opacity: 0.85; }

.nav-main {
  padding: 22px 40px;
  background: var(--ivory);
  border-bottom: 1px solid var(--ink-line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-link {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.nav-link:hover { color: var(--gold-deep); }

/* Larger primary category nav (home) */
.nav-link--lg {
  position: relative;
  font-size: 13.5px;
  letter-spacing: 0.32em;
  font-weight: 500;
  color: var(--ink);
  padding: 4px 2px 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.nav-link--lg .nav-link__rule {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: center;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), width 0.45s ease;
}
.nav-link--lg:hover { color: var(--gold-deep); }
.nav-link--lg:hover .nav-link__rule { opacity: 1; transform: scaleX(1); width: 46px; }
.nav-link--lg[data-active='true'] { color: var(--gold-deep); }
.nav-link--lg[data-active='true'] .nav-link__rule { opacity: 1; transform: scaleX(1); width: 46px; }

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-logo-text {
  font-family: var(--display-elegant);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--ink);
  white-space: nowrap;
}
.nav-logo-text em {
  font-style: italic;
  color: var(--gold-deep);
}
.nav-utils {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  align-items: center;
}
.nav-icon {
  cursor: pointer;
  color: var(--ink);
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 6px;
  position: relative;
}
.nav-icon:hover { color: var(--gold-deep); }
.nav-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: var(--gold);
  color: var(--ivory);
  font-size: 9px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  letter-spacing: 0;
}

/* Footer */
.footer {
  color: var(--ivory);
  padding: 80px 40px 30px;
}

/* Scroll hide */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--ink-line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* SVG icon base */
.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.2; }

/* Section frame */
.section {
  padding: 120px 40px;
}
.section-tight { padding: 80px 40px; }

.container {
  max-width: 1440px;
  margin: 0 auto;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.reveal { animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) both; }
.reveal-slow { animation: fadeUp 1.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.fade-in { animation: fadeIn 1.2s ease both; }


/* ============================================
   Gold Shimmer — flowing golden glitter streams
   like a champagne / sparkle fabric on black
   ============================================ */
.bg-shimmer {
  background:
    radial-gradient(ellipse 60% 80% at 18% 12%, rgba(201,169,97,0.18), transparent 60%),
    radial-gradient(ellipse 55% 70% at 88% 92%, rgba(201,169,97,0.14), transparent 60%),
    linear-gradient(135deg, #050202 0%, #0a0604 45%, #0d0805 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.bg-shimmer::before,
.bg-shimmer::after {
  content: '';
  position: absolute;
  inset: -8%;
  pointer-events: none;
  background-image: url('gold-shimmer.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.bg-shimmer::before {
  animation: shimmer-drift 22s ease-in-out infinite alternate, shimmer-twinkle 3.2s ease-in-out infinite alternate;
}
.bg-shimmer::after {
  transform: scaleX(-1) scale(1.1);
  opacity: 0.6;
  animation: shimmer-drift-rev 28s ease-in-out infinite alternate, shimmer-twinkle-2 4.5s ease-in-out infinite alternate;
}
.bg-shimmer > * { position: relative; z-index: 1; }

@keyframes shimmer-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-30px, -18px, 0) scale(1.04); }
}
@keyframes shimmer-drift-rev {
  0%   { transform: scaleX(-1) scale(1.1) translate3d(0, 0, 0); }
  100% { transform: scaleX(-1) scale(1.13) translate3d(-22px, -14px, 0); }
}
@keyframes shimmer-twinkle {
  from { opacity: 0.7; filter: brightness(1); }
  to   { opacity: 1; filter: brightness(1.15); }
}
@keyframes shimmer-twinkle-2 {
  from { opacity: 0.45; }
  to   { opacity: 0.75; }
}

/* Subtitle Montserrat */
.subtitle-mont {
  font-family: var(--mont) !important;
  font-weight: 300;
  letter-spacing: 0.005em;
}
.subtitle-mont em,
.subtitle-mont .serif-italic {
  font-family: var(--serif) !important;
  font-style: italic;
  font-weight: 400;
}

/* ----- Ficha de producto (PDP) — galería estilo ecommerce de lujo ----- */
.pdp-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
/* Imagen principal: cuadrada, fondo blanco, frasco centrado sin recorte */
.pdp-image {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid rgba(15, 13, 11, 0.07);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 12%;
  box-sizing: border-box;
  display: block;
}
/* Miniaturas: mismo tamaño, fondo blanco, centradas, borde suave = seleccionada */
.pdp-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.pdp-thumb {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  background: #ffffff;
  border: 2px solid rgba(15, 13, 11, 0.08);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 15%;
  box-sizing: border-box;
  display: block;
}
.pdp-thumb.is-selected {
  border-color: var(--gold);
  box-shadow: 0 3px 12px rgba(168, 134, 74, 0.2);
}

/* Mobile: la ficha pasa a una sola columna */
@media (max-width: 860px) {
  .pdp-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ----- Tarjetas de producto — criterio uniforme ecommerce premium ----- */
.product-card {
  background: #ffffff;
  border: 1px solid rgba(15, 13, 11, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 13, 11, 0.05);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(15, 13, 11, 0.13);
}
/* Zona de imagen: cuadrada 1:1, fondo blanco, frasco centrado sin recortar */
.product-card .product-image {
  aspect-ratio: 1 / 1 !important;
  background: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card .product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 14% !important;
  box-sizing: border-box !important;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
  filter: none !important;
  transform: scale(1) !important;
}
.product-card:hover .product-image img {
  transform: scale(1.06) !important;
}

/* ============================================================
   RESPONSIVE MOBILE  ·  ≤768px (no afecta desktop)
   El diseño usa muchos estilos inline; por eso varios overrides
   usan !important y selectores por atributo [style*=].
   ============================================================ */
@media (max-width: 768px) {

  /* ---- Layout general ---- */
  .section { padding: 56px 16px !important; }
  .section-tight { padding: 40px 16px !important; }
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  img { max-width: 100%; height: auto; }

  /* Achicar títulos grandes (font-size inline) para que no se corten */
  [style*="font-size: 102px"] { font-size: 40px !important; }
  [style*="font-size: 88px"]  { font-size: 38px !important; }
  [style*="font-size: 72px"]  { font-size: 34px !important; }
  [style*="font-size: 64px"]  { font-size: 32px !important; }
  [style*="font-size: 56px"]  { font-size: 30px !important; }
  [style*="font-size: 52px"]  { font-size: 29px !important; }
  [style*="font-size: 48px"]  { font-size: 28px !important; }
  [style*="font-size: 44px"]  { font-size: 27px !important; }
  [style*="font-size: 260px"] { font-size: 110px !important; }

  /* Botones cómodos para el dedo (mín 44px de alto) */
  .btn { min-height: 46px; display: inline-flex !important; align-items: center; justify-content: center; }
  .nav-icon { min-width: 44px; min-height: 44px; }

  /* ---- Grillas de sección a 2 columnas ---- */
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns: repeat(5"],
  [style*="grid-template-columns: repeat(6"] { grid-template-columns: repeat(2, 1fr) !important; }

  /* ---- Layouts / formularios de 2-3 columnas a una sola ---- */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.4fr"],
  [style*="grid-template-columns: 2fr"],
  [style*="grid-template-columns: 200px"],
  [style*="grid-template-columns: 220px"],
  [style*="grid-template-columns: 240px"],
  [style*="grid-template-columns: 260px"],
  [style*="grid-template-columns: 280px"],
  [style*="grid-template-columns: 300px"],
  [style*="grid-template-columns: auto 1fr"] { grid-template-columns: 1fr !important; }

  /* ---- Tarjetas de producto: 2 por fila (gana sobre lo anterior) ---- */
  *:has(> .product-card) { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .product-card h3 { font-size: 16px !important; }
  .product-card .display { font-size: 16px !important; }

  /* ---- Header / Nav (hamburguesa) ---- */
  .nav-top { padding: 9px 14px !important; gap: 10px !important; font-size: 9px !important; }
  .nav-top span { min-width: 0 !important; }
  .nav-logo-row { padding: 16px 14px 10px !important; gap: 8px !important; }
  .nav-logo-text { font-size: 16px !important; white-space: normal !important; line-height: 1.2; }
  .nav-logo-row img { width: 46px !important; height: 46px !important; }
  .nav-icons { gap: 10px !important; }
  .nav-burger { display: inline-flex !important; align-items: center; justify-content: center; }
  .nav-cat-row { display: none !important; }
  .nav-cat-row.is-open { display: flex !important; padding: 8px 14px 14px !important; }
  .nav-categories { flex-direction: column !important; gap: 2px !important; width: 100%; align-items: stretch !important; }
  .nav-categories .nav-link {
    padding: 14px 6px !important; text-align: center; width: 100%;
    border-bottom: 1px solid rgba(15,13,11,0.07);
  }

  /* ---- Hero vertical ---- */
  .hero-v1 { height: auto !important; min-height: 0 !important; }
  .hero-v1__text {
    position: static !important; width: 100% !important;
    padding: 80px 18px 8px !important;
  }
  .hero-v1__cta { flex-direction: column !important; gap: 12px !important; }
  .hero-v1__cta .btn { width: 100%; }
  .hero-v1__media {
    position: static !important; width: 100% !important;
    min-height: 0 !important; padding: 16px 0 64px !important;
  }
  .hero-v1__media img { width: 230px !important; height: 230px !important; }
  .hero-v1__label, .hero-v1__edition { display: none !important; }
  .hero-v1__strip {
    position: static !important; padding: 14px 16px !important;
    flex-wrap: wrap !important; gap: 6px !important; justify-content: center !important;
    text-align: center;
  }

  /* ---- Chatbot: panel adaptado al ancho del teléfono (no desborda) ---- */
  .chatbot-panel {
    width: auto !important; left: 12px !important; right: 12px !important;
    bottom: 92px !important; height: 70vh !important; max-height: 560px !important;
  }

  /* ---- Ficha de producto a una columna (refuerza la regla a 860) ---- */
  .pdp-main { grid-template-columns: 1fr !important; gap: 28px !important; }
}

/* En desktop el botón hamburguesa nunca se ve */
.nav-burger { display: none; }

