/* ==========================================================================
   Parfums.at — estilos
   Tokens según DESIGN.md. Mobile first.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #0E0E0E;
  --surface: #1A1A1A;
  --surface-2: #232120;
  --line: rgba(201, 162, 75, .18);
  --text: #F2EEE6;
  --muted: #B3ADA3;
  --gold: #C9A24B;
  --gold-soft: #E6CD8A;
  --gold-deep: #8C6A24;
  --sold: #8A857D;
  --wa: #25D366;

  --f-display: "Cormorant Garamond", "Didot", Georgia, serif;
  --f-ui: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 2px;
  --r-md: 6px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --gutter: 20px;
  --section: clamp(80px, 12vw, 160px);
  --nav-h: 64px;
}
@media (min-width: 768px) { :root { --gutter: 40px; --nav-h: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-ui);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* Grano sutil sobre todo el sitio */
body::before {
  content: "";
  position: fixed; inset: -50%;
  z-index: 100; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--bg); }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 300;
  background: var(--gold); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 600; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Pantalla de carga ---------- */
.splash {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(201, 162, 75, .10), transparent 70%),
    var(--bg);
  transition: opacity .5s var(--ease), visibility 0s linear .5s, clip-path .7s var(--ease);
  clip-path: inset(0 0 0 0);
  /* Red de seguridad: se oculta sola aunque falle el JS */
  animation: splashSafety .01s 2.5s forwards;
}
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash.is-out {
  opacity: 0; visibility: hidden; pointer-events: none;
  clip-path: inset(0 0 100% 0);
}
.splash__inner { display: grid; justify-items: center; gap: 14px; text-align: center; }
.splash__seal { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.splash__seal img {
  width: 96px; height: 96px; border-radius: 50%;
  filter: drop-shadow(0 10px 30px rgba(201, 162, 75, .28));
  animation: sealIn .6s var(--ease) both;
}
@keyframes sealIn { from { opacity: 0; transform: scale(.86); } }
.splash__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.splash__ring circle { fill: none; stroke-width: 1.2; }
.splash__track { stroke: rgba(201, 162, 75, .14); }
.splash__arc {
  stroke: var(--gold); stroke-linecap: round;
  stroke-dasharray: 352; stroke-dashoffset: 352;
  animation: ringFill .9s cubic-bezier(.6, .1, .2, 1) .05s forwards, ringSpin 2.4s linear .95s infinite;
  transform-origin: 60px 60px;
}
@keyframes ringFill { to { stroke-dashoffset: 60; } }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.splash__name {
  margin: 6px 0 0; font: 500 30px/1 var(--f-display); letter-spacing: .04em;
  animation: splashText .6s var(--ease) .1s both;
}
.splash__name span { color: var(--gold); }
.splash__tag {
  margin: 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  animation: splashText .6s var(--ease) .2s both;
}
@keyframes splashText { from { opacity: 0; transform: translateY(8px); letter-spacing: .5em; } }
html.is-loading { overflow: hidden; }

/* ---------- Botones ---------- */
.btn {
  --h: 48px;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  border-radius: var(--r-sm);
  font: 500 14px/1 var(--f-ui); letter-spacing: .04em;
  cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn span { display: inline-flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--gold {
  color: #17120A;
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  font-weight: 600;
}
/* Shimmer */
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 248, 225, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shimmer 4.5s var(--ease) infinite;
}
@keyframes shimmer { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn--gold:hover { filter: brightness(1.08); }
.btn--gold:active { transform: translateY(1px); }
.btn--ghost { color: var(--gold); border-color: var(--gold); background: transparent; }
.btn--ghost:hover { background: rgba(201, 162, 75, .08); color: var(--gold-soft); }
.btn--muted { color: var(--text); border-color: var(--sold); background: transparent; }
.btn--muted:hover { border-color: var(--text); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; pointer-events: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(14, 14, 14, .94);
  border-color: var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .nav.is-solid { background: rgba(14, 14, 14, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 22px/1 var(--f-display); letter-spacing: .02em; }
.brand img { width: 36px; height: 36px; }
.brand__dot { color: var(--gold); }
.nav__links { display: none; gap: 32px; font-size: 14px; color: var(--muted); }
.nav__links a { position: relative; padding: 6px 0; transition: color .2s var(--ease); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }
@media (min-width: 768px) { .nav__links { display: flex; } .brand img { width: 40px; height: 40px; } }

/* ---------- Ondas doradas ---------- */
.waves { position: absolute; pointer-events: none; z-index: 0; }
.waves svg { width: 100%; height: 100%; overflow: visible; }
.waves path { fill: none; stroke-width: .7; vector-effect: non-scaling-stroke; }
.waves g { transform-origin: 50% 50%; animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scaleY(1); }
  50% { transform: translate3d(-2%, 3%, 0) rotate(-2deg) scaleY(1.08); }
  100% { transform: translate3d(2%, -2%, 0) rotate(1.5deg) scaleY(.94); }
}
.waves--hero-tr { top: -10%; right: -40%; width: 110vw; max-width: 820px; height: 42%; transform: rotate(-12deg); opacity: .55; }
@media (min-width: 900px) { .waves--hero-tr { top: -4%; right: -18%; width: 90vw; height: 70%; opacity: .8; } }
.waves--hero-bl { bottom: -6%; left: -30%; width: 80vw; max-width: 640px; height: 55%; transform: rotate(18deg); opacity: .55; }
.waves--divider { position: relative; height: 90px; width: 100%; opacity: .55; margin-block: -20px; }
.waves--steps { top: 0; right: -30%; width: 80vw; max-width: 700px; height: 100%; transform: rotate(80deg); opacity: .25; }
.waves--footer { bottom: 0; left: -10%; width: 70vw; max-width: 600px; height: 100%; opacity: .25; transform: rotate(-8deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 32px) 0 64px;
  display: flex; align-items: center;
  --mx: 70%; --my: 40%;
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(201, 162, 75, .13), transparent 60%),
    radial-gradient(120% 80% at 50% 120%, #1c1915 0%, var(--bg) 60%);
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.hero__copy { max-width: 36rem; }
.hero__seal { width: 72px; height: 72px; margin-bottom: 28px; filter: drop-shadow(0 8px 24px rgba(201, 162, 75, .25)); }
.hero__title {
  margin: 0 0 24px;
  font: 500 clamp(44px, 11vw, 96px)/1.02 var(--f-display);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.hero__lead { margin: 0 0 36px; color: var(--muted); font-size: 17px; max-width: 34rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ctas .btn { flex: 1 1 200px; }
@media (min-width: 560px) { .hero__ctas .btn { flex: 0 0 auto; } }

.hero__bottle { position: relative; margin: 0; justify-self: center; width: min(64vw, 340px); }
.hero__bottle img {
  position: relative; z-index: 1; width: 100%;
  filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .7));
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform .6s var(--ease);
}
.hero__halo, .modal__halo, .card__halo {
  position: absolute; inset: 8% -10% 0; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 162, 75, .35), rgba(201, 162, 75, .08) 55%, transparent 75%);
  filter: blur(6px);
}
.hero__bottle figcaption {
  position: relative; z-index: 2;
  margin-top: 20px; text-align: center;
  display: grid; gap: 2px;
}
.hero__tag-name { font: 500 24px/1.1 var(--f-display); }
.hero__tag-meta { font-size: 13px; color: var(--gold); letter-spacing: .04em; }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .hero__bottle { width: min(100%, 380px); }
}

/* Text reveal del título (palabras) */
.split-word { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.is-split .split-word { opacity: 1; transform: none; filter: none; }
/* Defensa: el título nunca queda invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* ---------- Marquee de líneas ---------- */
.lines { border-block: 1px solid var(--line); background: #121110; overflow: hidden; }
.marquee { display: flex; width: max-content; }
.marquee__track {
  display: flex; flex: none; align-items: center; gap: 0;
  margin: 0; padding: 22px 0; list-style: none;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li {
  display: flex; align-items: center;
  font: 500 clamp(22px, 4vw, 32px)/1 var(--f-display);
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  color: #CFC8BB;
}
.marquee__track li::after {
  content: ""; width: 7px; height: 7px; margin: 0 clamp(24px, 4vw, 44px);
  background: var(--gold); transform: rotate(45deg); opacity: .8;
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: var(--section); }
.section__head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 40rem; }
.h2 { margin: 0 0 12px; font: 500 clamp(36px, 6vw, 56px)/1.05 var(--f-display); }
.section__sub { margin: 0; color: var(--muted); }

/* ---------- Bento destacados ---------- */
.bento { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bento__item {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 240px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: radial-gradient(120% 90% at 50% 0%, #24201a 0%, var(--surface) 60%);
  text-align: left; cursor: pointer;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.bento__item:hover { border-color: rgba(201, 162, 75, .5); }
.bento__item img {
  position: absolute; left: 50%; top: 14px; height: 58%; width: auto; max-width: 80%; object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .6));
  transition: transform .6s var(--ease);
}
.bento__item:hover img { transform: translateX(-50%) translateY(-6px) scale(1.04); }
.bento__text { position: relative; z-index: 1; display: grid; gap: 2px; }
.bento__text > span { display: block; }
.bento__item--wide { grid-column: span 2; }
.bento__line { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.bento__name { margin: 4px 0 2px; font: 500 22px/1.1 var(--f-display); }
.bento__price { font-size: 14px; color: var(--muted); }
.bento__item--hero { grid-column: span 2; min-height: 380px; }
.bento__item--hero img { height: 66%; }
.bento__item--hero .bento__name { font-size: 32px; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 260px; gap: 16px; }
  .bento__item { min-height: 0; padding: 22px; }
  .bento__item--hero { grid-column: span 2; grid-row: span 2; min-height: 0; }
  .bento__item--wide { grid-column: span 2; }
  .bento__item--wide img { left: auto; right: 22px; top: 50%; height: 84%; transform: translateY(-50%); }
  .bento__item--wide:hover img { transform: translateY(-50%) translateY(-6px) scale(1.04); }
  .bento__item--wide .bento__text { max-width: 55%; }
}

/* ---------- Herramientas del catálogo ---------- */
.tools { display: grid; gap: 16px; margin-bottom: 24px; }
.tabs { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 1 auto; background: none; border: 0; cursor: pointer;
  padding: 12px clamp(6px, 2.5vw, 18px); font-size: 14px; font-weight: 500; letter-spacing: .03em; color: var(--muted);
  transition: color .25s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--gold); }
.tabs__ink {
  position: absolute; bottom: -1px; left: 0; height: 2px; width: 0;
  background: var(--gold);
  transition: transform .45s var(--ease), width .45s var(--ease);
}
@media (min-width: 640px) { .tab { flex: none; } }
.tools__row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .tools__row { grid-template-columns: 1fr auto; } }
.search, .sort { position: relative; display: flex; align-items: center; }
.search .ico { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input, .sort select {
  width: 100%; height: 48px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .2s var(--ease);
}
.search input { padding: 0 14px 0 42px; }
.search input::placeholder { color: #8f897f; }
.sort select {
  padding: 0 40px 0 14px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23C9A24B' stroke-width='1.5' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.search input:hover, .sort select:hover, .search input:focus, .sort select:focus { border-color: var(--gold); outline: none; }
.search input:focus-visible, .sort select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.catalog__count { margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.catalog__empty, .catalog__fallback { padding: 48px 0; text-align: center; color: var(--muted); }
.catalog__empty p { margin: 0 0 16px; }

/* ---------- Grilla y tarjetas ---------- */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

.card {
  position: relative; height: 100%;
  perspective: 900px;
  animation: cardIn .5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 30ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.card__inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
  transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.card.is-tilting .card__inner { transition: transform .08s linear, border-color .3s, box-shadow .3s; }
.card:hover .card__inner { border-color: rgba(201, 162, 75, .45); box-shadow: var(--shadow); background: var(--surface-2); }
.card__open {
  display: flex; flex-direction: column; flex: 1;
  padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.card__media { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 18px 14px 4px; transform: translateZ(30px); }
.card__halo { inset: 12% 0 6%; opacity: .7; }
.card__media img {
  position: absolute; z-index: 1;
  top: 18px; left: 14px; width: calc(100% - 28px); height: calc(100% - 24px);
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .65));
  transition: transform .5s var(--ease), filter .3s;
}
.card:hover .card__media img { transform: translateY(-4px); }
.card__body { padding: 6px 14px 12px; display: grid; gap: 2px; transform: translateZ(16px); }
.card__line { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.card__name { margin: 0; font: 500 clamp(19px, 2.4vw, 23px)/1.15 var(--f-display); }
.card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.card__meta > span:first-child { white-space: nowrap; }
.card__price { font-weight: 600; font-size: 15px; color: var(--text); white-space: nowrap; }
.card__cta { margin: 0 12px 12px; min-height: 42px; padding: 8px 10px; font-size: 12.5px; line-height: 1.25; text-align: center; letter-spacing: .02em; }
@media (max-width: 400px) { .card__meta { flex-wrap: wrap; } .card__body { padding: 6px 12px 10px; } }
.card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 10px; border: 1px solid var(--sold); border-radius: var(--r-sm);
  background: rgba(14, 14, 14, .85);
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #C9C4BB;
}
/* Agotado */
.card.is-sold .card__media img { filter: grayscale(1) brightness(.62) drop-shadow(0 16px 18px rgba(0, 0, 0, .6)); }
.card.is-sold .card__halo { opacity: .2; }
.card.is-sold .card__name { color: #CFCAC2; }
.card.is-sold .card__price { color: var(--sold); text-decoration: line-through; text-decoration-thickness: 1px; }
.card.is-sold .card__line { color: var(--sold); }

/* ---------- Cómo comprar ---------- */
.steps { overflow: hidden; background: linear-gradient(180deg, transparent, #13110f 30%, #13110f 70%, transparent); }
.steps .wrap { position: relative; z-index: 1; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.steps__list li {
  position: relative; padding: 28px 24px 28px 24px;
  border-top: 1px solid var(--line);
}
.steps__num { display: block; font: 500 64px/1 var(--f-display); color: var(--gold); margin-bottom: 12px; }
.steps__list h3 { margin: 0 0 8px; font: 500 28px/1.15 var(--f-display); }
.steps__list p { margin: 0; color: var(--muted); max-width: 32ch; }
@media (min-width: 860px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps__list li { padding: 32px 0 0; }
}

/* ---------- Instagram ---------- */
.insta__inner {
  text-align: center; padding: clamp(48px, 8vw, 96px) var(--gutter);
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: radial-gradient(80% 120% at 50% 0%, rgba(201, 162, 75, .12), transparent 70%), var(--surface);
}
.insta__title { margin: 0 0 12px; font: 500 clamp(36px, 7vw, 64px)/1.05 var(--f-display); }
.insta__text { margin: 0 auto 32px; max-width: 34ch; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; padding: 72px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #0B0B0B; }
.footer__inner { position: relative; z-index: 1; display: grid; gap: 28px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 56px; height: 56px; }
.footer__brand p { margin: 0; font: 600 28px/1 var(--f-display); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer__list a, .footer__list span { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.footer__list a:hover { color: var(--gold-soft); }
.footer__list .ico { color: var(--gold); }
.footer__pay { margin: 0; font-size: 14px; color: var(--muted); }
.footer__legal { margin: 0; font-size: 12px; color: #8a847b; }
@media (min-width: 860px) {
  .footer__inner { grid-template-columns: auto 1fr; align-items: start; column-gap: 80px; }
  .footer__list { grid-row: span 2; }
  .footer__pay, .footer__legal { grid-column: 1; }
}

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .25s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: var(--wa); animation: pulse 2.8s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Modal ---------- */
.modal {
  width: min(960px, 100% - 24px); max-height: calc(100svh - 24px);
  padding: 0; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); color: var(--text);
  box-shadow: var(--shadow);
  overflow: auto;
}
.modal::backdrop { background: rgba(5, 5, 5, .78); }
@supports (backdrop-filter: blur(4px)) { .modal::backdrop { backdrop-filter: blur(4px); } }
.modal[open] { animation: modalIn .45s var(--ease); }
.modal[open]::backdrop { animation: fadeIn .3s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes fadeIn { from { opacity: 0; } }
.modal__panel { position: relative; display: grid; }
.modal__close {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(14, 14, 14, .7); cursor: pointer;
  transition: border-color .2s var(--ease);
}
.modal__close:hover { border-color: var(--gold); }
.modal__close svg { width: 20px; height: 20px; }
.modal__media {
  position: relative; display: grid; place-items: center;
  padding: 28px 24px 8px; min-height: 200px;
  background: radial-gradient(90% 80% at 50% 40%, #26211a, var(--surface) 70%);
}
.modal__media img { position: relative; z-index: 1; max-height: 30svh; width: auto; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .7)); }
.modal.is-sold .modal__media img { filter: grayscale(1) brightness(.65); }
.modal__body { padding: 16px 24px 24px; }
@media (max-width: 759px) {
  .modal__desc { margin-bottom: 16px; font-size: 15px; line-height: 1.6; }
  .modal__price { margin-bottom: 14px; padding-top: 14px; }
}
.modal__line { margin: 0 0 4px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.modal__title { margin: 0 0 4px; font: 500 clamp(34px, 5vw, 48px)/1.05 var(--f-display); }
.modal__cat { margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.modal__desc { margin: 0 0 24px; font-size: 16px; line-height: 1.7; max-width: 46ch; }
.modal__price { display: flex; align-items: baseline; gap: 16px; margin: 0 0 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.modal__price strong { font-size: 26px; font-weight: 600; color: var(--text); letter-spacing: .01em; }
.modal__sold { margin: -8px 0 16px; font-size: 13px; color: var(--sold); letter-spacing: .06em; }
@media (min-width: 760px) {
  .modal__panel { grid-template-columns: 1fr 1fr; min-height: 520px; }
  .modal__media { padding: 48px; }
  .modal__media img { max-height: 440px; }
  .modal__body { padding: 64px 48px 48px 24px; align-self: center; }
}
body.modal-open { overflow: hidden; }

/* ---------- Formulario de pedido ---------- */
.order { display: grid; gap: 16px; }
.order[hidden] { display: none; }
.order__ways { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.order__ways legend { margin-bottom: 10px; padding: 0; font: 500 22px/1.2 var(--f-display); color: var(--text); }
.way { position: relative; display: block; cursor: pointer; }
.way input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.way__box {
  display: grid; gap: 2px;
  padding: 12px 14px 12px 44px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-2);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
  position: relative;
}
.way__box::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border: 1.5px solid var(--muted); border-radius: 50%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.way__box strong { font-size: 14px; font-weight: 600; }
.way__box small { font-size: 12.5px; color: var(--muted); }
.way:hover .way__box { border-color: rgba(201, 162, 75, .45); }
.way input:checked + .way__box { border-color: var(--gold); background: rgba(201, 162, 75, .08); }
.way input:checked + .way__box::before { border-color: var(--gold); box-shadow: inset 0 0 0 4px var(--surface-2), inset 0 0 0 10px var(--gold); }
.way input:focus-visible + .way__box { outline: 2px solid var(--gold); outline-offset: 2px; }

.order__fields { display: grid; gap: 14px; animation: fieldsIn .35s var(--ease); }
.order__fields[hidden] { display: none; }
@keyframes fieldsIn { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 520px) {
  .order__fields[data-fields="local"] { grid-template-columns: 1fr 1fr; }
  .order__fields[data-fields="local"] .field:first-child,
  .order__fields[data-fields="local"] .field:last-child { grid-column: 1 / -1; }
  .order__fields[data-fields="pais"] { grid-template-columns: 160px 1fr; }
}
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text); }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; height: 46px; padding: 0 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 16px; /* evita el zoom de iOS */
  transition: border-color .2s var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23C9A24B' stroke-width='1.5' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 18px; }
.field input::placeholder { color: #8f897f; }
.field input:hover, .field select:hover { border-color: rgba(201, 162, 75, .5); }
.field input:focus, .field select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201, 162, 75, .18); }
.field [aria-invalid="true"] { border-color: #E07A6A; }
.field__err { margin: 0; font-size: 12.5px; color: #F09A8C; }
.order__note { margin: -4px 0 0; font-size: 12.5px; color: var(--muted); }
.order__note[hidden] { display: none; }
.modal [data-m-cta][hidden] { display: none; }

/* ---------- Movimiento reducido: solo lo intrusivo ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .waves g { animation: none; }
  .marquee__track { animation-duration: 160s; }
  .btn--gold::after { animation: none; display: none; }
  .wa-float::before { animation: none; }
  .hero__bottle img { transform: none !important; }
  .splash__arc { animation: ringFill 1s ease .1s forwards; }
  .splash { transition: opacity .4s ease, visibility 0s linear .4s; }
  .splash.is-out { clip-path: inset(0 0 0 0); }
}

/* ==========================================================================
   MOVIMIENTO (js/motion.js agrega html.motion; sin JS todo se ve igual)
   ========================================================================== */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* Barra de progreso de lectura */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 70; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft) 60%, var(--gold));
  box-shadow: 0 0 12px rgba(201, 162, 75, .6);
}

/* Reveal genérico */
.motion [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms);
}
.motion [data-reveal="zoom"] { transform: scale(.94); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* Títulos de sección: el texto sube desde una máscara y se dibuja una línea dorada */
.section__head .h2::after {
  content: ""; display: block; width: 64px; height: 1px; margin-top: 16px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform-origin: left;
}
.motion .section__head .h2 { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease) .1s; }
.motion .section__head.is-in .h2 { clip-path: inset(0 0 -20px 0); }
.motion .section__head .h2::after { transform: scaleX(0); transition: transform 1.2s var(--ease) .5s; }
.motion .section__head.is-in .h2::after { transform: scaleX(1); }

/* Tarjetas y destacados: entran escalonados */
.motion .card { animation: none; }
.motion .card, .motion .bento__item {
  opacity: 0; transform: translateY(26px) scale(.98);
  transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms), border-color .3s var(--ease);
}
.motion .card.is-in, .motion .bento__item.is-in { opacity: 1; transform: none; }

/* Brillo dorado que sigue al puntero */
.card__inner::after, .bento__item::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 0%), rgba(230, 205, 138, .16), transparent 65%);
  opacity: 0; transition: opacity .35s var(--ease);
  mix-blend-mode: screen;
}
.card:hover .card__inner::after, .bento__item:hover::after { opacity: 1; }

/* Los frascos destacados "respiran" */
.bento__item img { animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--d, 0ms) * -3); }
.bento__item:hover img { animation-play-state: paused; }
@keyframes bob { 50% { translate: 0 -7px; } }

/* Ondas: se dibujan de izquierda a derecha y tienen profundidad con el scroll */
.waves svg { translate: 0 var(--depth-y, 0px); }
.motion .waves svg { clip-path: inset(0 100% 0 0); transition: clip-path 2.6s cubic-bezier(.6, .1, .2, 1); }
.motion .waves.is-in svg { clip-path: inset(0 0 0 0); }

/* Hero: partículas doradas, frasco que flota y reflejo que lo cruza */
.hero__particles { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__particles span {
  position: absolute; bottom: -12px; left: var(--x);
  width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #F6E3AE 0%, rgba(201, 162, 75, .5) 45%, transparent 72%);
  opacity: 0; animation: rise var(--t) linear var(--d) infinite;
}
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: var(--o); }
  80% { opacity: var(--o); }
  100% { transform: translate3d(24px, -105svh, 0); opacity: 0; }
}
.hero__float { position: relative; z-index: 1; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.2deg); } }
.hero__bottle img { transform: none; }
.hero__shine { position: relative; transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .6s var(--ease); }
.hero__shine::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 248, 225, .7) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0;
  -webkit-mask: var(--shine) center / contain no-repeat; mask: var(--shine) center / contain no-repeat;
  mix-blend-mode: overlay;
  animation: sweep 6s ease-in-out 2s infinite;
}
@keyframes sweep { 0% { background-position: 160% 0; } 40%, 100% { background-position: -60% 0; } }
.hero__halo { animation: halo 7s ease-in-out infinite; }
@keyframes halo { 50% { opacity: .65; transform: scale(1.06); } }

/* Marquee de dos filas, la segunda al revés y en contorno */
.marquee--reverse { border-top: 1px solid var(--line); }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 80s; padding: 14px 0; }
.marquee--reverse .marquee__track li {
  font-size: clamp(16px, 2.6vw, 22px); letter-spacing: .2em;
  color: transparent; -webkit-text-stroke: .7px rgba(201, 162, 75, .75);
}
@supports not (-webkit-text-stroke: 1px black) { .marquee--reverse .marquee__track li { color: var(--gold); } }

