@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/* ROOT VARAIBLES */
:root {
  --color-primary: #d31818;
  --color-danger: #ff7300;
  --color-success: #41f18a;
  --color-warning: #ffbb55;
  --color-white: #fff;

  --color-info-dark: #969696;
  --color-info-light: #dce1eb;

  --color-dark: #363949;
  --color-light: rgba(132, 139, 200, 0.18);
  --color-primary-variant: #111e88;
  --color-dark-variant: #677483;
  --color-background: #f6f6f9;

  --card-border-radius: 2rem;
  --border-radius-1: 0.4rem;
  --border-radius-2: 0.8rem;
  --border-radius-3: 1.2rem;

  --card-padding: 1.8rem;
  --padding-1: 1.2rem;

  --trasiton: all 300ms ease;

  --box-shadow: 0 2rem 3rem var(--color-light);
  --box-shadow-form: 0 0rem 0rem var(--color-light);
}

* {
  margin: 0;
  padding: 0;
  outline: 0;
  appearance: none;
  border: 0;
  text-decoration: none;
  list-style: none;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
}

:root {
  --color-primary: #d31818;
}

body {
  background-color: #fff;
  background: var(--color-background);
  background-repeat: no-repeat;
  background-size: 60%;

  background-position: center;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 20px;
  /* Transición */
  position: relative;
  transition: transform 0.1s ease, opacity 0.5s ease;
  background-color: #ffffff;
}

