:root {
  --paper: #F6E7CC;
  /* pergamino */
  --wine: #6E1226;
  /* vino del logotipo */
  --ink: #4A1A22;
  /* texto de lectura */
  --gold: #C79A3B;
  /* dorado latón */
  --cream: #FFF3DC;
  /* texto sobre vino */
  --caramel: #8A5A2B;
  /* manuscrita */
  --f-caps: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --f-read: 'Lora', Georgia, serif;
  --f-hand: 'Caveat', 'Segoe UI', cursive;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: #F6E7CC
}

img {
  display: block;
  max-width: none;
  -webkit-user-drag: none;
  user-select: none
}

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

button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit
}

svg {
  display: block
}

/* Propiedades registradas: permiten que el CSS ANIME la posición/tamaño de los items "slot" (carrusel) sin JS */
@property --x {
  syntax: '<number>';
  inherits: false;
  initial-value: 0
}

@property --y {
  syntax: '<number>';
  inherits: false;
  initial-value: 0
}

@property --w {
  syntax: '<number>';
  inherits: false;
  initial-value: 100
}

@property --r {
  syntax: '<number>';
  inherits: false;
  initial-value: 0
}

@property --o {
  syntax: '<number>';
  inherits: false;
  initial-value: 1
}

@property --b {
  syntax: '<number>';
  inherits: false;
  initial-value: 0
}

@property --glow {
  syntax: '<color>';
  inherits: true;
  initial-value: #E98FA0
}

.hero {
  --glow: #E98FA0;
  transition: --glow 1s ease;
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(120% 100% at 30% 40%, #FBEFD8 0%, var(--paper) 55%, #EAD3A8 100%)
}

/* textura de papel */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .4 0 0 0 0 .25 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")
}

.canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1672px;
  height: 940px;
  transform: translate(-50%, -50%) scale(var(--s, 1));
  transform-origin: center
}

/* ---------- Fondo ---------- */
.bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none
}

.scene {
  position: absolute;
  left: 760px;
  top: 0;
  width: 1200px;
  height: 881px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .55) 12%, #000 28%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .55) 12%, #000 28%)
}

.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% top
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(246, 231, 204, .35), transparent 40%)
}

.glow {
  position: absolute;
  left: 820px;
  top: 120px;
  width: 980px;
  height: 760px;
  will-change: transform;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 60%, transparent) 0%, color-mix(in srgb, var(--glow) 28%, transparent) 55%, transparent 100%)
}

/* ---------- Escena ---------- */
.stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 2000px;
  height: 881px;
  z-index: 2
}

.hero:not(.is-ready) .stage {
  opacity: 0
}

.pgroup {
  display: contents
}

.pgroup[hidden] {
  display: none
}

.item {
  position: absolute;
  left: calc(var(--x)*1px);
  top: calc(var(--y)*1px);
  width: calc(var(--w)*1px);
  transform: translate(-50%, -50%) rotate(calc(var(--r, 0)*1deg)) scale(var(--sx, 1), 1);
  translate: calc(var(--mx, 0)*var(--d, 1)*14px) calc(var(--my, 0)*var(--d, 1)*9px);
  /* parallax con la propiedad individual "translate" */
  opacity: var(--o, 1);
  filter: blur(calc(var(--b, 0)*1px));
  pointer-events: none
}

.item img {
  width: 100%;
  height: auto
}

.item .move,
.item .rise {
  will-change: transform, opacity
}

/* Items del carrusel: la posición se anima por CSS al cambiar de "slot" */
.slot {
  transition: --x .8s cubic-bezier(.3, .8, .2, 1), --y .8s cubic-bezier(.3, .8, .2, 1), --w .8s cubic-bezier(.3, .8, .2, 1), --r .8s cubic-bezier(.3, .8, .2, 1), --o .5s ease, --b .6s ease
}

.slot.no-tr,
.no-tr .slot {
  transition: none
}

/* Animación flotante */
.float {
  animation: float var(--fd, 6s) ease-in-out var(--fl, 0s) infinite alternate;
  will-change: transform
}

@keyframes float {
  from {
    transform: translate3d(calc(var(--fx, 0)*-1px), calc(var(--fy, 8)*-1px), 0) rotate(calc(var(--fr, 0)*-1deg))
  }

  to {
    transform: translate3d(calc(var(--fx, 0)*1px), calc(var(--fy, 8)*1px), 0) rotate(calc(var(--fr, 0)*1deg))
  }
}

/* Bruma (se dibuja en código) */
.fog {
  width: 100%;
  aspect-ratio: 3/1;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, .35) 55%, transparent 100%);
  filter: blur(6px)
}

/* Vasitos de la repisa */
.pcup {
  pointer-events: auto;
  cursor: pointer
}

.pcup img {
  transition: transform .3s
}

.pcup:hover img {
  transform: translateY(-4px)
}

/* Título del Hero: sin interacción con el mouse, animación sutil de respiración */
.gtitle {
  translate: none !important;
}

.gtitle img {
  animation: titleBreathe 6s ease-in-out infinite alternate;
  transform-origin: center center;
  will-change: transform;
}

@keyframes titleBreathe {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-4px) scale(1.012);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gtitle img {
    animation: none;
  }
}

.nm {
  position: absolute;
  left: 50%;
  top: calc(100% + 20px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font: 700 11.5px/14px var(--f-caps);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  transition: color .3s, font-size .3s
}

.nm svg {
  display: none
}

.pcup.is-active .nm {
  color: #ffffff;
  font-size: 13px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .85)
}

/* Entrada inicial (solo durante .is-intro, que JS quita a los 2.6 s: evita repetir animaciones) */
.hero.is-intro .gtitle .rise {
  animation: slideUp .9s cubic-bezier(.2, .8, .2, 1) backwards .15s
}

