:where(.bf-modal) * {
  font-family: inherit;
  font-size: inherit;
}

:where(.bf-modal) :is(a, b, button, div, p, span, h2) {
  font-family: inherit;
  font-weight: inherit;
}

.bf-modal {
  width: min(560px, 100vw - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 16px;
  background: radial-gradient(120% 70% at 50% 0%, #3a0d17 0%, #111114 55%) #111114;
  color: #fff;
  font-family: "Barlow", Roboto, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.bf-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}
.bf-modal[open] {
  animation: bfmEntrada 0.35s ease-out;
}
.bf-modal :is(p, h2) {
  width: auto;
}
.bf-modal :where(p, h2) {
  margin: 0;
}
.bf-modal__caja {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 24px 24px;
  text-align: center;
}
.bf-modal__cerrar {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #d22747;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.bf-modal__cerrar:hover {
  background: #b51d3a;
}
.bf-modal__cerrar:focus-visible {
  outline: 3px solid #ffc048;
  outline-offset: 2px;
}
.bf-modal__ultimo {
  padding: 4px 12px;
  border-radius: 6px;
  background: #e71212;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.bf-modal__termina {
  font-size: 22px;
  font-weight: 700;
}
.bf-modal__cuenta {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}
.bf-modal__unidad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.bf-modal__lbl {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.bf-modal__num {
  min-width: 58px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #fff;
  color: #1c1c20;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.bf-modal__sep {
  padding-bottom: 6px;
  color: #ffc048;
  font-size: 30px;
  font-weight: 900;
}
.bf-modal__fechas {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 400;
}
.bf-modal__titulo {
  font-size: clamp(34px, 7vw, 48px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.bf-modal__banner {
  display: block;
  width: 100%;
  max-width: 380px;
  border-radius: 12px;
  overflow: hidden;
}
.bf-modal__img {
  display: block;
  width: 100%;
  height: auto;
}
.bf-modal__cta {
  display: inline-block;
  min-width: 220px;
  padding: 13px 34px;
  border-radius: 8px;
  background: #d22747;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s;
}
.bf-modal__cta:hover {
  background: #b51d3a;
  color: #fff;
}
.bf-modal__cta:focus-visible {
  outline: 3px solid #ffc048;
  outline-offset: 3px;
}
.bf-modal__sub {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

@keyframes bfmEntrada {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bf-modal[open] {
    animation: none;
  }
}
@media (max-width: 480px) {
  .bf-modal__caja {
    gap: 8px;
    padding: 24px 14px 18px;
  }
  .bf-modal__termina {
    font-size: 18px;
  }
  .bf-modal__num {
    min-width: 46px;
    font-size: 24px;
  }
  .bf-modal__sep {
    font-size: 24px;
  }
  .bf-modal__banner {
    max-width: 300px;
  }
}