/*
 * Portal de Reclutamiento — Rex Cargo
 * Identidad: azul Rex #243B7C, rojo Rex #EC2028 (el rojo de texto/botón usa #D7141C para contraste AA).
 * Tipografía: Barlow Condensed (títulos, códigos) y Barlow (texto), servidas desde el propio portal (SIL OFL 1.1).
 */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
    --rx-navy: #243B7C;
    --rx-navy-hover: #1B2F68;
    --rx-navy-900: #15255A;
    --rx-red: #EC2028;
    --rx-red-ui: #D7141C;
    --rx-red-hover: #B9111A;
    --ink: #16213F;
    --ink-2: #2A3555;
    --slate: #56627E;
    --on-navy: #C9D3EE;
    --on-navy-2: #AFC0E8;
    --line: #DCE1EC;
    --line-strong: #C3CBDC;
    --bg: #F4F6FA;
    --tint: #EEF1F8;
    --surface: #FFFFFF;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgba(21, 37, 90, .06), 0 18px 40px -20px rgba(21, 37, 90, .28);
    --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
    --text: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--text);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rx-navy); text-underline-offset: 3px; }
a:hover { color: var(--rx-navy-hover); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

:focus-visible {
    outline: 3px solid var(--rx-red);
    outline-offset: 2px;
    border-radius: 2px;
}

.pr-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.pr-skip {
    position: absolute;
    left: 16px; top: -60px;
    z-index: 10;
    background: var(--rx-navy);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
}
.pr-skip:focus { top: 12px; color: #fff; }

.pr-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

.pr-main { flex: 1 0 auto; }

/* ---------- Encabezado ---------- */

.pr-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.pr-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}
.pr-brand { display: block; flex: 0 0 auto; }
.pr-brand img { height: 36px; width: auto; }
.pr-nav { display: flex; gap: 28px; }
.pr-nav a {
    color: var(--ink-2);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    padding: 6px 0;
}
.pr-nav a:hover { color: var(--rx-navy); text-decoration: underline; }

/* ---------- Botones y campos ---------- */

.pr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: var(--radius-sm);
    font-family: var(--text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pr-btn-navy { background: var(--rx-navy); color: #fff; }
.pr-btn-navy:hover { background: var(--rx-navy-hover); color: #fff; }
.pr-btn-rojo { background: var(--rx-red-ui); color: #fff; }
.pr-btn-rojo:hover { background: var(--rx-red-hover); color: #fff; }
.pr-btn-linea { background: transparent; color: var(--rx-navy); box-shadow: inset 0 0 0 1.5px var(--rx-navy); }
.pr-btn-linea:hover { background: var(--tint); color: var(--rx-navy-hover); }
.pr-btn-bloque { display: flex; width: 100%; }

.pr-input {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--text);
    font-size: 16px;
    line-height: 1.4;
}
.pr-input::placeholder { color: #7D88A3; }
.pr-input:focus { border-color: var(--rx-navy); outline: 3px solid rgba(36, 59, 124, .18); outline-offset: 0; }
select.pr-input {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 6 6-6' fill='none' stroke='%2356627E' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
textarea.pr-input { min-height: 112px; resize: vertical; }

/* ---------- Portada ---------- */

.pr-hero {
    position: relative;
    overflow: hidden;
    background: var(--rx-navy-900);
    color: #fff;
    padding: 88px 0 152px;
}
.pr-hero-arco {
    position: absolute;
    right: -17%;
    top: -42%;
    width: auto;
    height: 190%;
    max-width: none;
    pointer-events: none;
    user-select: none;
}
.pr-hero-inner { position: relative; }
.pr-hero h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(48px, 7.2vw, 92px);
    line-height: .95;
    letter-spacing: -.005em;
    max-width: 9.5em;
}
.pr-hero-lead {
    margin-top: 24px;
    max-width: 33em;
    color: var(--on-navy);
    font-size: 19px;
    line-height: 1.55;
}

.pr-tablero {
    position: relative;
    margin-top: -88px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.pr-tablero-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    padding: 24px 32px;
    border-bottom: 1px solid var(--line);
}
.pr-tablero-head h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 28px;
    line-height: 1.1;
}
.pr-buscador {
    display: flex;
    gap: 8px;
    flex: 1 1 460px;
    max-width: 620px;
}
.pr-buscador-q { flex: 1 1 auto; }
.pr-buscador-mod { flex: 0 0 210px; }

.pr-lista-cols,
.pr-fila-link {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 190px 130px 170px 20px;
    column-gap: 24px;
    align-items: center;
}
.pr-lista-cols {
    padding: 12px 32px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    color: var(--slate);
    font-size: 13px;
    font-weight: 500;
}
.pr-lista-cols span:last-child { grid-column: 5 / 7; }

.pr-lista { list-style: none; margin: 0; padding: 0; }
.pr-fila + .pr-fila { border-top: 1px solid var(--line); }
.pr-fila-link {
    position: relative;
    padding: 22px 32px;
    color: var(--ink);
    text-decoration: none;
    transition: background-color .15s ease;
}
.pr-fila-link::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--rx-red);
    transform: scaleY(0);
    transition: transform .18s ease;
}
.pr-fila-link:hover { background: #F8F9FC; color: var(--ink); }
.pr-fila-link:hover::before,
.pr-fila-link:focus-visible::before { transform: scaleY(1); }
.pr-fila-link:focus-visible { outline-offset: -3px; }
.pr-fila-codigo {
    font-family: var(--display);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: .02em;
    color: var(--slate);
    font-variant-numeric: tabular-nums;
}
.pr-fila-principal { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pr-fila-titulo {
    font-family: var(--display);
    font-weight: 600;
    font-size: 25px;
    line-height: 1.12;
    color: var(--ink);
}
.pr-fila-link:hover .pr-fila-titulo { color: var(--rx-navy); }
.pr-fila-sub { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--slate); }
.pr-fila-sub:empty { display: none; }
.pr-nueva { color: var(--rx-red-ui); font-weight: 600; }
.pr-nueva::before {
    content: "";
    display: inline-block;
    width: 7px; height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--rx-red);
    vertical-align: 1px;
}
.pr-fila-dato { font-size: 16px; color: var(--ink-2); line-height: 1.35; }
.pr-fila-etq { display: none; }
.pr-fila-ir { color: var(--line-strong); display: flex; }
.pr-fila-link:hover .pr-fila-ir { color: var(--rx-red); }

.pr-vacio { padding: 56px 32px 64px; max-width: 560px; }
.pr-vacio h3 { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.15; }
.pr-vacio p { margin: 10px 0 24px; color: var(--slate); }

/* Cómo postularte (portada) */

.pr-pasos { padding: 88px 0 96px; }
.pr-pasos h2 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(34px, 4vw, 44px);
    line-height: 1;
}
.pr-pasos-lista {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    counter-reset: paso;
}
.pr-pasos-lista li {
    counter-increment: paso;
    position: relative;
    padding-top: 28px;
    border-top: 2px solid var(--line-strong);
}
.pr-pasos-lista li::before {
    content: counter(paso);
    position: absolute;
    top: -2px; left: 0;
    padding-top: 14px;
    border-top: 2px solid var(--rx-red);
    width: 48px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    color: var(--rx-red-ui);
}
.pr-pasos-lista h3 { margin-top: 10px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.pr-pasos-lista p { margin-top: 8px; color: var(--slate); font-size: 16px; max-width: 32em; }

/* ---------- Detalle de vacante ---------- */

.pr-ficha {
    background: var(--rx-navy-900);
    color: #fff;
    padding: 28px 0 48px;
}
.pr-volver {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--on-navy);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}
.pr-volver:hover { color: #fff; text-decoration: underline; }
.pr-ficha-codigo {
    margin-top: 32px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 19px;
    letter-spacing: .03em;
    color: var(--on-navy-2);
}
.pr-ficha h1 {
    margin-top: 6px;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(38px, 5.4vw, 64px);
    line-height: 1;
    max-width: 16em;
}
.pr-ficha-datos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 48px;
    margin: 32px 0 0;
}
.pr-ficha-datos dt { font-size: 14px; color: var(--on-navy-2); }
.pr-ficha-datos dd { margin: 2px 0 0; font-size: 18px; font-weight: 500; }
.pr-ficha-cta { display: none; margin-top: 28px; }

.pr-detalle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 384px;
    gap: 64px;
    align-items: start;
    padding-top: 48px;
    padding-bottom: 96px;
}

.pr-claves {
    display: flex;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 48px;
}
.pr-claves > div { flex: 1 1 220px; padding: 18px 24px; }
.pr-claves > div + div { border-left: 1px solid var(--line); }
.pr-claves-etq { display: block; font-size: 14px; color: var(--slate); }
.pr-claves-valor {
    display: block;
    margin-top: 2px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 28px;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.pr-bloque + .pr-bloque { margin-top: 56px; }
.pr-bloque h2 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.05;
    margin-bottom: 20px;
}
.pr-texto { max-width: 68ch; color: var(--ink-2); font-size: 18px; line-height: 1.7; }

.pr-req + .pr-req { margin-top: 36px; }
.pr-req h3 { font-size: 18px; font-weight: 600; }
.pr-req h3 span { font-weight: 400; color: var(--slate); }
.pr-req ul { list-style: none; margin: 12px 0 0; padding: 0; max-width: 68ch; }
.pr-req li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    padding: 14px 0 14px 36px;
    border-bottom: 1px solid var(--line);
    position: relative;
    font-size: 17px;
    color: var(--ink-2);
}
.pr-req li::before {
    content: "";
    position: absolute;
    left: 0; top: 15px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
}
.pr-req-indispensable li::before {
    background-color: var(--rx-navy);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E");
}
.pr-req-deseable li::before {
    box-shadow: inset 0 0 0 1.5px var(--line-strong);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 1.5v7M1.5 5h7' fill='none' stroke='%2356627E' stroke-width='1.6'/%3E%3C/svg%3E");
}
.pr-req-nombre { flex: 1 1 auto; }
.pr-req-nivel {
    font-size: 14px;
    font-weight: 600;
    color: var(--rx-navy);
    background: var(--tint);
    border-radius: 4px;
    padding: 2px 8px;
    white-space: nowrap;
}

