/* RYR Portal — portales "Mi Espacio", "Soy Empresa" y página del postulante */
.ryr-portal { max-width: 1180px; margin: 0 auto; padding: 24px 0 48px; font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif; }
.ryr-portal h2, .ryr-portal h3, .ryr-portal h4 { font-family: inherit; letter-spacing: 0; }
.ryr-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ryr-blue); margin-bottom: 4px; }
.ryr-portal [hidden] { display: none !important; }
.ryrp-app--wide { max-width: 1440px; }

/* Login */
.ryr-login { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--ryr-line); border-radius: 16px; overflow: hidden; box-shadow: 0 12px 40px rgba(20, 30, 70, .10); max-width: 920px; margin: 0 auto; }
.ryr-login__aside { padding: 40px; color: #fff; background: linear-gradient(150deg, var(--ryr-navy) 0%, #34408A 100%); }
.ryr-login__aside--funcionario { background: linear-gradient(150deg, #1D2550 0%, var(--ryr-blue) 130%); }
.ryr-login__aside .ryr-kicker { color: rgba(255, 255, 255, .7); }
.ryr-login__aside h2 { color: #fff; font-size: 26px; font-weight: 700; margin: 0 0 20px; line-height: 1.25; }
.ryr-login__aside ul { list-style: none; margin: 0; padding: 0; }
.ryr-login__aside li { position: relative; padding: 8px 0 8px 28px; color: rgba(255, 255, 255, .9); }
.ryr-login__aside li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: 11px; line-height: 18px; text-align: center; }
.ryr-login__form { padding: 40px; }
.ryr-login__form h3 { margin: 0 0 18px; font-size: 22px; color: var(--ryr-navy); }
.ryr-login__form form p { margin: 0 0 14px; }
.ryr-login__form label { display: block; font-size: 13px; font-weight: 600; color: var(--ryr-navy); margin-bottom: 5px; }
.ryr-login__form input[type=text], .ryr-login__form input[type=password] { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #D5DAE7; border-radius: 9px; font: inherit; background: #fff; }
.ryr-login__form input[type=text]:focus, .ryr-login__form input[type=password]:focus { border-color: var(--ryr-blue); outline: 0; box-shadow: 0 0 0 3px rgba(66, 102, 245, .15); }
.ryr-login__form .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--ryr-muted); }
.ryr-login__form .button-primary, .ryr-login__form input[type=submit] { width: 100%; min-height: 46px; border: 0; border-radius: 9px; background: var(--ryr-blue); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .15s; }
.ryr-login__form .button-primary:hover, .ryr-login__form input[type=submit]:hover { background: var(--ryr-navy); }
.ryr-login__links a { color: var(--ryr-blue); font-weight: 600; text-decoration: none; }
.ryr-login__form .ryr-muted { font-size: 13px; margin: 0; }

/* Encabezado y pestañas */
.ryrp-head { margin: 0 0 22px; }
.ryrp-head__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; }
.ryrp-head h2 { margin: 0; font-size: 28px; font-weight: 700; color: var(--ryr-navy); line-height: 1.15; }
.ryrp-head__user { display: flex; align-items: center; gap: 10px; color: var(--ryr-muted); }
.ryrp-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ryr-blue-soft); color: var(--ryr-blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.ryrp-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--ryr-line); }
.ryrp-tab { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--ryr-muted); font-weight: 600; text-decoration: none !important; font-size: 14px; }
.ryrp-tab:hover { color: var(--ryr-navy); }
.ryrp-tab.is-active { color: var(--ryr-navy); border-bottom-color: var(--ryr-blue); }
.ryrp-tab__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ryr-blue); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.ryrp-tab--cta { margin-left: auto; background: var(--ryr-blue); color: #fff !important; border-radius: 9px 9px 0 0; }
.ryrp-tab--cta:hover, .ryrp-tab--cta.is-active { background: var(--ryr-navy); color: #fff; border-bottom-color: var(--ryr-navy); }

.ryrp-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.ryrp-toolbar p { margin: 0; }
.ryrp-h { margin: 0; font-size: 20px; color: var(--ryr-navy); }
.ryrp-h small { color: var(--ryr-muted); font-weight: 500; font-size: 14px; margin-left: 6px; }
.ryrp-h4 { margin: 18px 0 10px; font-size: 14px; color: var(--ryr-navy); }
.ryrp-back { display: inline-block; margin: 0 0 12px; font-size: 14px; }
.ryrp-ml-auto { margin-left: auto; }
.ryrp-mt { margin-top: 14px; }
.ryrp-big { font-size: 30px; font-weight: 700; color: var(--ryr-navy); margin: 0; line-height: 1.1; }
.ryrp-big.is-over { color: var(--ryr-danger); }
.ryrp-btn-block { width: 100%; }
.ryrp-btn-lg { min-height: 48px; font-size: 16px; }
.ryrp-btn-ok { background: #16A34A !important; border-color: #16A34A !important; }
.ryrp-foot { text-align: center; margin-top: 28px; }
.ryrp-stack { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ryr-field__help { display: block; color: var(--ryr-muted); font-size: 12px; margin-top: 4px; }
.ryrp-seg { display: inline-flex; border: 1px solid var(--ryr-line); border-radius: 9px; overflow: hidden; background: #fff; }
.ryrp-seg a { padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ryr-muted); text-decoration: none !important; }
.ryrp-seg a.is-active { background: var(--ryr-navy); color: #fff; }

/* Rejillas */
.ryrp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ryrp-grid > * { margin: 0; }
.ryrp-grid--ev { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); align-items: start; }
.ryrp-grid--ev > div > .ryr-card, .ryrp-grid--ev > aside > .ryr-card { margin-bottom: 18px; }
.ryrp-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.ryrp-sticky { position: sticky; top: 100px; }
.ryrp-card--flush { padding: 4px 6px; }
.ryrp-card--warn { border-color: #F4D58D; background: #FFFCF3; }
.ryrp-step { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: var(--ryr-blue-soft); color: var(--ryr-blue); font-size: 13px; align-items: center; justify-content: center; margin-right: 6px; vertical-align: 1px; }
.ryrp-sub { background: #FAFBFD; border: 1px dashed #CBD2E3; border-radius: 10px; padding: 14px 14px 2px; margin-bottom: 14px; }
.ryrp-inputbtn { display: flex; gap: 8px; }
.ryrp-inputbtn input { flex: 1; }

/* Listas */
.ryrp-list { list-style: none; margin: 0; padding: 0; }
.ryrp-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ryr-line); }
.ryrp-list li:last-child { border-bottom: 0; }
.ryrp-list__main { flex: 1 1 auto; min-width: 0; }
.ryrp-list__main a, .ryrp-list__main strong { display: block; color: var(--ryr-navy); font-weight: 600; text-decoration: none; }
.ryrp-list__main small { display: block; color: var(--ryr-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ryrp-list__side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ryrp-list__time { width: 52px; font-weight: 700; color: var(--ryr-navy); }
.ryrp-list__time small { display: block; font-weight: 500; font-size: 11px; color: var(--ryr-warn); }
.ryrp-list__date { display: flex; flex-direction: column; align-items: center; width: 52px; }
.ryrp-day { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; background: var(--ryr-blue-soft); color: var(--ryr-navy); line-height: 1; }
.ryrp-day b { font-size: 18px; }
.ryrp-day i { font-style: normal; font-size: 11px; text-transform: uppercase; margin-top: 2px; color: var(--ryr-blue); }
.ryrp-day.is-today { background: var(--ryr-blue); color: #fff; }
.ryrp-day.is-today i { color: #fff; }
.ryrp-day__h { font-size: 12px; color: var(--ryr-muted); margin-top: 3px; }
.ryrp-agenda__day { margin: 18px 0 4px; font-size: 14px; color: var(--ryr-navy); text-transform: none; }
.ryrp-agenda__day:first-child { margin-top: 0; }
.ryrp-agenda__day.is-today { color: var(--ryr-blue); }
.ryrp-date { font-weight: 600; color: var(--ryr-navy); white-space: nowrap; }
.ryrp-date--hoy { color: var(--ryr-blue); }
.ryrp-date--pasada { color: var(--ryr-muted); font-weight: 500; }

/* Avance */
.ryrp-prog { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ryrp-prog__bar { width: 70px; height: 6px; background: #E9ECF4; border-radius: 3px; overflow: hidden; }
.ryrp-prog__bar span { display: block; height: 100%; background: var(--ryr-blue); border-radius: 3px; }
.ryrp-prog.is-done .ryrp-prog__bar span { background: var(--ryr-ok); }
.ryrp-prog__txt { font-size: 12px; color: var(--ryr-muted); font-weight: 600; }
.ryrp-steps { display: flex; list-style: none; margin: 0 0 20px; padding: 0; counter-reset: s; gap: 0; overflow-x: auto; }
.ryrp-steps li { flex: 1 1 0; min-width: 120px; position: relative; padding: 30px 6px 0; text-align: center; font-size: 12.5px; color: var(--ryr-muted); counter-increment: s; }
.ryrp-steps li::before { content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid #D5DAE7; line-height: 20px; font-weight: 700; font-size: 12px; z-index: 1; }
.ryrp-steps li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: #D5DAE7; }
.ryrp-steps li:first-child::after { display: none; }
.ryrp-steps li.is-done { color: var(--ryr-navy); font-weight: 600; }
.ryrp-steps li.is-done::before { content: "✓"; background: var(--ryr-ok); border-color: var(--ryr-ok); color: #fff; }
.ryrp-steps li.is-done::after { background: var(--ryr-ok); }

/* Evaluación */
.ryrp-evhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ryrp-evhead h3 { margin: 0; font-size: 24px; color: var(--ryr-navy); }
.ryrp-evhead p { margin: 4px 0 0; }
.ryrp-evhead__side { display: flex; align-items: center; gap: 10px; }
.ryrp-testlist { list-style: none; margin: 0; padding: 0; }
.ryrp-testlist li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ryr-line); flex-wrap: wrap; }
.ryrp-testlist li:last-child { border-bottom: 0; }
.ryrp-testlist__main { flex: 1 1 180px; }
.ryrp-testlist__main strong { display: block; color: var(--ryr-navy); }
.ryrp-testlist__main small, .ryrp-testlist__main a { display: block; font-size: 12.5px; color: var(--ryr-muted); }
.ryrp-testlist__main a { color: var(--ryr-blue); }
.ryrp-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #C5CCDD; flex: 0 0 auto; }
.ryrp-testlist li.is-done .ryrp-dot { background: var(--ryr-ok); border-color: var(--ryr-ok); }
.ryrp-testlist--mini li { padding: 8px 0; }
.ryrp-tests { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ryrp-testopt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--ryr-line); border-radius: 10px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.ryrp-testopt:hover { border-color: #B8C4F5; }
.ryrp-testopt:has(input:checked) { border-color: var(--ryr-blue); background: var(--ryr-blue-soft); }
.ryrp-testopt input { margin-top: 3px; }
.ryrp-testopt strong { display: block; color: var(--ryr-navy); font-size: 14px; }
.ryrp-testopt em { display: inline-block; font-style: normal; font-size: 11px; font-weight: 600; color: var(--ryr-blue); background: #fff; border-radius: 6px; padding: 1px 6px; margin-top: 3px; }
.ryrp-testopt small { display: block; color: var(--ryr-muted); font-size: 12px; margin-top: 3px; line-height: 1.35; }
.ryrp-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 18px; margin: 0 0 14px; }
.ryrp-dl dt { font-size: 12px; color: var(--ryr-muted); }
.ryrp-dl dd { margin: 0; font-weight: 500; word-break: break-word; }
.ryrp-cita { display: flex; gap: 14px; align-items: center; padding: 12px; background: #FAFBFD; border: 1px solid var(--ryr-line); border-radius: 12px; margin-bottom: 14px; }
.ryrp-cita .ryrp-day { width: 56px; height: 56px; }
.ryrp-mailprev { border: 1px solid var(--ryr-line); border-radius: 10px; padding: 14px; background: #fff; max-height: 520px; overflow: auto; font-size: 13px; }
.ryrp-users li small { display: block; }

/* Editor de informe */
.ryrp-ed__bar { position: sticky; top: 70px; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin: 0 0 18px; background: rgba(255, 255, 255, .96); border: 1px solid var(--ryr-line); border-radius: 12px; box-shadow: var(--ryr-shadow); backdrop-filter: blur(6px); }
.ryrp-ed__status { font-size: 12.5px; color: var(--ryr-muted); margin-left: 8px; }
.ryrp-ed__status.is-ok { color: var(--ryr-ok); }
.ryrp-ed__status.is-err { color: var(--ryr-danger); font-weight: 600; }
.ryrp-ed__body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.ryrp-ed__side { position: sticky; top: 150px; }
.ryrp-ed__sechead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ryrp-ed__sechead h3 { margin: 0 !important; flex: 1; }
.ryrp-ed__inc { margin: 0; font-size: 13px; color: var(--ryr-muted); }
.ryrp-ed__tbl td { padding: 4px !important; }
.ryrp-ed__tbl input { width: 100%; min-height: 36px; padding: 6px 9px; border: 1px solid #D5DAE7; border-radius: 8px; font: inherit; }
.ryrp-ed__tbl + .ryr-btn, .ryr-table-wrap + .ryr-btn { margin-top: 8px; }
.ryrp-ed__form textarea { line-height: 1.55; }
.ryrp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }
.ryrp-chips small { width: 100%; color: var(--ryr-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.ryrp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border: 1px solid var(--ryr-line); border-radius: 999px; font-size: 13px; cursor: pointer; background: #fff; }
.ryrp-chip.is-on { border-color: var(--ryr-blue); background: var(--ryr-blue-soft); color: var(--ryr-navy); }
.ryrp-chip input { margin: 0; }
.ryrp-chip button { border: 0; background: transparent; color: var(--ryr-muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 3px; }
.ryrp-ed__addcomp { display: flex; gap: 8px; margin: 6px 0 14px; flex-wrap: wrap; }
.ryrp-ed__addcomp input, .ryrp-ed__addcomp select { min-height: 36px; padding: 6px 10px; border: 1px solid #D5DAE7; border-radius: 8px; font: inherit; }
.ryrp-ed__addcomp input { flex: 1 1 220px; }
.ryrp-comp { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ryrp-comp th, .ryrp-comp td { border: 1px solid var(--ryr-line); padding: 7px; text-align: center; }
.ryrp-comp th { background: #FAFBFD; color: var(--ryr-muted); font-size: 12px; }
.ryrp-comp td.obj { background: #F2F5FF; }
.ryrp-comp .ryrp-comp__name { text-align: left; font-weight: 600; color: var(--ryr-navy); }
.ryrp-comp td.ok { background: var(--ryr-ok-bg); color: var(--ryr-ok); font-weight: 700; }
.ryrp-comp td.gap { background: var(--ryr-danger-bg); color: var(--ryr-danger); font-weight: 700; }
.ryrp-recs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ryrp-rec { display: flex; gap: 8px; align-items: center; justify-content: center; text-align: center; padding: 14px 10px; border: 1.5px solid var(--ryr-line); border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer; }
.ryrp-rec--recomendado.is-on { background: #E6F4EA; border-color: #86EFAC; color: #14532D; }
.ryrp-rec--reservas.is-on { background: #FEF9C3; border-color: #FDE68A; color: #7C2D12; }
.ryrp-rec--no.is-on { background: #FEE2E2; border-color: #FCA5A5; color: #7F1D1D; }
.ryrp-ed__ref { border: 1px solid var(--ryr-line); border-radius: 10px; padding: 14px; margin-bottom: 12px; background: #FAFBFD; }
.ryrp-ed__ref h4 { margin: 0; color: var(--ryr-navy); }
.ryrp-firma { display: flex; align-items: center; justify-content: center; min-height: 90px; padding: 10px; border: 1.5px dashed #CBD2E3; border-radius: 10px; background: #fff; margin-bottom: 8px; }
.ryrp-firma img { max-height: 90px; max-width: 260px; }
.ryrp-tips { margin: 0; padding-left: 18px; color: var(--ryr-muted); font-size: 13px; }
.ryrp-tips li { margin-bottom: 6px; }
.ryrp-ed__preview { background: #E9ECF4; border-radius: 12px; padding: 24px; overflow: auto; }
.ryrp-ed__paper .ryrp-pdf { margin: 0 auto; box-shadow: 0 10px 30px rgba(20, 30, 70, .15); }

/* Documento PDF (oficio 216 x 340 mm) */
.ryrp-pdfwrap { position: fixed; left: -10000px; top: 0; width: 216mm; z-index: -1; }
.ryrp-pdf { width: 216mm; min-height: 340mm; background: #fff; color: #111827; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.6; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ryrp-pdf * { box-sizing: border-box; }
.ryrp-pdf__in { padding: 20mm 20mm 22mm; }
.ryrp-pdf .p-title { text-align: center; margin: 0 0 10mm; }
.ryrp-pdf .p-title__main { font-weight: 900; font-size: 20px; letter-spacing: .4px; color: #0f172a; }
.ryrp-pdf .p-title__sub { font-weight: 600; font-size: 13px; color: #475569; margin-top: 4px; }
.ryrp-pdf .p-sec { margin: 0 0 24px; }
.ryrp-pdf .p-h { font-size: 15px; font-weight: 900; color: #0f172a; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 3px solid #A3B8F1; page-break-after: avoid; }
.ryrp-pdf .p-h3 { font-size: 13.5px; font-weight: 700; color: #1f2937; margin: 14px 0 8px; }
.ryrp-pdf h4 { font-size: 13px; margin: 12px 0 6px; }
.ryrp-pdf .p-kv { display: grid; grid-template-columns: 230px 1fr; column-gap: 12px; row-gap: 8px; }
.ryrp-pdf .p-kv .k { color: #0f172a; }
.ryrp-pdf .p-kv .v { color: #0f172a; font-weight: 600; }
.ryrp-pdf .p-text p { margin: 0 0 10px; text-align: justify; }
.ryrp-pdf .p-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ryrp-pdf .p-tbl th, .ryrp-pdf .p-tbl td { border: 1px solid #e5e7eb; padding: 8px 9px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.ryrp-pdf .p-tbl th { background: #f8fafc; color: #334155; }
.ryrp-pdf .p-tbl .c { text-align: center; }
.ryrp-pdf .p-tbl .ok { background: #e6f4ea; color: #14532d; font-weight: 700; }
.ryrp-pdf .p-tbl .gap { background: #fee2e2; color: #7f1d1d; font-weight: 700; }
.ryrp-pdf .p-small { font-size: 11.5px; color: #475569; }
.ryrp-pdf .p-chart { text-align: center; margin: 10px 0; }
.ryrp-pdf .p-chart canvas { width: 150mm !important; height: auto !important; }
.ryrp-pdf .p-rec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ryrp-pdf .p-rec__b { border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 8px; text-align: center; font-weight: 700; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ryrp-pdf .p-rec__b i { width: 18px; height: 18px; border: 2px solid #111827; border-radius: 4px; font-style: normal; line-height: 14px; font-weight: 900; }
.ryrp-pdf .p-rec__b--recomendado.is-on { background: #e6f4ea; color: #14532d; border-color: #86efac; }
.ryrp-pdf .p-rec__b--reservas.is-on { background: #fef9c3; color: #7c2d12; border-color: #fde68a; }
.ryrp-pdf .p-rec__b--no.is-on { background: #fee2e2; color: #7f1d1d; border-color: #fca5a5; }
.ryrp-pdf .p-firma { margin: 70px 0 0; text-align: center; page-break-inside: avoid; font-size: 12px; }
.ryrp-pdf .p-firma img { display: block; margin: 0 auto 2mm; max-height: 38mm; max-width: 58mm; }
.ryrp-pdf .p-firma__line { width: 60mm; border-top: 1.5px solid #111827; margin: 6px auto 4px; }
.ryrp-pdf .p-annex { page-break-before: always; padding-top: 20mm; }
.ryrp-pdf .p-break { page-break-before: always; padding-top: 20mm; }
.ryrp-pdf .p-qa { margin: 10px 0; page-break-inside: avoid; }
.ryrp-pdf .p-qa__q { font-weight: 700; margin-bottom: 5px; }
.ryrp-pdf .p-qa__a { border: 1px solid #e5e7eb; border-radius: 8px; padding: 9px; min-height: 48px; white-space: pre-wrap; text-align: justify; }

/* Página del postulante */
.ryrp-cand { max-width: 860px; }
.ryrp-cand__hero { background: linear-gradient(135deg, #1E3A8A, #4266F5); color: #fff; border-radius: 16px; padding: 28px; margin-bottom: 20px; }
.ryrp-cand__hero .ryr-kicker { color: rgba(255, 255, 255, .75); }
.ryrp-cand__hero h2 { color: #fff; margin: 0 0 6px; font-size: 28px; }
.ryrp-cand__hero p { margin: 0 0 14px; opacity: .92; }
.ryrp-cand__hero small { opacity: .85; }
.ryrp-cand__prog { height: 8px; background: rgba(255, 255, 255, .25); border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.ryrp-cand__prog span { display: block; height: 100%; background: #86EFAC; border-radius: 4px; }
.ryrp-cand__grid { display: grid; gap: 18px; }
.ryrp-cand__grid > .ryr-card { margin: 0; }
.ryrp-cand__tests { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.ryrp-cand__tests li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--ryr-line); counter-increment: t; }
.ryrp-cand__tests li:last-child { border-bottom: 0; }
.ryrp-cand__tests li::before { content: counter(t); flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--ryr-blue-soft); color: var(--ryr-blue); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ryrp-cand__tests li.is-done::before { background: var(--ryr-ok-bg); color: var(--ryr-ok); }
.ryrp-cand__tests li > div { flex: 1; }
.ryrp-cand__tests strong { display: block; color: var(--ryr-navy); font-size: 15px; }
.ryrp-cand__tests small { color: var(--ryr-muted); }
.ryrp-cand__tests li.is-done small { color: var(--ryr-ok); font-weight: 600; }
.ryrp-check { width: 32px; height: 32px; border-radius: 50%; background: var(--ryr-ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.ryrp-cand__empty { max-width: 560px; margin: 40px auto; text-align: center; }

/* Responsive */
@media (max-width: 1100px) {
	.ryrp-ed__body { grid-template-columns: 1fr; }
	.ryrp-ed__side { position: static; }
}
@media (max-width: 900px) {
	.ryrp-grid, .ryrp-grid--ev, .ryrp-form-grid { grid-template-columns: 1fr; }
	.ryrp-sticky { position: static; }
	.ryrp-ed__bar { top: 0; }
}
@media (max-width: 760px) {
	.ryr-portal { padding: 16px 0 32px; }
	.ryr-login { grid-template-columns: 1fr; border-radius: 12px; }
	.ryr-login__aside, .ryr-login__form { padding: 26px 22px; }
	.ryrp-head h2 { font-size: 23px; }
	.ryrp-head__name { display: none; }
	.ryrp-tabs { flex-wrap: nowrap; overflow-x: auto; }
	.ryrp-tab { white-space: nowrap; }
	.ryrp-tab--cta { margin-left: 0; }
	.ryrp-recs, .ryrp-pdf .p-rec { grid-template-columns: 1fr; }
	.ryrp-list li { flex-wrap: wrap; }
	.ryrp-list__side { width: 100%; justify-content: flex-start; }
	.ryrp-ed__preview { padding: 8px; }
	.ryrp-ed__paper { zoom: .45; }
	/* Tabla en formato tarjeta */
	.ryr-portal .ryr-table thead { display: none; }
	.ryr-portal .ryr-table tr { display: block; padding: 10px 6px; border-bottom: 1px solid var(--ryr-line); }
	.ryr-portal .ryr-table td { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border: 0; text-align: right; }
	.ryr-portal .ryr-table td[data-l]::before { content: attr(data-l); color: var(--ryr-muted); font-size: 12px; text-align: left; }
	.ryr-portal .ryrp-ed__tbl tr, .ryr-portal .ryrp-ed__tbl td { display: block; text-align: left; }
	.ryr-portal .ryr-card { padding: 16px; }
}

/* Ajustes */
.ryr-portal .ryr-check input, .ryr-wrap .ryr-check input { width: auto !important; min-height: 0 !important; flex: 0 0 auto; margin-top: 3px; }
.ryr-field > .ryrp-inputbtn { display: flex; margin: 0; }
.ryrp-checkcell { padding-top: 26px; }

/* El tema da estilo a todos los botones: se fuerza el diseño del portal */
.ryr-portal button.ryr-btn, .ryr-portal label.ryr-btn, .ryr-portal a.ryr-btn { font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; border-radius: 9px !important; padding: 8px 16px; min-height: 38px; text-transform: none; letter-spacing: 0; box-shadow: none; border-width: 1.5px !important; border-style: solid !important; }
.ryr-portal button.ryr-btn--sm, .ryr-portal label.ryr-btn--sm, .ryr-portal a.ryr-btn--sm { min-height: 32px; padding: 5px 12px; font-size: 13px; }
.ryr-portal button.ryr-btn--primary { background: var(--ryr-blue) !important; border-color: var(--ryr-blue) !important; color: #fff !important; }
.ryr-portal button.ryr-btn--primary:hover { background: var(--ryr-navy) !important; border-color: var(--ryr-navy) !important; }
.ryr-portal button.ryr-btn--ghost, .ryr-portal label.ryr-btn--ghost { background: #fff !important; border-color: var(--ryr-line) !important; color: var(--ryr-navy) !important; }
.ryr-portal button.ryr-btn--ghost:hover, .ryr-portal label.ryr-btn--ghost:hover { background: var(--ryr-blue-soft) !important; border-color: var(--ryr-blue) !important; color: var(--ryr-blue) !important; }
.ryr-portal button.ryr-btn--danger { background: #fff !important; border-color: #F3C7C2 !important; color: var(--ryr-danger) !important; }
.ryr-portal button.ryr-btn--danger:hover { background: var(--ryr-danger-bg) !important; border-color: var(--ryr-danger) !important; }
.ryr-portal .ryrp-chip button { background: transparent !important; border: 0 !important; padding: 0 3px !important; min-height: 0 !important; color: var(--ryr-muted) !important; }
.ryr-portal .ryr-field input, .ryr-portal .ryr-field select, .ryr-portal .ryr-field textarea, .ryr-portal .ryr-filters input, .ryr-portal .ryr-filters select { background-color: #fff; border: 1px solid #D5DAE7; border-radius: 9px; }
.ryr-portal .ryr-row-actions .ryr-inline, .ryr-portal .ryrp-list__side .ryr-inline { display: inline-flex; }

/* ---------- 2.1: carga masiva ---------- */
.ryrp-mb { margin-bottom: 12px; }
.ryrp-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 30px 16px; border: 2px dashed var(--ryr-line); border-radius: 12px; background: #FAFBFD; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.ryrp-drop:hover, .ryrp-drop.is-over { border-color: var(--ryr-blue); background: var(--ryr-blue-soft); }
.ryrp-drop strong { color: var(--ryr-navy); }
.ryrp-drop small { color: var(--ryr-muted); }
.ryrp-mstats { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 10px; }
.ryrp-mtable tr.is-err td { background: #FEF2F2; }
.ryrp-mtable tr.is-warn td { background: #FFFBEB; }
.ryrp-mtable td small { display: inline-block; line-height: 1.35; }
.ryrp-warn { color: #92400E; }
.ryrp-mcred { margin: 8px 0 14px; padding-left: 18px; font-size: 14px; }
.ryrp-mcred .is-over { color: var(--ryr-danger); }
.ryrp-codes { display: flex; flex-wrap: wrap; gap: 6px; }
.ryrp-code { font-size: 13px; background: #F6F7FB; border: 1px solid var(--ryr-line); border-radius: 8px; padding: 4px 8px; }
.ryrp-code code { font-weight: 700; color: var(--ryr-blue); }
.ryrp-grid--mail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
[data-paso4] .ryrp-cand__prog { background: var(--ryr-line); margin-top: 14px; }
[data-paso4] .ryrp-cand__prog span { background: var(--ryr-blue); transition: width .3s; }
#ryrp-masivo > .ryr-card { margin-bottom: 18px; }

/* ---------- 2.1: antecedentes del postulante ---------- */
.ryrp-ant .ryr-card { margin-bottom: 18px; }
.ryrp-rep__row { display: grid; grid-template-columns: 110px 110px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px 10px; align-items: end; padding: 10px; border: 1px solid var(--ryr-line); border-radius: 10px; margin-bottom: 10px; background: #FAFBFD; }
[data-rep="carrera"] .ryrp-rep__row { grid-template-columns: 110px 110px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
[data-rep="carrera"] .ryrp-rep__funciones { grid-column: 1 / -2; grid-row: 2; }
.ryrp-rep__row .ryr-field { margin: 0; }
.ryrp-rep__row > button { margin-bottom: 4px; }
.ryrp-ant__send .ryr-actions { justify-content: flex-end; }
.ryrp-cand__tests li.is-ficha:not(.is-done) { border-left: 3px solid var(--ryr-blue); padding-left: 10px; }
@media (max-width: 760px) {
	.ryrp-grid--mail { grid-template-columns: 1fr; }
	.ryrp-rep__row, [data-rep="carrera"] .ryrp-rep__row { grid-template-columns: 1fr 1fr; }
	.ryrp-rep__row .ryr-field:not(.ryrp-rep__desde):not(.ryrp-rep__hasta), [data-rep="carrera"] .ryrp-rep__funciones { grid-column: 1 / -1; grid-row: auto; }
}
