.yfiestas-promo {
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.yfiestas-promo *,
.yfiestas-promo *::before {
  box-sizing: border-box;
}

a.yfiestas-banner {
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: clamp(175px, 21%, 242px) minmax(0, 1fr);
  min-height: 170px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px;
  background: #143f3d;
  box-shadow: 0 15px 34px -22px #10272d9c;
  color: #fffdf8;
  font:
    400 16px/1.25 "Segoe UI",
    system-ui,
    sans-serif;
  text-align: left;
  text-decoration: none;
}

.yfiestas-banner__brand {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 20px;
  background: #fffdf8;
  z-index: 2;
}

.yfiestas-banner__brand img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
}

.yfiestas-banner__stage {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template: "scene" 1fr / minmax(0, 1fr);
}

.yfiestas-banner__scene {
  grid-area: scene;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 20px 206px 20px 27px;
  isolation: isolate;
  overflow: hidden;
  opacity: 0;
}

.yfiestas-banner__scene--agenda {
  opacity: 1;
  background: linear-gradient(104deg, #103c3b, #13615b 55%, #0c4747);
  z-index: 0;
}

.yfiestas-banner__scene--municipios {
  background: linear-gradient(104deg, #41204c, #663866 57%, #4e2756);
  z-index: 1;
}

.yfiestas-banner__scene-copy {
  position: relative;
  z-index: 1;
  max-width: 300px;
  color: #fffdf8;
}

.yfiestas-banner__scene-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #f7d984;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.yfiestas-banner__scene-label::before {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #f8bb5e;
  content: "";
  transform: rotate(45deg);
}

.yfiestas-banner__scene--municipios .yfiestas-banner__scene-label {
  color: #ffd3a6;
}
.yfiestas-banner__scene--municipios .yfiestas-banner__scene-label::before {
  background: #ffab8c;
}

.yfiestas-banner__scene-title {
  display: block;
  font-size: clamp(25px, 3.2vw, 36px);
  font-weight: 790;
  line-height: 1.01;
  letter-spacing: -0.034em;
  text-wrap: balance;
}

.yfiestas-banner__scene-detail {
  display: block;
  margin-top: 9px;
  color: #e3f2e8;
  font-size: 13px;
  line-height: 1.28;
}

.yfiestas-banner__scene--municipios .yfiestas-banner__scene-detail {
  color: #f7e5f2;
}

.yfiestas-banner img.yfiestas-banner__scene-art {
  position: absolute;
  inset: 0 14% 0 31%;
  display: block;
  width: 55%;
  height: 100%;
  object-fit: contain;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 75%, transparent 91%);
  pointer-events: none;
}

.yfiestas-banner__cta {
  position: absolute;
  z-index: 3;
  inset: 50% 23px auto auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 7px 8px 7px 15px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #fff4d9;
  color: #293537;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: 0 4px 14px #20142627;
}

.yfiestas-banner__cta-arrow {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #f5c572;
}

.yfiestas-banner__cta-arrow svg {
  display: block;
  width: 13px;
  height: 13px;
}
.yfiestas-banner:hover .yfiestas-banner__cta {
  background: #fffdf8;
}
.yfiestas-banner:focus-visible {
  outline: 3px solid #267a70;
  outline-offset: 4px;
}

@keyframes yfiestas-alternate-scenes {
  0%,
  43% {
    opacity: 0;
  }
  50%,
  93% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@container (max-width: 990px) {
  .yfiestas-banner img.yfiestas-banner__scene-art {
    left: 37%;
    width: 50%;
    mask-image: linear-gradient(to right, transparent, #000 28%, #000 76%, transparent 100%);
  }
  .yfiestas-banner__scene-copy {
    max-width: 230px;
  }
  .yfiestas-banner__cta {
    right: 14px;
  }
  .yfiestas-banner__scene {
    padding-right: 178px;
  }
}

@container (max-width: 760px) {
  a.yfiestas-banner {
    grid-template-columns: minmax(0, 1fr);
  }
  .yfiestas-banner__brand {
    justify-items: start;
    padding: 12px 19px;
  }
  .yfiestas-banner__brand img {
    width: 160px;
  }
  .yfiestas-banner__scene {
    min-height: 185px;
    padding: 16px 20px 65px;
  }
  .yfiestas-banner__scene-copy {
    max-width: 260px;
  }
  .yfiestas-banner img.yfiestas-banner__scene-art {
    left: 38%;
    width: 65%;
  }
  .yfiestas-banner__cta {
    inset: auto auto 14px 19px;
    transform: none;
  }
}

@container (max-width: 445px) {
  .yfiestas-banner__scene {
    align-items: start;
    min-height: 261px;
  }
  .yfiestas-banner img.yfiestas-banner__scene-art {
    inset: auto -13% 17px auto;
    width: 88%;
    height: 137px;
    mask-image: none;
  }
  .yfiestas-banner__scene-title {
    font-size: 29px;
  }
  .yfiestas-banner__scene-detail {
    font-size: 12px;
  }
}

.yfiestas-banner__control {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 9px;
  display: none;
  width: 26px;
  height: 26px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid #fff4d970;
  border-radius: 50%;
  background: #17252bc7;
  color: #fff4d9;
  cursor: pointer;
}

.yfiestas-banner__control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.yfiestas-banner__control:focus-within {
  outline: 2px solid #fff4d9;
  outline-offset: 2px;
}

.yfiestas-banner__control svg {
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.yfiestas-banner__play,
.yfiestas-banner__control:has(:checked) .yfiestas-banner__pause {
  display: none;
}

.yfiestas-banner__control:has(:checked) .yfiestas-banner__play {
  display: block;
}

@supports selector(:has(*)) {
  @media (prefers-reduced-motion: no-preference) {
    .yfiestas-banner__scene--municipios {
      animation: yfiestas-alternate-scenes 14s ease-in-out infinite both;
    }

    .yfiestas-banner__control {
      display: grid;
    }

    .yfiestas-promo:has(.yfiestas-banner__control :checked) .yfiestas-banner__scene--municipios {
      animation-play-state: paused;
    }
  }
}

@media (forced-colors: active) {
  a.yfiestas-banner,
  .yfiestas-banner__cta {
    border: 1px solid LinkText;
  }

  .yfiestas-banner__control {
    border-color: ButtonText;
    background: ButtonFace;
    color: ButtonText;
  }

  .yfiestas-banner:focus-visible,
  .yfiestas-banner__control:focus-within {
    outline-color: Highlight;
  }
}