/* Panel de postulación */

.pr-postular {
    position: sticky;
    top: 24px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--rx-red);
    padding: 28px 28px 24px;
    scroll-margin-top: 16px;
}
.pr-postular h2 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.05;
}
.pr-postular > p { margin-top: 12px; color: var(--slate); }
.pr-postular-pasos {
    list-style: none;
    margin: 20px 0 24px;
    padding: 0;
    counter-reset: pp;
}
.pr-postular-pasos li {
    counter-increment: pp;
    position: relative;
    padding: 0 0 20px 44px;
}
.pr-postular-pasos li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 13px; top: 32px; bottom: 4px;
    width: 2px;
    background: var(--line);
}
.pr-postular-pasos li::before {
    content: counter(pp);
    position: absolute;
    left: 0; top: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--rx-navy);
    color: #fff;
    font-family: var(--display);
    font-weight: 700;
    font-size: 16px;
    line-height: 28px;
    text-align: center;
}
.pr-postular-pasos h3 { font-size: 17px; font-weight: 600; line-height: 28px; }
.pr-postular-pasos p { margin-top: 2px; font-size: 15px; color: var(--slate); line-height: 1.5; }
.pr-postular-pasos a { font-weight: 600; word-break: break-all; }

.pr-aviso { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; color: var(--slate); }
.pr-aviso summary { cursor: pointer; font-weight: 600; color: var(--ink-2); padding: 4px 0; }
.pr-aviso p { margin-top: 8px; line-height: 1.55; }

