@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,300;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Cinzel:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #f8f4eb;          /* Warm Ecru / Alabaster Linen from Logo */
  --bg-surface: #ffffff;          /* Pure Crisp Card Surface */
  --bg-subtle: #f1ebdE;           /* Muted Stone */
  --bg-tint: rgba(122, 125, 88, 0.06);

  --olive-primary: #7a7d58;       /* Exact Olive Sage from Logo */
  --olive-dark: #2e3322;          /* Deep Forest Espresso */
  --olive-deep: #1d2116;          /* Noir Olive */
  --olive-light: #9fa281;         /* Muted Sage */
  --olive-border: rgba(122, 125, 88, 0.22);
  --border-hairline: #e4dfd3;     /* Minimalist Architectural Line */

  --text-main: #181b13;           /* High contrast primary text */
  --text-muted: #5e6251;          /* Editorial body text */
  --text-subtle: #898d7d;         /* Small metadata */
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* Typography: 100% Lato (Estilo Falabella) */
.font-serif-luxury {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  letter-spacing: -0.015em;
}

.font-cinzel {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.falabella-brand {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  color: #707070;
  letter-spacing: 0.05em;
}

.falabella-title {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: #181b13;
}

.falabella-divider {
  color: #b0b0b0;
  font-weight: 300;
  margin: 0 5px;
}

/* Minimalist lines y spacing */
.tracking-widest-editorial {
  letter-spacing: 0.25em;
}

.tracking-ultra {
  letter-spacing: 0.35em;
}

/* Minimalist Card y Panels */
.minimal-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.minimal-card:hover {
  border-color: var(--olive-primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(46, 51, 34, 0.06);
}

/* Card Price Styling - Garantía de una sola línea sin desbordes */
.card-price-display {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow: visible;
  letter-spacing: -0.015em;
}

.card-format-tag {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero Background with Perfume Image */
.hero-perfume-banner {
  position: relative;
  background-color: #f8f4eb;
  background-image: 
    linear-gradient(to right, rgba(248, 244, 235, 0.98) 0%, rgba(248, 244, 235, 0.92) 42%, rgba(248, 244, 235, 0.55) 75%, rgba(248, 244, 235, 0.15) 100%),
    url('../assets/hero_perfume_bg.jpg');
  background-size: cover;
  background-position: 85% center;
  background-repeat: no-repeat;
}

@media (max-width: 1024px) {
  .hero-perfume-banner {
    background-image: 
      linear-gradient(to bottom, rgba(248, 244, 235, 0.97) 0%, rgba(248, 244, 235, 0.91) 65%, rgba(248, 244, 235, 0.65) 100%),
      url('../assets/hero_perfume_bg.jpg');
    background-position: center bottom;
  }
}


/* Header Glass Minimal */
.glass-header {
  background: rgba(248, 244, 235, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}

/* Custom Scrollbar Minimal */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f8f4eb;
}

::-webkit-scrollbar-thumb {
  background: #cfc8b8;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--olive-primary);
}

/* Minimal Segmented Size Selector */
.size-pill {
  transition: all 0.2s ease;
  border: 1px solid var(--border-hairline);
  background: #faf7f2;
  color: var(--text-muted);
}

.size-pill:hover {
  border-color: var(--olive-primary);
  color: var(--text-main);
  background: #ffffff;
}

.size-pill.active {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(46, 51, 34, 0.15);
}

/* Decant Architectural Visualizer */
.vial-container-minimal {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  background: #faf7f2;
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 20px;
}

.vial-graphic-minimal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.4s ease;
}

.vial-body-minimal {
  border: 1.5px solid var(--olive-dark);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.vial-liquid-minimal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(122, 125, 88, 0.55), rgba(122, 125, 88, 0.2));
  transition: height 0.5s ease;
}

.vial-cap-minimal {
  border-radius: 1px;
  background: var(--olive-dark);
}

/* Minimal Olfactory Pyramid */
.pyramid-level-minimal {
  border: 1px solid var(--border-hairline);
  background: #ffffff;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 6px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pyramid-level-minimal:hover {
  border-color: var(--olive-primary);
  transform: translateX(3px);
}

.pyramid-top-minimal {
  border-left: 3px solid var(--olive-light);
}

.pyramid-heart-minimal {
  border-left: 3px solid var(--olive-primary);
}

.pyramid-base-minimal {
  border-left: 3px solid var(--olive-dark);
}

/* Minimalist Button Styling */
.btn-primary-olive {
  background: var(--olive-dark);
  color: #ffffff;
  transition: all 0.2s ease;
}

.btn-primary-olive:hover {
  background: #414831;
  box-shadow: 0 4px 12px rgba(46, 51, 34, 0.18);
}

.btn-outline-olive {
  border: 1px solid var(--border-hairline);
  color: var(--text-main);
  background: #ffffff;
  transition: all 0.2s ease;
}

.btn-outline-olive:hover {
  border-color: var(--olive-primary);
  background: #faf7f2;
}

/* Minimal Backdrop y Toasts */
.modal-backdrop-minimal {
  background: rgba(24, 27, 19, 0.65);
  backdrop-filter: blur(8px);
}

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--olive-dark);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 18px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(29, 33, 22, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Image zoom minimal */
.perfume-card-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.minimal-card:hover .perfume-card-img {
  transform: scale(1.04);
}

/* ===================================================
   LOGO DE CARGA LUXURY (PRELOADER) - AUREN PARFUMS
   =================================================== */
#auren-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #f8f4eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#auren-preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.preloader-ring-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

/* Aura ambiental de fondo */
.preloader-aura {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(122, 125, 88, 0.18) 0%, rgba(248, 244, 235, 0) 70%);
  border-radius: 50%;
  animation: auraBreath 3s ease-in-out infinite;
}

