/* Consulta pública de certificados — RISKON */
.rk-cert-page .title-banner {
  height: 240px;
}
.rk-cert {
  padding: 0 0 96px;
  background: #f7f8f8;
}
.rk-cert-wrap {
  margin-top: -72px;
  position: relative;
  z-index: 2;
}
.rk-cert-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 28px;
  align-items: start;
}
.rk-cert-intro {
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 24px;
  padding: 36px 36px 28px;
  box-shadow: 0 18px 40px -28px rgba(23, 56, 86, 0.45);
}
.rk-cert-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(231, 114, 53, 0.12);
  color: #c45a22;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 16px;
}
.rk-cert-intro h2 {
  color: #173856;
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 12px;
}
.rk-cert-intro > p {
  color: #495f70;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 52ch;
}
.rk-cert-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rk-cert-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #173856;
  font-size: 15px;
  font-weight: 500;
}
.rk-cert-steps span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #173856;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 32px;
}
.rk-cert-card {
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 50px -30px rgba(23, 56, 86, 0.55);
}
.rk-cert-card h3 {
  margin: 0 0 6px;
  color: #173856;
  font-size: 20px;
  font-weight: 600;
}
.rk-cert-card .rk-cert-hint {
  margin: 0 0 18px;
  color: #6b7c8a;
  font-size: 14px;
  line-height: 1.5;
}
.rk-cert-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 14px;
  color: #91a0ac;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rk-cert-or::before,
.rk-cert-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e4e8ec;
}
.rk-cert-result .rk-diploma + .rk-diploma { margin-top: 16px; }
.rk-cert-field { margin-bottom: 14px; }
.rk-cert-field label {
  display: block;
  margin-bottom: 6px;
  color: #173856;
  font-size: 13px;
  font-weight: 600;
}
.rk-cert-field label em {
  font-style: normal;
  color: #91a0ac;
  font-weight: 500;
}
.rk-cert-field input {
  width: 100%;
  height: 50px;
  border: 1.5px solid #e4e8ec;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 16px;
  color: #173856;
  background: #fff;
  outline: none;
}
.rk-cert-field input:focus {
  border-color: #e77235;
  box-shadow: 0 0 0 4px rgba(231, 114, 53, 0.15);
}
.rk-cert-submit {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: #e77235;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
}
.rk-cert-submit:hover { background: #d4632b; }
.rk-cert-submit:focus-visible {
  outline: 3px solid #173856;
  outline-offset: 2px;
}
.rk-cert-note {
  margin: 12px 0 0;
  color: #91a0ac;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
}

.rk-cert-page--qr .rk-cert { padding-top: 28px; }
.rk-cert-page--qr .rk-cert-wrap {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1.05fr);
  gap: 24px;
  align-items: start;
}
.rk-cert-page--qr .rk-cert-result { margin-bottom: 0; }
.rk-cert-page--qr .rk-cert-result:only-child { grid-column: 1 / -1; }
/* El banner "Certificado válido" ocupa todo el ancho arriba; debajo, diploma (izq) + PDF (der) alineados */
.rk-cert-page--qr .rk-cert-status { grid-column: 1 / -1; margin-bottom: 0; }
.rk-cert-pdf {
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 48px -32px rgba(23, 56, 86, 0.5);
  position: sticky;
  top: 16px;
}
.rk-cert-pdf iframe {
  display: block;
  width: 100%;
  /* El visor llena la tarjeta con la proporción A4 vertical (sin hueco gris) */
  aspect-ratio: 1 / 1.3;
  min-height: 0;
  border: 0;
  background: #fff;
}

.rk-cert-result { margin-bottom: 28px; }
.rk-cert-status {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 16px;
}
.rk-cert-status.ok { border-color: #b7ebc9; background: #f3fbf6; }
.rk-cert-status.no { border-color: #f5c2c0; background: #fff6f5; }
.rk-cert-status i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: 0 0 48px;
}
.rk-cert-status.ok i { background: #1f9d55; color: #fff; }
.rk-cert-status.no i { background: #c0392b; color: #fff; }
.rk-cert-status h3 { margin: 0 0 4px; color: #173856; font-size: 20px; }
.rk-cert-status p { margin: 0; color: #495f70; font-size: 15px; line-height: 1.5; }

.rk-diploma {
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 48px -32px rgba(23, 56, 86, 0.5);
}
.rk-diploma-head {
  background: #173856;
  color: #fff;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.rk-diploma-head small {
  display: block;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  opacity: 0.75;
  margin-bottom: 4px;
}
.rk-diploma-head strong { font-size: 18px; font-weight: 600; }
.rk-diploma-seal {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  color: #f3b23a;
  font-size: 22px;
  flex: 0 0 54px;
}
.rk-diploma-body { padding: 8px 12px 18px; }
.rk-diploma-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f4;
}
.rk-diploma-row:last-child { border-bottom: 0; }
.rk-diploma-row span { color: #8a97a4; font-size: 14px; }
.rk-diploma-row b { color: #173856; font-size: 15px; font-weight: 600; }

@media (max-width: 991px) {
  .rk-cert-wrap { margin-top: 24px; }
  .rk-cert-grid { grid-template-columns: 1fr; }
  .rk-cert { padding-bottom: 64px; }
  .rk-cert-page--qr .rk-cert-wrap { grid-template-columns: 1fr; }
  .rk-cert-pdf { position: static; min-height: 0; }
  .rk-cert-pdf iframe { height: 70vh; min-height: 480px; }
}
@media (max-width: 640px) {
  .rk-cert-intro, .rk-cert-card { padding: 22px 18px; border-radius: 18px; }
  .rk-diploma-row { grid-template-columns: 1fr; gap: 2px; }
  .rk-cert-status { flex-direction: column; }
}
