/* Botones */

/* https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:focus,
.button:focus {
  /* Provide a fallback style for browsers
     that don't support :focus-visible */
  outline: none;
}

a:focus:not(:focus-visible),
.button:focus:not(:focus-visible) {
  /* Remove the focus indicator on mouse-focus for browsers
     that do support :focus-visible */
}

a:focus-visible,
.button:focus-visible {
  /* Draw a very noticeable focus style for
     keyboard-focus on browsers that do support
     :focus-visible */
  outline: 2px solid #443ffc;
  outline-offset: 3px;
}

a:focus-visible {
  background: none;
}

.button {
  display: flex;
  min-width: 220px;
  padding: 15px 30px;

  font-size: 12px;
  font-weight: 700;
  line-height: 30px;

  transition: all 0.3s ease;
  text-align: center;
  letter-spacing: 2.5px;
  text-transform: uppercase;

  color: #000;
  border: none;
  border-radius: 45px;
  outline: none;
  background: #fff;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);

  align-items: center;
  justify-content: center;
  will-change: translate;
}

.button span {
  margin-right: 12px;
}

/* Tamaños */
.button.small {
  min-width: unset;
  padding: 8px 30px;

  font-size: 11px;
  line-height: 30px;
}

/* Colores */

.button {
  white-space: nowrap;
}

.button.whatsapp {
  background: #4db84d;
}

.button.azul {
  color: white;
  background: rgba(0, 58, 138, 1);
}
.button.azul:hover {
  background: rgba(30, 100, 196, 1);
  box-shadow: none;
}

.button.blanco {
  color: black;
  background: rgba(255, 255, 255, 1);
  box-shadow: none;
}

.button.blanco.borde {
  border: 2px solid #ececec;
}
.button.blanco:hover {
  background-color: #e4e4e4;
  color: black;
}

.button.negro {
  color: white;
  background: rgba(0, 0, 0, 1);
}

.button.negro:hover {
  background: rgba(66, 66, 66, 1);
}

.button.amarillo {
  color: black;
  background: #ebcc09;
}

.button.amarillo:hover {
  background: #f6e15b;
}

.button:hover {
  transform: translateY(-7px);

  color: #fff;
  background: #23c483;
}

.button:active {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  pointer-events: none;
  transform: none;

  color: #fff;
  background: #bababa;
  box-shadow: none;
}

.button.transparente {
  border: 1px solid #858585;
  background: transparent;
}

.button.super-small {
  max-width: unset;
  min-width: unset;
  padding: 0 16px;

  font-size: 9px;
  line-height: 30px;
}

.disabled {
  cursor: not-allowed; /* Cambia el cursor para indicar que no se puede hacer clic */
  pointer-events: none; /* Desactiva todos los eventos del mouse */

  opacity: 0.5; /* Reduce la opacidad para indicar que está desactivado */
}
.disabled-full {
  display: none;
  visibility: hidden;

  cursor: not-allowed; /* Cambia el cursor para indicar que no se puede hacer clic */
  pointer-events: none; /* Desactiva todos los eventos del mouse */

  opacity: 0; /* Reduce la opacidad para indicar que está desactivado */
}

.formularios {
  font-family: var(--form-font);

  --form-boton: #003a8a;
  --form-boton-hover: #3470c2;
  --form-font: "Nunito";
  --form-fs: 18px;
  --form-fs-label: 18px;
  --form-margin: 3rem 0;
}

.formularios.claro {
  --form-error: #921111;
  --form-input: black;
  --form-label: grey;
  --form-linea: grey;
  --form-linea-activa: #003a8a;
  --form-select: white;
}

.formularios.oscuro {
  --form-error: #d50000;
  --form-input: white;
  --form-label: #ccc;
  --form-linea: #ccc;
  --form-linea-activa: blue;
  --form-select: white;
}

.campos.select {
  position: relative;

  width: 100%;
  height: 60px;
  margin: var(--form-margin);

  transition: all 0.3s ease-in;

  color: var(--form-input);
}

select {
  position: relative;

  width: 100%;
  height: 50px;
  padding: 0 15px;
  margin: var(--form-margin);

  font-family: var(--form-font);
  font-size: var(--form-fs);

  transition: all 0.3s ease-in;

  color: var(--form-input);
  border-radius: 0.375rem;
}

select {
  padding-right: 2rem;
  margin-right: 2rem;

  border: 1px solid #dfdfdf;
  border-radius: 2px;
  background: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position-x: 95%;
  background-position-y: 13px;

  -webkit-appearance: none;
  -moz-appearance: none;
}

