:root { font-family: Arial, Helvetica, sans-serif; color: #050505; background: #fff url('/assets/images/bgg.jpg') repeat; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
.page-shell { width: min(1170px, 100%); min-height: 100vh; margin: 0 auto; background: #fff; display: flex; flex-direction: column; }
.hero { width: 100%; aspect-ratio: 1170 / 222; overflow: hidden; background: #074477; }
.hero img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
main { flex: 1; }
.consultation { min-height: 582px; padding: 53px 24px 52px; text-align: center; }
h1 { margin: 0 0 46px; color: #000091; font-size: 34px; line-height: 1.15; }
form { width: 330px; max-width: 100%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 19px; }
input, select { width: 160px; height: 29px; border: 1px solid #ccc; border-radius: 4px; padding: 4px 16px; color: #555; background: #fff; font-size: 12px; }
input { text-align: center; }
input:focus, select:focus { border-color: #66afe9; outline: 0; box-shadow: 0 0 8px rgba(102,175,233,.6); }
.captcha-block { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.captcha-block input { width: 155px; margin-bottom: 1px; }
.captcha-block img { width: 210px; height: 38px; display: block; }
.link-button { padding: 0; border: 0; color: #0000ee; background: transparent; cursor: pointer; font-size: 12px; }
.link-button:hover { text-decoration: underline; }
.home-link { margin-top: 36px; }
.submit-button { margin-top: 17px; padding: 12px 17px; border: 1px solid #357ebd; border-radius: 6px; color: #fff; background: #428bca; font-size: 18px; cursor: pointer; }
.submit-button:hover { background: #3071a9; }
.submit-button:disabled { opacity: .65; cursor: wait; }
footer { padding: 15px 18px 10px; text-align: center; background: #edf2f4; font-size: 16px; }
footer p { margin: 2px 0; }
.compatibility { margin-bottom: 17px; color: red; font-weight: 700; }
.local-note { margin-top: 7px; color: #5a6570; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.modal-card { position: relative; width: min(600px, 100%); border-radius: 6px; background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,.5); overflow: hidden; }
.modal-card header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #e5e5e5; }
.modal-card h2 { margin: 0; font-size: 18px; font-weight: 500; }
.close-button { border: 0; background: none; color: #777; font-size: 23px; cursor: pointer; }
.modal-alert { margin: 15px; padding: 15px; border: 1px solid #ebccd1; border-radius: 4px; color: #a94442; background: #f2dede; }
.modal-alert.success { border-color: #d6e9c6; color: #3c763d; background: #dff0d8; }
.modal-actions { padding: 15px; border-top: 1px solid #e5e5e5; text-align: right; }
.accept-button { padding: 7px 13px; border: 1px solid #ccc; border-radius: 4px; background: #fff; cursor: pointer; }

@media (max-width: 600px) {
  .hero { height: 222px; aspect-ratio: auto; }
  .hero img { width: 1170px; height: 222px; max-width: none; object-fit: fill; }
  .consultation { min-height: 615px; padding: 53px 30px 40px; }
  h1 { margin-bottom: 49px; font-size: 32px; line-height: 1.12; }
  form { width: 100%; gap: 21px; }
  input, select { width: 100%; height: 29px; }
  .captcha-block { width: 100%; margin-top: 18px; }
  .captcha-block input { width: 100%; }
  .home-link { margin-top: 36px; }
  footer { font-size: 13px; }
}

/* =====================================================
   RESULTADOS DE EVALUACIONES — ESTILO EXACTO CAPTURA MTC
   ===================================================== */
.eval-results-container {
  padding: 24px 30px 50px;
  background: #ffffff;
  animation: fadeIn .3s ease;
  min-height: 520px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.eval-results-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: left;
}

/* Título con el nombre del postulante en azul oficial */
.eval-nombre-titulo {
  color: #005aa9;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 10px 0 16px 0;
  text-transform: uppercase;
  letter-spacing: .2px;
}

/* Subtítulos de sección: Evaluación Médica, Examen de Conocimiento, etc. */
.eval-subtitulo {
  color: #4a4a4a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 22px 0 10px 0;
  text-align: left;
}

.eval-table-scroll {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 22px;
}

/* Tabla oficial con encabezado azul */
.eval-tabla-oficial {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #777777;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
}

.eval-tabla-oficial th {
  background-color: #0066b2;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 6px 12px;
  border: 1px solid #777777;
  white-space: nowrap;
}

.eval-tabla-oficial td {
  padding: 7px 10px;
  font-size: 13px;
  color: #333333;
  text-align: center;
  border: 1px solid #777777;
  text-transform: uppercase;
  background-color: #ffffff;
}

/* Botón IMPRIMIR centrado en rojo */
.eval-imprimir-wrap {
  text-align: center;
  margin-top: 35px;
  margin-bottom: 12px;
}

.btn-imprimir-rojo {
  background-color: #d9534f;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  padding: 8px 32px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: background-color .15s ease;
}

.btn-imprimir-rojo:hover {
  background-color: #c9302c;
}

/* Enlace regresar */
.eval-regresar-wrap {
  text-align: center;
  margin-top: 8px;
  margin-bottom: 20px;
}

.eval-link-volver {
  background: none;
  border: none;
  color: #0000ee;
  font-size: 13px;
  cursor: pointer;
}

.eval-link-volver:hover {
  text-decoration: underline;
}

@media print {
  header, footer, .eval-imprimir-wrap, .eval-regresar-wrap, .home-link {
    display: none !important;
  }
  .page-shell {
    box-shadow: none !important;
    border: none !important;
  }
  .eval-results-container {
    padding: 0 !important;
  }
}
