.margintop-20dvh {
  margin-top: 20dvh !important;
}
.rojo-productos {
  color: #9c0037 !important;
}
/* Imagen de productos */
.can {
  max-width: 100%;
  height: auto;
  display: block;
  z-index: 2;
}
.indx {
  position: relative;
  z-index: 1;
}
/* tu bloque existente, con delay por variable */
.animate {
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
  /* aplica el mismo delay a ambas transiciones */
  transition-delay: var(--delay, 0s), var(--delay, 0s);
}

/* ya tienes estas clases, no cambian, solo ejemplo */
.slide-left {
  transform: translateX(-20px);
}
.slide-left.in-view {
  transform: translateX(0);
  opacity: 1;
}

.titulo-flavors {
  color: #fff;
  text-align: center;
  font-family: "din-2014";
  font-size: clamp(1.35rem, calc(1.875rem + 0.5vw), 1.875rem);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

/* ---------- LAYOUT BASE ---------- */
.pack-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16/5; /* aprox. como tu layout de Figma */
  max-width: 1400px;
  margin: 0 auto;
  overflow: visible; /* para permitir que sobresalgan las latas */
}

.pack-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  z-index: 1;
}

.pack-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: visible;
  pointer-events: none; /* el hover es del contenedor */
}

/* ---------- CANS (ajustadas a altura) ---------- */
.pack-can {
  position: absolute;
  height: auto;
  width: 95%;
  bottom: 6%;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
  transform-origin: center bottom;
  transition: transform 0.45s ease, opacity 0.45s ease;
  will-change: transform;
}

/* Posiciones aproximadas */
.pack-can--strawberry {
  left: 2%;
  transform: rotate(-9deg);
}

.pack-can--pineapple {
  left: 4%;
  bottom: -7%;
  transform: rotate(-4deg);
}

.pack-can--citrus {
  right: 3%;
  bottom: -5%;
  transform: rotate(4deg);
}

.pack-can--kiwi {
  right: 2%;
  bottom: 10%;
  transform: rotate(9deg);
}

/* ---------- TITLE (oculto hasta hover) ---------- */
.pack-title {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90%;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

/* ---------- HOVER EFFECTS ---------- */
.pack-card:hover .pack-title {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* strawberry y kiwi “salen” por los lados */
.pack-card:hover .pack-can--strawberry {
  transform: rotate(-6deg) translateX(-10%);
}

.pack-card:hover .pack-can--kiwi {
  transform: rotate(6deg) translateX(10%);
}

/* ligero énfasis al hover en las del centro */
.pack-card:hover .pack-can--pineapple {
  transform: rotate(-0deg) translateX(-10%);
}

.pack-card:hover .pack-can--citrus {
  transform: rotate(0deg) translateX(10%);
}

/* CITRUS */
.flavor-card .fruit-lime-interior {
  left: -40px;
  bottom: 0px;
  transform: translateY(12px) rotate(-4deg);
  z-index: 4;
}

.flavor-card .fruit-lemon-interior {
  right: -40px;
  bottom: 0px;
  transform: translateY(16px) rotate(4deg);
  z-index: 5;
}

/* KIWI */
.flavor-card .fruit-kiwi-interior {
  left: -35px;
  bottom: 0px;
  transform: translateY(12px) rotate(-4deg);
  z-index: 5;
}

.flavor-card .fruit-kiwislice-interior {
  right: -50px;
  bottom: 0px;
  transform: translateY(16px) rotate(4deg);
  z-index: 4;
}

/* STRAWBERRY */
.flavor-card .fruit-strawberry01-interior {
  left: -35px;
  bottom: 0px;
  transform: translateY(12px) rotate(-4deg);
  z-index: 5;
}

.flavor-card .fruit-strawberry02-interior {
  right: -35px;
  bottom: 0px;
  transform: translateY(16px) rotate(4deg);
  z-index: 4;
}
.flavor-card .fruit-strawberry03-interior {
  right: -50px;
  bottom: 0px;
  transform: translateY(16px) rotate(4deg);
  z-index: 4;
}

/* PINEAPPLE */
.flavor-card .fruit-pinapple-interior {
  left: -50px;
  bottom: 0px;
  transform: translateY(12px) rotate(-4deg);
  z-index: 5;
}

.flavor-card .fruit-pineappleslice-interior {
  right: -50px;
  bottom: 0px;
  transform: translateY(16px) rotate(4deg);
  z-index: 4;
}

.strawberry-color {
  color: #ee3f75 !important;
}
.pineapple-color {
  color: #f58220 !important;
}
.kiwi-color {
  color: #71bf44 !important;
}
.variety-color {
  color: #c2d0d7 !important;
}

.bubbles-interior {
  position: absolute;
  width: 50%;
  z-index: 1;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .pack-can {
    height: clamp(180px, 68%, 320px);
  }
  .pack-title {
    width: clamp(220px, 34vw, 520px);
  }
}

@media (max-width: 640px) {
  .pack-card {
    aspect-ratio: 4/3;
  }
  .pack-can {
    height: clamp(160px, 60%, 280px);
    bottom: 4%;
  }
  .pack-can--pineapple {
    left: 24%;
  }
  .pack-can--citrus {
    right: 24%;
  }
  .pack-title {
    width: clamp(200px, 60vw, 460px);
  }
}
