/* ============================================================
   FF PARFUMS — Black & Gold
   Sistema de diseño: negro profundo, dorado champagne y marfil.
   ============================================================ */

:root {
  --black: #050505;
  --surface: #0b0b0a;
  --surface-2: #11110f;
  --cream: #f6f1e6;
  --ink: #f0eadc;
  --muted: #a79e8d;
  --muted-2: #7d7567;

  --gold: #c9a24b;
  --gold-light: #efdfae;
  --gold-deep: #8a6a2f;

  --line: rgba(201, 162, 75, 0.18);
  --line-strong: rgba(201, 162, 75, 0.42);

  --serif: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --sans: 'Poppins', system-ui, -apple-system, sans-serif;

  --nav-h: 88px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
}

/* Grano sutil para dar profundidad al negro. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--gold);
  color: var(--black);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 400;
}

em {
  font-weight: 400;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Accesibilidad: saltar al catálogo. */
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 500;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--black);
  font-size: 12px;
  font-weight: 600;
}

.skip:focus {
  top: 14px;
}

/* ============================================================
   Barra de anuncio
   ============================================================ */

.announcement {
  position: relative;
  padding: 11px var(--gutter);
  background: #000;
  border-bottom: 1px solid var(--line);
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-align: center;
  text-transform: uppercase;
}

.announcement span {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  letter-spacing: 0.2em;
}

/* ============================================================
   Navegación
   ============================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  height: var(--nav-h);
  padding: 0 var(--gutter);
  background: rgba(5, 5, 5, 0.93);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--gold-light);
  text-shadow: 0 0 26px rgba(201, 162, 75, 0.16);
}

.brand span {
  padding: 11px 0 11px 14px;
  border-left: 1px solid var(--line-strong);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.42em;
  line-height: 1;
  color: var(--cream);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.saved-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-light);
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.saved-nav span {
  min-width: 1ch;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cream);
}

.saved-nav:hover {
  border-color: var(--line-strong);
  background: rgba(201, 162, 75, 0.08);
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, #efdda7 0%, var(--gold) 58%, #a47d33 100%);
  color: #080806;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-contact span {
  font-size: 13px;
}

.nav-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(201, 162, 75, 0.24);
}

/* Botón hamburguesa y menú móvil. */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--gold-light);
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.menu-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  flex-direction: column;
  max-height: calc(100svh - var(--nav-h));
  padding: 10px var(--gutter) 26px;
  overflow: auto;
  background: #060605;
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.mobile-menu.open {
  display: flex;
  animation: menuDrop 0.28s var(--ease);
}

.mobile-menu-label {
  margin: 10px 0 4px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.2;
}

.mobile-menu a span {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 12px;
}

