@import "./import/aside.css";
@import "./import/navbar.css";
@import "./import/general.css";
@import "./import/footer.css";

.contenedor-principal {
  overflow: hidden;
}

.seccion-1 {
  width: 100%;
  height: 80vh;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: start;
  position: relative;
}

.imagen-de-fondo {
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: 100%;
  opacity: 5%;
  object-fit: cover;
  transition: 0.5s;

  &:hover {
    transform: scale(1.005);
  }
}

.contenedor-pago {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 85%;
  margin: 30px 0px 0px 0px;
  padding: 20px;
  background-color: #121212;
  border-radius: 10px;
  cursor: pointer;
  z-index: 1;
}

.contenedor-pago_suscripcion {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #191919;
  border: 2px solid #ff6200;
  border-radius: 5px;
  transition: 0.5s;

  &:hover {
    animation: bordesrgb 2s linear infinite alternate;
    transform: scale(1.02);
  }

  ul {
    font-size: 0.8rem;
  }
}

@keyframes bordesrgb {
  0% {
    border: 2px solid #ff6200;
  }

  25% {
    border: 2px solid #fffb00;
  }

  50% {
    border: 2px solid #6aff00;
  }

  75% {
    border: 2px solid #00ffc8;
  }

  100% {
    border: 2px solid #004cff;
  }
}

.suscripcion-nombre {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;

  p:nth-child(1) {
    font-size: 2rem;
  }
  p:nth-child(2) {
    font-size: 1.5rem;
  }
}

.suscripcion-beneficios {
  display: flex;
  width: 100%;
  padding: 0px 20px;

  ul {
    display: flex;
    width: 100%;
    gap: 20px;
  }
}

.contenedor-pago_metodo {
  width: 100%;
  display: flex;
  margin: 30px 0px 0px 0px;
  justify-content: center;
}

.metodo {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  background: #202020;
  padding: 10px;
  border-radius: 5px;

  img {
    width: 50px;
    height: 30px;
    object-fit: cover;
    border-radius: 5px;
  }
}

.contenedor_formulario {
  display: flex;
  flex-direction: column;
  margin: 10px 0px 0px 0px;

  label {
    font-size: 0.9rem;
    margin: 10px 0px 0px 0px;
  }

  input {
    background-color: transparent;
    border: 1px solid #ff6200;
    border-radius: 5px;
    padding: 2px 15px;
  }

  button {
    width: 50%;
    margin: auto;
    margin-top: 20px;
    background-color: transparent;
    border: 2px solid #ff6200;
    border-radius: 5px;
    transition: 0.5s;

    &:hover {
      background-color: #ff6200;
      transform: scale(1.05);
    }
  }
}

.contenedor_formulario-exp-CVV {
  display: flex;
  width: 100%;
  margin: 10px 0px;

  div {
    width: 50%;
    flex-direction: column;
    align-items: center;

    input {
      width: 50%;
    }
  }
}

input:focus {
  outline: none;
}

.suscripcion-beneficios {
  justify-content: center;
  ul {
    display: flex;
    width: 70%;
    gap: 20px;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    padding: 0px;
  }
}

.contenedor-pago_suscripcion :is(.suscripcion-nombre, .suscripcion-beneficios) {
  p,
  li {
    padding-left: 0px;
    transition: 0.5s;
    list-style-type: none;
    &:hover {
      transform: scale(1.1);
    }
  }

  li {
    padding: 0px 10px;
    background-color: #282828;
    border-radius: 5px;
  }
}

.seccion-1 {
  justify-content: center;
  align-items: center;
}

.pago {
  width: 90%;
  margin-top: 20px;
  padding: 20px;
  background-color: #202020;
  border-radius: 10px;
  z-index: 2;
  animation: rgb 5s linear 1;

  .pago-imagen {
    display: flex;
    justify-content: center;
    img {
      width: 200px;
      height: 100px;
      object-fit: cover;
    }
  }

  .pago-info {
    text-align: center;
  }

  .pago-botones {
    text-align: center;
    padding: 10px;
    .pago-botones_volver {
      padding: 2px 10px;
      border-radius: 5px;
      background-color: #ff6200;
      color: white;
      transition: 0.5s;

      &:hover {
        background-color: #c44b00;
      }
    }
  }
}

.animacion-pago {
  width: 100%;
  height: 100%;
  pointer-events: none;
  position: absolute;
  z-index: 10;
  animation: animacion-pago 5s linear 1 forwards;
}

.carita {
  animation: carita 5s linear 1 forwards;
}

@keyframes animacion-pago {
  0% {
    background-color: black;
  }

  50% {
    background-color: rgba(0, 0, 0, 0);
  }

  100% {
    background-color: black;
  }
}

@keyframes rgb {
  0% {
    border: 2px solid #ff6200;
    box-shadow: 0 0 10px 10px #ff620062;
  }

  50% {
    border: 2px solid rgb(233, 238, 130);
    box-shadow: 0 0 10px 10px rgba(233, 238, 130, 0.477);
  }

  50% {
    border: 2px solid rgb(238, 130, 175);
    box-shadow: 0 0 10px 10px rgba(238, 130, 175, 0.54);
  }

  75% {
    border: 2px solid rgb(130, 144, 238);
    box-shadow: 0 0 10px 10px rgba(130, 144, 238, 0.475);
  }

  100% {
    border: 2px solid violet;
    box-shadow: 0 0 10px 10px rgba(238, 130, 238, 0.496);
  }
}

@keyframes carita {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(2);
  }

  100% {
    transform: scale(1);
  }
}

@media (min-width: 768px) {
  .contenedor-pago {
    width: 60%;
  }

  .suscripcion-beneficios {
    ul {
      width: 60%;
    }
  }

  .pago {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .seccion-1 {
    height: 92vh;
  }
  .contenedor-pago {
    width: 50%;
    margin: 0px;
  }

  .pago {
    width: 40%;
  }

  .metodo {
    img {
      transition: 0.5s;

      &:hover {
        transform: scale(1.05);
      }
    }
  }
}

@media (min-width: 1440px) {
  .contenedor-pago {
    width: 40%;
  }

  .pago {
    width: 30%;
  }

  .suscripcion-beneficios {
    ul {
      width: 50%;
    }
  }
}