.hidden {
  display: none;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.form- {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 85%;
  padding: 20px;
  border-radius: 20px;
  position: relative;
}

.form-- {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 38rem;
  padding: 20px;
  border-radius: 20px;
  position: relative;
}

.dat-1 {
  display: none;
}

.title- {
  font-size: 28px;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: -1px;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 30px;
}

.title-::before,
.title-::after {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  border-radius: 50%;
  left: 0px;
  background-color: var(--color-primary);
}

.title-::before {
  width: 18px;
  height: 18px;
  background-color: var(--color-primary);
}

.title-::after {
  width: 18px;
  height: 18px;
  animation: pulse 1s linear infinite;
}

.title-- {
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: -1px;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 20px;
}

.title--::before,
.title--::after {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  border-radius: 50%;
  left: 0px;
  background-color: var(--color-primary);
}

.title--::before {
  width: 12px;
  height: 12px;
  background-color: var(--color-primary);
}

.title--::after {
  width: 12px;
  height: 12px;
  animation: pulse 1s linear infinite;
}

.message,
.signin {
  color: rgba(88, 87, 87, 0.822);
  font-size: 14px;
}

.signin {
  text-align: center;
}

.signin a {
  color: var(--color-primary);
}

.signin a:hover {
  text-decoration: underline var(--color-primary);
}

.flex {
  display: flex;
  width: 100%;
  gap: 6px;
}

.next {
  background: red;
  border-radius: 5px;
  padding: 5px;
  color: white;
  width: 100%;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.form label {
  position: relative;
}

.form label .select {
  width: 100%;
  padding: 10px 10px 20px 10px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 10px;
  color: black;
}

.form label .input {
  width: 100%;
  padding: 10px 10px 20px 10px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 10px;
}

.form label .input + span {
  position: absolute;
  left: 10px;
  top: 18px;
  color: grey;
  font-size: 0.9em;
  cursor: text;
  transition: 0.3s ease;
}

.form label .input:placeholder-shown + span {
  top: 15px;
  font-size: 0.9em;
}

.form label .input:focus + span,
.form label .input:valid + span {
  top: 30px;
  font-size: 0.7em;
  font-weight: 600;
}

.form label .date {
  width: 100%;
  padding: 10px 10px 20px 10px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 10px;
}

.form label .date + span {
  position: absolute;
  left: 10px;
  top: 35px;
  color: grey;
  font-size: 0.7em;
  cursor: text;
  transition: 0.3s ease;
}

.form label .date:placeholder-shown + span {
  top: 15px;
  font-size: 0.9em;
}

.form label .date:focus + span,
.form label .date:valid + span {
  top: 30px;
  font-size: 0.7em;
  font-weight: 600;
}

.form label .input:valid + span {
  color: var(--color-primary);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  top: 2rem;
}

.form label .date:valid + span {
  color: var(--color-primary);
}

.form label .select {
  width: 100%;
  padding: 10px 10px 20px 10px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 10px;
  cursor: pointer;
}

.form label .select + span {
  position: absolute;
  left: 10px;
  top: 30px;
  color: grey;
  font-size: 0.9em;
  cursor: text;
  transition: 0.3s ease;
}

.form label .select:placeholder-shown + span {
  top: 15px;
  font-size: 0.9em;
}

.form label .select:valid + span {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  top: 2rem;
}

.form label .select:valid + span {
  color: var(--color-primary);
}

/* --- PARA PAGOS---- */

.form-- label {
  position: relative;
}

.form-- label .select {
  width: 100%;
  padding: 10px 10px 20px 10px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 10px;
  color: black;
}

.form-- label .input {
  width: 100%;
  padding: 10px 10px 20px 10px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 10px;
}

.form-- label .input + span {
  position: absolute;
  left: 10px;
  top: 15px;
  color: grey;
  font-size: 0.9em;
  cursor: text;
  transition: 0.3s ease;
}

.form-- label .input:placeholder-shown + span {
  top: 15px;
  font-size: 0.9em;
}

.form-- label .input:focus + span,
.form-- label .input:valid + span,
.form-- label .input[readonly] + span {
  top: 30px;
  font-size: 0.7em;
  font-weight: 600;
}

.form-- label .date {
  width: 100%;
  padding: 10px 10px 20px 10px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 10px;
}

.form-- label .date + span {
  position: absolute;
  left: 10px;
  top: 30px;
  color: grey;
  font-size: 0.7em;
  cursor: text;
  transition: 0.3s ease;
}

.form-- label .date:placeholder-shown + span {
  top: 15px;
  font-size: 0.9em;
}

.form-- label .date:focus + span,
.form-- label .date:valid + span {
  top: 30px;
  font-size: 0.7em;
  font-weight: 600;
}

.form-- label .input:valid + span,
.form-- label .input[readonly] + span {
  color: var(--color-primary);
}

.form-- label .date:valid + span {
  color: var(--color-primary);
}

.form-- label .select {
  width: 100%;
  padding: 10px 10px 20px 10px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 10px;
  cursor: pointer;
}

.form-- label .select + span {
  position: absolute;
  left: 10px;
  top: 29px;
  color: grey;
  font-size: 0.8em;
  cursor: text;
  font-weight: 700;
  transition: 0.3s ease;
}

.form-- label .select:placeholder-shown + span {
  top: 15px;
  font-size: 0.9em;
}

.form-- label .select:valid + span {
  color: var(--color-primary);
}

.form-- label .select:valid + span {
  color: var(--color-primary);
}

.back-button {
  border: none;
  outline: none;
  background-color: var(--color-dark);
  padding: 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  transform: 0.3s ease;
  cursor: pointer;
  width: 100%;
}
.next-button {
  border: none;
  outline: none;
  background-color: var(--color-primary);
  padding: 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  transform: 0.3s ease;
  cursor: pointer;
  width: 100%;
}
.submit {
  border: none;
  outline: none;
  background-color: var(--color-primary);
  padding: 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  transform: 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.submit:hover {
  background-color: black;
}

.submit- {
  border: none;
  outline: none;
  background-color: var(--color-success);
  padding: 10px;
  border-radius: 10px;
  color: #000000;
  font-size: 16px;
  transform: 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.submit-:hover {
  background-color: black;
}

.submit-gps {
  border: none;
  outline: none;
  background-color: #ff9600;
  padding: 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  transform: 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.submit-gps:hover {
  background-color: black;
}

@keyframes pulse {
  from {
    transform: scale(0.9);
    opacity: 1;
  }

  to {
    transform: scale(1.8);
    opacity: 0;
  }
}

.form-div {
  display: flex;
  column-gap: inherit;
}

.form-short {
  width: 15%;
}

.form-short- {
  width: 25%;
}

.form-50 {
  width: 50%;
}
.form-30 {
  width: 30%;
}

.form-70 {
  width: 70%;
}

.form-100 {
  width: 100%;
}

.form-100- {
  width: 35%;
  background-color: red;
  border-radius: 5px;
  padding: 3px;
  display: flex;
  justify-content: center;
}

.form-70- {
  width: 70%;
  background-color: red;
  border-radius: 5px;
  padding: 3px;
  display: flex;
  justify-content: center;
}

.text-white {
  color: white;
}

.codigo {
  background: var(--color-light);
  border-radius: 5px;
  padding: 2px 10px 2px 10px;
  width: fit-content;
}

.sub-t {
  color: red;
  font-size: 14px;
  font-weight: 600;
}

.date-0 {
  background: transparent;
}

.estado_rePLAY-3ZGDf {
  color: red;
}

input[type="date"]::-webkit-inner-spin-button,
::-webkit-datetime-edit {
  display: flex;
}

.qr-look {
  width: 90%;
  justify-content: center;
  display: flex;
}

.form-102 {
  width: 100%;
  display: grid;
  align-content: center;
  justify-content: center;
  align-items: center;
}

/* subir imagen */

.container-up {
  max-width: 400px;
  width: 100%;
  background: #fff;
  padding: 30px;
  border-radius: 30px;
}

.container-up span {
  align-items: center;
  justify-content: center;
  display: flex;
  font-size: 15px;
}

.container-up b {
  align-items: center;
  justify-content: center;
  display: flex;
  font-size: 15px;
}

.img-area {
  position: relative;
  width: 100%;
  height: 340px;
  background: rgb(26, 26, 26);
  margin-bottom: 30px;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.img-area h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}

.img-area p {
  color: var(--color-primary);
}

.select-image {
  display: block;
  width: 100%;
  padding: 16px 0;
  border-radius: 15px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bnt-next {
  border: none;
  outline: none;
  background-color: var(--color-primary);
  padding: 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  transform: 0.3s ease;
  cursor: pointer;
  width: auto;
  margin: 1rem;
}

.bnt-cert {
  border: none;
  outline: none;
  background-color: purple;
  padding: 10px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 16px;
  transform: 0.3s ease;
  cursor: pointer;
  width: auto;
  margin: 1rem;
}

.span_ {
  background: transparent;
}

.checkbox {
  cursor: pointer;
  background-color: #fff;
  color: #fff;
  width: 20px;
  height: 20px;
  appearance: none;
  border: 1px solid rgba(105, 105, 105, 0.397);
  background-position: 0 -2rem;
  background-size: 100%;
  background-repeat: no-repeat;
  transition: all 0.3s ease-in-out;
  border-radius: 5px;
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

.checkbox:checked {
  background-color: var(--color-primary);
  background-position: 0 0;
}

.checkbox-labelc {
  justify-items: center;
  top: -6px;
}

p {
  font-size: 1rem;
}

@media screen and (min-width: 670px) {
  .mobile-content {
    display: none;
  }
}

/* Custom CSS for loading spinner */
.swal2-loader {
  border-color: red !important;
  border: 15px solid;
  width: 70px;
  /* Tamaño del spinner */
  height: 70px;
  /* Tamaño del spinner */
  /* Change to your desired color */
  border-top-color: transparent !important;
  -webkit-animation: spin 2s linear infinite; /* Animación */
  animation: spin 2s linear infinite;
}

/* Animación de rotación */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.toggle-container input[type="checkbox"] {
  display: none; /* Ocultar el checkbox original */
}

.toggle-container .toggle-text {
  font-size: 1rem;
  color: white;
}

/* Icono personalizado del checkbox */
.toggle-container::before {
  font-size: 1.5rem;
  color: white;
  transition: color 0.3s ease;
}

/* Cambia el icono y el color cuando está marcado */
.toggle-container input[type="checkbox"]:checked + .toggle-text {
  color: white;
}

.toggle-container input[type="checkbox"]:checked + .toggle-text::before {
  color: white;
}

#contenedorImagenes {
  width: 65rem;
  grid-template-columns: 2fr 1fr; /* Dos columnas */
  gap: 10px;
  justify-items: center;
  padding: 10px;
}

.error-message {
  color: red;
  background-color: #ffadad;
  border: 1px solid #eb8496;
  padding: 5px;
  border-radius: 5px;
  margin-bottom: 1rem;
}
.succes-message {
  color: #155724;
  background-color: #b3f8c3;
  border: 1px solid #c3e6cb;
  padding: 5px;
  border-radius: 5px;
  margin-bottom: 1rem;
}
.select-plan-btn {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.select-plan-btn:hover {
    background-color: #0056b3;
}

.plan-chooser.selected {
    border: 2px solid #007bff;
    box-shadow: 0 0 10px rgba(0,123,255,0.3);
}

/* Botón generar contrato (verde) */
#btn-submit {
  background-color: #28a745;
  color: white;
  border-radius: 20px;
}

#btn-submit:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

/* Botón generar contrato (verde) */
#btn-buscar {
  background-color: #ff0033;
  color: white;
  border-radius: 20px;
}

#btn-buscar:hover {
  background-color: #ba0028;
  transform: translateY(-2px);
}

/* Contenedor de botones */
.form-boton {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
}

.form-boton div {
  flex: 1;
}

.signin {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px; /* Ajusta esta altura para que coincida con los otros botones */
}

.signin a {
  background-color: #d31818;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 11px 280px;
  border-radius: 20px;
  transition: all 0.3s ease;
  line-height: 1.5;
  vertical-align: middle;
}


.form-boton-ref {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 20px;
}

.form-boton-ref .submit,
.form-boton-ref .salir-btn {
  flex: 1 1 0;           /* Ambos ocupan el mismo ancho */
  padding: 10px 0;
  font-size: 15px;
  border-radius: 20px;
  text-align: center;
  font-weight: bold;
  line-height: 1.5;
  box-sizing: border-box;
  display: inline-block;
  max-width: none;       /* Elimina el max-width si lo tienes */
  min-width: 0;          /* Permite que se reduzcan igual */
}

.form-boton-ref .submit {
  background-color: #28a745;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.form-boton-ref .submit:hover {
  background-color: #218838;
}

.form-boton-ref .salir-btn {
  background-color: #d31818;
  color: white;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.form-boton-ref .salir-btn:hover {
  background-color: #a00;
}

    /* Aplica flexbox solo al contenedor del botón */
    #btn-submit--container {
      display: flex;
      justify-content: flex-end; /* Alinea a la derecha */
      margin-top: -40px;
  }
  /* Solo para el botón de autorización en esta vista */
  #btn-submit- {
      display: inline-block !important;
      width: auto !important;
      min-width: 180px; /* Más ancho */
      max-width: 300px;
      font-size: 13px;
      padding: 8px 18px;
      background: #3085d6;
      color: #fff;
      border-radius: 20px;
      border: none;
      margin: 0;
      vertical-align: middle;
      text-decoration: none;
      cursor: pointer;
      transition: background 0.2s;
      line-height: 1.2;
      text-align: center;
      white-space: nowrap;
  }
  #btn-submit-:hover {
      background: #2563a6;
      color: #fff;
  }