.halloween-countdown {
  --halloween-ink: #211326;
  --halloween-lilac: #9c6cde;
  --halloween-green: #bcff3f;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: center;
  gap: 32px;
  width: min(1125px, calc(100% - 64px));
  min-height: 190px;
  box-sizing: border-box;
  margin: 22px auto 62px;
  padding: 31px 43px;
  overflow: hidden;
  border: 1px solid #d8c5ff96;
  border-radius: 31px;
  background: linear-gradient(112deg, #2c153c 0%, #4b2262 49%, #29163d 100%);
  box-shadow: 0 22px 52px #3a1c5e29, inset 0 1px #ffffff45, inset 0 -1px #10081d55;
  color: #fbf8ff;
}
.halloween-countdown::before,
.halloween-countdown::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(10px);
}
.halloween-countdown::before {
  width: 470px;
  height: 370px;
  right: -98px;
  top: -174px;
  background: radial-gradient(circle, #bdff3f86 0%, #96e42d3d 35%, transparent 70%);
  animation: halloween-aurora 15s ease-in-out infinite alternate;
}
.halloween-countdown::after {
  width: 440px;
  height: 330px;
  left: 18%;
  bottom: -238px;
  background: radial-gradient(circle, #d896ff54 0%, transparent 68%);
  animation: halloween-aurora 19s ease-in-out -5s infinite alternate-reverse;
}
.halloween-copy { position: relative; z-index: 1; max-width: 510px; }
.halloween-label {
  margin: 0 0 10px;
  color: var(--halloween-green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
}
.halloween-copy h2 {
  margin: 0;
  color: #fffaff;
  font-size: clamp(31px, 3.15vw, 45px);
  line-height: .98;
  letter-spacing: -.055em;
}
.halloween-copy h2 em { color: #c9ff5b; font-style: normal; }
.halloween-terms { margin: 12px 0 0; color: #eee6f4; font-size: 16px; line-height: 1.35; }
.halloween-terms strong { color: #fffaff; font-weight: 800; }
.halloween-timer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  border: 1px solid #ffffff38;
  border-radius: 21px;
  background: #25142c70;
  box-shadow: inset 0 1px #ffffff2c, 0 14px 32px #15071e25;
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}
.halloween-timer > span {
  display: grid;
  place-content: center;
  min-width: 64px;
  min-height: 75px;
  padding: 6px 8px;
  border: 1px solid #ffffff33;
  border-radius: 15px;
  background: linear-gradient(145deg, #ffffff1b, #7a3f8e2b);
  box-shadow: inset 0 1px #ffffff33;
  text-align: center;
}
.halloween-timer > span:first-child { border-color: #bcff3f8a; background: linear-gradient(145deg, #3b5b20b8, #203818b0); }
.halloween-timer b { display: block; color: #fffaff; font-size: 29px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.halloween-timer small { display: block; margin-top: 8px; color: #e7ddef; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.halloween-timer i { align-self: center; color: var(--halloween-green); font-size: 17px; font-style: normal; font-weight: 800; }
.halloween-bats { position: absolute; z-index: 0; width: 400px; right: -68px; top: -20px; opacity: .48; pointer-events: none; animation: halloween-bats-drift 17s ease-in-out infinite alternate; }
.halloween-bats img { display: block; width: 100%; height: auto; }
.halloween-countdown.is-active .halloween-timer > span, .halloween-countdown.is-active .halloween-timer i { display: none; }
.halloween-countdown.is-active .halloween-timer::before { content: "¡Los obsequios ya comenzaron!"; color: #efffd1; font-size: 14px; font-weight: 850; white-space: nowrap; }
@keyframes halloween-aurora { to { transform: translate3d(-32px, 22px, 0) scale(1.13); } }
@keyframes halloween-bats-drift { to { transform: translate3d(-13px, 8px, 0) rotate(-1.5deg); } }
@media (max-width: 980px) {
  .halloween-countdown { grid-template-columns: minmax(205px, 1fr) auto; gap: 14px; width: calc(100% - 48px); padding: 27px 28px; }
  .halloween-timer { gap: 4px; padding: 7px; }
  .halloween-timer > span { min-width: 48px; min-height: 65px; padding: 7px 4px; }
  .halloween-timer b { font-size: 23px; }
  .halloween-bats { width: 345px; right: -88px; top: -4px; }
}
@media (max-width: 760px) {
  .halloween-countdown { grid-template-columns: 1fr; gap: 15px; width: calc(100% - 30px); min-height: 0; margin: 18px auto 40px; padding: 22px 20px 18px; border-radius: 26px; }
  .halloween-copy { max-width: 260px; }
  .halloween-copy h2 { font-size: clamp(30px, 8vw, 39px); }
  .halloween-terms { font-size: 14px; }
  .halloween-timer { justify-content: space-between; gap: 5px; width: 100%; box-sizing: border-box; }
  .halloween-timer > span { flex: 1; min-width: 0; min-height: 67px; }
  .halloween-bats { width: 245px; right: -50px; top: -14px; opacity: .34; }
}
@media (max-width: 390px) {
  .halloween-countdown { width: calc(100% - 20px); padding: 19px 15px 15px; }
  .halloween-label { font-size: 10px; }
  .halloween-copy { max-width: 232px; }
  .halloween-copy h2 { font-size: 29px; }
  .halloween-terms { font-size: 13px; }
  .halloween-timer { padding-left: 6px; padding-right: 6px; }
  .halloween-timer > span { min-height: 60px; }
  .halloween-timer b { font-size: 22px; }
  .halloween-timer small { font-size: 8px; }
  .halloween-bats { width: 215px; right: -42px; top: -12px; opacity: .30; }
}
@media (prefers-reduced-motion: reduce) { .halloween-countdown::before, .halloween-countdown::after, .halloween-bats { animation: none; } }
