:root {
  --celeste: #74acdf;
  --celeste-dark: #4c86b8;
  --bg: #f6f8fa;
  --card: #ffffff;
  --text: #1a1f2b;
  --muted: #5b6473;
  --border: #e3e8ef;
  --error: #b42318;
  --good: #0b7a3c;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 12px rgba(16, 24, 40, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 50% -200px, #d9ebf8 0%, transparent 60%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hero {
  text-align: center;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
  color: var(--celeste-dark);
}

.hero .sub {
  margin: 0.25rem auto 0;
  color: var(--muted);
  max-width: 36ch;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 1rem;
}

.field {
  display: block;
  margin-bottom: 1rem;
}

.field > span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

input[type="text"],
select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
}

input[type="text"]:focus,
select:focus {
  border-color: var(--celeste);
  box-shadow: 0 0 0 3px rgba(116, 172, 223, 0.25);
}

.money {
  position: relative;
}

.money .prefix {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.money input {
  padding-left: 1.7rem;
}

button {
  width: 100%;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--celeste-dark);
  border: 0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: background-color 120ms, transform 60ms;
}

button:hover {
  background: #3e74a3;
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  background: #a9bccc;
  cursor: not-allowed;
}

.error {
  margin: -0.25rem 0 0.75rem;
  color: var(--error);
  font-size: 0.9rem;
}

.result .label {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.result .monto {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--celeste-dark);
}

.detalle {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.detalle > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.detalle dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.detalle dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer p {
  margin: 0.35rem 0;
}

footer a {
  color: var(--celeste-dark);
}

.muted {
  color: var(--muted);
}