.mobile-menu .menu-cta {
  justify-content: center;
  margin-top: 18px;
  padding: 15px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, #efdda7 0%, var(--gold) 58%, #a47d33 100%);
  color: #080806;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mobile-menu .menu-cta span {
  color: inherit;
  font-size: 13px;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: stretch;
  max-width: 1680px;
  min-height: calc(100svh - var(--nav-h) - 42px);
  margin: 0 auto;
  padding: clamp(24px, 3.5vw, 48px) var(--gutter) clamp(24px, 4vw, 52px);
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -10%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(201, 162, 75, 0.06), transparent 62%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 4vw, 64px) 0 clamp(8px, 2vw, 24px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  flex: 0 0 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.hero h1 {
  max-width: 12ch;
  font-family: var(--serif);
  font-size: clamp(3.1rem, 6.1vw, 6.3rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero h1 em,
.section h2 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero h1 em {
  display: inline-block;
  padding-right: 0.06em;
  background: linear-gradient(180deg, #fbf2d4 0%, #e4c987 48%, #b58c3f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro {
  max-width: 45ch;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.95;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: fit-content;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.button span {
  font-size: 14px;
  transition: transform 0.25s var(--ease);
}

.button:hover span {
  transform: translate(2px, -2px);
}

.button.dark {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #efdda7 0%, var(--gold) 58%, #a47d33 100%);
  color: #080806;
}

.button.dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(201, 162, 75, 0.22);
}

.button.light {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--cream);
  color: #080806;
}

.button.light:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(42px, 6vh, 68px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 600px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #0a0907;
  isolation: isolate;
  animation: visualIn 1.1s var(--ease) both;
}

.hero-stage {
  position: relative;
  flex: 1;
  min-height: 540px;
  overflow: hidden;
}

.hero-stage::before {
  content: '';
  position: absolute;
  inset: 14px;
  z-index: 4;
  border: 1px solid rgba(239, 223, 174, 0.22);
  pointer-events: none;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s;
}

.hero-slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.9s var(--ease), visibility 0s;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(0.95) contrast(1.02);
  transform: scale(1.002);
}

.hero-slide.is-active > img {
  animation: heroZoom 8s linear both;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, transparent 32%, transparent 50%, rgba(0, 0, 0, 0.86) 100%);
  pointer-events: none;
}

.visual-top,
.visual-bottom {
  position: absolute;
  right: 30px;
  left: 30px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.visual-top {
  top: 28px;
  color: rgba(246, 241, 230, 0.82);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  pointer-events: none;
}

.visual-bottom {
  bottom: 30px;
  z-index: 2;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease) 0.1s, transform 0.55s var(--ease) 0.1s;
}

.hero-slide.is-active .visual-bottom {
  opacity: 1;
  transform: none;
}

.visual-bottom span {
  color: var(--gold-light);
  font-size: 9px;
  letter-spacing: 0.24em;
}

.visual-bottom h2 {
  margin-top: 10px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.visual-bottom h2 em {
  color: var(--gold-light);
  font-style: italic;
}

/* Barra de control del carrusel. */
.hero-bar {
  position: relative;
  z-index: 6;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
  padding: 0 18px;
  border-top: 1px solid var(--line-strong);
  background: #080806;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hero-dot {
  position: relative;
  width: 26px;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
}

.hero-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: rgba(239, 223, 174, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}

.hero-dot:hover::before {
  background: var(--gold-light);
}

.hero-dot.is-active::before {
  width: 24px;
  background: var(--gold);
}

.hero-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-counter {
  margin-right: 6px;
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.18em;
}

.hero-counter b {
  color: var(--gold-light);
  font-weight: 500;
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--gold-light);
  font-size: 15px;
  line-height: 1;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.hero-arrow:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #080806;
}

.hero-pause .pause-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.hero-pause .pause-icon::before,
.hero-pause .pause-icon::after {
  content: '';
  width: 2px;
  height: 10px;
  background: currentColor;
  transition: all 0.2s var(--ease);
}

.hero-pause.is-paused .pause-icon::before {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  background: none;
}

.hero-pause.is-paused .pause-icon::after {
  display: none;
}

.hero-pause.is-paused {
  border-color: var(--gold);
  color: var(--gold-light);
}

@keyframes heroZoom {
  from {
    transform: scale(1.002);
  }
  to {
    transform: scale(1.06);
  }
}

/* ============================================================
   Franja de marcas
   ============================================================ */

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(201, 162, 75, 0.055), transparent);
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-align: center;
}

.brand-strip span {
  transition: color 0.25s var(--ease);
}

.brand-strip span:hover {
  color: var(--gold-light);
}

/* ============================================================
   Secciones
   ============================================================ */

.section {
  padding: clamp(64px, 9vw, 124px) var(--gutter);
}

.collection {
  max-width: 1600px;
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 64px);
  margin-bottom: clamp(34px, 4vw, 48px);
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-heading > p {
  max-width: 30ch;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
  text-align: right;
}

/* ============================================================
   Catálogo
   ============================================================ */

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filters button {
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.filters button:hover {
  border-color: var(--line-strong);
  color: var(--gold-light);
}

.filters button.active {
  border-color: var(--gold);
  background: linear-gradient(135deg, #efdda7 0%, var(--gold) 62%, #b58c3f 100%);
  color: #080806;
  font-weight: 600;
}

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(320px, 100%);
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.08);
}

.search span {
  color: var(--gold);
  font-size: 19px;
  line-height: 1;
}

.search input {
  width: 100%;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.search input::placeholder {
  color: var(--muted-2);
  opacity: 1;
}

.search input:focus-visible {
  outline: none;
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

.sort-tools {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sort-tools button {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.sort-tools button:hover {
  color: var(--gold-light);
}

.sort-tools button[aria-pressed='true'] {
  border-bottom-color: var(--gold);
  color: var(--gold-light);
}

.sort-tools label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 10px;
}

.sort-tools select {
  padding: 8px 32px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23c9a24b' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 10px;
  color: var(--ink);
  font-size: 10px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.sort-tools select option {
  background: var(--surface);
  color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 2.4vw, 38px) clamp(12px, 1.5vw, 22px);
}

.card {
  position: relative;
  min-width: 0;
}

.card-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(201, 162, 75, 0.16);
  border-radius: 2px;
  background: #10100e;
  transition: border-color 0.35s var(--ease);
}

.card-photo::before {
  content: 'Ver detalles';
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 3;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.72);
  color: var(--gold-light);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}

.card:hover .card-photo,
.card:focus-within .card-photo {
  border-color: var(--line-strong);
}

.card:hover .card-photo::before,
.card:focus-within .card-photo::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.38) 100%);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.product-open {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: saturate(0.92);
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
}

.product-open:hover img {
  transform: scale(1.04);
  filter: saturate(1);
}

.favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(239, 223, 174, 0.32);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.55);
  color: var(--gold-light);
  font-size: 18px;
  line-height: 1;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.favorite:hover {
  transform: scale(1.08);
  background: rgba(5, 5, 5, 0.82);
}

.favorite::after {
  content: '';
  position: absolute;
  inset: -5px;
}

.favorite[aria-pressed='true'] {
  border-color: var(--gold);
  background: var(--gold);
  color: #080806;
}

.stock {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 5, 5, 0.72);
  color: var(--gold-light);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.card-info {
  padding: 16px 2px 0;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--gold);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card h3 {
  min-height: 2.44em;
  margin: 9px 0 14px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.55vw, 1.5rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.price {
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.price small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.order {
  position: relative;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.order:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #080806;
}

/* Amplía el área táctil sin agrandar la píldora. */
.order::after {
  content: '';
  position: absolute;
  inset: -9px -6px;
}

.empty {
  grid-column: 1 / -1;
  padding: clamp(48px, 8vw, 90px) 20px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 0%, rgba(201, 162, 75, 0.07), transparent 68%);
  text-align: center;
}

.empty h3 {
  margin-bottom: 12px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.empty p {
  max-width: 42ch;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 13px;
}

.empty .button {
  margin: 0 auto;
}

/* ============================================================
   Ritual
   ============================================================ */

.ritual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 7vw, 100px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #070706 0%, #0d0c09 100%);
}

.ritual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 88% 18%, rgba(201, 162, 75, 0.11), transparent 56%);
  pointer-events: none;
}

.ritual > * {
  position: relative;
  z-index: 1;
}

.ritual h2 em {
  color: var(--gold-light);
}

.ritual-steps article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(201, 162, 75, 0.16);
}

.ritual-steps article:first-child {
  padding-top: 0;
}

.ritual-steps article > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
}

.ritual h3 {
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  line-height: 1.2;
}

.ritual p:not(.eyebrow) {
  max-width: 42ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.ritual .button {
  margin-top: 30px;
}

/* ============================================================
   La esencia FF
   ============================================================ */

.about {
  max-width: 900px;
  margin: 0 auto;
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
  text-align: center;
}

.about-logo {
  width: 96px;
  height: auto;
  margin: 0 auto 28px;
  padding: 8px;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 0 42px rgba(201, 162, 75, 0.12);
}

.about .eyebrow {
  justify-content: center;
  margin-bottom: 24px;
}

.about .eyebrow::after {
  content: '';
  flex: 0 0 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.about h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
}

.about > p:not(.eyebrow) {
  max-width: 58ch;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.95;
}

.about > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.about > a:hover {
  border-color: var(--gold-light);
  color: #fff;
}

/* ============================================================
   Footer
   ============================================================ */

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  padding: 46px var(--gutter);
  border-top: 1px solid var(--line);
  background: #030303;
}