select.dark {
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
}

.campos.select .opcion-activa {
  position: relative;

  width: 100%;
  height: 40px;

  font-family: var(--form-font);
  font-size: var(--form-fs);
  line-height: 40px;

  transition: all 0.3s ease;

  color: var(--form-input);
  border: 0;
  border-bottom: 1px solid var(--form-linea);
  outline: 0;
}

.campos.select.etapas {
  display: none;
}

.campos.select input {
  display: none;
}

.campos.select.focus ul {
  visibility: visible;
  height: auto;

  transition: visibility 0s 0s;
  animation: select-animado-in 0.3s forwards;
}
.campos.select ul {
  position: relative;
  z-index: 100;

  visibility: hidden;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;

  transition: visibility 0s 0.3s;

  background: var(--form-select);
  box-shadow:
    rgba(0, 0, 0, 0.11765) 0 1px 6px,
    rgba(0, 0, 0, 0.11765) 0 1px 4px;
}

@keyframes select-animado-in {
  from {
    height: 0;
  }
  to {
    height: 100%;
  }
}

.campos.select ul li {
  padding: 15px;

  font-size: 14px;
  list-style: none;

  color: black;
}
.campos.select ul li:hover {
  cursor: pointer;

  background-color: rgba(0, 0, 0, 0.05);
}

.campos.select .opcion-activa:hover {
  cursor: pointer;
}

.campos.select .opcion-activa::before {
  position: absolute;
  top: -5px;
  right: 0;

  font-family: "Material Symbols Outlined";
  font-size: 30px;

  content: " \e316";
  transform: rotate(-180deg);

  color: var(--form-label);
}

.campos.select::before {
  position: absolute;
  bottom: 20px;
  left: 50%;
  z-index: 2;

  width: 0;
  height: 2px;

  content: "";
  transition: all 0.3s ease;
  transform: translate(-50%);
  animation: linea-animada-out 0.3s forwards;
}

.campos.select.focus::before,
.campos.select.tiene-contenido::before {
  position: absolute;
  bottom: 20px;
  left: 50%;
  z-index: 1;

  width: 0;
  height: 2px;

  content: "";
  transform: translate(-50%);
  animation: linea-animada-in 0.3s forwards;

  background: var(--form-linea-activa);
}

.campos.select label {
  position: absolute;
  top: 0;
  z-index: 1;

  font-size: var(--form-fs-label);

  transition: all 0.3s ease-in;
  pointer-events: none;

  color: var(--form-label);
}

.campos.select.focus label {
  top: -20px;

  font-size: 14px;
}
.campos.select.tiene-contenido label {
  top: -20px;

  font-size: 14px;
}

/* Inputs */

.campos.input {
  position: relative;

  width: 100%;
  height: 60px;
  margin: var(--form-margin);

  transition: all 0.3s ease;
}

.campos.input input {
  position: relative;

  width: 100%;
  height: 40px;

  font-family: var(--form-font) !important;
  font-size: var(--form-fs);
  font-weight: 500;
  line-height: 100%;

  transition: all 0.3s ease-in;
  letter-spacing: 1px;

  color: var(--form-input);
  border: 0;
  border-bottom: 1px solid var(--form-linea);
  outline: 0;
  background: transparent;
}

.campos.input::before {
  position: absolute;
  top: 38px;
  left: 50%;
  z-index: 2;

  width: 0;
  height: 2px;

  content: "";
  transition: all 0.3s ease;
  transform: translate(-50%);
  animation: linea-animada-out 0.3s forwards;
}

.campos.input.focus::before,
.campos.input.focus.tiene-contenido::before,
.campos.input.tiene-contenido::before {
  position: absolute;
  top: 38px;
  left: 50%;
  z-index: 1;

  width: 0;
  height: 2px;

  content: "";
  transform: translate(-50%);
  animation: linea-animada-in 0.3s forwards;

  background: var(--form-linea-activa);
}

.campos.input label {
  position: absolute;
  top: 5px;

  font-size: var(--form-fs-label);

  transition: all 0.2s ease-in;
  pointer-events: none;

  color: var(--form-label);
}

.campos.input.focus label {
  top: -20px;

  font-size: 14px;
}

.campos.input.tiene-contenido label {
  top: -20px;

  font-size: 14px;
}

/* Prefijo (ej. +56 en teléfono) */

.campos.input.tiene-prefijo label {
  left: 44px;
}

