:root {
  --ink: #152e45;
  --muted: #596a77;
  --navy: #163d5b;
  --paper: #f6f8f7;
  --line: #dfe5e6;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100svh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
button, input { font: inherit; }
a { color: inherit; }
svg { width: 24px; height: 24px; flex-shrink: 0; }
.site-header { flex-shrink: 0; background: #fff; border-top: 4px solid var(--navy); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1200px; margin: auto; min-height: 82px; padding: 4px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.wordmark { text-decoration: none; display: block; flex-shrink: 0; }
.institution-logo { display: block; width: 132px; max-width: 100%; height: auto; }
.header-context { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #44756d; }
main { flex: 1; display: flex; align-items: center; width: 100%; background: radial-gradient(ellipse at top, #eaf0ee66, transparent 70%); }
.page-shell { width: 100%; max-width: 1200px; margin: auto; padding: 24px 32px; }
.page-intro { margin-bottom: 23px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #526e7b; font-size: 9px; font-weight: 700; letter-spacing: 1.8px; margin-bottom: 10px; }
.eyebrow > span { width: 19px; height: 1px; background: #809eaa; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3.3vw, 43px); font-weight: 400; line-height: 1.12; letter-spacing: -1.2px; margin: 0 0 11px; }
.subtitle { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0; }
.mobile-break { display: none; }
.consultation-layout { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.45fr); gap: 22px; align-items: stretch; }
.consultation { padding: 24px; border: 1px solid #dce3e5; border-radius: 12px; background: #fff; box-shadow: 0 4px 18px #17354d05; scroll-margin-top: 16px; min-width: 0; }
.card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; }
.document-icon { width: 38px; height: 40px; display: grid; place-items: center; border-radius: 9px; background: #edf2f5; color: var(--navy); flex-shrink: 0; }
.document-icon svg { width: 21px; height: 21px; }
h2 { margin: 0 0 5px; font-size: 18px; font-weight: 600; letter-spacing: -.4px; }
.card-heading p { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.5; }
.demo-notice { padding: 9px 11px; margin: 0 0 18px; background: #fbf5e9; color: #745820; border: 1px solid #f0e5ca; border-radius: 6px; font-size: 10px; line-height: 1.5; display: flex; gap: 8px; align-items: center; }
.demo-notice strong { font-weight: 600; }
.demo-dot { width: 5px; height: 5px; background: #aa8134; border-radius: 50%; flex-shrink: 0; }
label { display: block; font-size: 12px; font-weight: 600; margin: 0 0 8px; }
.input-wrap { position: relative; }
.input-icon { width: 19px; height: 19px; position: absolute; left: 14px; top: 15px; color: #7b8c98; pointer-events: none; }
input { width: 100%; padding: 12px 14px 12px 43px; min-height: 49px; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #c7d2d8; border-radius: 6px; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #71818d; font-size: 12px; }
input:focus { outline: none; border-color: #397292; box-shadow: 0 0 0 3px #39729220; }
input[aria-invalid="true"] { border-color: #ab3f3d; }
input:read-only { background: #f7f9fa; }
.field-help { font-size: 10px; color: var(--muted); line-height: 1.6; margin: 7px 0 0; }
.field-error { font-size: 12px; color: #9c3534; margin: 8px 0 0; line-height: 1.5; }
button { width: 100%; min-height: 47px; margin-top: 17px; padding: 11px 15px; border: 1px solid var(--navy); border-radius: 6px; color: #fff; background: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; font-weight: 600; transition: background .15s; }
button:hover { background: #0d304b; }
button svg { width: 18px; height: 18px; }
button:disabled { opacity: .72; cursor: wait; }
:focus-visible { outline: 3px solid #397292; outline-offset: 4px; }
.privacy-note { display: flex; gap: 10px; padding-top: 17px; border-top: 1px solid #e7eced; margin-top: 20px; color: var(--muted); align-items: center; }
.privacy-note svg { width: 17px; height: 17px; color: #5a7b85; }
.privacy-note p { margin: 0; font-size: 10px; line-height: 1.7; }
.privacy-note strong { font-weight: 500; color: #405a6b; }
.help-note { margin-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.help-note summary { cursor: pointer; width: fit-content; }
.help-note p { margin: 8px 0 0; }
.feedback { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 13px; background: #faf5eb; border: 1px solid #eadfc9; border-radius: 7px; color: #6e5425; }
.feedback[data-kind="error"] { background: #fcf1ef; border-color: #efd8d4; color: #8e3f38; }
.feedback svg { width: 18px; height: 18px; }
.feedback h3 { font-size: 12px; margin: 0 0 5px; font-weight: 600; }
.feedback p { font-size: 11px; line-height: 1.6; margin: 0; }
.result-column { display: flex; flex-direction: column; min-width: 0; }
.result-placeholder { display: grid; place-items: center; flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 28px; background: #eef3f180; text-align: center; }
.placeholder-content { max-width: 340px; }
.placeholder-icon { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 19px; border: 1px solid #d6e2df; border-radius: 16px; color: #5e7d75; background: #f8fbf9; }
.placeholder-icon svg { width: 28px; height: 28px; }
.result-placeholder h2 { font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 400; margin-bottom: 12px; }
.result-placeholder p { font-size: 13px; color: #5b7169; line-height: 1.7; margin: 0; }
.placeholder-caption { display: block; color: #6a7d75; font-size: 10px; letter-spacing: .7px; margin-top: 25px; }
.result { flex: 1; padding: 25px 28px; border: 1px solid #d5e3df; border-radius: 12px; background: #f3f8f5; scroll-margin: 12px; }
.result-heading { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; padding-right: 134px; }
.result-label { color: #466a60; letter-spacing: 1.2px; font-size: 9px; font-weight: 700; }
.result-demo { background: #eee5d1; color: #705723; padding: 4px 7px; border-radius: 3px; font-size: 10px; }
.result h3 { font-family: Georgia, "Times New Roman", serif; font-size: 36px; line-height: 1.15; font-weight: 400; margin: 0 0 20px; color: #214c42; letter-spacing: -.7px; }
.result[data-estado="no_admitido"] { background: #f3f6f8; border-color: #dce2e7; }
.result[data-estado="no_admitido"] h3, .result[data-estado="no_admitido"] .result-label { color: #344f65; }
.result[data-estado="lista_espera"] { background: #fbf7ee; border-color: #e9dfc8; }
.result[data-estado="lista_espera"] h3, .result[data-estado="lista_espera"] .result-label { color: #755b24; }
.result-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 12px; border-top: 1px solid #d9e2dd; padding-top: 16px; margin: 0; }
.result-details dt { font-size: 10px; color: #536a60; margin-bottom: 5px; }
.result-details dd { font-size: 13px; margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.detail-wide { grid-column: 1 / -1; }
.result-grades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 20px 0 0; padding-top: 16px; gap: 13px; border-top: 1px solid #d9e0df; }
.result-grades dt { font-size: 11px; line-height: 1.4; color: #4f6570; margin-bottom: 6px; min-height: 2.8em; }
.result-grades dd { margin: 0; color: var(--ink); font-size: 28px; line-height: 1.1; font-weight: 500; overflow-wrap: anywhere; }
.result-grades .final-grade dd { font-weight: 700; }
.next-steps { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #d5e1db; color: #355c4f; font-size: 12px; line-height: 1.7; }
.code-value { font-family: Consolas, "Courier New", monospace; }
.new-query { display: none; }
.result-actions { display: none; }
.save-pdf { width: auto; margin: 0; min-height: 44px; padding: 9px 11px; gap: 6px; font-size: 12px; color: var(--navy); background: #fff; border-color: #bfccd1; }
.save-pdf:hover { background: #eaf0f2; }
.save-pdf-desktop { position: absolute; right: 0; top: -11px; }
.pdf-help:not(.sr-only) { font-size: 12px; line-height: 1.6; margin: 14px 0 0; }
.site-footer { flex-shrink: 0; border-top: 1px solid var(--line); background: #f1f4f2; }
.footer-inner { max-width: 1200px; padding: 14px 32px; margin: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; }
.footer-inner p { margin: 0; font-size: 10px; color: #536975; }
.footer-inner p:first-child { font-weight: 600; }
.footer-inner p span { margin: 0 8px; color: #7d8f93; }
.footer-caption { display: none; }
.spinner { width: 15px; height: 15px; border: 2px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.skip-link { position: fixed; z-index: 10; top: 10px; left: 10px; transform: translateY(-150%); padding: 12px 18px; background: var(--navy); color: white; border-radius: 4px; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript { color: #9c3534; font-size: 12px; margin-bottom: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 861px) and (max-height: 700px) {
  .header-inner { min-height: 66px; }
  .institution-logo { width: 108px; }
  .page-shell { padding-top: 15px; padding-bottom: 15px; }
  .page-intro { margin-bottom: 18px; }
  .eyebrow { margin-bottom: 7px; }
  h1 { font-size: 33px; margin-bottom: 8px; }
  .consultation { padding: 20px; }
  .card-heading { margin-bottom: 15px; }
  .demo-notice { margin-bottom: 14px; padding-top: 7px; padding-bottom: 7px; }
  .result { padding: 20px 24px; }
  .privacy-note { margin-top: 16px; padding-top: 14px; }
  .help-note { margin-top: 11px; }
  .result-grades { margin-top: 16px; }
  .footer-inner { padding-top: 11px; padding-bottom: 11px; }
}
@media (min-width: 861px) and (max-height: 650px) {
  .header-inner { min-height: 58px; }
  .institution-logo { width: 92px; }
  .page-shell { padding-top: 12px; padding-bottom: 12px; }
  .page-intro { margin-bottom: 13px; }
  .eyebrow { display: none; }
  .card-heading { margin-bottom: 11px; }
  .demo-notice { margin-bottom: 10px; }
  button { margin-top: 13px; }
  .privacy-note { margin-top: 12px; padding-top: 10px; }
  .help-note { margin-top: 8px; }
}
@media (max-width: 860px) {
  .header-inner { min-height: 69px; padding: 4px 20px; }
  .institution-logo { width: 112px; }
  .header-context { font-size: 11px; }
  .page-shell { max-width: 560px; padding: 19px 18px; }
  .page-intro { text-align: center; margin-bottom: 19px; }
  .eyebrow { justify-content: center; font-size: 8px; margin-bottom: 9px; letter-spacing: 1.6px; }
  h1 { font-size: 29px; letter-spacing: -.8px; margin-bottom: 10px; }
  .subtitle { font-size: 11px; line-height: 1.6; }
  .mobile-break { display: block; }
  .desktop-separator { display: none; }
  .consultation-layout { display: block; }
  .consultation { padding: 22px; }
  .result-column { display: none; }
  .has-result .consultation { display: none; }
  .has-result .result-column { display: flex; }
  .has-result .page-intro { margin-bottom: 16px; }
  .result { padding: 20px; }
  .result h3 { font-size: 30px; margin-bottom: 17px; }
  .result-heading { margin-bottom: 11px; padding-right: 0; }
  .save-pdf-desktop { display: none; }
  .result-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; margin-top: 12px; }
  .result-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding-top: 14px; }
  .detail-campus { grid-column: 1 / -1; }
  .result-grades { margin-top: 17px; gap: 9px; padding-top: 14px; }
  .result-grades dt { font-size: 10px; }
  .result-grades dd { font-size: 25px; }
  .next-steps { margin-top: 16px; padding-top: 12px; font-size: 12px; line-height: 1.65; }
  .new-query { display: flex; margin-top: 0; min-height: 44px; padding: 9px; font-size: 12px; color: var(--navy); background: #fff; border-color: #bfccd1; }
  .new-query:hover { background: #eaf0f2; }
  .footer-inner { padding: 11px 20px; justify-content: center; }
  .footer-inner p:first-child { display: none; }
}
@media (max-width: 420px) {
  .header-context { display: none; }
  .header-inner { min-height: 63px; padding-top: 2px; padding-bottom: 2px; }
  .institution-logo { width: 104px; }
  .page-shell { padding: 16px; }
  .eyebrow { display: none; }
  h1 { font-size: 27px; line-height: 1.12; }
  .consultation { padding: 20px; }
  .result { padding: 18px; }
  .result h3 { font-size: 28px; }
  .result-label { font-size: 8px; letter-spacing: 1px; }
  .result-demo { font-size: 9px; }
  .result-details dd { font-size: 12px; }
  .result-grades dd { font-size: 24px; }
  .next-steps { font-size: 11px; line-height: 1.65; }
}
@media (max-width: 860px) and (max-height: 740px) {
  .page-intro { margin-bottom: 14px; }
  .consultation { padding: 18px; }
  .card-heading { margin-bottom: 13px; }
  .demo-notice { margin-bottom: 14px; }
  .privacy-note { margin-top: 16px; }
  .has-result .page-intro { margin-bottom: 12px; }
  .has-result .page-intro h1 { font-size: 22px; margin-bottom: 0; }
  .has-result .eyebrow, .has-result .subtitle { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; } }
@page { size: A4 portrait; margin: 18mm; }
@media print {
  :root { background: #fff; color: #152e45; }
  body.has-result { display: block; min-width: 0; min-height: 0; background: #fff; }
  .has-result .skip-link, .has-result .consultation, .has-result .result-placeholder,
  .has-result .result-actions, .has-result .save-pdf, .has-result .pdf-help,
  .has-result .eyebrow, .has-result .header-context, .has-result .site-footer,
  .has-result #announcer { display: none !important; }
  .has-result .site-header { border: 0; background: #fff; }
  .has-result .header-inner { max-width: none; min-height: 0; padding: 0 0 10mm; }
  .has-result .institution-logo { width: 48mm; }
  .has-result main { display: block; background: #fff; }
  .has-result .page-shell { max-width: none; padding: 0; margin: 0; }
  .has-result .page-intro { text-align: left; margin: 0 0 8mm; }
  .has-result .page-intro h1 { font-size: 24pt; letter-spacing: -.5pt; margin: 0 0 3mm; }
  .has-result .subtitle { display: block; font-size: 10pt; color: #44525d; }
  .has-result .mobile-break { display: none; }
  .has-result .desktop-separator { display: inline; }
  .has-result .consultation-layout, .has-result .result-column { display: block; }
  .has-result .result { padding: 8mm; border: 1pt solid #a6b8b2; border-radius: 0; background: #fff; box-shadow: none; outline: none; break-inside: avoid; }
  .has-result .result-heading { padding-right: 0; margin-bottom: 4mm; }
  .has-result .result-label { font-size: 9pt; letter-spacing: 1pt; color: #344f45; }
  .has-result .result-demo { font-size: 10pt; font-weight: 600; background: #fff; color: #705723; border: 1pt solid #b99a5c; }
  .has-result .result h3 { font-size: 28pt; margin: 0 0 6mm; color: #152e45; }
  .has-result .result-details { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5mm; padding-top: 5mm; }
  .has-result .detail-campus { grid-column: auto; }
  .has-result .result-details dt { font-size: 9pt; color: #44525d; margin-bottom: 2mm; }
  .has-result .result-details dd { font-size: 11pt; }
  .has-result .result-grades { margin-top: 6mm; padding-top: 5mm; gap: 5mm; }
  .has-result .result-grades dt { font-size: 10pt; }
  .has-result .result-grades dd { font-size: 24pt; }
  .has-result .next-steps { margin-top: 6mm; padding-top: 5mm; font-size: 11pt; line-height: 1.6; }
}
