:root {
  --primary:#3844CA; --primary-dark:#27308D; --primary-light:#6A73D7;
  --accent:#f0c040; --accent-dark:#d4a520;
  --text:#16232e; --text-light:#56697a;
  --bg:#ffffff; --bg-warm:#f5f8fb; --border:#dde6ee; --border-light:#e9eff5;
  --error:#c0392b; --ok:#1e8e4e;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:"Swiss721BT","Helvetica Neue",Helvetica,Arial,sans-serif; font-size:15px; line-height:1.5; color:var(--text); background:var(--bg-warm); -webkit-font-smoothing:antialiased; }
a { color:var(--primary); }
.top-bar { background:#2b3238; padding:10px 20px; text-align:center; }
.top-bar p { color:rgba(255,255,255,.85); font-size:11px; max-width:900px; margin:0 auto; letter-spacing:.2px; }
.top-header { background:linear-gradient(135deg,var(--primary-dark) 0%,var(--primary) 60%,var(--primary-light) 100%); padding:14px 20px; position:relative; }
.top-header::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--accent),var(--accent-dark),var(--accent)); }
.header-container { max-width:1200px; margin:0 auto; display:flex; align-items:center; justify-content:center; }
.header-container img { height:54px; display:block; }

.container { max-width:1080px; margin:0 auto; padding:38px 28px 64px; }
.container.wide { max-width:1140px; }
h1.page-title { font-family:inherit; font-size:30px; font-weight:400; color:var(--primary-dark); margin-bottom:8px; letter-spacing:0; }
.page-sub { color:var(--text-light); font-size:15px; margin-bottom:22px; }

.steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:30px; }
.step { background:#e6ebf1; border-radius:10px; padding:16px 22px; color:var(--text-light); font-size:14px; min-width:0; }
.step .step-content { display:flex; align-items:center; gap:14px; }
.step strong { display:block; font-size:14px; line-height:1.3; }
.step span.lbl { font-size:13px; line-height:1.3; display:block; }
.check-circle { width:30px; height:30px; border-radius:50%; background:#fff; color:var(--text-light); display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; flex-shrink:0; }
.step.active { background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:#fff; }
.step.active .check-circle { color:var(--primary-dark); }
.step.completado { background:var(--ok); color:#fff; }
.step.completado .check-circle { color:var(--ok); }

.formulario { background:#fff; border:1px solid var(--border-light); border-radius:14px; padding:40px 48px; box-shadow:0 2px 14px rgba(0,0,0,.04); }
fieldset { border:1px solid var(--border); border-radius:10px; padding:26px 28px 16px; margin-bottom:26px; background:#fff; }
legend { font-size:17px; font-weight:700; color:var(--primary-dark); padding:0 10px; }
.section-note { font-size:13.5px; color:var(--text-light); margin:0 0 14px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.form-row.one { grid-template-columns:1fr; }
.form-row.three { grid-template-columns:1fr 1fr 1fr; gap:22px; }
.form-group { margin-bottom:16px; display:flex; flex-direction:column; }
.form-group label.lbl, .form-group > label { font-size:14.5px; font-weight:700; margin-bottom:6px; color:var(--text); }
.req { color:var(--error); }
input[type=text], input[type=email], input[type=tel], input[type=date], select { width:100%; padding:10px 12px; border:1px solid #ccc; border-radius:4px; font-size:15px; font-family:inherit; color:#333; background:#fff; box-shadow:inset 0 1px 1px rgba(0,0,0,.075); }
input:focus, select:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(56,68,202,.15); }
input[readonly] { background:var(--bg-warm); color:var(--text-light); }
.hint { font-size:12px; color:var(--text-light); margin-top:4px; }
.radio-group { display:flex; gap:22px; flex-wrap:wrap; padding:4px 0; }
.radio-group label { font-size:15px; display:flex; align-items:center; gap:8px; font-weight:400; cursor:pointer; }
.check-line { display:flex; gap:10px; align-items:flex-start; font-size:15px; margin-bottom:12px; line-height:1.5; }
.check-line input { margin-top:4px; flex-shrink:0; }
.hidden { display:none !important; }
.terminos { margin:6px 0 12px; font-size:14px; }
.terms-error, .field-error { display:none; color:var(--error); font-size:13px; margin:4px 0 12px; }
.terms-error.visible, .field-error.visible { display:block; }
.summary-box { background:var(--bg-warm); border:1px solid var(--border); border-left:4px solid var(--primary); border-radius:0 10px 10px 0; padding:16px 18px; margin-bottom:22px; font-size:14px; }
.summary-box h3 { font-size:14px; color:var(--primary-dark); margin-bottom:8px; }
.summary-box dl { display:grid; grid-template-columns:150px 1fr; gap:4px 12px; }
.summary-box dt { color:var(--text-light); }
.summary-box dd { font-weight:600; word-break:break-word; }
.info-box { background:#eaf1f9; border-left:4px solid var(--primary); padding:16px 18px; margin:0 0 22px; border-radius:0 8px 8px 0; font-size:14px; color:var(--primary-dark); }
.submit-button, button.submit-button { background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:#fff; padding:14px 30px; border:1px solid rgba(255,255,255,.25); border-radius:8px; font-size:15.5px; font-weight:600; cursor:pointer; transition:all .25s; box-shadow:0 4px 15px rgba(56,68,202,.35); font-family:inherit; display:inline-block; text-align:center; text-decoration:none; width:100%; }
.submit-button:hover { transform:translateY(-1px); box-shadow:0 6px 25px rgba(56,68,202,.45); }
.submit-button:disabled { opacity:.6; cursor:not-allowed; transform:none; }
.submit-button.inline { width:auto; }
#form-error { color:var(--error); font-size:14px; margin-top:12px; min-height:20px; }

.pre-footer-disclaimer { background:var(--bg-warm); border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:22px 20px; text-align:center; }
.pre-footer-disclaimer p { color:var(--text-light); font-size:13.5px; max-width:900px; margin:0 auto; line-height:1.65; }
.site-footer { background:var(--primary-dark); padding:55px 20px 35px; color:rgba(255,255,255,.8); }
.footer-inner { max-width:1200px; margin:0 auto; }
.footer-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:40px; margin-bottom:40px; }
.footer-col h3 { color:var(--accent); font-size:18px; margin-bottom:15px; font-family:inherit; font-weight:700; }
.footer-col p { font-size:14px; line-height:1.7; margin-bottom:10px; color:rgba(255,255,255,.75); }
.footer-col p strong { color:rgba(255,255,255,.95); }
.footer-col a { color:var(--accent); text-decoration:none; }
.footer-separator { border:none; border-top:1px solid rgba(255,255,255,.1); margin:35px 0; }
.footer-links { text-align:center; margin:25px 0; line-height:2; }
.footer-links a { color:rgba(255,255,255,.6); text-decoration:none; font-size:13.5px; margin:0 8px; }
.footer-links a:hover { color:var(--accent); }
.footer-links span { color:rgba(255,255,255,.2); }
.footer-copyright { text-align:center; color:rgba(255,255,255,.45); margin-top:20px; font-size:13px; }

/* extra form helpers */
.name-row { border:1px dashed var(--border); border-radius:10px; padding:14px 14px 4px; margin-bottom:14px; background:var(--bg-warm); }
.link-btn { background:none; border:none; color:var(--primary); font-weight:600; cursor:pointer; font-size:14px; font-family:inherit; padding:4px 0; }
.link-btn.danger { color:var(--error); }
.sub-title { font-size:14px; font-weight:700; color:var(--primary-dark); margin:6px 0 12px; }
.static-value { padding:11px 12px; background:var(--bg-warm); border:1px solid var(--border); border-radius:8px; font-size:15px; font-weight:600; }
.privacy-text { font-size:12.5px; color:var(--text-light); background:var(--bg-warm); border:1px solid var(--border); border-radius:8px; padding:12px 14px; max-height:150px; overflow:auto; margin-bottom:14px; line-height:1.55; }
.alert-note { background:#fef8ec; border-left:4px solid #e8a838; padding:14px 16px; border-radius:0 8px 8px 0; font-size:14px; color:#7a5a12; margin-bottom:18px; }
.ineligible-box { text-align:center; padding:26px 10px; }
.ineligible-box h2 { color:var(--error); font-family:inherit; font-weight:400; font-size:26px; margin-bottom:14px; }
.ineligible-box p { font-size:15.5px; margin-bottom:14px; }
.combo { position:relative; }
.combo-list { position:absolute; z-index:30; left:0; right:0; top:100%; margin:2px 0 0; padding:0; max-height:260px; overflow-y:auto; background:#fff; border:1px solid #ccc; border-radius:4px; box-shadow:0 8px 24px rgba(0,0,0,.15); list-style:none; }
.combo-list li { padding:9px 12px; cursor:pointer; font-size:15px; }
.combo-list li:hover, .combo-list li.active { background:#eaf1f9; color:var(--primary-dark); }
.combo-list li.none { color:var(--text-light); cursor:default; }
/* payment */
.contenido { display:grid; grid-template-columns:1.25fr 1fr; gap:24px; align-items:start; }
.panel { background:#fff; border:1px solid var(--border-light); border-radius:14px; overflow:hidden; box-shadow:0 2px 14px rgba(0,0,0,.04); }
.panel-title { background:linear-gradient(135deg,var(--primary-dark),var(--primary)); color:#fff; padding:13px 20px; font-weight:700; font-size:15px; }
.panel-body { padding:22px 20px; }
.stripe-field { padding:12px; border:1px solid #ccc; border-radius:4px; background:#fff; box-shadow:inset 0 1px 1px rgba(0,0,0,.075); }
.stripe-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.payment-field { margin-bottom:16px; }
.payment-field label { display:block; font-size:14.5px; font-weight:700; margin-bottom:6px; }
.desglose-linea { display:flex; justify-content:space-between; align-items:baseline; padding:8px 0; font-size:14px; border-bottom:1px solid var(--border-light); }
.desglose-linea.total { border-bottom:none; border-top:2px solid var(--border); margin-top:6px; padding-top:14px; font-weight:700; }
.desglose-linea.total .v { color:var(--primary-dark); font-size:20px; }
.fx-note { font-size:12px; color:var(--text-light); margin-top:10px; }
.order-line { font-size:14px; margin-bottom:6px; }
@media (max-width:1000px) {
  .container { padding:30px 20px 56px; }
  .formulario { padding:30px 28px; }
  .steps { gap:10px; }
  .step { padding:12px 14px; }
  .step .step-content { gap:10px; }
  .check-circle { width:26px; height:26px; }
}
@media (max-width:768px) {
  .container { padding:24px 14px 50px; }
  .formulario { padding:20px 16px; }
  fieldset { padding:20px 14px 10px; margin-bottom:20px; }
  h1.page-title { font-size:24px; }
  .form-row, .form-row.three { grid-template-columns:1fr; gap:0; }
  .steps { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:22px; }
  .step { padding:12px 14px; }
  .step .step-content { gap:10px; }
  .check-circle { width:26px; height:26px; }
  .contenido { grid-template-columns:1fr; }
  .summary-box dl { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; gap:30px; }
  .footer-links span { display:none; }
  .footer-links a { display:inline-block; margin:4px 8px; }
  h1.page-title { font-size:23px; }
}
