body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}
.contenedor {
  background-color: #4a609e;
  border-radius: 12px;
  height: auto;
  min-height: 550px;
  padding: 10px 20px 30px;
  max-width: 900px;
  margin: 20px auto;
}
.titulo {
  text-align: center;
  padding: 1px;
  color: white;
  font-weight: bold;
  font-size: 30px;
}
.saludoUsuario {
  text-align: center;
  color: white;
  font-size: 30px;
  font-weight: bold;
  padding: 15px;
}
.oculto {
  display: none;
}
.ingresoSalario {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.labelSalario {
  font-size: 40px;
  color: white;
  margin-right: 10px;
  font-weight: bold;
}
.cajaIngresanSalario {
  font-size: 16px;
  padding: 10px;
  border-radius: 10px;
  outline: none;
  border: none;
}
.botonLimpiar {
  font-weight: bold;
  font-size: 20px;
  padding: 10px 20px;
  margin-left: 20px;
  border: none;
  border-radius: 10px;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  box-shadow: #423d3d 2px 4px 6px;
  position: relative;
  overflow: hidden;
}
.botonLimpiar:disabled,
.botonLimpiar:disabled:hover {
  background-color: #9e9e9e;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}
.botonContenedorCalcular {
  margin-top: 20px;
  text-align: center;
}
.btnCalcular {
  font-size: 30px;
  padding: 10px 20px;
  border: none;
  font-weight: bold;
  border-radius: 10px;
  background-color: #008CBA;
  color: white;
  cursor: pointer;
  box-shadow: #423d3d 2px 4px 6px;
  position: relative;
  overflow: hidden;
}
.btnCalcular:hover {
  background-color: #007bb5;
}
.contenedorDescuentos {
  margin-top: 20px;
  text-align: center;
}
.descuentos {
  font-size: 20px;
  color: white;
  font-weight: bold;
}
.muestraDescuentos {
  text-align: center;
  margin-top: 10px;
  padding: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 40px;
}
.descuentoIsss {
  font-size: 30px;
  color: white;
  font-weight: bold;
}
.descuentoAfp {
  font-size: 30px;
  color: white;
  font-weight: bold;
}
.descuentoIsr {
  font-size: 30px;
  color: white;
  font-weight: bold;
}
.muestraSalarioNeto {
  text-align: center;
  margin-top: 10px;
  padding: 20px;
}
.salarioNeto {
  font-size: 30px;
  color: white;
  font-weight: bold;
}
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #f44336;
  color: white;
  padding: 20px 30px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}
.toast.mostrar {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 1100;
}
.modal-overlay.mostrar {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.modal-texto {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: bold;
  color: #1d1d1d;
}
.modal-input {
  width: 90%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #c9c9c9;
  outline: none;
  font-size: 16px;
}
.modal-botones {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btnModal {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: bold;
  cursor: pointer;
}
.btnModal.secundario {
  background: #9e9e9e;
  color: #fff;
}
.btnModal.primario {
  background: #008CBA;
  color: #fff;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 600ms ease-out;
  background-color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .contenedor{
    max-width: 320px;
    padding: auto;
  }
  .titulo {
    font-size: 24px;
  }
  .saludoUsuario {
    font-size: 22px;
    padding: 10px;
  }
  .labelSalario {
    font-size: 24px;
    text-align: center;
  }
  .ingresoSalario {
    flex-direction: column;
    gap: 10px;
    padding: 0 10px;
  }
  .cajaIngresanSalario {
    width: 100%;
    max-width: 320px;
  }
  .botonLimpiar {
    width: 100%;
    max-width: 320px;
    margin-left: 0;
  }
  .btnCalcular {
    width: 100%;
    max-width: 320px;
  }
  .muestraDescuentos {
    flex-direction: column;
    gap: 12px;
  }
  .descuentoIsss,
  .descuentoAfp,
  .descuentoIsr,
  .salarioNeto {
    font-size: 22px;
  }
}