/* Contenedor del switch */
.switch{
  position: relative;
  display: inline-block;
  width: 54px;     /* ancho del switch */
  height: 30px;    /* alto del switch */
  vertical-align: middle;
}

/* Oculta el checkbox, pero conserva accesibilidad */
.switch input{
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Pista del switch */
.switch .slider{
  position: absolute;
  cursor: pointer;
  inset: 0;                      /* top,left,right,bottom:0 */
  background: #cbd5e1;           /* gris suave */
  border-radius: 999px;
  transition: background .25s ease, box-shadow .25s ease;
  box-shadow: inset 0 0 0 1px #9aa6b2;
}

/* Perilla */
.switch .slider::before{
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 4px;
  top: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  transition: transform .25s ease;
}

/* Estado ON */
.switch input:checked + .slider{
  background: #66AE3D;                 /* verde E2GO */
  box-shadow: inset 0 0 0 1px #5aa034;
}
.switch input:checked + .slider::before{
  transform: translateX(24px);
}

/* Enfoque accesible con teclado */
.switch input:focus-visible + .slider{
  outline: 2px solid #001E42;          /* azul E2GO */
  outline-offset: 2px;
}

/* Deshabilitado (si aplicas disabled al input) */
.switch input:disabled + .slider{
  filter: grayscale(.4);
  cursor: not-allowed;
}
.switch input:disabled + .slider::before{
  box-shadow: none;
}

/* Variante compacta (si la necesitas) */
.switch.sm{ width: 42px; height: 24px; }
.switch.sm .slider::before{ width: 18px; height: 18px; top: 3px; left: 3px; }
.switch.sm input:checked + .slider::before{ transform: translateX(18px); }

/* Texto a la derecha del switch */
#switchLabel{
  margin-left: 8px;
  font-weight: 600;
  color: #001E42;
  vertical-align: middle;
}