/* Estilos básicos para checkbox y radio */
input[type=checkbox], input[type=radio] {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
  position: relative;
  height: 20px;
  width: 20px;
  transition: all 0.2s ease;
  background: #fff;
  border: 2px solid #008B8B;
  cursor: pointer;
  display: inline-block;
  margin-right: 0.5rem;
  outline: none;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0,139,139,0.1);
}

/* Radio buttons son circulares */
input[type=radio] {
  border-radius: 50%;
}

/* Efecto hover */
input[type=checkbox]:hover, input[type=radio]:hover {
  border-color: #40e0d0;
  box-shadow: 0 2px 4px rgba(64,224,208,0.3);
  transform: translateY(-1px);
}

/* Estado checked para checkbox */
input[type=checkbox]:checked {
  background: #008B8B;
  border-color: #008B8B;
}

/* Estado checked para radio */
input[type=radio]:checked {
  background: #008B8B;
  border-color: #008B8B;
}

/* Marca de verificación para checkbox */
input[type=checkbox]:checked::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Marca de verificación para radio button */
input[type=radio]:checked::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

/* Estado focus */
input[type=checkbox]:focus, input[type=radio]:focus {
  border-color: #008B8B;
  box-shadow: 0 0 0 3px rgba(0,139,139,0.25);
}

/* Estado disabled */
input[type=checkbox]:disabled, input[type=radio]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f0f0f0;
}

/* Estilo para active */
input[type=checkbox]:active, input[type=radio]:active {
  transform: scale(0.95);
}