/* ---------- Formularios (encuesta, preguntas) y estados ---------- */

.pr-panel {
    max-width: 780px;
    margin: 56px auto 96px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--rx-navy);
    padding: 44px 48px 40px;
}
.pr-panel h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(34px, 4.4vw, 46px);
    line-height: 1.02;
}
.pr-panel > p { margin-top: 14px; color: var(--ink-2); max-width: 60ch; }
.pr-estado .pr-btn { margin-top: 28px; }
.pr-form-intro { margin-top: 14px; color: var(--ink-2); max-width: 62ch; }
.pr-form form { margin-top: 36px; }

.pr-alerta {
    margin-top: 24px;
    background: #FDEDEE;
    border-left: 4px solid var(--rx-red-ui);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 12px 16px;
    color: #7A0E13;
    font-size: 16px;
}
.pr-alerta p + p { margin-top: 4px; }

.pr-pregunta {
    border: 0;
    margin: 0 0 36px;
    padding: 0;
    min-width: 0;
}
.pr-pregunta legend,
.pr-pregunta-etq {
    display: block;
    padding: 0;
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
}
.pr-opcional {
    margin-left: 6px;
    font-size: 14px;
    font-weight: 400;
    color: var(--slate);
}
.pr-ayuda { display: block; margin-top: 8px; font-size: 14px; color: var(--slate); }
.pr-input-num { max-width: 240px; }