/* Anillo estático fino */
.preloader-circle-base {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(122, 125, 88, 0.18);
}

/* Arco giratorio dorado/oliva */
.preloader-spinner-arc {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #7a7d58;
  border-right-color: #2e3322;
  animation: aurenSpin 1.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* Logo con respiración elegante */
.preloader-logo {
  max-width: 95px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-contain: contain;
  position: relative;
  z-index: 2;
  animation: aurenLogoPulse 2.4s ease-in-out infinite;
}

/* Barra de progreso micro-lineal */
.preloader-track {
  width: 130px;
  height: 2px;
  background: #e4dfd3;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
}

.preloader-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #7a7d58, #2e3322, transparent);
  animation: aurenBarShimmer 1.5s ease-in-out infinite;
}

/* Tipografía de carga */
.preloader-brand-title {
  font-family: 'Cinzel', 'Lato', serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: #181b13;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.preloader-brand-subtitle {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: #7a7d58;
  text-transform: uppercase;
  font-mono;
}

@keyframes aurenSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes aurenLogoPulse {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
    filter: drop-shadow(0 6px 14px rgba(122, 125, 88, 0.28));
  }
}

@keyframes auraBreath {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes aurenBarShimmer {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(30%); }
  100% { transform: translateX(100%); }
}

/* ========================================================
   BOTÓN FLOTANTE OFICIAL WHATSAPP
   100% fondo transparente, sin bordes, centrado y simétrico
   Con animación de toque (hover / tap / active)
   ======================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 58px;
  height: 58px;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  animation: waFloatingAmbient 3.6s ease-in-out infinite;
}

@media (min-width: 640px) {
  .floating-whatsapp-btn {
    bottom: 28px;
    right: 28px;
    width: 66px;
    height: 66px;
  }
}

.floating-whatsapp-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Animación sutil de respiración flotante en reposo */
@keyframes waFloatingAmbient {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.03);
  }
}

/* Animación cuando lo tocan (hover, focus, touchstart) */
@keyframes waTouchAnimation {
  0% { transform: scale(1) rotate(0deg); }
  20% { transform: scale(1.18) rotate(-10deg); }
  45% { transform: scale(1.22) rotate(8deg); }
  65% { transform: scale(1.16) rotate(-4deg); }
  85% { transform: scale(1.14) rotate(2deg); }
  100% { transform: scale(1.14) rotate(0deg); }
}

.floating-whatsapp-btn:hover,
.floating-whatsapp-btn:focus-visible {
  animation: waTouchAnimation 0.65s ease-in-out forwards;
  filter: drop-shadow(0 12px 24px rgba(37, 211, 102, 0.48));
}

.floating-whatsapp-btn:active {
  animation: none;
  transform: scale(0.92) rotate(2deg);
  filter: drop-shadow(0 4px 8px rgba(37, 211, 102, 0.3));
}


