/* ===== Reset mínimo ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 50%, #020617 100%);
  color: #e5e7eb;
}

/* ===== Layout general ===== */
.app {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 16px 40px;
}

/* Header */
.app-header {
  text-align: center;
  margin-bottom: 24px;
}

.app-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 8px;
}

.app-subtitle {
  margin: 0;
  color: #9ca3af;
}

/* Card base */
.card {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 16px;
  padding: 20px 20px 24px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(16px);
  margin-bottom: 20px;
}

.card-title {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

/* Form */
.form-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

label {
  font-size: 0.9rem;
  color: #e5e7eb;
}

input,
select {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  padding: 8px 10px;
  font-size: 0.95rem;
}

input:focus,
select:focus {
  outline: 2px solid #22d3ee;
  outline-offset: 1px;
  border-color: transparent;
}

.hint {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Botón */
.btn-primary {
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #22c55e, #22d3ee);
  color: #020617;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.35);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Disclaimer */
.disclaimer {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Resultados */
.hidden {
  display: none;
}

.card-results {
  border-top: 2px solid rgba(56, 189, 248, 0.6);
}

.results-summary {
  font-size: 0.95rem;
  color: #e5e7eb;
}

.results-summary p {
  margin: 6px 0;
}

/* Destacados */
.text-highlight {
  color: #22d3ee;
  font-weight: 600;
}

.text-danger {
  color: #f97373;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #9ca3af;
}
