/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== BODY ===== */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #eef2f7, #f8fafc);
  color: #1e293b;
  padding: 30px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 700px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ===== TITLE ===== */
h1 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 28px;
  font-weight: 600;
}

/* ===== LABELS ===== */
label {
  display: block;
  margin-top: 18px;
  font-weight: 500;
  font-size: 14px;
  color: #475569;
}

/* ===== SELECT ===== */
select {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 14px;
  transition: all 0.2s ease;
}

select:focus {
  outline: none;
  border-color: #3b82f6;
  background: white;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* ===== RANGE SLIDER ===== */
input[type="range"] {
  width: 100%;
  margin-top: 8px;
  appearance: none;
  height: 6px;
  border-radius: 5px;
  background: #e2e8f0;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: #3b82f6;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* ===== BUTTON ===== */
button {
  width: 100%;
  margin-top: 25px;
  padding: 14px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

/* ===== RESULT ===== */
#resultado {
  margin-top: 30px;
}

/* ===== PROFILE BOX ===== */
.profile-box {
  background: #e0f2fe;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* ===== RESULT CARDS ===== */
.result-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  transition: 0.2s;
  border: 1px solid #e2e8f0;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* ===== TITLES ===== */
.result-card h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

/* ===== PROGRESS BAR ===== */
.progress {
  margin: 10px 0;
  height: 8px;
  background: #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.5s ease;
}

/* ===== LIST ===== */
ul {
  margin-top: 8px;
  padding-left: 18px;
}

li {
  margin-bottom: 4px;
  font-size: 14px;
}

/* ===== MODAL ===== */
#modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(4px);
}

#modal div {
  background: white;
  padding: 25px;
  max-width: 320px;
  margin: 15% auto;
  border-radius: 16px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

#modal button {
  margin-top: 15px;
  width: auto;
  padding: 10px 20px;
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: 25px;
}

label.sub {
  font-size: 13px;
  color: #64748b;
  margin-top: 8px;
  display: block;
}