/* Cómo comprar: una línea dorada avanza con el scroll */
.steps__list { position: relative; }
.steps__list::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  transform: scaleY(var(--p, 0)); transform-origin: top;
  box-shadow: 0 0 10px rgba(201, 162, 75, .5);
}
@media (min-width: 860px) {
  .steps__list::after { right: 0; bottom: auto; width: auto; height: 1px; transform: scaleX(var(--p, 0)); transform-origin: left; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
}
.motion .steps__num { transform: translateY(30%); opacity: 0; transition: transform 1s var(--ease) calc(var(--d, 0ms) + 200ms), opacity 1s var(--ease) calc(var(--d, 0ms) + 200ms); }
.motion .is-in > .steps__num { transform: none; opacity: 1; }

/* Instagram: borde dorado que gira */
.insta__inner { position: relative; isolation: isolate; }
.insta__inner::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--ang), transparent 0 55%, var(--gold-soft) 70%, var(--gold) 76%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinAng 7s linear infinite;
}
@keyframes spinAng { to { --ang: 360deg; } }

/* Botones magnéticos */
[data-magnetic] { transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .25s var(--ease), translate .35s var(--ease), filter .2s; }

/* WhatsApp flotante entra después de la pantalla de carga */
.motion .wa-float { animation: waIn .9s var(--ease) 1.8s backwards; }
@keyframes waIn { from { opacity: 0; transform: scale(.3) translateY(30px); } }

