﻿/* Calculadora IRPH - Estilos Mejorados */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Spinner */
.spinner {
  border: 5px solid rgba(226, 232, 240, 0.3);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border-left-color: #750000;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Modal */
#results-modal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#results-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#modal-container {
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#results-modal.open #modal-container {
  transform: scale(1);
}

/* Inputs mejorados */
input:focus,
select:focus {
  outline: none;
}

input::placeholder {
  color: #94a3b8;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

button {
  -webkit-tap-highlight-color: transparent;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@media (max-width: 768px) {
  .animate-fadeInUp {
    animation-delay: 0s !important;
  }
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #b84444;
  outline-offset: 2px;
}
