*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #f5f5f5;
  color: #2c3e50;
  line-height: 1.5;
  min-height: 100dvh;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.25rem;
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
}

.subtitle {
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-top: 0.25rem;
}

.actions {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  width: 100%;
  max-width: 300px;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: #27ae60;
  color: #fff;
  box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
}

.btn-primary:hover {
  background: #219a52;
}

.btn-primary:active {
  box-shadow: 0 1px 4px rgba(39, 174, 96, 0.3);
}

.btn-danger {
  background: #e74c3c;
  color: #fff;
  box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
  background: #c0392b;
}

.btn-danger:active {
  box-shadow: 0 1px 4px rgba(231, 76, 60, 0.3);
}

.hidden {
  display: none !important;
}

.empty-msg {
  text-align: center;
  color: #95a5a6;
  font-size: 0.95rem;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

#lista {
  list-style: none;
}

.registro-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.25s ease-out;
}

.registro-item:nth-child(even) {
  background: #fafafa;
}

.registro-numero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: #2c3e50;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.registro-info {
  display: flex;
  flex-direction: column;
}

.registro-fecha {
  font-size: 0.85rem;
  color: #7f8c8d;
}

.registro-hora {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

@media (max-width: 400px) {
  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
  }
}
