/*/* Componente Interrputor / Toggle */
/* Contenedor del toggle */
.toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Distribuye la etiqueta y el toggle */
  gap: 16px;
  width: 100%;
}

/* Permitir saltos de línea en la etiqueta */
.toggle-label-text {
  font-size: 16px;
  color: #3F3F41;
  flex: 1; /* Permite que el texto ocupe el espacio disponible */
  white-space: normal; /* Permitir múltiples líneas */
  word-break: break-word; /* Rompe la palabra si es necesario */
}

/* Etiqueta del toggle */
.toggle-label {
  position: relative;
  display: inline-block;
  width: 40px;
  min-width: 40px; /* Asegura que el toggle tenga un ancho mínimo */
  height: 24px;
  background-color: #B4B4B5; /* Color desactivado */
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Input oculto */
.toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Pista del toggle */
.toggle-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* Pulgar del toggle */
.toggle-thumb {
  position: absolute;
  top: 3px; /* Centrar verticalmente dentro de la pista */
  left: 3px; /* Posición inicial del pulgar */
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Estado activado (input:checked) */
.toggle-input:checked + .toggle-track {
  background-color: #2D6DF6; /* Color activado */
}

.toggle-input:checked + .toggle-track + .toggle-thumb {
  transform: translateX(16px); /* Deslizar el pulgar hacia la derecha */
}

.toggle-container.toggle-list {
  justify-content: space-between;
  max-width: 400px;
}
