@font-face {
  font-family: "OppoSans";
  /* La ruta '../fonts/' significa: "sal de la carpeta 'css' y luego entra a 'fonts'" */
  src: url("../fonts/OPPOSansMedium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "OppoSans";
  src: url("../fonts/OPPOSansBold.ttf") format("truetype");
  font-weight: bold;
  /* 700 */
  font-style: normal;
}

/* Estilos del Lightbox de pantalla completa */
#lottie-lightbox {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(11, 39, 57, 0.85) !important;
  display: none !important;
  /* Inicia oculto, forzado */
  justify-content: flex-start !important;
  align-items: center !important;
  flex-direction: column;
  text-align: center;
  z-index: 99999 !important;
}

/* Estilos del contenedor de la animación para mobile */
.disco-container {
  position: absolute;
  width: min(90vw, 700px); /* Hasta 700px pero adaptable a la pantalla */
  height: auto !important;
  z-index: 999 !important;
  top: 16%;
  left: 50%;
  transform: translateX(-50%); /* Centra horizontalmente */
}

.disco-container:nth-of-type(2) {
  margin-top: -32%;
  left: unset;
  right: 4%;
}

/* Clase para desactivar el scroll del body */
body.no-scroll {
  overflow: hidden !important;
}

.title-img {
  position: relative;
  display: inline-block;
  width: 90%;
  max-width: 569px;
  z-index: 999999999;
}

/* Estilos para el botón de cierre */
.close-button {
  position: absolute;
  top: 5%;
  right: 2%;
  color: #000;
  width: 10px;
  height: 11px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000000;
  background-image: url("https://aprodmovistarcomsa.z13.web.core.windows.net/persons/home/animacion-discobar/close.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.close-button:hover {
  opacity: 1;
}

.lottie-lightbox a {
  display: block;
  width: 100%;
  position: absolute;
  top: 0px;
}

.poup-content {
  max-width: 329px;
  margin: 3rem auto 0;
  width: 90%;
  background-size: cover;
  background-position: top;
  border-radius: 12px;
  position: relative;
  display: grid;
  grid-template-rows: 247px auto;
  align-items: center;
  gap: 20px;
}

.poup-content a {
  margin: 0.5rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  max-width: 237px;
  height: 40px;
  background-color: #066fcb;
  color: var(--white);
  font-size: 13px;
  border-radius: 56px;
}

.poup-content .img-phone {
  margin: 0 auto;
  width: 80%;
  animation: blur-in-expand 1.5s linear both;
}

.banner-promo {
  margin: 0 auto;
  width: 90%;
  padding: 20px;
  background: linear-gradient(180deg, #cedfef 0%, #ebf4fa 100%);
  border-radius: 5px;
}

.banner-promo {
  animation: bounce-top 0.9s linear both;
}

.bar-brand {
  width: max-content;
  padding: 2px 8px;
  background-color: #201f1c;
  color: var(--white);
  font-family: "OppoSans";
  font-weight: 500;
  font-size: 15px;
}

.main-title-oppo {
  font-family: "OppoSans";
  font-weight: bold;
  color: #201f1c;
  font-size: 31px;
  display: flex;
  gap: 3px;
}

.main-title-oppo span {
  font-size: 14px;
}

@keyframes bounce-top {
  0% {
    transform: translateY(-45px);
    animation-timing-function: ease-in;
    opacity: 1;
  }

  24% {
    opacity: 1;
  }

  40% {
    transform: translateY(-24px);
    animation-timing-function: ease-in;
  }

  65% {
    transform: translateY(-12px);
    animation-timing-function: ease-in;
  }

  82% {
    transform: translateY(-6px);
    animation-timing-function: ease-in;
  }

  93% {
    transform: translateY(-4px);
    animation-timing-function: ease-in;
  }

  25%,
  55%,
  75%,
  87% {
    transform: translateY(0);
    animation-timing-function: ease-out;
  }

  100% {
    transform: translateY(0);
    animation-timing-function: ease-out;
    opacity: 1;
  }
}

@keyframes blur-in-expand {
  0% {
    transform: scale(0);
    filter: blur(12px);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    filter: blur(0);
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .poup-content {
    max-width: 520px;
    grid-template-rows: 370px auto;
  }

  .poup-content a {
    height: 52px;
    font-size: 15px;
  }

  @media (min-width: 1024px) {
    .disco-container {
      top: 10%;
      left: 50%;
      transform: translateX(-50%);
      max-width: 600px !important;
    }
  }

  .close-button {
    font-size: 40px;
  }

  .poup-content {
    margin: 2rem auto 0;
  }

  .poup-content .img-phone {
    width: 100%;
    max-width: 440px;
    height: auto;
  }

  .banner-promo {
    width: 100%;
    padding: 30px 50px 20px;
    margin-top: 2rem;
  }

  .disco-container:nth-of-type(2) {
    margin-top: -12%;
  }
  .bar-brand {
    font-size: 18px;
  }

  .main-title-oppo {
    font-size: 50px;
    gap: 10px;
  }
  .main-title-oppo span {
    font-size: 30px;
  }
}

@media (min-width: 1300px) {
}