.footer-brand {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.footer-brand span {
  display: block;
  margin-top: 7px;
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 7.5px;
  letter-spacing: 0.22em;
}

footer > div {
  display: flex;
  gap: 24px;
  margin-left: auto;
  padding-top: 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

footer > div a {
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

footer > div a:hover {
  color: var(--gold-light);
}

footer > p {
  width: 100%;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

/* ============================================================
   Dialog de producto
   ============================================================ */

dialog {
  width: min(920px, 94vw);
  max-height: 90svh;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8), 0 0 50px rgba(201, 162, 75, 0.08);
}

dialog[open] {
  animation: dialogIn 0.35s var(--ease);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.close-dialog {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.72);
  color: var(--gold-light);
  font-size: 22px;
  line-height: 1;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.close-dialog:hover {
  background: var(--gold);
  color: #080806;
}

#detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

#detail-content > img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  max-height: 680px;
  border-right: 1px solid var(--line);
  object-fit: cover;
  object-position: center 45%;
}

.detail-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
}

.detail-copy .eyebrow {
  margin-bottom: 16px;
  font-size: 9px;
}

.detail-copy h2 {
  margin-bottom: 18px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.detail-copy p {
  margin: 9px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.detail-copy .detail-price {
  margin: 14px 0;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1.2;
}

.detail-copy .button {
  margin-top: 24px;
}

/* ============================================================
   Toast
   ============================================================ */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 200;
  max-width: 90%;
  padding: 13px 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, #efdda7 0%, var(--gold) 62%, #b58c3f 100%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  color: #080806;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   Animaciones
   ============================================================ */

.hero-copy > * {
  animation: revealUp 0.85s var(--ease) both;
}

.hero-copy > .eyebrow { animation-delay: 0.05s; }
.hero-copy > h1 { animation-delay: 0.12s; }
.hero-copy > .intro { animation-delay: 0.2s; }
.hero-copy > .button { animation-delay: 0.28s; }
.hero-copy > .hero-foot { animation-delay: 0.38s; }

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes visualIn {
  from {
    opacity: 0;
    transform: scale(1.015);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes menuDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (min-width: 1700px) {
  .navbar,
  footer {
    padding-right: calc((100vw - 1500px) / 2);
    padding-left: calc((100vw - 1500px) / 2);
  }

  .brand-strip,
  .ritual {
    padding-right: calc((100vw - 1500px) / 2);
    padding-left: calc((100vw - 1500px) / 2);
  }
}

@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr 0.92fr;
  }

  .hero h1 {
    font-size: clamp(3rem, 5.4vw, 4.9rem);
  }
}

@media (max-width: 980px) {
  :root {
    --nav-h: 76px;
  }

  .nav-links,
  .nav-contact {
    display: none;
  }

  .saved-nav {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: clamp(36px, 6vw, 64px);
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    max-width: 14ch;
    font-size: clamp(3rem, 8.2vw, 5.4rem);
  }

  .hero-visual {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .hero-stage {
    min-height: 0;
  }

  .hero-foot {
    margin-top: 40px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .section-heading > p {
    max-width: 44ch;
    padding-bottom: 0;
    text-align: left;
  }

  .ritual {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 72px;
  }

  .announcement {
    padding: 9px var(--gutter);
    font-size: 8.5px;
    letter-spacing: 0.18em;
  }

  .announcement span {
    display: none;
  }

  .brand {
    gap: 10px;
    font-size: 33px;
  }

  .brand span {
    padding-left: 11px;
    font-size: 8px;
    letter-spacing: 0.34em;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }

  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .filters {
    flex-wrap: nowrap;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filters button {
    flex: 0 0 auto;
    padding: 9px 14px;
    font-size: 9px;
  }

  .search {
    width: 100%;
  }

  .catalog-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .sort-tools {
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }

  .card h3 {
    min-height: 0;
    font-size: 1.18rem;
  }

  .card-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .favorite {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .stock {
    top: 9px;
    left: 8px;
    padding: 5px 6px;
    font-size: 6.5px;
    letter-spacing: 0.1em;
  }

  .card-photo::before {
    display: none;
  }

  .ritual-steps article {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }

  .ritual-steps article > span {
    font-size: 22px;
  }

  .about {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .about-logo {
    width: 76px;
    margin-bottom: 22px;
  }

  .about h2 {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }

  footer {
    flex-direction: column;
    gap: 24px;
  }

  footer > div {
    margin-left: 0;
    padding-top: 0;
  }

  footer > p {
    margin-top: 0;
  }

  #detail-content {
    grid-template-columns: 1fr;
  }

  #detail-content > img {
    height: 280px;
    min-height: 0;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-copy {
    padding: 28px 24px;
  }

  .close-dialog {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 30px;
  }

  .brand span {
    padding-left: 9px;
    font-size: 7.5px;
    letter-spacing: 0.28em;
  }

  .saved-nav {
    padding: 8px 12px;
    font-size: 15px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .hero {
    padding-top: 30px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 12.5vw, 3.6rem);
  }

  .intro {
    margin: 22px 0 28px;
    font-size: 13px;
  }

  .hero-copy .button,
  .ritual .button {
    width: 100%;
  }

  .hero-foot {
    margin-top: 32px;
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .hero-visual {
    aspect-ratio: 4 / 5;
  }

  .visual-top,
  .visual-bottom {
    right: 22px;
    left: 22px;
  }

  .visual-top {
    top: 22px;
    font-size: 7.5px;
  }

  .visual-bottom {
    bottom: 24px;
  }

  .visual-bottom h2 {
    font-size: 2rem;
  }

  .hero-bar {
    height: 56px;
    padding: 0 14px;
    gap: 10px;
  }

  .hero-dots {
    gap: 0;
  }

  .hero-dot {
    width: 22px;
    height: 32px;
  }

  .hero-counter {
    margin-right: 2px;
    font-size: 8.5px;
  }

  .hero-arrow {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .brand-strip {
    gap: 14px 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 8px;
    letter-spacing: 0.2em;
  }

  .section h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .card h3 {
    font-size: 1.06rem;
    line-height: 1.25;
  }

  .card-meta {
    font-size: 7.5px;
    letter-spacing: 0.1em;
  }

  .price {
    font-size: 12px;
  }

  .order {
    padding: 6px 9px;
    font-size: 7.5px;
  }

  .about > p:not(.eyebrow) {
    font-size: 13px;
  }

  .toast {
    right: 6%;
    bottom: 18px;
    left: 6%;
    max-width: none;
    padding: 12px 18px;
    transform: translateY(16px);
  }

  .toast.visible {
    transform: translateY(0);
  }
}

@media (max-width: 380px) {
  .brand span {
    display: none;
  }

  .hero-counter {
    display: none;
  }

  .hero-dot {
    width: 20px;
  }

  .grid {
    gap: 24px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