.pr-escala {
    display: grid;
    gap: 6px;
}
.pr-escala-11 { grid-template-columns: repeat(11, minmax(0, 1fr)); }
.pr-escala-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 360px; }
.pr-escala label,
.pr-opciones label { position: relative; display: block; cursor: pointer; }
.pr-escala input,
.pr-opciones input {
    position: absolute;
    opacity: 0;
    width: 1px; height: 1px;
}
.pr-escala span,
.pr-opciones span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-weight: 600;
    font-size: 16px;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.pr-escala label:hover span,
.pr-opciones label:hover span { border-color: var(--rx-navy); }
.pr-escala input:checked + span,
.pr-opciones input:checked + span {
    background: var(--rx-navy);
    border-color: var(--rx-navy);
    color: #fff;
}
.pr-escala input:focus-visible + span,
.pr-opciones input:focus-visible + span {
    outline: 3px solid var(--rx-red);
    outline-offset: 2px;
}
.pr-escala-extremos {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 14px;
    color: var(--slate);
}
.pr-escala-5 + .pr-escala-extremos { max-width: 360px; }

.pr-opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-opciones span { padding: 0 20px; }
.pr-opciones-sino label { min-width: 96px; }

.pr-form-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.pr-form-pie .pr-ayuda { margin-top: 0; }

/* ---------- Pie ---------- */

.pr-footer {
    flex-shrink: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 36px 0 40px;
}
.pr-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
}
.pr-footer-grupo { display: flex; align-items: center; gap: 20px; }
.pr-footer-grupo img { height: 34px; width: auto; }
.pr-footer-grupo p { font-size: 15px; color: var(--ink-2); }
.pr-footer-legal { font-size: 14px; color: var(--slate); max-width: 46em; }


/* ---------- Postulación (1.8.0) ---------- */

.pr-ficha-compacta { padding-bottom: 40px; }
.pr-ficha-compacta h1 { font-size: clamp(32px, 4.4vw, 52px); }
.pr-ficha-sub { margin-top: 12px; color: var(--on-navy); font-size: 18px; max-width: 40em; }

.pr-postular-intro { margin-top: 10px; color: var(--slate); font-size: 16px; }
.pr-postular > .pr-btn-bloque { margin-top: 20px; }
.pr-postular-lista { list-style: none; margin: 20px 0 0; padding: 0; font-size: 15px; color: var(--ink-2); }
.pr-postular-lista li { position: relative; padding: 6px 0 6px 28px; }
.pr-postular-lista li::before {
    content: "";
    position: absolute; left: 0; top: 9px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23243B7C' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
}
.pr-postular-asunto { margin-top: 10px; padding: 10px 12px; background: var(--bg); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); font-size: 15px; overflow-wrap: anywhere; }
.pr-postular-cierre { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--slate); }

.pr-postular-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: start;
    padding: 40px 0 96px;
}
.pr-postular-grid .pr-panel { margin: 0; max-width: none; }
.pr-form-postular { padding: 36px 40px 32px; }

