.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6.5rem);
  background-color: var(--cream);
  background-image: linear-gradient(90deg, rgb(248 175 4 / 0.14) 50%, transparent 50%),
    linear-gradient(rgb(248 175 4 / 0.14) 50%, transparent 50%);
  background-size: 56px 56px;
  overflow-x: clip;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 24px;
  background: radial-gradient(circle at 24px 24px, var(--cream) 24px, transparent 25px) repeat-x bottom left / 48px 24px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__copy {
  display: grid;
  justify-items: start;
  gap: 1.4rem;
}

.hero__title {
  margin-top: 0.25rem;
}

.hero__title-mark {
  display: inline-block;
  padding: 0 0.2em;
  border: var(--stroke) solid var(--ink);
  border-radius: 0.3em;
  background: var(--honey);
  box-shadow: 0 4px 0 var(--ink);
  transform: rotate(-2deg);
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 600;
  color: var(--ink);
}

.hero__text {
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.1rem;
  padding-bottom: 6px;
}

.hero__stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  aspect-ratio: 1;
}

.hero__blob {
  position: absolute;
  inset: 6% 4%;
  border: var(--stroke) solid var(--ink);
  border-radius: 58% 42% 52% 48% / 48% 56% 44% 52%;
  background: var(--violet-pale);
  box-shadow: var(--pop-lg);
}

.hero__blob::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed var(--violet);
  border-radius: inherit;
}

.hero__bee {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 52%;
  padding: 0;
  border: 0;
  background: none;
  transform: translate(-50%, -50%);
}

.hero__bee img {
  width: 100%;
  height: auto;
  animation: bee-hover 3.2s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.hero__bee:hover img {
  transform: rotate(-6deg) scale(1.04);
}

.hero__bee:active img {
  transform: rotate(4deg) scale(0.96);
}

.hero__bubble {
  position: absolute;
  top: 4%;
  left: 20%;
  z-index: 3;
  width: max-content;
  max-width: 44%;
  padding: 0.45rem 1rem;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 0 4px 0 var(--ink);
}

.hero__bubble::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 18px;
  width: 14px;
  height: 14px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  background: var(--white);
  transform: rotate(45deg);
}

.sticker {
  position: absolute;
  z-index: 1;
  height: auto;
  rotate: var(--tilt, 0deg);
  filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff)
    drop-shadow(0 -3px 0 #fff) drop-shadow(0 8px 8px rgb(17 17 17 / 0.25));
  animation: sticker-float 4.5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.sticker--queso {
  --tilt: -10deg;
  top: 3%;
  left: 2%;
  width: auto;
  height: 46%;
}

.sticker--aretes {
  --tilt: 9deg;
  --delay: -1.2s;
  top: 4%;
  right: 3%;
  width: 30%;
}

.sticker--portalabiales {
  --tilt: 7deg;
  --delay: -2.4s;
  bottom: 4%;
  left: 3%;
  width: auto;
  height: 36%;
}

.sticker--gameboy {
  --tilt: -7deg;
  --delay: -3.2s;
  right: 2%;
  bottom: 5%;
  width: 34%;
}

.hero__chip {
  position: absolute;
  z-index: 3;
  rotate: var(--tilt, 0deg);
  box-shadow: 0 3px 0 var(--ink);
}

.hero__chip--1 {
  --tilt: -6deg;
  top: 52%;
  left: -1%;
}

.hero__chip--2 {
  --tilt: 5deg;
  top: 38%;
  right: -1%;
}

.hero__chip--3 {
  --tilt: -3deg;
  bottom: 0;
  left: 50%;
  translate: -50% 0;
}

@keyframes bee-hover {
  0%,
  100% {
    transform: translateY(-3%);
  }

  50% {
    transform: translateY(3%);
  }
}

@keyframes sticker-float {
  0%,
  100% {
    translate: 0 -5px;
  }

  50% {
    translate: 0 6px;
  }
}

.categories {
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.categories__list {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1.5rem 1rem;
}

.featured {
  background: var(--honey-pale);
  border-block: var(--stroke) solid var(--ink);
}

.featured__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.featured__grid .product-card:nth-child(even) .product-card__media {
  background: var(--honey-soft);
}

.featured__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.custom {
  background-color: var(--violet);
  background-image: url("../../img/patterns/hex.svg");
  background-size: 56px 96px;
}

.custom__card {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-xl);
  background: var(--cream);
  box-shadow: var(--pop-lg);
}

.custom__card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed rgb(17 17 17 / 0.3);
  border-radius: calc(var(--radius-xl) - 8px);
  pointer-events: none;
}

.custom__copy {
  display: grid;
  justify-items: start;
  gap: 1.1rem;
}

.custom__actions {
  padding-bottom: 6px;
}

.custom__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 320px;
  margin-inline: auto;
  border: var(--stroke) solid var(--ink);
  border-radius: 50%;
  background: var(--honey-soft);
}

.custom__art::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dashed rgb(17 17 17 / 0.4);
  border-radius: 50%;
}

.custom__figure {
  position: relative;
  width: 68%;
  height: auto;
  filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff)
    drop-shadow(0 -3px 0 #fff) drop-shadow(0 8px 8px rgb(17 17 17 / 0.25));
}

.custom__bee {
  position: absolute;
  top: -6%;
  right: -4%;
  width: 34%;
  height: auto;
  animation: bee-hover 3.2s ease-in-out infinite;
}

.steps__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 2.4rem 1.4rem 1.6rem;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--pop);
  counter-increment: step;
}

.step:nth-child(odd) {
  rotate: -1deg;
}

.step:nth-child(even) {
  rotate: 1deg;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: -1.6rem;
  left: 1.2rem;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border: var(--stroke) solid var(--ink);
  border-radius: 50%;
  background: var(--honey);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 3px 0 var(--ink);
}

.step:nth-child(even)::before {
  background: var(--violet-soft);
}

.steps__note {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

@media (max-width: 1099px) {
  .categories__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .featured__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }
}

@media (max-width: 899px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__stage {
    max-width: 440px;
  }

  .custom__card {
    grid-template-columns: 1fr;
  }

  .custom__art {
    max-width: 260px;
  }
}

@media (max-width: 599px) {
  .hero__actions,
  .custom__actions {
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__bubble {
    font-size: 0.85rem;
  }

  .hero__chip {
    font-size: 0.8rem;
  }

  .featured__grid {
    gap: 1rem;
  }

  .product-card__name {
    font-size: 1rem;
  }

  .steps__list {
    grid-template-columns: 1fr;
  }
}
