:root {
  --pergamino: #efdfc2;
  --pergamino-claro: #f6ead2;
  --pergamino-oscuro: #e2cda6;
  --vino: #8a1a1a;
  --vino-oscuro: #6a1212;
  --rojo-texto: #7a1c1c;
  --dorado: #b88a3e;
  --dorado-claro: #d3ab5f;
  --cafe-footer: #1b130e;
  --crema-texto: #f5e8cd;
  --u: min(calc(100vw / 1671), calc(100vh / 941));
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--pergamino);
  font-family: 'Cormorant Garamond', serif;
}

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

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

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 55%, rgba(255, 238, 200, 0.55), transparent 60%),
    linear-gradient(180deg, #f0e1c5 0%, #e8d4b0 100%);
}

.stage {
  position: absolute;
  inset: 0;
}

.el {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w, auto);
  height: var(--h, auto);
  z-index: var(--z, 1);
  opacity: var(--o, 1);
  transform: rotate(var(--r, 0deg)) scale(calc(var(--s, 1) * var(--sx, 1)), calc(var(--s, 1) * var(--sy, 1)));
  transform-origin: center;
  user-select: none;
}

.el img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}

.el[style*="--h"] img {
  height: 100%;
  object-fit: fill;
}

/* ===== Fondo (piedra + planta + luz) con disolución hacia el pergamino ===== */
[data-edit="fondo"] {
  /* Cubre la zona izquierda, entre la franja superior (11.2%) y la inferior (90%) */
  --x: -16.10%;
  --y: 10.00%;
  --w: 80%;
  --h: 81%;
  --s: 0.872;
  --sx: 0.864;
  --sy: 1.132;
  --z: 1;

  object-fit: cover;
  object-position: left bottom;

  /* Dos máscaras combinadas (intersección):
     1) horizontal: se disuelve hacia la derecha (donde van título y hojas)
     2) vertical: suaviza el borde superior bajo el header */
  -webkit-mask-image:
    linear-gradient(to right,
      #000 0%, #000 55%,
      rgba(0,0,0,.80) 66%,
      rgba(0,0,0,.45) 77%,
      rgba(0,0,0,.15) 89%,
      transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 9%, #000 100%);
  mask-image:
    linear-gradient(to right,
      #000 0%, #000 55%,
      rgba(0,0,0,.80) 66%,
      rgba(0,0,0,.45) 77%,
      rgba(0,0,0,.15) 89%,
      transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 9%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* ===== Franjas ===== */
.bar {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.bar--top {
  top: 0;
  height: 11.2%;
  z-index: 9;
  background: linear-gradient(180deg, #f2e4c9, #ead8b4);
  border-bottom: calc(1.5 * var(--u)) solid var(--dorado);
  box-shadow: 0 calc(3 * var(--u)) 0 -1px rgba(122, 28, 28, 0.35), 0 calc(6 * var(--u)) calc(14 * var(--u)) rgba(80, 40, 10, 0.12);
}

.bar--bottom {
  bottom: 0;
  height: 10%;
  z-index: 9;
  background: linear-gradient(180deg, #241913, var(--cafe-footer));
  border-top: calc(2 * var(--u)) solid var(--dorado);
}

/* ===== Posiciones (x, y, w, z) ===== */
[data-edit="hojas"]          { --x: 81.65%; --y: 11.44%; --w: 21.86%; --z: 3; }
[data-edit="titulo"]         { --x: 58%;    --y: 17%;    --w: 30%;    --z: 4; }
[data-edit="producto"]       { --x: 8.78%;  --y: 20.67%; --w: 31.46%; --r: 0deg; --z: 8; filter: drop-shadow(0 calc(14 * var(--u)) calc(18 * var(--u)) rgba(60, 20, 0, 0.35)); }
[data-edit="logo"]           { --x: 44.8%;  --y: 0.5%;   --w: 10.5%;  --z: 20; filter: drop-shadow(0 calc(4 * var(--u)) calc(8 * var(--u)) rgba(70, 30, 0, 0.25)); }
[data-edit="nav-izq"]        { --x: 10.20%; --y: 0.00%;  --z: 12; }
[data-edit="nav-der"]        { --x: 62.50%; --y: 0.00%;  --z: 12; }
[data-edit="parrafo"]        { --x: 61.3%;  --y: 48%;    --w: 24%;    --z: 5; }
[data-edit="boton"]          { --x: 65%;    --y: 58.4%;  --z: 15; }
[data-edit="sabores-titulo"] { --x: 16.8%;  --y: 67.5%;  --w: 66.4%;  --z: 14; }
[data-edit="flecha-izq"]     { --x: 16.9%;  --y: 76.5%;  --z: 16; }
[data-edit="flecha-der"]     { --x: 81.5%;  --y: 76.5%;  --z: 16; }
[data-edit="sabores"]        { --x: 24.5%;  --y: 71.5%;  --z: 15; }
[data-edit="footer"]         { --x: 5.7%;   --y: 90.1%;  --w: 88.6%;  --z: 12; }

/* =========================================================
   ANIMACIÓN DE ENTRADA CINEMATOGRÁFICA AL CARGAR LA PÁGINA
   ========================================================= */

@keyframes heroBarTopEnter {
  0% {
    translate: 0 -105%;
    opacity: 0;
  }
  100% {
    translate: 0 0;
    opacity: 1;
  }
}

@keyframes heroBarBottomEnter {
  0% {
    translate: 0 105%;
    opacity: 0;
  }
  100% {
    translate: 0 0;
    opacity: 1;
  }
}

@keyframes heroLogoEnter {
  0% {
    translate: 0 -35px;
    opacity: 0;
  }
  100% {
    translate: 0 0;
    opacity: var(--o, 1);
  }
}

@keyframes heroNavLeftEnter {
  0% {
    translate: -30px 0;
    opacity: 0;
  }
  100% {
    translate: 0 0;
    opacity: var(--o, 1);
  }
}

@keyframes heroNavRightEnter {
  0% {
    translate: 30px 0;
    opacity: 0;
  }
  100% {
    translate: 0 0;
    opacity: var(--o, 1);
  }
}

@keyframes heroFondoEnter {
  0% {
    opacity: 0;
    filter: blur(14px) brightness(1.15);
  }
  100% {
    opacity: var(--o, 1);
    filter: blur(0px) brightness(1);
  }
}

@keyframes heroProductEnter {
  0% {
    translate: 0 60px;
    opacity: 0;
    filter: drop-shadow(0 0 0 rgba(60, 20, 0, 0));
  }
  60% {
    opacity: 1;
  }
  100% {
    translate: 0 0;
    opacity: var(--o, 1);
    filter: drop-shadow(0 calc(14 * var(--u)) calc(18 * var(--u)) rgba(60, 20, 0, 0.35));
  }
}

@keyframes heroHojasEnter {
  0% {
    translate: 35px -25px;
    opacity: 0;
  }
  100% {
    translate: 0 0;
    opacity: var(--o, 1);
  }
}

@keyframes heroTitleEnter {
  0% {
    translate: 0 35px;
    opacity: 0;
  }
  100% {
    translate: 0 0;
    opacity: var(--o, 1);
  }
}

@keyframes heroTextEnter {
  0% {
    translate: 0 25px;
    opacity: 0;
  }
  100% {
    translate: 0 0;
    opacity: var(--o, 1);
  }
}

@keyframes heroBtnEnter {
  0% {
    translate: 0 30px;
    opacity: 0;
  }
  100% {
    translate: 0 0;
    opacity: var(--o, 1);
  }
}

@keyframes heroParticlesLayerEnter {
  0% {
    opacity: 0;
    filter: blur(14px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
  }
}

@keyframes heroSaboresHeaderEnter {
  0% {
    translate: 0 25px;
    opacity: 0;
  }
  100% {
    translate: 0 0;
    opacity: var(--o, 1);
  }
}

@keyframes heroArrowLeftEnter {
  0% {
    translate: -20px 0;
    opacity: 0;
  }
  100% {
    translate: 0 0;
    opacity: var(--o, 1);
  }
}

@keyframes heroArrowRightEnter {
  0% {
    translate: 20px 0;
    opacity: 0;
  }
  100% {
    translate: 0 0;
    opacity: var(--o, 1);
  }
}

@keyframes heroFlavorCardEnter {
  0% {
    translate: 0 45px;
    opacity: 0;
  }
  100% {
    translate: 0 0;
    opacity: 1;
  }
}

@keyframes heroFooterEnter {
  0% {
    translate: 0 20px;
    opacity: 0;
  }
  100% {
    translate: 0 0;
    opacity: var(--o, 1);
  }
}

/* Asignación de animaciones de entrada escalonadas */
.bar--top                  { animation: heroBarTopEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.bar--bottom               { animation: heroBarBottomEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }

[data-edit="fondo"]          { animation: heroFondoEnter 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.1s both; }
[data-edit="logo"]           { animation: heroLogoEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both; }
[data-edit="producto"]       { animation: heroProductEnter 1.05s cubic-bezier(0.2, 0.9, 0.3, 1) 0.22s both; }
[data-edit="nav-izq"]        { animation: heroNavLeftEnter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both; }
[data-edit="nav-der"]        { animation: heroNavRightEnter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both; }
[data-edit="titulo"]         { animation: heroTitleEnter 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }
[data-edit="hojas"]          { animation: heroHojasEnter 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }
.particles-layer           { animation: heroParticlesLayerEnter 1.3s cubic-bezier(0.25, 1, 0.5, 1) 0.45s both; }
[data-edit="parrafo"]        { animation: heroTextEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }
[data-edit="sabores-titulo"] { animation: heroSaboresHeaderEnter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both; }
[data-edit="flecha-izq"]     { animation: heroArrowLeftEnter 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both; }
[data-edit="flecha-der"]     { animation: heroArrowRightEnter 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both; }
[data-edit="boton"]          { animation: heroBtnEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.68s both; }

/* Entrada escalonada de los 4 frascos del carrusel */
.flavor:nth-child(1) { animation: heroFlavorCardEnter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both; }
.flavor:nth-child(2) { animation: heroFlavorCardEnter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both; }
.flavor:nth-child(3) { animation: heroFlavorCardEnter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both; }
.flavor:nth-child(4) { animation: heroFlavorCardEnter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.95s both; }

[data-edit="footer"]         { animation: heroFooterEnter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both; }

/* Liberación de animación tras completar la entrada */
body.hero-ready .bar,
body.hero-ready [data-edit],
body.hero-ready .flavor {
  animation: none !important;
  translate: 0 0;
}

body.hero-ready .particles-layer {
  animation: none !important;
  filter: none;
}

/* En modo editor o con reducción de movimiento: sin animación de entrada */
body.ed-on .bar,
body.ed-on [data-edit],
body.ed-on .flavor,
body.ed-on .particles-layer,
body.ed-busy .bar,
body.ed-busy [data-edit],
body.ed-busy .flavor,
body.ed-busy .particles-layer {
  animation: none !important;
  translate: 0 0 !important;
  filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .bar,
  .el,
  .flavor,
  .particles-layer,
  .particles-layer .particle {
    animation: none !important;
    transition: none !important;
    translate: 0 0 !important;
  }
}

/* ===== Capa de Partículas y Dinámica por Sabor ===== */
.particles-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9;
}

/* ===== Animaciones Flotantes Orgánicas para Partículas ===== */
@keyframes particleFloatA {
  0% {
    translate: 0 0;
  }
  33% {
    translate: 5px -10px;
  }
  66% {
    translate: -6px -19px;
  }
  100% {
    translate: 3px -9px;
  }
}

@keyframes particleFloatB {
  0% {
    translate: 0 0;
  }
  35% {
    translate: -7px -12px;
  }
  70% {
    translate: 6px -21px;
  }
  100% {
    translate: -4px -8px;
  }
}

@keyframes particleFloatC {
  0% {
    translate: 0 0;
  }
  40% {
    translate: 8px -9px;
  }
  75% {
    translate: -5px -16px;
  }
  100% {
    translate: 5px -23px;
  }
}

@keyframes particleFloatD {
  0% {
    translate: 0 0;
  }
  32% {
    translate: -6px -14px;
  }
  68% {
    translate: 7px -8px;
  }
  100% {
    translate: -3px -18px;
  }
}

@keyframes particleFloatE {
  0% {
    translate: 0 0;
  }
  45% {
    translate: 6px -17px;
  }
  80% {
    translate: -7px -9px;
  }
  100% {
    translate: 4px -15px;
  }
}

.particles-layer .particle {
  position: absolute;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform, opacity, filter, translate;
  transition: opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1),
              filter 0.45s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center center;
  animation: particleFloatA 5.8s ease-in-out infinite alternate;
}

.particles-layer .particle:nth-child(2n) {
  animation-name: particleFloatB;
  animation-duration: 7.2s;
  animation-delay: -1.6s;
}

.particles-layer .particle:nth-child(3n) {
  animation-name: particleFloatC;
  animation-duration: 8.1s;
  animation-delay: -3.3s;
}

.particles-layer .particle:nth-child(4n) {
  animation-name: particleFloatD;
  animation-duration: 6.6s;
  animation-delay: -2.1s;
}

.particles-layer .particle:nth-child(5n) {
  animation-name: particleFloatE;
  animation-duration: 8.8s;
  animation-delay: -4.2s;
}

.particles-layer .particle:nth-child(6n) {
  animation-name: particleFloatB;
  animation-duration: 6.3s;
  animation-delay: -0.9s;
}

.particles-layer .particle:nth-child(7n) {
  animation-name: particleFloatC;
  animation-duration: 7.7s;
  animation-delay: -2.8s;
}

/* Partícula oculta cuando no corresponde al sabor activo: transición ultra-limpia con desenfoque óptico */
.particles-layer .particle.is-hidden {
  opacity: 0 !important;
  filter: blur(6px) !important;
  pointer-events: none !important;
  transform: rotate(var(--r, 0deg)) scale(calc(var(--s, 1) * var(--sx, 1) * 0.72), calc(var(--s, 1) * var(--sy, 1) * 0.72)) !important;
}

/* Modo editor: cuando el usuario activa "Ver todas", las partículas de otros sabores se ven transparentes */
body.ed-show-all .particles-layer .particle.is-hidden {
  opacity: 0.26 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  animation-play-state: running !important;
  transform: rotate(var(--r, 0deg)) scale(calc(var(--s, 1) * var(--sx, 1)), calc(var(--s, 1) * var(--sy, 1))) !important;
  filter: grayscale(70%) drop-shadow(0 0 3px rgba(255, 140, 0, 0.7));
}

body.ed-busy .particles-layer .particle {
  animation-play-state: paused !important;
}

/* Elementos y partículas ocultados manualmente por el usuario en el editor */
.el.is-editor-hidden,
.particle.is-editor-hidden {
  display: none !important;
}

/* Partículas bloqueadas en el editor */
.particle.is-locked {
  pointer-events: none !important;
  user-select: none !important;
}

/* Elementos del hero bloqueados: evitan arrastre pero NUNCA bloquean interacción con botones o enlaces */
.el.is-locked:not(.flavors):not(.flavor):not(.arrow):not(.btn-wa):not(button):not(a) {
  user-select: none !important;
}

/* Carrusel de sabores, flechas, botón de WhatsApp y enlaces SIEMPRE interactivos y clickeables */
#flavors,
.flavors,
.flavor,
.arrow,
#prev,
#next,
#btn-wa,
.btn-wa,
.nav a,
.footer a {
  pointer-events: auto !important;
}

.flavor,
.arrow,
#prev,
#next,
#btn-wa,
.btn-wa {
  cursor: pointer !important;
}

/* =========================================================
   POSICIONES Y CONFIGURACIÓN DE PARTÍCULAS POR SABOR
   ========================================================= */

/* ===== Partículas: 🌟 Todos (Globales) (9) ===== */
.particle[data-pid="p_02_mvgxcsln0"] { --x: 23.90%; --y: 18.40%; --w: 3.37%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_01_mvgxd24f1"] { --x: 13.75%; --y: 44.36%; --w: 4.99%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_26_mvgxdduk2"] { --x: 31.53%; --y: 54.14%; --w: 4.56%; --z: 9; --r: -12.3deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_07_mvgxepbv3"] { --x: 31.25%; --y: 36.23%; --w: 2.33%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_11_mvgxeuko4"] { --x: 14.60%; --y: 30.59%; --w: 4%; --z: 9; --r: -35.7deg; --s: 0.519; --sx: 1; --sy: 1.137; --o: 1; }
.particle[data-pid="p_23_mvgxfetu5"] { --x: 30.74%; --y: 43.63%; --w: 2.44%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_24_mvgxfk6r6"] { --x: 17.42%; --y: 26.12%; --w: 2.37%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_25_mvgxfp8a7"] { --x: 15.25%; --y: 52.63%; --w: 2.29%; --z: 9; --r: -28.7deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_19_mvgxlx2m21"] { --x: 31.58%; --y: 46.43%; --w: 1.94%; --z: 9; --r: 63.6deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }

/* ===== Partículas: 🌶️ Tradicional (14) ===== */
.particle[data-pid="p_09_mvgxgxpw8"] { --x: 30.32%; --y: 29.17%; --w: 1.83%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_17_mvgxh6hh9"] { --x: 14.62%; --y: 40.03%; --w: 2.39%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_20_mvgxhfmv10"] { --x: 28.30%; --y: 24.14%; --w: 2.66%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_18_mvgxhu5g11"] { --x: 33.68%; --y: 38.94%; --w: 2.20%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_09_mvgxi64o12"] { --x: 12.72%; --y: 37.50%; --w: 1.64%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_09_mvgxiaho13"] { --x: 13.13%; --y: 35.59%; --w: 0.93%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_09_mvgxigpv14"] { --x: 31.99%; --y: 31.01%; --w: 1.10%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_09_mvgxiodo15"] { --x: 17.21%; --y: 31.81%; --w: 1.25%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_09_mvgxiue716"] { --x: 33.12%; --y: 47.64%; --w: 1.08%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_09_mvgxizi117"] { --x: 26.26%; --y: 24.79%; --w: 1.04%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_09_mvgxj4h218"] { --x: 17.40%; --y: 52.75%; --w: 0.89%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_09_mvgxjaae19"] { --x: 19.41%; --y: 27.64%; --w: 0.92%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_17_mvgxn6uz22"] { --x: 20.93%; --y: 23.51%; --w: 2.04%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_16_mvgxnrle23"] { --x: 11.75%; --y: 43.48%; --w: 2.14%; --z: 9; --r: -13.8deg; --s: 0.697; --sx: 1; --sy: 1.136; --o: 1; }

/* ===== Partículas: 🫐 Arándanos (20) ===== */
.particle[data-pid="p_09_mvgxp1eu25"] { --x: 29.99%; --y: 26.41%; --w: 1.57%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_09_mvgxp7lu26"] { --x: 28.74%; --y: 25.58%; --w: 1.26%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_09_mvgxptle28"] { --x: 15.24%; --y: 41.42%; --w: 1.46%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_09_mvgxpyxg29"] { --x: 20.41%; --y: 25.15%; --w: 1.55%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_05_mvgxq5z930"] { --x: 33.98%; --y: 31.31%; --w: 1.64%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_03_mvgxqmq332"] { --x: 33.13%; --y: 40.54%; --w: 2.03%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_10_mvgxqq8h33"] { --x: 12.40%; --y: 47.61%; --w: 1.76%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_03_mvgxqyiz34"] { --x: 26.35%; --y: 25.16%; --w: 1.71%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_03_mvgxr2vx35"] { --x: 20.43%; --y: 20.42%; --w: 2.04%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_10_mvgxr6ku36"] { --x: 35.56%; --y: 51.67%; --w: 1.66%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_10_mvgxrbvq37"] { --x: 15.13%; --y: 26.89%; --w: 1.91%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_10_mvgxrezu38"] { --x: 31.51%; --y: 22.53%; --w: 1.59%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_08_mvgxrkv239"] { --x: 35.29%; --y: 41.90%; --w: 1.78%; --z: 9; --r: 37.9deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_08_mvgxruy841"] { --x: 12.60%; --y: 52.12%; --w: 1.84%; --z: 9; --r: -56.3deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_04_mvgxsex942"] { --x: 11.71%; --y: 39.22%; --w: 1.90%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_09_mvgxsq5v43"] { --x: 16.53%; --y: 42.93%; --w: 1.38%; --z: 9; --r: -36.0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_04_mvgxt7d644"] { --x: 17.71%; --y: 21.18%; --w: 1.53%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_04_mvgxtfuy45"] { --x: 36.93%; --y: 48.44%; --w: 1.53%; --z: 9; --r: -41.1deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_08_mvgxz8xw46"] { --x: 31.93%; --y: 26.55%; --w: 1.96%; --z: 9; --r: 39.0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_08_mvgxzf2j47"] { --x: 12.84%; --y: 31.51%; --w: 1.79%; --z: 9; --r: -28.5deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }

/* ===== Partículas: 🔥 Morita con Pistache (17) ===== */
.particle[data-pid="p_18_mvgxzu3q48"] { --x: 15.46%; --y: 40.78%; --w: 2.31%; --z: 9; --r: -34.8deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_18_mvgy03p949"] { --x: 30.49%; --y: 29.30%; --w: 2.61%; --z: 9; --r: 48.8deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_12_mvgy0nly50"] { --x: 30.16%; --y: 26.93%; --w: 1.96%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_13_mvgy0qpy51"] { --x: 29.40%; --y: 24.76%; --w: 1.18%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_14_mvgy13db52"] { --x: 12.52%; --y: 52.37%; --w: 1.90%; --z: 9; --r: -25.1deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_14_mvgy1bjw53"] { --x: 33.87%; --y: 43.37%; --w: 1.63%; --z: 9; --r: 48.2deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_14_mvgy1jpd54"] { --x: 20.24%; --y: 21.35%; --w: 1.76%; --z: 9; --r: -18.4deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_13_mvgy1sn255"] { --x: 12.96%; --y: 38.97%; --w: 1.57%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_12_mvgy1ylg56"] { --x: 12.58%; --y: 35.81%; --w: 1.94%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_05_mvgy28dl57"] { --x: 33.97%; --y: 38.04%; --w: 1.58%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_05_mvgy2c1u58"] { --x: 14.14%; --y: 29.29%; --w: 1.55%; --z: 9; --r: 21.4deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_04_mvgy2k0459"] { --x: 35.60%; --y: 49.41%; --w: 2.00%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_04_mvgy2pkx60"] { --x: 11.61%; --y: 46.27%; --w: 1.89%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_05_mvgy2wwu61"] { --x: 26.62%; --y: 21.48%; --w: 1.95%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_13_mvgy38dc62"] { --x: 15.70%; --y: 24.30%; --w: 1.36%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_12_mvgy3eqp63"] { --x: 16.91%; --y: 23.01%; --w: 1.58%; --z: 9; --r: 72.3deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_16_mvgy3qu864"] { --x: 20.18%; --y: 15.11%; --w: 2.01%; --z: 9; --r: -99.2deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }

/* ===== Partículas: 🥓 Chicharrón Hab. (8) ===== */
.particle[data-pid="p_21_mvgy6fle70"] { --x: 19.86%; --y: 21.27%; --w: 2.29%; --z: 9; --r: 15.4deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_28_mvgy6le271"] { --x: 30.87%; --y: 27.62%; --w: 1.94%; --z: 9; --r: 19.1deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_21_mvgy6tta72"] { --x: 15.32%; --y: 39.53%; --w: 2.38%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_27_mvgy6yoa73"] { --x: 33.26%; --y: 43.92%; --w: 2.92%; --z: 9; --r: 15.2deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_27_mvgy73j574"] { --x: 12.72%; --y: 49.18%; --w: 2.15%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_27_mvgy7c5j75"] { --x: 26.57%; --y: 22.48%; --w: 2.53%; --z: 9; --r: 0deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_07_mvgy9okh76"] { --x: 29.08%; --y: 25.21%; --w: 1.90%; --z: 9; --r: 19.5deg; --s: 1; --sx: 1; --sy: 1; --o: 1; }
.particle[data-pid="p_22_mvgya03p77"] { --x: 17.02%; --y: 30.95%; --w: 1.78%; --z: 9; --r: 50.1deg; --s: 1; --sx: 1.374; --sy: 1; --o: 1; }


/* Frasco grande glow */
[data-edit="producto"]::before {
  content: "";
  position: absolute;
  inset: -18% -30% -6%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 55%, rgba(255, 214, 120, 0.55), rgba(255, 190, 90, 0.18) 45%, transparent 70%);
  pointer-events: none;
}

/* ===== Ornamento flor ===== */
.flor {
  width: calc(20 * var(--u));
  height: auto;
  flex: none;
}

.flor--tiny {
  width: calc(9 * var(--u));
}

/* ===== Navegación (header) ===== */
.nav {
  display: flex;
  align-items: center;
  width: max-content;
  height: calc(105 * var(--u));          /* = alto de .bar--top (11.2%) */
  padding-top: calc(22 * var(--u));      /* baja el texto: centro en y≈64u como la referencia */
  gap: calc(38 * var(--u));
  white-space: nowrap;
}

.nav a {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: calc(14 * var(--u));
  line-height: 1;
  letter-spacing: 0.22em;
  color: var(--rojo-texto);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--vino-oscuro);
}

.nav .flor {
  width: calc(16 * var(--u));
  height: auto;
  flex: none;
}

.nav__tag {
  margin: 0 0 0 calc(17 * var(--u));      /* flor → tag ≈ 55u como en la referencia */
  text-align: left;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: calc(11.5 * var(--u));
  line-height: calc(17 * var(--u));
  letter-spacing: 0.2em;
  color: var(--rojo-texto);
}

.nav__line {
  display: block;
  width: calc(58 * var(--u));
  height: calc(1.5 * var(--u));
  background: var(--dorado);
  margin: calc(16 * var(--u)) 0 0 calc(-18 * var(--u)); /* tag → línea ≈ 20u */
}

.nav--left  { gap: calc(38 * var(--u)); }
.nav--right { gap: calc(40 * var(--u)); }

/* ===== Párrafo ===== */
.hero__text {
  margin: 0;
  text-align: center;
  white-space: nowrap;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: calc(21.5 * var(--u));
  line-height: calc(28 * var(--u));
  letter-spacing: 0.01em;
  color: var(--rojo-texto);
}

/* ===== Botón WhatsApp ===== */
.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(14 * var(--u));
  width: calc(308 * var(--u));
  height: calc(54 * var(--u));
  border-radius: 999px;
  color: var(--crema-texto);
  background: linear-gradient(180deg, var(--vino) 0%, var(--vino-oscuro) 100%);
  border: calc(1.5 * var(--u)) solid rgba(211, 171, 95, 0.55);
  box-shadow: 0 calc(6 * var(--u)) calc(14 * var(--u)) rgba(90, 10, 10, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: calc(17 * var(--u));
  letter-spacing: 0.07em;
  transition: filter 0.2s, transform 0.2s;
}

.btn-wa:hover {
  filter: brightness(1.12);
}

.btn-wa .ico--wa {
  width: calc(34 * var(--u));
  height: calc(34 * var(--u));
  object-fit: contain;
  flex: none;
  display: block;
  filter: drop-shadow(0 calc(2 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, 0.25));
}

.btn-wa .spark {
  position: absolute;
  right: calc(20 * var(--u));
  top: calc(8 * var(--u));
  font-style: normal;
  font-size: calc(8 * var(--u));
  color: var(--crema-texto);
  opacity: 0.9;
}

/* ===== Título NUESTROS SABORES ===== */
.sabores-title {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--u));
}

.sabores-title .line {
  flex: 1;
  height: calc(1.5 * var(--u));
  background: var(--vino);
  opacity: 0.75;
}

.sabores-title h2 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: calc(14 * var(--u));
  letter-spacing: 0.5em;
  color: var(--rojo-texto);
  white-space: nowrap;
}

.sabores-title .flor {
  width: calc(16 * var(--u));
}

/* ===== Flechas ===== */
.arrow {
  width: calc(20 * var(--u));
  height: calc(36 * var(--u));
  color: var(--vino);
  transition: transform 0.2s, opacity 0.2s;
}

.arrow:hover {
  opacity: 0.7;
}

.arrow svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* ===== Sabores ===== */
.flavors {
  display: flex;
  align-items: flex-start;
  gap: calc(45 * var(--u));
}

.flavor {
  width: calc(214 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flavor__top {
  height: calc(123 * var(--u));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.flavor__circle {
  position: relative;
  width: calc(132 * var(--u));
  height: calc(132 * var(--u));
  border-radius: 50%;
  margin-bottom: calc(-16 * var(--u));
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 38%, var(--pergamino-claro) 0%, #ecdab5 72%);
  border: calc(1.5 * var(--u)) solid var(--dorado);
  box-shadow: 0 calc(6 * var(--u)) calc(14 * var(--u)) rgba(70, 30, 0, 0.22);
  transition: width 0.25s, height 0.25s, transform 0.25s;
}

.flavor__circle::before {
  content: "";
  position: absolute;
  inset: calc(-6 * var(--u));
  border-radius: 50%;
  border: calc(1 * var(--u)) solid rgba(138, 26, 26, 0.55);
}

.flavor__circle img {
  height: 78%;
  width: auto;
  max-width: 70%;
  object-fit: contain;
  filter: drop-shadow(0 calc(4 * var(--u)) calc(4 * var(--u)) rgba(50, 10, 0, 0.35));
}

.flavor__label {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(3 * var(--u));
  width: calc(203 * var(--u));
  height: calc(43 * var(--u));
  text-align: center;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: calc(12.5 * var(--u));
  line-height: calc(13 * var(--u));
  letter-spacing: 0.12em;
  color: var(--rojo-texto);
  background: linear-gradient(180deg, #f1e2c2, var(--pergamino-oscuro));
  clip-path: polygon(0 50%, 5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%);
  filter: drop-shadow(0 0 0 var(--dorado));
  transition: background 0.25s, color 0.25s;
}

.flavor__label::before {
  content: "";
  position: absolute;
  inset: calc(2 * var(--u));
  z-index: -1;
  clip-path: polygon(0 50%, 5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%);
  border: calc(1.5 * var(--u)) solid var(--dorado);
  background: transparent;
}

/* Sabor ACTIVO: círculo más grande + pill roja */
.flavor.is-active .flavor__circle {
  width: calc(146 * var(--u));
  height: calc(146 * var(--u));
  border-color: var(--vino);
  transform: translateY(0);
}

.flavor.is-active .flavor__circle::before {
  border-color: var(--vino);
  opacity: 0.9;
}

.flavor.is-active .flavor__label {
  width: calc(213 * var(--u));
  font-size: calc(15 * var(--u));
  letter-spacing: 0.2em;
  color: var(--crema-texto);
  background: linear-gradient(180deg, var(--vino), var(--vino-oscuro));
}

.flavor.is-active .flavor__label .flor {
  filter: brightness(0) invert(0.92);
}

.flavor:not(.is-active):hover .flavor__circle {
  transform: translateY(calc(-4 * var(--u)));
}

/* ===== Footer ===== */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(93 * var(--u));
  color: var(--crema-texto);
}

.footer__line {
  flex: 1;
  max-width: calc(224 * var(--u));
  height: calc(1.5 * var(--u));
  background: var(--dorado);
  opacity: 0.85;
}

.footer__tag {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: calc(13 * var(--u));
  letter-spacing: 0.35em;
  color: var(--dorado-claro);
  white-space: nowrap;
}

.footer__tag i {
  font-style: normal;
  font-size: calc(12 * var(--u));
  margin: 0 calc(10 * var(--u));
}

.footer__item {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--u));
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: calc(18 * var(--u));
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.footer__item .ico {
  width: calc(28 * var(--u));
  height: calc(28 * var(--u));
  object-fit: contain;
  flex: none;
  display: block;
  filter: drop-shadow(0 calc(1 * var(--u)) calc(3 * var(--u)) rgba(0, 0, 0, 0.3));
}

.footer__item .ico--wa {
  width: calc(30 * var(--u));
  height: calc(30 * var(--u));
}

.footer__item .ico--fb {
  width: calc(28 * var(--u));
  height: calc(28 * var(--u));
}

.footer__two {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.footer__two small {
  font-size: calc(14 * var(--u));
}

.footer__two strong {
  font-size: calc(21 * var(--u));
  font-weight: 600;
}

.footer__sep {
  width: calc(1.5 * var(--u));
  height: calc(32 * var(--u));
  background: var(--dorado);
  opacity: 0.8;
}

.footer__item:hover {
  color: var(--dorado-claro);
}

/* ===== Capa de partículas (vacía por defecto) ===== */
.particles-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 7;
}

.particles-layer .particle {
  position: absolute;
  pointer-events: auto;
}

/* ===== Humo / velo desenfocado detrás de NUESTROS SABORES ===== */
.haze {
  position: absolute;
  left: 0;
  width: 100%;
  top: 62%;
  height: 29%;           /* termina justo en la franja inferior (90%) */
  z-index: 5;            /* > fondo(1), < títulos(6) y frascos(7) */
  pointer-events: none;

  /* desenfoque real de lo que hay detrás (la piedra) */
  -webkit-backdrop-filter: blur(calc(5 * var(--u)));
  backdrop-filter: blur(calc(5 * var(--u)));

  /* velo cálido tipo niebla de pergamino */
  background:
    radial-gradient(ellipse 48% 55% at 50% 58%,
      rgba(250, 240, 215, 0.70) 0%,
      rgba(246, 234, 210, 0.45) 45%,
      rgba(239, 223, 194, 0) 78%),
    linear-gradient(to right,
      rgba(246, 234, 210, 0) 0%,
      rgba(246, 234, 210, 0.22) 30%,
      rgba(246, 234, 210, 0.22) 70%,
      rgba(246, 234, 210, 0.0) 100%);

  /* se difumina arriba y abajo para no dejar bordes */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 72%, transparent 100%);
}

/* Humo suave extra (manchas borrosas) para dar textura */
.haze::before,
.haze::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(calc(18 * var(--u)));
  background: rgba(255, 246, 225, 0.55);
  pointer-events: none;
}
.haze::before { left: 18%; top: 22%; width: 26%; height: 46%; }
.haze::after  { left: 54%; top: 30%; width: 28%; height: 40%; opacity: .8; }