.pr-resumen-errores {
    border: 2px solid var(--rx-red-ui);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 28px;
    background: #FFF7F7;
}
.pr-resumen-errores:focus { outline: 3px solid var(--rx-red); outline-offset: 2px; }
.pr-resumen-errores h2 { font-size: 18px; font-weight: 700; color: #7A0E13; }
.pr-resumen-errores ul { margin: 8px 0 0; padding-left: 20px; }
.pr-resumen-errores a { color: #7A0E13; font-weight: 600; }

.pr-grupo { border: 0; margin: 0 0 32px; padding: 0; min-width: 0; }
.pr-grupo legend {
    padding: 0;
    margin-bottom: 18px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.1;
    color: var(--ink);
}
.pr-campo { margin-bottom: 20px; }
.pr-campo > label:not(.pr-archivo):not(.pr-check) {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}
.pr-campos-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.pr-campo-error { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--rx-red-ui); }
.pr-campo.tiene-error { border-left: 4px solid var(--rx-red-ui); padding-left: 14px; margin-left: -18px; }
.pr-campo.tiene-error .pr-input { border-color: var(--rx-red-ui); }

.pr-archivo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 148px;
    padding: 24px;
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--rx-navy);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.pr-archivo:hover, .pr-archivo.is-arrastrando { border-color: var(--rx-navy); background: var(--tint); }
.pr-archivo input[type=file] {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}
.pr-archivo:focus-within { outline: 3px solid var(--rx-red); outline-offset: 2px; }
.pr-archivo-texto { font-size: 16px; color: var(--ink-2); }
.pr-archivo-texto strong { color: var(--rx-navy); text-decoration: underline; text-underline-offset: 3px; }
.pr-archivo-ayuda { font-size: 14px; color: var(--slate); }
.pr-archivo.tiene-archivo { border-style: solid; border-color: #1D6B3A; background: #F2F9F4; }
.pr-archivo.tiene-archivo .pr-archivo-texto strong { color: #1D6B3A; text-decoration: none; }
.pr-campo.tiene-error .pr-archivo { border-color: var(--rx-red-ui); }

.pr-trampa { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.pr-consentimiento { margin: 4px 0 28px; }
.pr-check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); cursor: pointer; }
.pr-check input {
    flex: 0 0 auto;
    width: 22px; height: 22px;
    margin: 1px 0 0;
    accent-color: var(--rx-navy);
    cursor: pointer;
}

.pr-btn-enviar { min-width: 220px; min-height: 52px; font-size: 17px; }
.pr-btn-enviar[aria-busy="true"] { opacity: .75; cursor: progress; }
.pr-btn-enviar[aria-busy="true"]::before {
    content: "";
    width: 16px; height: 16px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pr-giro .8s linear infinite;
}
@keyframes pr-giro { to { transform: rotate(360deg); } }
.cf-turnstile { margin: 0 0 24px; }

.pr-postular-lado {
    position: sticky;
    top: 24px;
    padding: 4px 0;
}
.pr-postular-lado h2 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; }
.pr-postular-lado .pr-postular-pasos { margin-top: 20px; }
.pr-postular-seguridad {
    margin-top: 8px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.pr-postular-seguridad h3 { font-size: 16px; font-weight: 600; }
.pr-postular-seguridad p { margin-top: 6px; font-size: 15px; color: var(--slate); line-height: 1.5; }

.pr-gracias { margin: 40px auto 96px; border-top-color: #1D6B3A; }
.pr-gracias-icono { margin-bottom: 16px; }
.pr-gracias h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4vw, 42px); line-height: 1.05; }
.pr-gracias > p { margin-top: 12px; color: var(--ink-2); font-size: 18px; }
.pr-codigo-seg {
    font-family: var(--display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: .04em;
    color: var(--rx-navy);
    white-space: nowrap;
}
.pr-postular-pasos-gracias { margin: 28px 0 28px; }

.pr-banco {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    margin: 0 0 96px;
    padding: 32px 36px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--rx-red);
}
.pr-banco h2 { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; }
.pr-banco p { margin-top: 6px; color: var(--slate); max-width: 40em; }

.pr-footer-enlaces { display: flex; gap: 24px; font-size: 15px; }
.pr-footer-enlaces a { color: var(--ink-2); }

.pr-legal { max-width: 860px; }
.pr-legal-intro { margin-top: 12px; color: var(--ink-2); }
.pr-legal-claves { margin: 20px 0 32px; padding: 20px 24px 20px 44px; background: var(--bg); border-radius: var(--radius-sm); line-height: 1.6; }
.pr-legal-claves li + li { margin-top: 6px; }
.pr-legal h2 { font-family: var(--display); font-weight: 700; font-size: 28px; margin-bottom: 12px; }
.pr-legal .pr-texto p + p { margin-top: 14px; }
.pr-form-confirmar { margin-top: 24px; }
.pr-estado .pr-ayuda { margin-top: 16px; }