.hero.is-intro .barrel .rise {
  animation: slideUp 1s cubic-bezier(.2, .8, .2, 1) backwards .3s
}

.hero.is-intro .float-cup .rise {
  animation: dropIn .9s cubic-bezier(.2, 1.1, .3, 1) backwards .7s
}

.hero.is-intro .pcup .rise,
.hero.is-intro .table .rise {
  animation: slideUp .8s cubic-bezier(.2, .8, .2, 1) backwards .5s
}

.hero.is-intro .particle .move {
  animation: pop .8s cubic-bezier(.2, 1.1, .3, 1) backwards;
  animation-delay: calc(var(--n, 0)*30ms + 900ms)
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px)
  }
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-90px) scale(.9)
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(.6)
  }
}

/* ---------- Header ---------- */
.hdr {
  position: absolute;
  left: 0;
  top: 0;
  width: 1672px;
  height: 100px;
  z-index: 10;
  pointer-events: none
}

.hdr>* {
  pointer-events: auto
}

.hdr__logo {
  position: absolute;
  left: 58px;
  top: 10px;
  width: 226px;
  height: auto
}

.nav {
  position: absolute;
  left: 546px;
  top: 60px;
  display: flex;
  gap: 60px
}

.nav a {
  position: relative;
  font: 700 14px/20px var(--f-caps);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--wine);
  transition: color .25s
}

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

.nav-orn {
  position: absolute;
  left: 50%;
  top: 26px;
  width: 66px;
  height: 14px;
  margin-left: -33px;
  color: var(--gold)
}

.btn-wa-top {
  position: absolute;
  left: 1372px;
  top: 38px;
  width: 274px;
  height: 62px;
  border-radius: 18px;
  background: var(--wine);
  outline: 1.5px dotted rgba(255, 243, 220, .85);
  outline-offset: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font: 600 21px/1 var(--f-read);
  color: var(--cream);
  transition: transform .25s, box-shadow .25s
}

.btn-wa-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(110, 18, 38, .35)
}

.btn-wa-top img {
  width: 36px;
  height: 36px;
  object-fit: contain
}

.ico-light {
  filter: brightness(0) invert(1)
}

/* ---------- Columna izquierda ---------- */
.copy {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none
}

.copy>* {
  position: absolute;
  pointer-events: auto
}

.hero:not(.is-ready) .copy>* {
  opacity: 0
}

.hero.is-intro .copy>* {
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) backwards;
  animation-delay: calc(var(--i, 0)*90ms + 150ms)
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px)
  }
}



.sub {
  left: 106px;
  top: 471px;
  font: 400 22px/35px var(--f-read);
  color: var(--ink);
  white-space: nowrap
}

.actions {
  left: 102px;
  top: 568px;
  display: flex;
  gap: 16px;
  align-items: flex-start
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 18px;
  transition: transform .25s, box-shadow .25s, background .25s
}

.btn--wine {
  width: 215px;
  height: 58px;
  background: var(--wine);
  color: var(--cream);
  font: 600 22px/1 var(--f-read);
  outline: 1.5px dotted rgba(255, 243, 220, .85);
  outline-offset: -6px;
  box-shadow: 0 8px 18px -6px rgba(110, 18, 38, .45)
}

.btn--wine:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -6px rgba(110, 18, 38, .55)
}

.btn--ghost {
  width: 272px;
  height: 59px;
  border: 1.5px solid var(--wine);
  color: var(--wine);
  font: 600 21px/1 var(--f-read)
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(110, 18, 38, .06)
}

.btn--ghost img {
  width: 30px;
  height: 30px;
  object-fit: contain
}

.mini {
  left: 100px;
  top: 664px;
  display: flex
}

.mini div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font: 500 21px/26px var(--f-read);
  color: var(--ink)
}

.mini div:nth-child(1) {
  width: 154px
}

.mini div:nth-child(2) {
  width: 168px
}

.mini div:nth-child(3) {
  width: 160px
}

.mini div+div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 1.5px;
  height: 110px;
  background: rgba(199, 154, 59, .7)
}

.mini img {
  height: 64px;
  width: auto;
  object-fit: contain
}

/* ---------- Selector ---------- */
.pick-arrow {
  position: absolute;
  top: 773px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  z-index: 8;
  border: 1.5px solid var(--gold);
  background: rgba(246, 231, 204, .92);
  color: var(--wine);
  display: grid;
  place-items: center;
  transition: background .25s, color .25s
}

.pick-arrow--prev {
  left: 890px
}

.pick-arrow--next {
  left: 1675px
}

.pick-arrow:hover {
  background: var(--wine);
  color: var(--cream)
}

/* ---------- Cinta inferior ---------- */
.strip {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1672px;
  height: 60px;
  z-index: 9
}

.strip::before {
  content: "";
  position: absolute;
  inset: 0 -100vw;
  background: var(--wine);
  border-top: 2px solid var(--gold)
}

.strip__mask {
  position: absolute;
  inset: 0;
  overflow: hidden
}

.marquee {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  animation: marq 55s linear infinite
}

.marquee__group {
  display: flex;
  align-items: center;
  flex: none
}

.marquee span {
  font: 700 14px/1 var(--f-caps);
  letter-spacing: .24em;
  color: var(--cream);
  white-space: nowrap
}

.marquee svg {
  width: 14px;
  height: 14px;
  margin: 0 36px;
  color: var(--gold)
}

@keyframes marq {
  to {
    transform: translateX(-50%)
  }
}

@media (prefers-reduced-motion:reduce) {

  .float,
  .marquee {
    animation: none
  }

  .slot {
    transition: none
  }
}