/* Modal: la ficha se arma por partes */
.modal[open] .modal__media img { animation: imgIn .9s var(--ease) both; }
@keyframes imgIn { from { opacity: 0; transform: translateY(24px) scale(.92); } }
.modal[open] .modal__body > * { animation: bodyIn .6s var(--ease) both; }
.modal[open] .modal__body > :nth-child(2) { animation-delay: .06s; }
.modal[open] .modal__body > :nth-child(3) { animation-delay: .12s; }
.modal[open] .modal__body > :nth-child(4) { animation-delay: .18s; }
.modal[open] .modal__body > :nth-child(5) { animation-delay: .24s; }
.modal[open] .modal__body > :nth-child(n+6) { animation-delay: .3s; }
@keyframes bodyIn { from { opacity: 0; transform: translateY(14px); } }

/* Sello del footer: gira al pasar el mouse */
.footer__brand img { transition: transform 1.4s var(--ease); }
.footer__brand:hover img { transform: rotate(360deg); }

/* Movimiento reducido: se apaga solo lo intrusivo; los fades se mantienen */
@media (prefers-reduced-motion: reduce) {
  .hero__particles, .hero__shine::after { display: none; }
  .hero__float, .hero__halo, .bento__item img, .insta__inner::before { animation: none; }
  .hero__shine { transform: none !important; }
  .motion .waves svg { clip-path: none; transition: none; }
  .waves svg { translate: none; }
  .marquee--reverse .marquee__track { animation-duration: 200s; }
  .motion [data-reveal], .motion .card, .motion .bento__item { transform: none; }
}

