*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #FAFAF7; --surface: #F2F0EB; --card: #FFFFFF;
  --border: rgba(30,28,24,0.12); --border-mid: rgba(30,28,24,0.22);
  --text: #1A1814; --text-secondary: #5E5A53; --text-tertiary: #76726A;
  --accent: #C97B0A; --accent-bg: #FDF3E3; --accent-text: #8A5206;
  --success-bg: #EEF6EC; --success-text: #2D6A27;
  --error-bg: #FDF0EE; --error-text: #8A2A1C;
  --serif: 'Fraunces', Georgia, serif; --sans: 'DM Sans', system-ui, sans-serif;
}
html { font-family: var(--sans); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; }
body { padding: 0 24px; }
.site { max-width: 640px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.nav-name { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--text); }
.nav-back { font-size: 15px; color: var(--text-secondary); text-decoration: none; }
.nav-back:hover { color: var(--accent-text); }

main { flex: 1; padding: 56px 0; }
.tag { display: inline-block; background: var(--accent-bg); color: var(--accent-text); border-radius: 8px; padding: 6px 14px; margin-bottom: 28px; font-size: 14px; font-weight: 500; }
h1 { font-family: var(--serif); font-size: 36px; font-weight: 400; line-height: 1.2; margin-bottom: 16px; }
.lead { font-size: 18px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 40px; max-width: 34em; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.field .hint { font-weight: 400; color: var(--text-tertiary); }
.field input { width: 100%; font-family: var(--sans); font-size: 16px; padding: 12px 14px; min-height: 48px; border: 1px solid var(--border-mid); border-radius: 8px; background: var(--bg); color: var(--text); }
.field input:focus { border-color: var(--accent); outline: none; }
.field input::placeholder { color: var(--text-tertiary); }
.field input:disabled { opacity: 0.7; }

.btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; font-family: var(--sans); font-size: 16px; font-weight: 500; padding: 14px 20px; background: var(--text); color: var(--bg); border: none; border-radius: 10px; cursor: pointer; text-decoration: none; }
.btn:hover { opacity: 0.86; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-light { background: var(--accent-bg); color: var(--accent-text); }
.note { font-size: 14px; color: var(--text-tertiary); text-align: center; margin-top: 14px; }

.msg { display: none; border-radius: 8px; padding: 14px 16px; font-size: 15px; margin-bottom: 20px; line-height: 1.5; }
.msg.error { display: block; background: var(--error-bg); color: var(--error-text); }

.resumen { display: none; background: var(--accent-bg); border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; }
.resumen-label { font-size: 14px; font-weight: 500; color: var(--accent-text); margin-bottom: 6px; }
.resumen-nombre { font-size: 17px; font-weight: 500; }
.resumen-concepto { font-size: 15px; color: var(--text-secondary); margin-bottom: 8px; }
.resumen-monto { font-family: var(--serif); font-size: 32px; }
.resumen-moneda { font-size: 15px; color: var(--text-secondary); margin-left: 6px; }

.seguro { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--text-tertiary); margin-top: 16px; }
.seguro svg { width: 15px; height: 15px; flex-shrink: 0; }

.alt { text-align: center; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.alt p { font-size: 15px; color: var(--text-secondary); margin-bottom: 12px; }
.alt .btn { width: auto; }

.choices { display: grid; gap: 16px; }
.choice { display: block; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.choice:hover { border-color: var(--accent); }
.choice-title { font-family: var(--serif); font-size: 24px; margin-bottom: 6px; }
.choice-text { font-size: 16px; color: var(--text-secondary); }
.choice.main { background: var(--text); color: var(--bg); border-color: var(--text); }
.choice.main .choice-text { color: #D6D2CA; }

.center { text-align: center; padding-top: 24px; }
.icon-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-text); display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; }
.icon-circle svg { width: 28px; height: 28px; }
.center .lead { margin-left: auto; margin-right: auto; }
.center .btn { width: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

footer { padding: 28px 0 36px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-tertiary); }
footer a { color: var(--text-secondary); }

@media (max-width: 520px) {
  h1 { font-size: 28px; }
  .card { padding: 24px 20px; }
  main { padding: 40px 0; }
}