.campos.input.tiene-prefijo.focus label,
.campos.input.tiene-prefijo.tiene-contenido label {
  left: 0;
}

.campos.input.tiene-prefijo input {
  padding-left: 44px;
}

.campos.input .prefijo-input {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;

  height: 40px;

  font-family: var(--form-font);
  font-size: var(--form-fs);
  font-weight: 500;
  line-height: 40px;
  letter-spacing: 1px;

  pointer-events: none;

  color: var(--form-label);
}

.campos.select .error-label {
  position: absolute;
  top: 44px;
  left: 0;

  width: 100%;
  padding-top: 0;

  font-size: 12px;

  color: var(--form-error);
}

.campos.input .error-label {
  position: absolute;
  top: 35px;
  left: 0;

  width: 100%;
  padding-top: 0;

  font-size: 12px;

  color: var(--form-error);
}

.campos.textarea .error-label {
  position: absolute;
  bottom: -30px;

  font-size: 12px;

  color: var(--form-error);
}

.campos.input .nota {
  padding: 5px 0;

  font-size: 12px;
}

/* Errores */
.campos.select.error .opcion-activa::after {
  position: absolute;
  bottom: -1px;
  left: 50%;
  z-index: 2;

  width: 0;
  height: 2px;

  content: "";
  transform: translate(-50%);
  animation: linea-animada-in 0.3s forwards;

  background: var(--form-error);
}

.campos.input.error::after {
  position: absolute;
  top: 38px;
  left: 50%;
  z-index: 2;

  width: 0;
  height: 2px;

  content: "";
  transform: translate(-50%);
  animation: linea-animada-in 0.3s forwards;

  background: var(--form-error);
}

.campos.textarea::after {
  position: absolute;
  top: 148px;
  left: 50%;
  z-index: 2;

  width: 0;
  height: 2px;

  content: "";
  transition: all 0.3s ease;
  transform: translate(-50%);
  animation: linea-animada-out 0.3s forwards;
}

.campos.textarea.focus::after {
  position: absolute;
  top: 148px;
  left: 50%;
  z-index: 2;

  width: 0;
  height: 2px;

  content: "";
  transform: translate(-50%);
  animation: linea-animada-in 0.3s forwards;

  background: var(--form-linea-activa);
}

.campos.textarea.tiene-contenido::after {
  position: absolute;
  top: 148px;
  left: 50%;
  z-index: 2;

  width: 0;
  height: 2px;

  content: "";
  transform: translate(-50%);
  animation: linea-animada-in 0.3s forwards;

  background: var(--form-linea-activa);
}

.campos.textarea.error::after {
  position: absolute;
  top: 148px;
  left: 50%;
  z-index: 2;

  width: 0;
  height: 2px;

  content: "";
  transform: translate(-50%);
  animation: linea-animada-in 0.3s forwards;

  background: var(--form-error);
}

/* Textarea */

.campos.textarea textarea::-webkit-scrollbar {
  width: 6px;
}

.campos.textarea textarea::-webkit-scrollbar-button {
  display: none;
}

.campos.textarea textarea::-webkit-scrollbar-track {
  background-color: transparent;
}

.campos.textarea textarea::-webkit-scrollbar-thumb {
  background: #d2d2d2;
}

.campos.textarea {
  position: relative;

  width: 100%;
  height: 148px;
  margin: var(--form-margin);

  transition: all 0.3s ease-in;
}

.campos.textarea textarea {
  position: relative;

  width: 100%;
  height: 148px;
  padding-top: 7px;
  overflow-y: scroll;

  font-family: var(--form-font);
  font-size: var(--form-fs);
  font-weight: 500;

  resize: none;
  transition: all 0.3s ease-in;
  letter-spacing: 1px;

  color: var(--form-input);
  border: 0;
  border-bottom: 1px solid var(--form-linea);
  outline: 0;
  background: transparent;
}

.campos.textarea label {
  position: absolute;
  top: 0;

  font-size: var(--form-fs-label);

  transition: all 0.3s ease-in;

  color: var(--form-label);
}

.campos.textarea.focus label {
  top: -20px;

  font-size: 14px;
}

.campos.textarea.tiene-contenido label {
  top: -20px;

  font-size: 14px;
}

@keyframes linea-animada-in {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes linea-animada-out {
  from {
    width: 100%;
  }
  to {
    width: 0;
  }
}

/* Botón */

.boton-enviar .estado-2,
.boton-enviar .estado-3,
.boton-enviar .estado-4 {
  display: none;
}
