/* La colección nocturna: pared de piedra basáltica con nichos iluminados por un foco y un piso negro que refleja.
   Versión premium: Bodoni Moda (títulos) + Jost (interfaz), halo del color de cada fragancia y filetes dorados.
   Weblis solo aparece como logo. */

@font-face { font-family: 'Bodoni Moda'; src: url('../assets/fonts/bodoni-moda.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url('../assets/fonts/bodoni-moda-italic.woff2') format('woff2'); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('../assets/fonts/jost.woff2') format('woff2'); font-weight: 300 600; font-display: swap; }

:root {
  --negro: #070708;
  --texto: #f1ece4;
  --suave: rgba(241, 236, 228, .6);
  --tenue: rgba(241, 236, 228, .38);
  --oro: #cdb07a;
  --filete: rgba(205, 176, 122, .32);
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Jost', 'Futura', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(18px, 2.8vw, 44px);
  --camara: cubic-bezier(.65, 0, .35, 1);
  --ease: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; background: var(--negro); color: var(--texto); font-family: var(--sans); font-weight: 400; font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent; }
/* grano de película muy suave encima de todo: quita el aspecto "plano digital" */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--oro); outline-offset: 5px; }
h1, h2 { font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; letter-spacing: -.02em; line-height: .92; margin: 0; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
.sobre { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 10.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--oro); }
.sobre::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; flex: none; }

/* ---------- cámara, muro y piso ---------- */
.camara { position: fixed; inset: 0; transform-origin: 0 0; transition: transform 1.2s var(--camara); }
.muro { position: absolute; inset: -60%; background: #121113 url('../assets/img/muro.jpg') center / 1600px auto; }
.muro::after { content: ''; position: absolute; inset: 0; background: radial-gradient(42% 38% at 50% 40%, rgba(0, 0, 0, 0), rgba(0, 0, 0, .82)); }
.piso {
  position: absolute; left: -60%; right: -60%; top: var(--suelo, 72%); bottom: -60%;
  background: linear-gradient(180deg, rgba(7, 7, 8, .5) 0%, rgba(7, 7, 8, .9) 28%, #040405 70%);
  border-top: 1px solid rgba(205, 176, 122, .12);
}
.fila { position: absolute; inset: 0; z-index: 1; }

/* ---------- cada nicho: piedra iluminada, halo del color del perfume y el frasco ---------- */
.nicho {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); transform: translateX(-50%);
  padding: 0; border: 0; cursor: pointer; background-color: #111; background-position: center top; background-size: cover; background-repeat: no-repeat;
  box-shadow:
    0 0 0 1px rgba(205, 176, 122, .14),
    inset 16px 0 26px rgba(0, 0, 0, .6), inset -16px 0 26px rgba(0, 0, 0, .6), inset 0 -22px 28px rgba(0, 0, 0, .45),
    0 30px 60px -20px rgba(0, 0, 0, .9);
  -webkit-box-reflect: below 2px linear-gradient(transparent 60%, rgba(255, 255, 255, .18));
  opacity: 0; transition: opacity 1s var(--ease), box-shadow .5s var(--ease);
}
.listo .nicho { opacity: 1; transition-delay: calc(var(--i) * 120ms); }
.nicho::before {     /* repisa de piedra con un filo de luz */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5%; z-index: 2;
  background: linear-gradient(180deg, #3a3532 0, #1a1817 12%, #0f0e0e);
}
.nicho::after {      /* penumbra: se levanta cuando pasas el mouse o cuando es el elegido */
  content: ''; position: absolute; inset: 0; z-index: 3; background: #000; opacity: .22; transition: opacity .6s var(--ease); pointer-events: none;
}
.nicho .halo {       /* el resplandor del color de la fragancia detrás del frasco + el cono del foco */
  position: absolute; inset: 0; z-index: 0; pointer-events: none; mix-blend-mode: screen; opacity: .7; transition: opacity .6s var(--ease);
  background:
    radial-gradient(75% 38% at 50% 68%, color-mix(in srgb, var(--tono) 85%, transparent), transparent 70%),
    radial-gradient(50% 22% at 50% 92%, color-mix(in srgb, var(--tono) 60%, transparent), transparent 80%),
    radial-gradient(40% 65% at 50% 0%, rgba(255, 246, 230, .3), transparent 75%);
}
.nicho img {
  position: absolute; z-index: 1; left: 8%; right: 8%; bottom: 4.6%; width: 84%; height: auto;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .55));
  transition: transform .7s var(--ease);
}
.nicho .rotulo { position: absolute; left: -20px; right: -20px; top: calc(100% + 16px); text-align: center; font-family: var(--serif); font-size: 19px; line-height: 1.15; opacity: 0; transition: opacity .45s var(--ease), transform .45s var(--ease); transform: translateY(-4px); pointer-events: none; }
.nicho .rotulo i { font-style: italic; }
.nicho .rotulo small { display: block; margin-bottom: 4px; font-family: var(--sans); font-size: 9.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--oro); }
@media (hover: hover) and (pointer: fine) {
  .nicho:hover { box-shadow: 0 0 0 1px rgba(205, 176, 122, .4), inset 16px 0 26px rgba(0, 0, 0, .6), inset -16px 0 26px rgba(0, 0, 0, .6), inset 0 -22px 28px rgba(0, 0, 0, .45), 0 30px 60px -20px rgba(0, 0, 0, .9); }
  .nicho:hover::after { opacity: 0; }
  .nicho:hover .halo { opacity: 1; }
  .nicho:hover img { transform: translateY(-2.5%); }
  .nicho:hover .rotulo { opacity: 1; transform: none; }
}
.nicho.activo::after { opacity: 0; }
.nicho.activo .halo { opacity: 1; }
.enfoque .nicho:not(.activo) { opacity: .2; }
.enfoque .nicho .rotulo { opacity: 0; }

