:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17283a;
  background: #eef5fc;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(29, 126, 222, .18), transparent 42%),
    #eef5fc;
}

main {
  width: min(100%, 480px);
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 18px max(30px, env(safe-area-inset-bottom));
}

.panel {
  padding: 24px 20px;
  border: 1px solid rgba(18, 103, 196, .09);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(23, 54, 87, .12);
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

header img { border-radius: 17px; }
.sobrelinea { margin: 0 0 2px; color: #1267c4; font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
h1, h2 { margin: 0; }
h1 { font-size: 1.45rem; }

label {
  display: block;
  margin: 0 0 8px;
  font-weight: 750;
}

select, input, textarea, button { font: inherit; }

select, textarea, .campo-importe {
  width: 100%;
  margin-bottom: 22px;
  border: 2px solid #d7e1eb;
  border-radius: 14px;
  background: #fff;
}

select {
  min-height: 56px;
  padding: 10px 14px;
  color: inherit;
}

textarea {
  min-height: 116px;
  padding: 14px;
  resize: vertical;
}

.campo-importe {
  display: flex;
  align-items: center;
}

.campo-importe span {
  padding-left: 16px;
  color: #1267c4;
  font-size: 1.7rem;
  font-weight: 850;
}

.campo-importe input {
  width: 100%;
  min-height: 64px;
  padding: 10px 16px 10px 9px;
  border: 0;
  border-radius: 14px;
  outline: 0;
  font-size: 1.75rem;
  font-weight: 800;
}

select:focus, textarea:focus, .campo-importe:focus-within {
  border-color: #1267c4;
  outline: none;
  box-shadow: 0 0 0 4px rgba(18, 103, 196, .13);
}

button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  background: #1267c4;
  color: #fff;
  font-weight: 850;
  letter-spacing: .02em;
  cursor: pointer;
}

button:disabled { opacity: .6; cursor: wait; }
.secundario { margin-top: 24px; background: #e7f0fa; color: #164c80; }
.mensaje { min-height: 22px; margin: 14px 0 0; color: #b42318; text-align: center; }
.oculto { display: none; }

.resultado { text-align: center; }
.resultado > p { margin: 8px 0 22px; color: #5a6b7d; }
.resultado strong { display: block; font-size: 2rem; }
.resultado span { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.check {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 50%;
  background: #dff6e6;
  color: #16803d;
  font-size: 2rem;
  font-weight: 900;
}

@media (display-mode: standalone) {
  body { overscroll-behavior-y: contain; }
}