/* ==========================================================================
   DECANTS + ENVÍO COMPLETO
   ========================================================================== */

/* Selector Perfumes / Decants */
.kind {
  position: relative; display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.kind__btn {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  padding: 10px 20px; border-radius: 999px;
  font: 500 14px/1 var(--f-ui); letter-spacing: .04em; color: var(--muted);
  transition: color .3s var(--ease);
}
.kind__btn.is-active { color: #17120A; }
.kind__btn:hover:not(.is-active) { color: var(--text); }
.kind__count { font-size: 11px; opacity: .7; margin-left: 4px; }
.kind__ink {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  transition: transform .5s var(--ease), width .5s var(--ease);
}

/* Tarjeta de decant: foto real, sin halo */
.card--decant .card__media { padding: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md) var(--r-md) 0 0; transform: none; }
.card--decant .card__media img.card__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; top: 0; left: 0;
  object-fit: cover; filter: none; transition: transform .8s var(--ease);
}
.card--decant:hover .card__media img.card__photo { transform: scale(1.05); }
.card--decant .card__body { padding-top: 12px; }
.card__meta--sizes { display: grid; gap: 2px; }
.card__size { display: flex; justify-content: space-between; gap: 8px; }
.card__size .card__price { font-size: 14px; }
.card__badge--decant { border-color: var(--gold); color: var(--gold-soft); background: rgba(14, 14, 14, .7); }

