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

/* ── TOKENS MINIMALISTAS (JO MALONE STYLE) ── */
:root {
  --jm-cream:   #F4F0EB;
  --white:      #FFFFFF;
  --black:      #0F0F0F;
  --gray-dark:  #333333;
  --gray-mid:   #777777;
  --border:     #DCD6D0;
  --radius:     0px; /* Bordes rectos para un look más editorial y premium */
  --transition: 0.4s ease;
}

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--jm-cream);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── NAVBAR ────────────────────────────────── */
.navbar {
  background-color: rgba(244, 240, 235, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--black);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 24px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--black);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--gray-dark);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--black);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  padding: 4px;
}

.mobile-menu-btn svg {
  fill: currentColor;
}

/* ── SECCIONES ─────────────────────────────── */
main { max-width: 1200px; margin: 0 auto; padding: 60px 24px 100px; }

section { margin-bottom: 100px; }

section > h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--black);
  text-align: center;
  letter-spacing: 0.08em;
  margin-bottom: 48px;
  text-transform: uppercase;
}

/* ── GRID DE PRODUCTOS ─────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}

/* ── CARD ──────────────────────────────────── */
article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}

article:hover {
  border-color: var(--black);
}

/* ── IMAGEN ────────────────────────────────── */
.img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--jm-cream);
  aspect-ratio: 1/1; /* Cuadrado perfecto estilo editorial */
  border-bottom: 1px solid var(--border);
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

article:hover .img-wrap img { transform: scale(1.03); }

/* galería múltiple */
.gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 100%;
}
.gallery::-webkit-scrollbar { display: none; }

.gallery img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
}

.gallery-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  background: rgba(244, 240, 235, 0.8);
  padding: 6px 12px;
  border: 1px solid var(--border);
}

/* ── CONTENIDO DE CARD ─────────────────────── */
.card-body {
  padding: 32px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sku-badge {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 12px;
}

article h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.price {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--black);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.desc {
  font-size: 0.8rem;
  color: var(--gray-dark);
  line-height: 1.8;
  flex: 1;
  font-weight: 300;
  max-width: 90%;
}

/* ── BOTÓN WA ──────────────────────────────── */
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 28px;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  transition: all var(--transition);
  width: 100%;
}

.btn-wa:hover {
  background: var(--black);
  color: var(--jm-cream);
}

.btn-wa svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── HERO — PORTADA EDITORIAL ─────────────────── */
.hero-overlay {
  position: relative;
  width: 100%;
  /* Mobile first: altura proporcional a pantalla móvil */
  height: 90vh;
  min-height: 520px;
  display: flex;
  align-items: flex-end;       /* Texto anclado al fondo = portada de catálogo */
  justify-content: flex-start;
  overflow: hidden;
  margin-bottom: 80px;
  border: 1px solid var(--border);
}

/* Slideshow fondo */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slideshow img.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform-origin: center center;
  opacity: 0;
  animation: fadeSlide 15s infinite;
}

/* Posición focal calibrada por imagen */
.hero-slideshow img.slide-1 {
  animation-delay: 0s;
  object-position: center 78%; /* 7b: difusor en zona baja */
}
.hero-slideshow img.slide-2 {
  animation-delay: 5s;
  object-position: center 62%; /* 13: vela en bandeja, zona media-baja */
}
.hero-slideshow img.slide-3 {
  animation-delay: 10s;
  object-position: center 50%; /* 15: osito bien centrado */
}

/* Gradiente direccional: transparente arriba, oscuro abajo */
.overlay-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.10) 40%,
    rgba(0,0,0,0.65) 85%,
    rgba(0,0,0,0.75) 100%
  );
  z-index: 2;
}

/* Bloque de texto — Mobile: padding bottom generoso */
.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 24px 40px;
  max-width: 100%;
  text-align: left;
}

/* Eyebrow — etiqueta de colección */
.hero-eyebrow {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}

/* Título principal grande */
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* Línea decorativa */
.hero-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}

/* Bajada pequeña */
.hero-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.80);
  line-height: 1.9;
  margin-bottom: 28px;
}

/* CTA */
.hero-cta {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--jm-cream);
  padding: 14px 28px;
  border: 1px solid var(--jm-cream);
  transition: background var(--transition), color var(--transition);
}

.hero-cta:hover {
  background: transparent;
  color: var(--jm-cream);
}

@keyframes fadeSlide {
  0%   { opacity: 1; transform: scale(1); }
  25%  { opacity: 1; transform: scale(1.03); }
  33%  { opacity: 0; transform: scale(1.05); }
  92%  { opacity: 0; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── FOOTER ────────────────────────────────── */
footer {
  background: var(--black);
  color: var(--jm-cream);
  text-align: center;
  padding: 80px 24px 60px;
}

footer h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1px solid var(--jm-cream);
  color: var(--jm-cream);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  transition: var(--transition);
}

.footer-links a:hover {
  background: var(--jm-cream);
  color: var(--black);
}

.footer-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.delivery-note {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gray-mid);
  margin-bottom: 40px;
  text-transform: uppercase;
}

.copyright {
  font-size: 0.7rem;
  color: var(--gray-dark);
  letter-spacing: 0.1em;
}

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 16px 20px; }
  
  .mobile-menu-btn { display: block; }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(244, 240, 235, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  
  .nav-links.active {
    max-height: 300px;
  }
  
  .nav-links a {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    display: block;
  }
  
  .hero-overlay {
    height: 60vh;
  }
  
  .hero-content {
    padding: 20px;
  }
  
  main { padding: 40px 16px 80px; }
  .product-grid { grid-template-columns: 1fr; gap: 32px; }
  .btn-wa { padding: 12px 20px; }
}

/* ── DESKTOP: hero layout ajustado ─────────── */
@media (min-width: 769px) {
  .hero-overlay {
    height: 70vh;
    align-items: flex-end;
  }
  .hero-content {
    padding: 0 60px 60px;
    max-width: 720px;
  }
  .hero-title {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
  }
}
