/* Checkout nativo Beauty Fair. Todo queda bajo #bf-tickets para no alterar
   la landing, cuyos assets /assets/* se sirven con cache immutable. */
#bf-tickets {
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
  max-height: min(900px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  border: 1px solid rgba(254, 185, 92, .42);
  border-radius: 24px;
  background: #18081f;
  color: #fdf0e3;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .68);
  font-family: "Arimo", sans-serif;
  overflow: hidden;
}

#bf-tickets[open] {
  display: flex;
  flex-direction: column;
}

#bf-tickets::backdrop {
  background: rgba(10, 2, 13, .78);
  backdrop-filter: blur(7px);
}

body.bf-tickets-open {
  overflow: hidden;
}

#bf-tickets * {
  box-sizing: border-box;
}

#bf-tickets button,
#bf-tickets input,
#bf-tickets select {
  font: inherit;
}

#bf-tickets button:focus-visible,
#bf-tickets input:focus-visible,
#bf-tickets select:focus-visible {
  outline: 2px solid #feb95c;
  outline-offset: 2px;
}

.bf-tickets__header {
  position: relative;
  flex: 0 0 auto;
  padding: 24px 68px 17px 26px;
  border-bottom: 1px solid rgba(254, 185, 92, .18);
  background: linear-gradient(125deg, rgba(135, 29, 165, .30), rgba(231, 73, 94, .13));
}

.bf-tickets__eyebrow {
  margin: 0 0 3px;
  color: #feb95c;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.bf-tickets__title {
  margin: 0;
  color: #fff;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(26px, 5vw, 35px);
  line-height: 1.05;
}

.bf-tickets__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(253, 240, 227, .26);
  border-radius: 50%;
  background: rgba(18, 5, 22, .42);
  color: #fdf0e3;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.bf-tickets__close:hover {
  border-color: #feb95c;
  color: #feb95c;
}

.bf-tickets__progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  flex: 0 0 auto;
  margin: 0;
  padding: 14px 24px;
  list-style: none;
  border-bottom: 1px solid rgba(254, 185, 92, .12);
}

.bf-tickets__progress li {
  position: relative;
  color: rgba(253, 240, 227, .48);
  font-size: 11px;
  text-align: center;
}

.bf-tickets__progress li::before {
  content: attr(data-number);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin: 0 auto 5px;
  border: 1px solid rgba(253, 240, 227, .25);
  border-radius: 50%;
  background: #18081f;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.bf-tickets__progress li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12px;
  left: calc(50% + 14px);
  width: calc(100% - 28px);
  height: 1px;
  background: rgba(253, 240, 227, .16);
}

.bf-tickets__progress li.bf-is-current,
.bf-tickets__progress li.bf-is-done {
  color: #feb95c;
}

.bf-tickets__progress li.bf-is-current::before,
.bf-tickets__progress li.bf-is-done::before {
  border-color: #feb95c;
  background: #feb95c;
  color: #120516;
}

.bf-tickets__progress li.bf-is-done:not(:last-child)::after {
  background: #feb95c;
}

