:root {
  --ink: #1a1a1a;
  --navy: #1a1a1a;
  --navy-2: #333333;
  --gold: #b1976b;
  --gold-soft: #eee7dc;
  --paper: #f5f5f5;
  --white: #ffffff;
  --muted: #5a5a5a;
  --line: #dbe0e2;
  --success: #277159;
  --warning: #986f25;
  --danger: #a33e3e;
  --shadow: 0 18px 55px rgba(11, 29, 43, 0.09);
  --radius: 18px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(16, 32, 44, .1);
  background: #ffffff;
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font: 17px/1 "IBM Plex Serif", serif; letter-spacing: .06em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .94rem; letter-spacing: .04em; }
.brand small { color: var(--muted); font-size: .875rem; margin-top: 3px; }
.privacy-pill { color: var(--success); border: 1px solid #b9d4c9; background: #f1f8f5; padding: 8px 12px; border-radius: 999px; font-size: .875rem; font-weight: 700; }
.privacy-pill span { font-size: .55rem; margin-right: 5px; }

main { width: min(1220px, calc(100% - 36px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.55fr .75fr; gap: 44px; align-items: end; padding: 38px 0 32px; }
.eyebrow { color: var(--gold); font-size: .875rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; }
h1, h2 { font-family: "IBM Plex Serif", Georgia, serif; font-weight: 600; letter-spacing: -.025em; }
h1 { max-width: 760px; font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.15; margin: 0; }
.hero > div > p:last-child { color: var(--muted); max-width: 700px; line-height: 1.65; font-size: 1.03rem; margin: 22px 0 0; }
.session-note { border-left: 2px solid var(--gold); padding: 3px 0 3px 22px; }
.session-note span, .session-note strong, .session-note small { display: block; }
.session-note span { color: var(--gold); text-transform: uppercase; font-size: .875rem; font-weight: 800; letter-spacing: .12em; }
.session-note strong { font-size: 1rem; margin: 8px 0; }
.session-note small { color: var(--muted); line-height: 1.55; }

.workspace { background: var(--white); border: 1px solid rgba(16, 32, 44, .1); border-radius: 3px; box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 92px; }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy); }
.step { border: 0; border-right: 1px solid rgba(255,255,255,.1); background: transparent; color: #9cabb4; text-align: left; padding: 22px 24px; display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; transition: .2s ease; }
.step span { width: 30px; height: 30px; border: 1px solid #577080; display: grid; place-items: center; border-radius: 50%; grid-row: 1 / 3; font-weight: 700; font-size: .8rem; }
.step b { color: #d8e0e4; font-size: .88rem; }
.step small { font-size: .7rem; margin-top: 2px; }
.step.is-active { background: #303030; color: #e4c995; }
.step.is-active span { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.step.is-active b { color: white; }
.step.is-complete span { border-color: #7bb09e; background: #214e43; color: #dff4ec; }

.panel { display: none; padding: clamp(28px, 5vw, 58px); }
.panel.is-active { display: block; animation: fade .28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.panel-heading { padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { font-size: clamp(2rem, 4vw, 3.05rem); margin: 0; }
.panel-heading > p:last-child { color: var(--muted); margin: 10px 0 0; line-height: 1.55; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: block; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field > span, fieldset > legend { display: block; font-size: .875rem; font-weight: 800; color: #333333; margin-bottom: 9px; }
.field em, legend em { color: var(--danger); font-style: normal; }
.field small { display: block; color: var(--muted); font-size: .875rem; margin-top: 7px; line-height: 1.45; }
input, select, textarea { width: 100%; border: 1px solid #cfd7db; border-radius: 10px; background: white; color: var(--ink); padding: 12px 13px; outline: 0; transition: border-color .18s, box-shadow .18s; }
textarea { resize: vertical; min-height: 88px; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(178, 138, 74, .13); }
.is-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(163, 62, 62, .09) !important; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: block; border: 1px solid #cfd7db; border-radius: 12px; padding: 16px; min-height: 75px; transition: .18s; }
.choice b, .choice small { display: block; }
.choice small { color: var(--muted); font-size: .875rem; margin-top: 5px; }
.choice input:checked + span { border-color: var(--gold); background: #fbf7ef; box-shadow: inset 0 0 0 1px var(--gold); }
.choice input:focus-visible + span { outline: 3px solid rgba(178,138,74,.23); }
.check-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 16px; }
.check-grid label { display: flex; align-items: center; gap: 8px; color: #444444; font-size: .875rem; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--gold); }
.check-grid input, .document-checklist input, .switch-row input, .consent-box input { width: 17px; height: 17px; flex: none; }

.legal-notice { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; background: #f8f3e9; border: 1px solid #e8d8b7; border-radius: 12px; padding: 16px; margin-bottom: 28px; }
.legal-notice > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--gold); font-family: Georgia, serif; font-weight: bold; }
.legal-notice p { font-size: .875rem; line-height: 1.55; margin: 2px 0; color: #594a32; }
.classifier { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 34px; }
.classifier-head, .section-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.classifier-head h3, .section-title h3, .review-card h3 { margin: 0; font-size: 1.15rem; }
.classifier-head .eyebrow { margin-bottom: 6px; }
.suggestions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 28px; }
.suggestions.empty-state { display: flex; min-height: 105px; align-items: center; justify-content: center; gap: 10px; border: 1px dashed #c8d0d5; border-radius: 12px; color: var(--muted); font-size: .875rem; }
.suggestion { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: white; text-align: left; transition: .2s; }
.suggestion:hover { border-color: var(--gold); transform: translateY(-1px); }
.suggestion.is-selected { border-color: #8bbcab; background: #f1f8f5; }
.suggestion span { color: var(--gold); font-weight: 800; font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; }
.suggestion b { display: block; margin: 7px 0 5px; }
.suggestion small { color: var(--muted); line-height: 1.35; }
.manual-class { display: grid; grid-template-columns: minmax(240px, .7fr) 1.3fr; gap: 18px; align-items: start; padding: 24px; border-radius: 14px; background: #f5f7f7; }
.class-browser { max-height: 185px; overflow: auto; display: grid; gap: 6px; padding-right: 4px; }
.class-browser button { display: flex; align-items: center; gap: 9px; border: 0; background: white; color: var(--ink); text-align: left; border-radius: 8px; padding: 9px 11px; font-size: .875rem; }
.class-browser button:hover { background: #faf3e7; }
.class-browser b { color: var(--gold); min-width: 22px; }
.selected-wrap { margin-top: 32px; }
.section-title span { color: var(--muted); font-size: .875rem; }
.selected-classes { display: grid; gap: 12px; margin-top: 14px; }
.selected-class { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: start; }
.class-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; background: var(--navy); color: white; font-weight: 800; }
.selected-class b { display: block; margin: 2px 0 8px; }
.selected-class textarea { font-size: .8rem; min-height: 72px; }
.remove-class { border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; padding: 4px; }
.muted { color: var(--muted); font-size: .875rem; line-height: 1.5; }

.question-stack { display: grid; gap: 12px; padding: 18px; border-radius: 12px; background: #f6f7f7; }
.question-stack label { display: grid; grid-template-columns: 1fr 220px; align-items: center; gap: 14px; font-size: .875rem; font-weight: 600; }
.priority-box { border: 1px solid var(--line) !important; border-radius: 12px !important; padding: 20px !important; }
.priority-box legend { padding: 0 5px; }
.switch-row, .consent-box label { display: flex; gap: 11px; align-items: flex-start; }
.switch-row b, .switch-row small, .consent-box b, .consent-box small { display: block; }
.switch-row small, .consent-box small { color: var(--muted); margin-top: 4px; font-size: .875rem; }
.nested { margin-top: 18px; }

.readiness { margin-bottom: 24px; }
.readiness-bar { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.readiness-bar > span { width: 38px; height: 38px; border-radius: 50%; background: #eef6f2; color: var(--success); display: grid; place-items: center; font-weight: 800; }
.readiness-bar b, .readiness-bar small { display: block; }
.readiness-bar small { color: var(--muted); margin-top: 3px; }
.readiness-bar.has-gaps > span { background: #fbf2e4; color: var(--warning); }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.review-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.document-checklist { display: grid; gap: 10px; margin-top: 18px; }
.document-checklist label { display: flex; align-items: flex-start; gap: 10px; font-size: .8rem; line-height: 1.4; border-bottom: 1px solid #edf0f1; padding-bottom: 9px; }
.document-checklist label:last-child { border-bottom: 0; }
.next-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.next-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.next-steps li > span { color: var(--gold); font-size: .7rem; font-weight: 800; padding-top: 2px; }
.next-steps b, .next-steps small { display: block; }
.next-steps b { font-size: .875rem; }
.next-steps small { color: var(--muted); font-size: .875rem; margin-top: 3px; line-height: 1.4; }
.summary-preview { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.summary-preview h3 { margin: 0 0 16px; }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.preview-item { background: #f6f7f7; border-radius: 9px; padding: 12px; min-width: 0; }
.preview-item span, .preview-item b { display: block; }
.preview-item span { color: var(--muted); font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.preview-item b { font-size: .875rem; overflow-wrap: anywhere; }
.consent-box { margin-top: 18px; padding: 18px; background: #f8f3e9; border-radius: 12px; }

.form-actions { display: flex; justify-content: space-between; align-items: center; padding: 20px clamp(28px, 5vw, 58px); border-top: 1px solid var(--line); background: #fbfcfc; }
.form-actions > div { display: flex; gap: 10px; }
.button { border: 1px solid transparent; border-radius: 9px; padding: 11px 17px; font-size: .8rem; font-weight: 800; transition: .18s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--navy); color: white; }
.button-primary:hover { background: var(--navy-2); }
.button-secondary { border-color: #c6d0d5; color: var(--ink); background: white; }
.button-ghost { background: transparent; color: var(--muted); }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.assurance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #d8dad7; margin: 52px 0; border: 1px solid #d8dad7; }
.assurance > div { background: var(--paper); padding: 24px; display: grid; grid-template-columns: 34px 1fr; gap: 11px; }
.assurance span { color: var(--gold); font-weight: 800; font-size: .875rem; }
.assurance p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.assurance b { display: block; color: var(--ink); margin-bottom: 4px; }

dialog { width: min(900px, calc(100% - 30px)); max-height: 90vh; border: 0; border-radius: 20px; padding: 0; box-shadow: 0 30px 100px rgba(6, 18, 26, .28); }
dialog::backdrop { background: rgba(6, 18, 26, .68); backdrop-filter: blur(5px); }
.dialog-head, .dialog-actions { display: flex; justify-content: space-between; align-items: center; padding: 20px 26px; }
.dialog-head { border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: 2rem; }
.dialog-head .eyebrow { margin-bottom: 5px; }
.icon-button { border: 0; background: #f0f2f2; border-radius: 50%; width: 36px; height: 36px; font-size: 1.5rem; color: var(--muted); }
.dialog-summary { padding: 26px; overflow: auto; max-height: calc(90vh - 160px); }
.dialog-actions { border-top: 1px solid var(--line); justify-content: flex-end; gap: 10px; }
.report-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--navy); padding-bottom: 18px; margin-bottom: 22px; }
.report-header h2 { font-size: 2rem; margin: 0; }
.report-header p { margin: 6px 0 0; color: var(--muted); font-size: .875rem; }
.report-section { margin: 23px 0; }
.report-section h3 { font-size: .8rem; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.report-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.report-table th, .report-table td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid #edf0f1; }
.report-table th { width: 28%; color: var(--muted); font-weight: 500; }
.report-class { background: #f6f7f7; border-left: 3px solid var(--gold); padding: 11px 13px; margin: 8px 0; font-size: .875rem; line-height: 1.45; }
.report-class b { display: block; margin-bottom: 4px; }
.report-disclaimer { font-size: .875rem; color: var(--muted); line-height: 1.5; border-top: 1px solid var(--line); padding-top: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--navy); color: white; padding: 11px 16px; border-radius: 9px; font-size: .875rem; opacity: 0; pointer-events: none; transition: .22s; z-index: 100; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

footer { background: var(--navy); color: #b7c2c8; padding: 32px max(20px, calc((100vw - 1220px)/2)); display: flex; justify-content: space-between; align-items: center; gap: 30px; }
footer .brand { color: white; }
footer p { max-width: 530px; font-size: .7rem; line-height: 1.5; text-align: right; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 48px; }
  .stepper { grid-template-columns: repeat(4, 1fr); }
  .step { display: flex; justify-content: center; padding: 14px 8px; }
  .step b, .step small { display: none; }
  .step span { grid-row: auto; }
  .suggestions, .review-grid { grid-template-columns: 1fr; }
  .manual-class { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr 1fr; }
  .assurance { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  main { width: min(100% - 20px, 1220px); }
  .topbar { padding: 12px 15px; }
  .privacy-pill { font-size: 0; padding: 9px; }
  .privacy-pill::after { content: "Privada"; font-size: .7rem; }
  h1 { font-size: 2.65rem; }
  .workspace { border-radius: 3px; }
  .panel { padding: 26px 18px; }
  .form-grid, .choice-row { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .question-stack label { grid-template-columns: 1fr; gap: 6px; }
  .classifier-head { align-items: flex-end; }
  .selected-class { grid-template-columns: 42px 1fr; }
  .remove-class { grid-column: 2; justify-self: end; }
  .preview-grid { grid-template-columns: 1fr; }
  .form-actions { padding: 16px 18px; align-items: stretch; gap: 10px; }
  .form-actions > div { justify-content: flex-end; }
  #reset-form { padding-inline: 8px; }
  footer { align-items: flex-start; flex-direction: column; }
  footer p { text-align: left; }
}

@media print {
  body * { visibility: hidden !important; }
  dialog, dialog * { visibility: visible !important; }
  dialog { position: absolute; inset: 0; width: 100%; max-height: none; box-shadow: none; }
  .dialog-head, .dialog-actions { display: none !important; }
  .dialog-summary { max-height: none; overflow: visible; padding: 0; }
  .report-section { break-inside: avoid; }
}

/* GCL Honduras corporate identity */
.brand-logo { display:block; width:210px; height:auto; }
.topbar { min-height:100px; border-bottom:3px solid var(--gold); }
.privacy-pill { color:var(--muted); border-color:var(--line); background:#fafafa; border-radius:3px; }
.privacy-pill > span { display:none; }
.eyebrow, .session-note > span { color:#806a45; }
.workspace { box-shadow:0 8px 30px rgba(0,0,0,.04); }
.panel-heading h2 { font-size:clamp(1.8rem, 3vw, 2.5rem); }
.step { color:#c8c8c8; }
.step b { color:#eeeeee; }
.step span { border-color:#8b8b8b; }
.step.is-active { box-shadow:inset 0 -3px var(--gold); }
input, select, textarea, .choice span, .button, .review-card, .summary-preview, .manual-class, .suggestion { border-radius:3px; }
.button-primary { background:var(--gold); color:#1a1a1a; }
.button-primary:hover { background:#977f55; color:#fff; }
button:focus-visible, a:focus-visible { outline:3px solid #977f55; outline-offset:4px; }
footer { background:#1a1a1a; border-top:3px solid var(--gold); }
footer .brand-logo { background:transparent; padding:0; }
@media (max-width:620px) {
  .brand-logo { width:165px; }
  .topbar { min-height:85px; }
  .hero { padding-top:28px; gap:20px; }
  h1 { font-size:2.1rem; }
  .form-actions { flex-wrap:wrap; }
  .form-actions > div { margin-left:auto; flex-wrap:wrap; }
}
@media (prefers-reduced-motion:reduce) { html {scroll-behavior:auto;} *, *::before, *::after {animation:none !important; transition:none !important;} }

.upload-document {padding:16px 0;border-bottom:1px solid #ddd;display:grid;gap:10px}.upload-document label{font-size:14px;font-weight:600;line-height:1.5}.upload-document input{max-width:100%;font-size:14px}.upload-document small{font-size:13px;color:#59636c;overflow-wrap:anywhere}.remove-upload{justify-self:start;border:0;background:none;text-decoration:underline;cursor:pointer;padding:4px 0;font:inherit}.delivery-note{padding:16px 24px;line-height:1.6;font-size:14px}.dialog-actions{flex-wrap:wrap}.session-note small{line-height:1.6}

.required-documents{margin:0;padding-left:22px}.required-documents li{padding:10px 0;font-size:15px;line-height:1.6}.review-card a,.delivery-note a{color:inherit;text-decoration:underline;overflow-wrap:anywhere}