/* ---------- interfaz ---------- */
.ui-top { position: fixed; z-index: 10; left: var(--pad); right: var(--pad); top: var(--pad); display: flex; align-items: flex-start; gap: 24px; transition: opacity 1s var(--ease); }
.logo img { height: 17px; width: auto; }
.casa { position: absolute; left: 0; top: 27px; margin: 0; font-size: 9.5px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--oro); }
.menu { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.menu > a:not(.pastilla) { text-decoration: none; color: var(--suave); transition: color .2s var(--ease); }
.menu > a:not(.pastilla):hover { color: var(--texto); }
.pastilla { display: inline-flex; align-items: center; height: 38px; padding: 0 20px; border-radius: 0; border: 1px solid var(--filete); background: rgba(7, 7, 8, .45); color: var(--texto); text-decoration: none; font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.pastilla:hover { background: var(--oro); border-color: var(--oro); color: var(--negro); }

.portada { position: fixed; z-index: 5; left: var(--pad); bottom: calc(var(--pad) + 30px); max-width: none; transition: opacity 1s var(--ease) .3s, transform .6s var(--ease); }
.portada h1 { font-size: clamp(44px, 4.6vw, 80px); white-space: nowrap; }
.portada h1 em { color: var(--oro); }
.lema { margin: 18px 0 0; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.4; color: var(--suave); max-width: 34ch; }
.pista { position: fixed; z-index: 5; right: var(--pad); bottom: calc(var(--pad) + 60px); margin: 0; font-size: 10px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--tenue); transition: opacity .5s var(--ease); }
.demo-marca { position: fixed; z-index: 6; right: var(--pad); bottom: var(--pad); color: var(--suave); text-decoration: none; font-size: 11.5px; letter-spacing: .04em; padding: 9px 16px; border: 1px solid var(--filete); border-radius: 0; background: rgba(7, 7, 8, .6); transition: color .3s var(--ease), border-color .3s var(--ease), opacity .5s var(--ease); }
.demo-marca b { color: var(--texto); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .demo-marca:hover { color: var(--texto); border-color: var(--oro); } }
.enfoque .demo-marca, .intro .demo-marca { opacity: 0; pointer-events: none; }
.enfoque .portada, .enfoque .pista { opacity: 0; transform: translateY(10px); pointer-events: none; }
.intro .ui-top, .intro .portada, .intro .pista { opacity: 0; }
.creditos { position: fixed; z-index: 5; left: var(--pad); bottom: 8px; margin: 0; font-size: 9px; color: rgba(241, 236, 228, .26); max-width: 70ch; }
.enfoque .creditos { opacity: 0; }
.casa { transition: opacity .5s var(--ease); }
.enfoque .casa { opacity: 0; }

/* ---------- detalle ---------- */
.detalle { position: fixed; inset: 0; z-index: 9; pointer-events: none; }
.d-col {
  position: absolute; left: var(--pad); top: 50%; translate: 0 -50%; width: min(420px, 36vw); pointer-events: auto;
  display: grid; gap: 16px;
}
.d-col > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.detalle.visible .d-col > * { opacity: 1; transform: none; }
.detalle.visible .d-col > :nth-child(2) { transition-delay: .07s; }
.detalle.visible .d-col > :nth-child(3) { transition-delay: .14s; }
.detalle.visible .d-col > :nth-child(4) { transition-delay: .21s; }
.detalle.visible .d-col > :nth-child(5) { transition-delay: .28s; }
.detalle.visible .d-col > :nth-child(6) { transition-delay: .35s; }
.detalle.visible .d-col > :nth-child(7) { transition-delay: .42s; }
.d-col .sobre { margin: 0; }
.d-col h2 { font-size: clamp(50px, 5.2vw, 88px); margin-top: -4px; }
.d-col h2 em { display: block; padding-left: .5em; color: color-mix(in srgb, var(--tono, var(--oro)) 55%, var(--texto)); }
.d-texto { margin: 0; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.45; color: rgba(241, 236, 228, .8); max-width: 32ch; }
.notas { margin: 0; display: grid; border-top: 1px solid var(--filete); }
.notas div { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid rgba(205, 176, 122, .14); }
.notas dt { color: var(--oro); text-transform: uppercase; letter-spacing: .26em; font-size: 9.5px; font-weight: 500; }
.notas dd { margin: 0; font-size: 13.5px; font-weight: 300; letter-spacing: .02em; }
.tamanos { border: 0; margin: 0; padding: 0; min-width: 0; }
.tamanos legend { padding: 0; margin-bottom: 10px; font-size: 9.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--oro); }
#dTamanos { display: flex; gap: 10px; }
.tam { flex: 1; display: grid; gap: 4px; padding: 12px 16px; text-align: left; border: 1px solid rgba(241, 236, 228, .18); border-radius: 0; background: transparent; cursor: pointer; transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease); }
.tam b { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1; }
.tam span { font-size: 12px; font-weight: 300; letter-spacing: .04em; color: var(--suave); font-variant-numeric: lining-nums tabular-nums; }
.tam:hover { border-color: var(--oro); }
.tam[aria-pressed="true"] { border-color: var(--oro); background: rgba(205, 176, 122, .1); }
.tam[aria-pressed="true"] span { color: var(--texto); }
.comprar { display: flex; align-items: center; justify-content: center; gap: 12px; height: 54px; border-radius: 0; text-decoration: none; background: var(--texto); color: var(--negro); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; transition: transform .15s var(--ease), background-color .25s var(--ease); }
.comprar:hover { background: var(--oro); }
.comprar:active { transform: scale(.98); }
.comprar svg { width: 17px; height: 17px; fill: currentColor; }
.d-nav { display: flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.volver { border: 0; background: none; padding: 8px 0; cursor: pointer; color: var(--suave); letter-spacing: inherit; text-transform: inherit; transition: color .2s var(--ease); }
.volver:hover { color: var(--texto); }
.contador { margin-left: auto; margin-right: 8px; font-family: var(--serif); font-size: 15px; letter-spacing: .06em; color: var(--suave); font-variant-numeric: lining-nums tabular-nums; }
.redondo { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--filete); background: transparent; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.redondo:hover { background: var(--oro); border-color: var(--oro); color: var(--negro); }

/* ---------- envíos ---------- */
.envios { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: var(--pad); background: rgba(4, 4, 5, .84); }
.envios__caja { width: min(460px, 100%); padding: 38px 34px; background: #121112; border: 1px solid var(--filete); display: grid; gap: 14px; }
.envios h2 { font-size: 44px; margin-bottom: 8px; }
.envios h2 em { color: var(--oro); }
.envios p { margin: 0; color: var(--suave); font-weight: 300; }
.envios b { color: var(--texto); font-weight: 500; }
.envios .pastilla { justify-self: start; margin-top: 10px; }
.envios .credito { font-size: 10px; color: rgba(241, 236, 228, .38); }
.sinjs { position: fixed; left: var(--pad); right: var(--pad); top: 40%; z-index: 20; }

/* ---------- celular ---------- */
@media (max-width: 760px) {
  .menu > a:not(.pastilla) { display: none; }
  .pastilla { height: 34px; padding: 0 14px; font-size: 9.5px; letter-spacing: .18em; }
  .pista { display: none; }
  .portada { bottom: calc(var(--pad) + 18px); right: var(--pad); }
  .portada h1 { font-size: 42px; white-space: normal; }
  .lema { font-size: 15px; margin-top: 12px; }
  .nicho .rotulo { display: none; }
  .creditos { display: none; }
  .demo-marca { top: calc(var(--pad) + 48px); bottom: auto; font-size: 10.5px; padding: 6px 11px; white-space: nowrap; }
  .d-col { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); translate: none; left: var(--pad); right: var(--pad); width: auto; gap: 10px; }
  .d-col .sobre { font-size: 9.5px; letter-spacing: .26em; gap: 10px; }
  .d-col .sobre::before { width: 18px; }
  .d-col h2 { font-size: 40px; margin-top: 0; }
  .d-col h2 em { display: inline; padding-left: 0; }
  .d-texto { font-size: 14.5px; line-height: 1.35; }
  .notas { display: none; }
  .tamanos legend { display: none; }
  #dTamanos { gap: 8px; }
  .tam { padding: 8px 12px; gap: 2px; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }
  .tam b { font-size: 19px; }
  .tam span { font-size: 11.5px; text-align: right; }
  .comprar { height: 46px; font-size: 10.5px; letter-spacing: .18em; }
  .d-nav { margin-top: -2px; }
  .redondo { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
}