.bf-tickets__form {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.bf-tickets__body {
  min-height: 0;
  padding: 25px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.bf-tickets__step[hidden] {
  display: none;
}

.bf-tickets__step h3 {
  margin: 0 0 6px;
  color: #fff;
  font-family: "Bodoni Moda", serif;
  font-size: 25px;
  line-height: 1.15;
}

.bf-tickets__intro {
  margin: 0 0 20px;
  color: rgba(253, 240, 227, .70);
  font-size: 14px;
  line-height: 1.45;
}

.bf-tickets__event {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-left: 3px solid #feb95c;
  background: rgba(254, 185, 92, .07);
  color: rgba(253, 240, 227, .78);
  font-size: 13px;
}

.bf-tickets__types {
  display: grid;
  gap: 11px;
}

.bf-tickets__type {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(254, 185, 92, .22);
  border-radius: 15px;
  background: rgba(255, 255, 255, .035);
}

.bf-tickets__type-name {
  margin: 0;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.bf-tickets__type-meta,
.bf-tickets__type-desc {
  margin: 3px 0 0;
  color: rgba(253, 240, 227, .62);
  font-size: 12px;
  line-height: 1.4;
}

.bf-tickets__type-meta {
  color: #feb95c;
  font-weight: 700;
}

.bf-tickets__qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bf-tickets__qty button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(254, 185, 92, .42);
  border-radius: 50%;
  background: rgba(254, 185, 92, .08);
  color: #fdf0e3;
  font-size: 20px;
  cursor: pointer;
}

.bf-tickets__qty button:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.bf-tickets__qty output {
  min-width: 20px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  text-align: center;
}

.bf-tickets__total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid rgba(254, 185, 92, .18);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.bf-tickets__section-title {
  margin: 22px 0 11px;
  color: #feb95c;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.bf-tickets__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.bf-tickets__field {
  display: block;
}

.bf-tickets__field--wide {
  grid-column: 1 / -1;
}

.bf-tickets__field > span {
  display: block;
  margin-bottom: 5px;
  color: rgba(253, 240, 227, .76);
  font-size: 12px;
  font-weight: 700;
}

.bf-tickets__field input,
.bf-tickets__field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(254, 185, 92, .28);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: #fdf0e3;
}

.bf-tickets__field input::placeholder {
  color: rgba(253, 240, 227, .38);
}

.bf-tickets__field input:focus,
.bf-tickets__field select:focus {
  border-color: #feb95c;
  background: rgba(255, 255, 255, .09);
}

.bf-tickets__birth {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.2fr;
  gap: 8px;
}

.bf-tickets__cedula {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px;
}

.bf-tickets__birth select {
  padding-left: 8px;
  padding-right: 4px;
}

.bf-tickets__field select option {
  background: #18081f;
}

.bf-tickets__card-el {
  min-height: 44px;
  padding: 12px;
  border: 1px solid rgba(254, 185, 92, .28);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
}

.bf-tickets__attendees {
  display: grid;
  gap: 14px;
}

.bf-tickets__attendee {
  padding: 15px;
  border: 1px solid rgba(254, 185, 92, .20);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.bf-tickets__attendee h4 {
  margin: 0 0 12px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
}

.bf-tickets__attendee-note {
  margin: -6px 0 12px;
  color: rgba(254, 185, 92, .85);
  font-size: 11px;
  font-weight: 700;
}

.bf-tickets__payment {
  display: grid;
  gap: 10px;
}

.bf-tickets__payment-option {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid rgba(254, 185, 92, .25);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
}

.bf-tickets__payment-option strong,
.bf-tickets__payment-option small {
  display: block;
}

.bf-tickets__payment-option small {
  margin-top: 2px;
  color: rgba(253, 240, 227, .58);
}

.bf-tickets__payment-option--disabled {
  opacity: .48;
  cursor: not-allowed;
}

.bf-tickets__interests {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.bf-tickets__interest {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(254, 185, 92, .2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
  font-size: 13px;
}

.bf-tickets__turnstile {
  min-height: 65px;
  margin-top: 17px;
}

.bf-tickets__bank {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 17px 0;
  overflow: hidden;
  border: 1px solid rgba(254, 185, 92, .22);
  border-radius: 14px;
  background: rgba(254, 185, 92, .18);
}

.bf-tickets__bank div {
  padding: 12px 14px;
  background: #211027;
}

.bf-tickets__bank dt {
  color: rgba(253, 240, 227, .54);
  font-size: 11px;
  text-transform: uppercase;
}

.bf-tickets__bank dd {
  margin: 3px 0 0;
  color: #fff;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.bf-tickets__notice {
  padding: 13px 14px;
  border: 1px solid rgba(254, 185, 92, .25);
  border-radius: 12px;
  background: rgba(254, 185, 92, .08);
  color: rgba(253, 240, 227, .82);
  font-size: 13px;
}

.bf-tickets__rate {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: rgba(253, 240, 227, .62);
}

.bf-tickets__rate:empty {
  display: none;
}

.bf-tickets__upload {
  display: grid;
  gap: 16px;
}

.bf-tickets__file-note {
  margin: 5px 0 0;
  color: rgba(253, 240, 227, .52);
  font-size: 11px;
}

.bf-tickets__file-selected {
  margin: 8px 0 0;
  color: #bfffd8;
  font-size: 12px;
  font-weight: 700;
}

.bf-tickets__success {
  padding: 18px;
  border: 1px solid rgba(95, 210, 145, .45);
  border-radius: 14px;
  background: rgba(95, 210, 145, .10);
  color: #d8ffe7;
}

.bf-tickets__status {
  flex: 0 0 auto;
  min-height: 22px;
  margin: 0 26px 8px;
  padding: 0;
  border-radius: 10px;
  color: #ffadb7;
  font-size: 13px;
}

.bf-tickets__status:empty {
  min-height: 0;
  margin-bottom: 0;
}

/* Mensaje de error: caja con borde y fondo para que sea imposible de pasar
   por alto (antes era texto plano del mismo peso que el resto del formulario). */
.bf-tickets__status:not(:empty):not(.bf-is-ok) {
  padding: 10px 14px;
  border: 1px solid rgba(255, 90, 110, .55);
  background: rgba(255, 90, 110, .16);
  color: #ffe1e5;
  font-weight: 700;
}

/* Los mensajes "ok" (cargando, procesando, éxito) se quedan como texto
   simple: la caja de color es solo para errores, que es lo que de verdad
   hay que hacer imposible de ignorar. */
.bf-tickets__status.bf-is-ok {
  color: #bfffd8;
}

.bf-tickets__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 15px 26px calc(15px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(254, 185, 92, .15);
  background: #130619;
}

.bf-tickets__button {
  min-height: 44px;
  padding: 10px 21px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, #feb95c, #ef5f3d 58%, #e7495e);
  color: #120516;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.bf-tickets__button--secondary {
  border: 1px solid rgba(254, 185, 92, .38);
  background: transparent;
  color: #feb95c;
}

.bf-tickets__button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.bf-tickets__fallback {
  color: #feb95c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 620px) {
  #bf-tickets {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .bf-tickets__header {
    padding: 18px 60px 13px 18px;
  }

  .bf-tickets__close {
    top: 12px;
    right: 13px;
  }

  .bf-tickets__progress {
    padding: 10px 10px;
  }

  .bf-tickets__progress li span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .bf-tickets__body {
    padding: 20px 17px;
  }

  .bf-tickets__grid,
  .bf-tickets__bank {
    grid-template-columns: 1fr;
  }

  .bf-tickets__field--wide {
    grid-column: auto;
  }

  .bf-tickets__status {
    margin-right: 17px;
    margin-left: 17px;
  }

  .bf-tickets__footer {
    padding-right: 17px;
    padding-left: 17px;
  }

  .bf-tickets__button {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bf-tickets::backdrop {
    backdrop-filter: none;
  }
}

.bf-tickets__payment-option--recommended {
  border: 2px solid #4cc38a;
  background: rgba(76, 195, 138, .1);
}

.bf-tickets__payment-option--recommended small {
  color: rgba(253, 240, 227, .82);
}

.bf-tickets__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #4cc38a;
  color: #0b2a1b;
  font-size: .72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .02em;
  vertical-align: middle;
}

.bf-tickets__payment-note {
  margin: 4px 0 0;
  color: rgba(253, 240, 227, .58);
  font-size: .85rem;
}