/* ---------- Responsivo ---------- */

@media (max-width: 1080px) {
    .pr-lista-cols,
    .pr-fila-link { grid-template-columns: 84px minmax(0, 1fr) 160px 120px 150px 20px; column-gap: 18px; }
    .pr-detalle { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
}

@media (max-width: 900px) {
    .pr-wrap { padding: 0 20px; }
    .pr-nav { gap: 20px; }

    .pr-hero { padding: 56px 0 128px; }
    .pr-hero-arco { right: -46%; top: -20%; height: 150%; opacity: .6; }

    .pr-tablero { margin-top: -80px; }
    .pr-tablero-head { padding: 20px; }
    .pr-buscador { flex-basis: 100%; max-width: none; }
    .pr-lista-cols { display: none; }
    .pr-fila-link {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 20px;
        grid-template-areas:
            "codigo codigo ir"
            "titulo titulo ir"
            "lugar  modal  ir"
            "cierre cierre ir";
        row-gap: 6px;
        column-gap: 16px;
        padding: 20px;
    }
    .pr-fila-codigo { grid-area: codigo; font-size: 15px; }
    .pr-fila-principal { grid-area: titulo; margin-bottom: 8px; }
    .pr-fila-lugar { grid-area: lugar; }
    .pr-fila-modal { grid-area: modal; }
    .pr-fila-cierre { grid-area: cierre; }
    .pr-fila-ir { grid-area: ir; align-self: center; }
    .pr-fila-dato { font-size: 15px; }
    .pr-fila-etq { display: block; font-size: 13px; color: var(--slate); }
    .pr-fila-titulo { font-size: 23px; }

    .pr-pasos { padding: 64px 0 72px; }
    .pr-pasos-lista { grid-template-columns: 1fr; gap: 28px; }

    .pr-ficha { padding: 20px 0 36px; }
    .pr-ficha-codigo { margin-top: 24px; }
    .pr-ficha-datos { gap: 14px 32px; margin-top: 24px; }
    .pr-ficha-cta { display: inline-flex; }
    .pr-detalle { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; padding-bottom: 72px; }
    .pr-postular { position: static; }

    .pr-panel { margin: 24px auto 64px; padding: 32px 24px 28px; }

    .pr-postular-grid { grid-template-columns: 1fr; gap: 32px; padding: 24px 0 72px; }
    .pr-postular-lado { position: static; }
    .pr-form-postular { padding: 28px 22px 24px; }
    .pr-campo.tiene-error { margin-left: -12px; padding-left: 8px; }
    .pr-banco { padding: 24px; margin-bottom: 72px; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .pr-wrap { padding: 0 16px; }
    .pr-header-inner { min-height: 64px; }
    .pr-brand img { height: 28px; }
    .pr-nav a[href*="como-postular"] { display: none; }

    .pr-hero h1 { font-size: 46px; }
    .pr-hero-lead { font-size: 17px; margin-top: 18px; }
    .pr-buscador { flex-wrap: wrap; }
    .pr-buscador-q { flex-basis: 100%; }
    .pr-buscador-mod { flex: 1 1 0; min-width: 0; }
    .pr-tablero { margin-left: -4px; margin-right: -4px; }

    .pr-claves > div + div { border-left: 0; border-top: 1px solid var(--line); }
    .pr-claves-valor { font-size: 25px; }
    .pr-texto { font-size: 17px; }
    .pr-bloque h2 { font-size: 28px; }
    .pr-postular { padding: 24px 20px 20px; }

    .pr-escala-11 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .pr-escala-11 + .pr-escala-extremos span:first-child::after { content: " (0)"; }
    .pr-escala-11 + .pr-escala-extremos span:last-child::after { content: " (10)"; }

    .pr-footer-grupo { flex-direction: column; align-items: flex-start; gap: 12px; }
    .pr-campos-2 { grid-template-columns: 1fr; }
    .pr-btn-enviar { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
    .pr-header, .pr-footer, .pr-hero-arco, .pr-ficha-cta, .pr-volver, .pr-postular { display: none !important; }
    .pr-ficha { background: none; color: #000; }
    .pr-detalle { display: block; }
    .pr-postular { box-shadow: none; border: 1px solid #999; }
}