/* Modal con foto (decants) */
.modal--photo .modal__media { padding: 0; overflow: hidden; background: var(--surface); }
.modal--photo .modal__halo { display: none; }
.modal--photo .modal__media img { width: 100%; height: 100%; max-height: none; object-fit: cover; filter: none; aspect-ratio: 4 / 5; }
@media (max-width: 759px) { .modal--photo .modal__media img { aspect-ratio: 16 / 11; } }

/* Selector de tamaño */
.sizes { margin: 0 0 18px; padding: 0; border: 0; }
.sizes[hidden] { display: none; }
.sizes legend { margin-bottom: 10px; padding: 0; font: 500 22px/1.2 var(--f-display); }
.sizes__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.size { position: relative; cursor: pointer; }
.size input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.size__box {
  display: grid; gap: 2px; padding: 12px 14px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.size__box strong { font: 600 20px/1 var(--f-display); }
.size__box small { font-size: 13px; color: var(--muted); }
.size:hover .size__box { border-color: rgba(201, 162, 75, .5); }
.size input:checked + .size__box { border-color: var(--gold); background: rgba(201, 162, 75, .1); transform: translateY(-2px); }
.size input:checked + .size__box small { color: var(--gold-soft); }
.size input:focus-visible + .size__box { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Campos de envío en grilla */
.order__fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.order__fields > * { grid-column: 1 / -1; }
.order__fields[data-fields="local"] .field:first-child,
.order__fields[data-fields="local"] .field:last-child { grid-column: 1 / -1; }
@media (min-width: 340px) {
  .order__fields .field--street { grid-column: span 4; }
  .order__fields .field--num { grid-column: span 2; }
  .order__fields .field--cp { grid-column: span 2; }
  .order__fields .field--prov { grid-column: span 4; }
  .order__fields--local .field--num:last-of-type { grid-column: span 2; }
}
.order__fields [hidden] { display: none !important; }
.order__mods { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 13px; color: var(--muted);
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.chip input:checked + span { border-color: var(--gold); color: var(--text); background: rgba(201, 162, 75, .1); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.cp-status { margin: -6px 0 0; min-height: 0; font-size: 12.5px; color: var(--muted); }
.cp-status:empty { display: none; }
.cp-status.is-ok { color: var(--gold-soft); }
.cp-status.is-ok::before { content: "✓ "; }
.order__hint { margin: 0; font-size: 12.5px; color: var(--muted); }

/* Sección Decants en la home */
.decants { overflow: hidden; }
.decants__inner { display: grid; gap: 48px; align-items: center; }
.decants__facts { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.decants__facts li {
  display: grid; gap: 4px; padding: 16px 14px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.decants__facts strong { font: 500 28px/1 var(--f-display); color: var(--gold-soft); }
.decants__facts span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.decants__uses { margin: 0 0 28px; color: var(--muted); max-width: 44ch; }
.decants__photos { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: center; }
.decants__photos img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-md);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.decants__photos img:nth-child(2) { margin-top: 40px; }
.decants__photos img:nth-child(3) { margin-top: -20px; }
@media (min-width: 900px) {
  .decants__inner { grid-template-columns: 1fr 1.05fr; gap: 64px; }
  .decants__photos img { animation: bob 7s ease-in-out infinite; }
  .decants__photos img:nth-child(2) { animation-delay: -2.3s; }
  .decants__photos img:nth-child(3) { animation-delay: -4.6s; }
}
@media (max-width: 420px) { .decants__facts strong { font-size: 22px; } .decants__facts li { padding: 12px 10px; } }
@media (prefers-reduced-motion: reduce) { .decants__photos img { animation: none; } }
.order__fields[data-fields] { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* ==========================================================================
   FICHA DE DECANT: frasco nítido + atomizador + foto real
   ========================================================================== */
/* La imagen del modal nunca se estira con el alto del formulario */
@media (min-width: 760px) {
  .modal__media { position: sticky; top: 0; align-self: start; height: min(620px, calc(100svh - 24px)); }
}
.modal--photo .modal__media img[data-m-img] { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; }
@media (max-width: 759px) { .modal--photo .modal__media { height: 300px; } }

/* Frasco + atomizador */
.modal--decant .modal__media { overflow: hidden; }
.modal--decant .modal__media img[data-m-img] {
  max-height: 72%; max-width: 62%; margin-left: 22%;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .7));
}
@media (max-width: 759px) {
  .modal--decant .modal__media { height: 300px; padding: 36px 16px 18px; }
  .modal--decant .modal__media img[data-m-img] { max-height: 100%; max-width: 52%; margin-left: 18%; }
}
.vial {
  position: absolute; z-index: 2; left: 16%; bottom: 12%;
  height: 50%; aspect-ratio: 60 / 210;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .65));
  transition: height .55s var(--ease);
  animation: vialIn .8s var(--ease) .15s both;
}
.vial[data-ml="5"] { height: 36%; }
.vial[hidden] { display: none; }
.vial svg { width: 100%; height: 100%; display: block; overflow: visible; }
@keyframes vialIn { from { opacity: 0; transform: translateY(24px) rotate(-6deg); } }
@media (max-width: 759px) { .vial { left: 12%; bottom: 8%; height: 58%; } .vial[data-ml="5"] { height: 42%; } }

/* Foto real en miniatura */
.modal__real {
  position: absolute; z-index: 3; right: 14px; bottom: 14px; margin: 0;
  width: 84px; padding: 4px 4px 6px; border-radius: var(--r-md);
  background: rgba(14, 14, 14, .82); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.modal__real[hidden] { display: none; }
.modal__real img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; filter: none !important; max-height: none !important; animation: none !important; }
.modal__real figcaption { margin-top: 4px; text-align: center; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 759px) { .modal__real { width: 70px; right: 10px; bottom: 10px; } }
@media (prefers-reduced-motion: reduce) { .vial { animation: none; transition: none; } }

/* ==========================================================================
   PORTADA v2: vitrina giratoria + buscador + accesos al catálogo
   ========================================================================== */
.hero { padding: calc(var(--nav-h) + 20px) 0 48px; }
.hero__inner {
  display: grid; gap: 28px; align-items: center;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "show" "access";
}
.hero__head { grid-area: head; max-width: 38rem; }
.showcase { grid-area: show; }
.hero__access { grid-area: access; display: grid; gap: 18px; max-width: 38rem; }
.hero__seal { width: 60px; height: 60px; margin-bottom: 18px; }
.hero__title { font-size: clamp(42px, 9vw, 84px); margin-bottom: 16px; }
.hero__lead { margin: 0; font-size: 16.5px; }
@media (min-width: 960px) {
  .hero { padding-top: calc(var(--nav-h) + 32px); }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-areas: "head show" "access show";
    column-gap: 56px; row-gap: 28px;
  }
  .hero__head { align-self: end; }
  .hero__access { align-self: start; }
}

/* Vitrina */
.showcase { position: relative; width: 100%; display: grid; justify-items: center; }
.showcase__halo {
  position: absolute; left: 50%; top: 42%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(201, 162, 75, .32), rgba(201, 162, 75, .08) 55%, transparent 75%);
  filter: blur(8px); animation: halo 7s ease-in-out infinite;
}
.showcase__stage {
  position: relative; width: 100%; height: clamp(300px, 54vh, 580px);
  touch-action: pan-y; outline: none; border-radius: var(--r-md);
  transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .6s var(--ease);
}
.showcase__stage:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.showcase__item {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 44%; margin-left: -22%;
  padding: 0; border: 0; background: none; cursor: pointer;
  transform: translateX(calc(var(--o, 0) * 62%)) scale(calc(1 - var(--a, 0) * .24));
  transform-origin: 50% 100%;
  z-index: calc(10 - var(--a, 0));
  opacity: calc(1 - var(--a, 0) * .3);
  filter: blur(calc(var(--a, 0) * 1.3px)) brightness(calc(1 - var(--a, 0) * .25));
  transition: transform .9s var(--ease), opacity .9s var(--ease), filter .9s var(--ease);
}
.showcase__item.is-far { opacity: 0; pointer-events: none; }
.showcase__item img {
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 28px 26px rgba(0, 0, 0, .7));
}
.showcase__item.is-active img { animation: float 7s ease-in-out infinite; }
.showcase__item:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.showcase__floor {
  width: 62%; height: 26px; margin-top: -10px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 162, 75, .28), transparent 75%);
  filter: blur(4px);
}
.showcase__caption { display: grid; justify-items: center; gap: 2px; margin-top: 6px; text-align: center; min-height: 92px; }
.showcase__line { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.showcase__name { font: 500 clamp(26px, 3.4vw, 36px)/1.1 var(--f-display); }
.showcase__meta { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.showcase__view {
  border: 0; background: none; padding: 4px 0; cursor: pointer;
  color: var(--gold-soft); font: 500 13px/1 var(--f-ui); letter-spacing: .06em;
  border-bottom: 1px solid currentColor;
}
.showcase__view:hover { color: var(--text); }
.showcase__nav { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.showcase__arrow {
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(14, 14, 14, .6); color: var(--gold);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.showcase__arrow:hover { border-color: var(--gold); background: rgba(201, 162, 75, .1); }
.showcase__arrow svg { width: 18px; height: 18px; }
.showcase__dots { display: flex; gap: 6px; }
.showcase__dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(201, 162, 75, .3); cursor: pointer; transition: width .4s var(--ease), background-color .3s; }
.showcase__dot.is-active { width: 22px; background: var(--gold); }
@media (max-width: 600px) {
  .showcase__stage { height: 330px; }
  .showcase__item { width: 54%; margin-left: -27%; transform: translateX(calc(var(--o, 0) * 66%)) scale(calc(1 - var(--a, 0) * .26)); }
}

/* Buscador de la portada */
.hero__search {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 44px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(26, 26, 26, .85);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.hero__search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 75, .12); }
.hero__search .ico { position: absolute; left: 16px; color: var(--gold); }
.hero__search input { flex: 1; min-width: 0; height: 40px; border: 0; background: none; font-size: 16px; outline: none; }
.hero__search input::placeholder { color: #8f897f; }
.hero__search .btn { border-radius: 999px; }

/* Accesos directos al catálogo */
.hero__cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .hero__cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat-tile {
  position: relative; overflow: hidden; display: grid; gap: 2px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: linear-gradient(160deg, #221e18, var(--surface) 70%);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.cat-tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(230, 205, 138, .16) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.cat-tile:hover { border-color: var(--gold); transform: translateY(-3px); }
.cat-tile:hover::after { transform: translateX(120%); }
.cat-tile__name { font: 500 22px/1.1 var(--f-display); color: var(--text); }
.cat-tile__count { font-size: 12px; color: var(--muted); }
.cat-tile--decants { border-color: rgba(201, 162, 75, .45); }
.cat-tile--decants .cat-tile__name { color: var(--gold-soft); }
.hero__ctas { margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  .showcase__item.is-active img, .showcase__halo { animation: none; }
  .showcase__stage { transform: none; }
}

/* Portada en el celular: el acceso al catálogo entra en la primera pantalla */
@media (max-width: 959px) {
  .hero__inner { grid-template-areas: "head" "access" "show"; gap: 20px; }
  .hero__access { max-width: none; }
}
@media (max-width: 600px) {
  .hero { padding-top: calc(var(--nav-h) + 14px); }
  .hero__seal { display: none; }
  .hero__title { font-size: clamp(36px, 10.5vw, 46px); margin-bottom: 10px; }
  .hero__lead { font-size: 14.5px; line-height: 1.55; }
  .hero__cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .cat-tile { padding: 10px 6px; text-align: center; justify-items: center; }
  .cat-tile__name { font-size: 17px; }
  .cat-tile__count { font-size: 10.5px; }
  .hero__access .hero__ctas { display: none; }   /* en el celular la vitrina y los accesos ya cumplen ese rol */
  .showcase__stage { height: 300px; }
  .showcase__caption { min-height: 0; }
}
@media (max-width: 600px) { .cat-tile__count { white-space: nowrap; font-size: 10px; letter-spacing: -.01em; } }

/* Visita repetida: sin pantalla de carga */
html.no-splash .splash { display: none; }

/* Tarjeta de decant v2: frasco recortado + atomizador (como la ficha) */
.card--decant .card__media { padding: 18px 14px 4px; overflow: visible; border-radius: 0; }
.card--decant .card__media img.card__bottle {
  position: absolute; z-index: 1; top: 16px; left: 30%; width: 62%; height: calc(100% - 22px);
  object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .65));
  transition: transform .5s var(--ease);
}
.card--decant:hover .card__media img.card__bottle { transform: translateY(-4px); }
.card__vial {
  position: absolute; z-index: 2; left: 12%; bottom: 6px;
  height: 50%; width: auto; aspect-ratio: 60 / 210;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .7));
  transition: transform .5s var(--ease);
}
.card--decant:hover .card__vial { transform: translateY(-6px) rotate(-3deg); }
.card.is-sold .card__vial { filter: grayscale(1) brightness(.6); }
.card--decant .card__media img.card__bottle { top: 40px; height: calc(100% - 46px); }
@media (max-width: 759px) {
  .modal--decant .modal__media img[data-m-img] { height: 240px; max-height: none; width: auto; max-width: 56%; object-fit: contain; }
}

/* Perfume con foto común (subida desde el panel, sin recortar) */
.card--photo .card__media { padding: 0; overflow: hidden; border-radius: var(--r-md) var(--r-md) 0 0; }
.card--photo .card__halo { display: none; }
.card--photo .card__media img.card__photo { position: absolute; inset: 0; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.card.is-sold.card--photo .card__media img { filter: grayscale(1) brightness(.62); }
