/* Urbanist (fuente institucional, alojada en el plugin) */
@font-face { font-family: 'Urbanist'; src: url('../fonts/Urbanist-VariableFont_wght.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Urbanist'; src: url('../fonts/Urbanist-Italic-VariableFont_wght.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
/* ==========================================================
   Haciendo Líderes – Formulario de postulación (4 pasos)
   ========================================================== */
:root {
  --orange: #d1551d;
  --orange-dark: #b2461a;
  --orange-soft: #fdeee5;
  --teal: #146f88;
  --teal-dark: #0e5468;
  --teal-soft: #e6f3f6;
  --brown: #2b1d17;
  --ink: #2a2a2a;
  --muted: #6b6b6b;
  --line: #e3e0dd;
  --bg: #faf8f6;
  --ok: #2e7d32;
  --err: #c62828;
  --radius: 12px;
  --header-h: 76px;
  --font: 'Urbanist', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.pf-body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
.pf-hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.pf-header { position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 4vw, 56px); background: var(--brown); color: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.2); }
.pf-brand { display: inline-flex; flex-direction: column; align-items: flex-end; text-decoration: none; color: #fff; line-height: 1; }
.pf-brand img { height: 50px; width: auto; }
.pf-brand__mark { font-weight: 800; font-size: 1.9rem; letter-spacing: -.02em; }
.pf-brand__sub { font-size: .8rem; font-weight: 700; margin-top: -.15rem; }
.pf-header__right { display: flex; align-items: center; gap: 1.5rem; }
.pf-header__back { color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; padding: .55rem 1rem; border: 1px solid rgba(255,255,255,.35); border-radius: 99px; transition: background .2s; }
.pf-header__back:hover { background: rgba(255,255,255,.12); }
.pf-save { font-size: .8rem; opacity: .75; }

/* ---------- Layout ---------- */
.pf { display: grid; grid-template-columns: minmax(320px, 36%) 1fr; min-height: 100vh; padding-top: var(--header-h); }
.pf-aside { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); background: var(--brown) center/cover no-repeat; color: #fff; overflow: hidden; }
.pf-aside::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,29,23,.55) 0%, rgba(43,29,23,.35) 40%, rgba(43,29,23,.9) 100%); }
.pf-aside::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 8px; background: linear-gradient(var(--orange), var(--teal)); }
.pf-aside__inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 52px); }
.pf-aside__tag { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: #ffd8c2; }
.pf-aside__quote h2 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.15; margin: 0 0 .6rem; font-weight: 700; }
.pf-aside__quote p { margin: 0; font-size: 1.05rem; opacity: .92; }
.pf-aside__deadline { margin-top: 1.4rem !important; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .88rem !important; background: rgba(0,0,0,.35); padding: .6rem .9rem; border-radius: 8px; backdrop-filter: blur(4px); }

/* Stepper vertical */
.pf-stepper { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: .3rem; }
.pf-stepper li { position: relative; display: flex; align-items: center; gap: .9rem; padding: .55rem .4rem; border-radius: 10px; cursor: default; transition: background .2s; }
.pf-stepper li:not(:last-child)::after { content: ""; position: absolute; left: calc(.4rem + 18px); top: calc(50% + 20px); width: 2px; height: calc(100% - 28px); background: rgba(255,255,255,.3); }
.pf-stepper__dot { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.55); font-weight: 800; background: rgba(0,0,0,.25); transition: all .3s; }
.pf-stepper__dot .ico { display: none; }
.pf-stepper__label { display: flex; flex-direction: column; font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.pf-stepper__label small { font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.pf-stepper li.is-current .pf-stepper__dot { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 5px rgba(209,85,29,.3); }
.pf-stepper li.is-done .pf-stepper__dot { background: var(--teal); border-color: var(--teal); }
.pf-stepper li.is-done .pf-stepper__dot > span { display: none; }
.pf-stepper li.is-done .pf-stepper__dot .ico { display: block; }
.pf-stepper li.is-done:not(:last-child)::after { background: var(--teal); }
.pf-stepper li.is-done { cursor: pointer; }
.pf-stepper li.is-done:hover { background: rgba(255,255,255,.1); }

/* ---------- Main ---------- */
.pf-main { position: relative; padding: 0 clamp(16px, 5vw, 80px) 80px; min-width: 0; }
.pf-progress { position: sticky; top: var(--header-h); z-index: 5; height: 5px; margin: 0 calc(-1 * clamp(16px, 5vw, 80px)); background: var(--line); }
.pf-progress span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--orange), var(--teal)); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.pf-form, .pf-success { max-width: 760px; margin: 0 auto; padding-top: 48px; }

.pf-draft { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--teal-soft); border: 1px solid #b9dde6; color: var(--teal-dark); padding: .8rem 1rem; border-radius: 10px; font-size: .88rem; margin-bottom: 1.5rem; }

.pf-step { border: 0; padding: 0; margin: 0; min-width: 0; display: none; }
.pf-step.is-active { display: block; animation: pf-in .45s cubic-bezier(.2,.8,.2,1); }
.pf-step.is-back { animation-name: pf-in-back; }
@keyframes pf-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes pf-in-back { from { opacity: 0; transform: translateX(-28px); } }
.pf-step__kicker { margin: 0; color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.pf-step__title { margin: .2rem 0 .8rem; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--brown); line-height: 1.1; }
.pf-step__lead { color: #4a4a4a; font-size: 1rem; margin: 0 0 2rem; }
.pf-subtitle { font-size: 1.15rem; font-weight: 800; color: var(--brown); margin: 2.4rem 0 .8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.pf-note { display: flex; gap: .5rem; align-items: flex-start; background: var(--orange-soft); color: #7a3510; border-radius: 10px; padding: .75rem 1rem; font-size: .88rem; margin: 0 0 1.4rem; }
.pf-note .ico { flex: none; margin-top: 2px; }

/* ---------- Campos ---------- */
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
.pf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pf-col-2 { grid-column: 1 / -1; }
.pf-field { margin-bottom: 1.4rem; min-width: 0; }
.pf-label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .45rem; color: var(--ink); }
.pf-label i, .pf-decl__text i, .pf-challenge__q i { color: var(--orange); font-style: normal; }
.pf-hint { margin: -.15rem 0 .6rem; color: var(--muted); font-size: .85rem; }
.pf-hint a { color: var(--teal); font-weight: 600; }
.pf-field input:not([type=radio]):not([type=checkbox]):not([type=file]), .pf-field select, .pf-field textarea {
  width: 100%; font: 500 .95rem var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: .8rem .95rem; transition: border-color .2s, box-shadow .2s; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.pf-field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.pf-field input:focus, .pf-field select:focus, .pf-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20,111,136,.15); }
.pf-field input::placeholder, .pf-field textarea::placeholder { color: #a8a39f; }
.pf-select { position: relative; }
.pf-select::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pf-field select { appearance: none; padding-right: 2.4rem; cursor: pointer; }
.pf-field select:disabled { background: #f3f1ef; cursor: not-allowed; color: #aaa; }
.pf-field.has-error input, .pf-field.has-error select, .pf-field.has-error textarea, .pf-field.has-error .pf-drop__zone { border-color: var(--err); }
.pf-field.is-valid input:not([type=radio]):not([type=checkbox]), .pf-field.is-valid select { border-color: #9ccfae; }
.pf-error { margin: .35rem 0 0; color: var(--err); font-size: .82rem; font-weight: 600; min-height: 0; }
.pf-error:empty { display: none; }
.pf-check { display: inline-flex; align-items: center; gap: .5rem; margin-top: .55rem; font-size: .88rem; cursor: pointer; }
.pf-check input { accent-color: var(--teal); width: 17px; height: 17px; }

/* Programas */
.pf-programs { display: grid; gap: .8rem; }
.pf-program { position: relative; display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.pf-program:hover { border-color: #c9c3be; transform: translateY(-1px); }
.pf-program input { position: absolute; opacity: 0; pointer-events: none; }
.pf-program__key { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: #555; color: #fff; font-weight: 800; font-size: .85rem; transition: background .2s; }
.pf-program__body { display: flex; flex-direction: column; gap: .15rem; }
.pf-program__body strong { color: var(--brown); font-size: 1rem; letter-spacing: .02em; }
.pf-program__body span { color: #4a4a4a; font-size: .92rem; }
.pf-program__body small { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.pf-program:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 6px 18px rgba(20,111,136,.15); }
.pf-program:has(input:checked) .pf-program__key { background: var(--teal); }
.pf-program:has(input:focus-visible) { outline: 3px solid rgba(20,111,136,.4); outline-offset: 2px; }

/* Chips */
.pf-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.pf-chip { position: relative; display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1rem .55rem .55rem; background: #fff; border: 1.5px solid var(--line); border-radius: 99px; cursor: pointer; font-weight: 600; font-size: .9rem; transition: all .18s; user-select: none; }
.pf-chip:hover { border-color: #bdb6b0; }
.pf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pf-chip__key { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #555; color: #fff; font-size: .72rem; font-weight: 800; transition: background .18s; }
.pf-chip:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(20,111,136,.12); }
.pf-chip:has(input:checked) .pf-chip__key { background: var(--teal); }
.pf-chip:has(input:focus-visible) { outline: 3px solid rgba(20,111,136,.4); outline-offset: 2px; }
.pf-chips--yesno { display: grid; grid-template-columns: 1fr 1fr; }
.pf-chips--yesno .pf-chip { border-radius: 10px; }
.pf-chips--yesno .pf-chip:has(input[value=no]:checked) { border-color: var(--err); background: #fdecec; color: var(--err); box-shadow: none; }
.pf-chips--yesno .pf-chip:has(input[value=no]:checked) .pf-chip__key { background: var(--err); }
.pf-reveal { margin-top: .9rem; display: none; }
.pf-reveal.is-shown { display: block; animation: pf-fade .3s; }
@keyframes pf-fade { from { opacity: 0; transform: translateY(-4px); } }

/* Declaraciones */
.pf-decl { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 10px; padding: 1.1rem 1.2rem; margin-top: 2rem; }
.pf-decl__text { margin: 0 0 .9rem; font-size: .92rem; color: #444; }

/* Carga de archivos */
.pf-drop__zone { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.6rem 1rem; border: 2px dashed #cfc8c2; border-radius: var(--radius); background: #fff; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.pf-drop__zone:hover, .pf-drop.is-over .pf-drop__zone { border-color: var(--teal); background: var(--teal-soft); }
.pf-drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pf-drop__zone:focus-within { outline: 3px solid rgba(20,111,136,.35); outline-offset: 2px; }
.pf-drop__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--orange-soft); color: var(--orange); transform: rotate(180deg); }
.pf-drop__cta { font-size: .92rem; color: #4a4a4a; }
.pf-drop__cta strong { color: var(--teal); }
.pf-drop__zone small { color: var(--muted); font-size: .78rem; }
.pf-drop__file { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; background: #fff; border: 1.5px solid #9ccfae; border-radius: var(--radius); animation: pf-fade .3s; }
.pf-drop__thumb { flex: none; width: 52px; height: 52px; border-radius: 8px; background: var(--orange-soft) center/cover; display: grid; place-items: center; color: var(--orange); font-weight: 800; font-size: .72rem; }
.pf-drop__meta { flex: 1; min-width: 0; }
.pf-drop__meta strong { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-drop__meta small { color: var(--ok); font-weight: 600; font-size: .78rem; }
.pf-drop__actions { display: flex; gap: .4rem; }
.pf-drop.has-file .pf-drop__zone { display: none; }

/* Botones */
.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 10px; padding: .85rem 1.6rem; font: 700 .98rem var(--font); cursor: pointer; text-decoration: none; transition: background .2s, transform .15s, box-shadow .2s; }
.pf-btn--primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px rgba(20,111,136,.28); }
.pf-btn--primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.pf-btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.pf-btn--text { background: none; color: var(--muted); padding-inline: .4rem; }
.pf-btn--text:hover { color: var(--ink); }
.pf-btn--ghost { background: #fff; color: var(--teal); border: 2px dashed #9fcbd7; width: 100%; padding: 1rem; }
.pf-btn--ghost:hover { background: var(--teal-soft); border-color: var(--teal); }
.pf-btn--ghost:disabled { opacity: .5; cursor: not-allowed; }
.pf-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.pf-link { background: none; border: 0; padding: 0; color: var(--teal); font: 700 .85rem var(--font); cursor: pointer; text-decoration: underline; }
.pf-link--danger { color: var(--err); }
.pf-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }

/* Experiencias */
.pf-meter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1.6rem; box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.pf-meter__row { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: .2rem .8rem; margin-bottom: .8rem; font-size: .9rem; }
.pf-meter__row b { color: var(--brown); }
.pf-meter__row small { color: var(--muted); font-size: .78rem; }
.pf-meter__bar { grid-column: 1 / -1; height: 8px; background: #eee; border-radius: 99px; overflow: hidden; }
.pf-meter__bar span { display: block; height: 100%; width: 0; background: var(--orange); border-radius: inherit; transition: width .5s, background .3s; }
.pf-meter__bar span.is-ok { background: var(--ok); }
.pf-meter__msg { margin: 0; font-size: .85rem; font-weight: 600; color: var(--muted); }
.pf-meter__msg.is-ok { color: var(--ok); }
.pf-meter__msg.is-warn { color: #b45309; }
.pf-exp { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 1.4rem .4rem; margin-bottom: 1.2rem; box-shadow: 0 4px 14px rgba(0,0,0,.04); animation: pf-fade .35s; }
.pf-exp__head { display: flex; justify-content: space-between; align-items: center; margin: -.2rem 0 1.1rem; }
.pf-exp__head h3 { margin: 0; font-size: 1.05rem; color: var(--brown); display: flex; align-items: center; gap: .6rem; }
.pf-exp__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; font-size: .85rem; }
.pf-exp:first-child .pf-exp__remove { display: none; }
.pf-exp__duration { margin: -.6rem 0 1.2rem; font-size: .85rem; color: var(--teal-dark); font-weight: 700; }
.pf-exp__duration:empty { display: none; }

/* Desafío */
.pf-challenge { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem; box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.pf-challenge__head { display: flex; gap: 1rem; margin-bottom: .6rem; }
.pf-challenge__num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--orange), #f08a4b); color: #fff; font-weight: 800; font-size: 1.1rem; }
.pf-challenge h3 { margin: 0 0 .2rem; font-size: 1.15rem; color: var(--brown); }
.pf-challenge__q { display: block; font-weight: 700; font-size: .93rem; margin-bottom: .3rem; }
.pf-words { display: flex; align-items: center; gap: .8rem; margin-top: .5rem; font-size: .78rem; color: var(--muted); font-weight: 600; }
.pf-words__bar { flex: 1; height: 4px; background: #eee; border-radius: 99px; overflow: hidden; }
.pf-words__bar span { display: block; height: 100%; width: 0; background: var(--teal); transition: width .2s; }
.pf-words.is-low .pf-words__bar span { background: #e0a100; }
.pf-words.is-over { color: var(--err); }
.pf-words.is-over .pf-words__bar span { background: var(--err); }

/* Resumen */
.pf-summary { margin-top: 2rem; background: var(--brown); color: #fff; border-radius: 14px; padding: 1.4rem 1.5rem; }
.pf-summary:empty { display: none; }
.pf-summary h3 { margin: 0 0 1rem; font-size: 1.05rem; }
.pf-summary dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.2rem; margin: 0; font-size: .88rem; }
.pf-summary dt { opacity: .7; }
.pf-summary dd { margin: 0; font-weight: 600; }
.pf-summary button { color: #ffd8c2; font-size: .8rem; }

/* Overlay y éxito */
.pf-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(43,29,23,.75); display: grid; place-items: center; backdrop-filter: blur(3px); }
.pf-overlay__box { background: #fff; border-radius: 16px; padding: 2rem 2.4rem; width: min(90vw, 380px); text-align: center; }
.pf-overlay__box p { margin: 0 0 1rem; font-weight: 700; }
.pf-overlay__bar { height: 8px; background: #eee; border-radius: 99px; overflow: hidden; }
.pf-overlay__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--teal)); transition: width .2s; }
.pf-success { text-align: center; padding-bottom: 60px; animation: pf-in .5s; }
.pf-success__icon { width: 96px; height: 96px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; background: #e7f5ea; color: var(--ok); }
.pf-success h1 { color: var(--brown); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.pf-success__code { display: inline-block; font-size: 1.4rem; font-weight: 800; letter-spacing: .06em; background: var(--orange-soft); color: var(--orange-dark); padding: .5rem 1.2rem; border-radius: 10px; margin: 0 0 1.4rem; }
.pf-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 90; background: var(--err); color: #fff; padding: .85rem 1.3rem; border-radius: 10px; font-weight: 600; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; transition: all .3s; max-width: 92vw; }
.pf-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pf { grid-template-columns: 1fr; }
  .pf-aside { position: relative; top: 0; height: auto; }
  .pf-aside::after { top: auto; left: 0; width: auto; height: 5px; background: linear-gradient(90deg, var(--orange), var(--teal)); }
  .pf-aside__inner { padding: 20px 16px; }
  .pf-aside__quote { display: none; }
  .pf-stepper { grid-template-columns: repeat(4, 1fr); margin: .8rem 0 0; gap: .4rem; }
  .pf-stepper li { flex-direction: column; text-align: center; gap: .35rem; padding: .3rem; }
  .pf-stepper li:not(:last-child)::after { left: calc(50% + 24px); top: 22px; width: calc(100% - 48px); height: 2px; }
  .pf-stepper__label { font-size: .78rem; }
  .pf-stepper__label small { display: none; }
  .pf-progress { display: none; }
  .pf-form, .pf-success { padding-top: 28px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .pf-brand__mark { font-size: 1.5rem; }
  .pf-header__back { font-size: 0; padding: .5rem .8rem; }
  .pf-header__back::before { content: "← Volver"; font-size: .85rem; }
  .pf-save { display: none; }
  .pf-grid, .pf-grid--3 { grid-template-columns: 1fr; }
  .pf-exp, .pf-challenge { padding-inline: 1rem; }
  .pf-chips--yesno { grid-template-columns: 1fr 1fr; }
  .pf-nav { position: sticky; bottom: 0; background: var(--bg); margin-inline: -16px; padding: 1rem 16px; z-index: 4; box-shadow: 0 -6px 16px rgba(0,0,0,.06); }
  .pf-btn--lg { padding: .9rem 1.2rem; font-size: .95rem; }
  .pf-summary dl { grid-template-columns: 1fr; gap: .1rem; }
  .pf-summary dd { margin-bottom: .5rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ==========================================================
   Tema Hágase – mismos colores y formas de la landing
   ========================================================== */
:root { --orange-hero: #d1551d; --brown-2: #3a241c; }

/* Header naranja con la "pastilla" blanca inclinada de la landing */
.pf-header { background: var(--orange-hero); padding-right: 0; box-shadow: 0 4px 18px rgba(150,50,10,.35); }
.pf-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: linear-gradient(90deg, #b5652d 0 20%, var(--orange) 20% 40%, #6f9e2c 40% 60%, #7cc4d8 60% 80%, var(--teal) 80% 100%); }
.pf-header__right { align-self: stretch; margin: 12px 0; background: #fff; padding: 0 clamp(16px, 4vw, 56px) 0 3.6rem; border-radius: 14px 0 0 14px; clip-path: polygon(0 0, 100% 0, 100% 100%, 30px 100%); }
.pf-save { color: var(--teal); opacity: 1; font-weight: 600; }
.pf-header__back { color: var(--teal); border: 0; padding: .55rem 0; font-weight: 800; font-size: .95rem; }
.pf-header__back:hover { background: none; color: var(--orange); }

/* Panel lateral: filtro marrón cálido + bloque naranja diagonal como el hero */
.pf-aside { background-color: var(--brown-2); }
.pf-aside::before { background: linear-gradient(180deg, rgba(58,36,28,.72) 0%, rgba(70,42,32,.55) 45%, rgba(58,36,28,.35) 100%); }
.pf-aside::after { width: 6px; background: var(--orange-hero); }
.pf-aside__inner { padding-bottom: 0; }
.pf-aside__quote { position: relative; margin: 0 calc(-1 * clamp(28px, 4vw, 52px)); padding: 5.6rem clamp(28px, 4vw, 52px) 2.2rem; background: var(--orange-hero); clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
.pf-aside__quote h2 { font-weight: 800; }
.pf-aside__deadline { background: rgba(58,36,28,.35) !important; }
.pf-hl { position: absolute; right: clamp(28px, 4vw, 52px); top: 2.5rem; display: flex; align-items: center; gap: .5rem; color: #fff; opacity: .95; }
.pf-hl svg { width: 34px; height: 34px; }
.pf-hl span { font-weight: 300; font-size: .95rem; line-height: 1; }
.pf-stepper li.is-current .pf-stepper__dot { background: var(--orange-hero); border-color: #fff; box-shadow: 0 0 0 5px rgba(209,85,29,.35); }

/* Flechas de colores (firma visual de la landing) */
.pf-step__kicker { display: flex; align-items: center; gap: .8rem; color: var(--orange-hero); }
.pf-arrows { display: inline-flex; align-items: center; gap: 3px; }
.pf-arrows i { width: 0; height: 0; border-style: solid; border-color: transparent; }
.pf-arrows i:nth-child(1) { border-width: 5px 0 5px 5px; border-left-color: #b5652d; }
.pf-arrows i:nth-child(2) { border-width: 6px 0 6px 7px; border-left-color: var(--orange); }
.pf-arrows i:nth-child(3) { border-width: 7px 0 7px 9px; border-left-color: #6f9e2c; }
.pf-arrows i:nth-child(4) { border-width: 8px 0 8px 11px; border-left-color: #7cc4d8; }
.pf-arrows i:nth-child(5) { border-width: 9px 0 9px 13px; border-left-color: var(--teal); }

/* Botón principal con el corte diagonal del "Postula aquí" */
.pf-btn--primary { border-radius: 10px 0 0 10px; clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); padding-right: 2.4rem; box-shadow: none; }
.pf-btn--primary:hover { background: var(--orange-hero); }
.pf-progress span { background: linear-gradient(90deg, var(--orange-hero), var(--orange)); }
.pf-challenge__num { background: var(--orange-hero); border-radius: 10px 0 0 10px; clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); }
.pf-exp__n { background: var(--orange-hero); }
.pf-decl { border-left-color: var(--orange-hero); }

/* Contador de palabras */
.pf-words__count b { color: var(--ink); }
.pf-words__bad { color: var(--err); font-style: normal; }
.pf-words__ok { color: var(--ok); font-style: normal; font-weight: 800; }
.pf-words.is-good .pf-words__bar span { background: var(--ok); }

@media (max-width: 980px) {
  .pf-aside__quote { display: none; }
  .pf-aside::after { height: 5px; width: auto; }
}
@media (max-width: 640px) {
  .pf-header__right { padding: 0 16px 0 2.6rem; margin: 10px 0; }
  .pf-header__back { font-size: 0; padding: .5rem 0; }
}

.pf-words__left { color: #b45309; font-style: normal; font-weight: 700; }

/* Pasos con círculos */
.pf-prog { position: sticky; top: calc(var(--header-h, 80px) + 10px); z-index: 5; background: rgba(255,255,255,.97); backdrop-filter: blur(6px);
  border-radius: 18px; padding: 20px 16px 16px; margin: 4px 0 20px; box-shadow: 0 1px 2px rgba(43,37,34,.05), 0 10px 30px rgba(43,37,34,.07); }
.pf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.pf-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; }
.pf-steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: calc(50% + 30px); right: calc(-50% + 30px); height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #146f88 50%, #ebe3dd 50%) right / 200% 100% no-repeat; transition: background-position .6s ease; }
.pf-steps li.is-done:not(:last-child)::after { background-position: left; }
.pf-steps__dot { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #e2d8d1;
  color: #a1958d; font-weight: 800; font-size: 1rem; transition: all .35s cubic-bezier(.2,.8,.2,1); }
.pf-steps__dot b { font-weight: 800; }
.pf-steps__dot svg { position: absolute; width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.5); transition: all .3s; }
.pf-steps li.is-current .pf-steps__dot { background: #d1551d; border-color: #d1551d; color: #fff; box-shadow: 0 0 0 6px rgba(209,85,29,.16), 0 6px 14px rgba(209,85,29,.35); transform: scale(1.06); }
.pf-steps li.is-done .pf-steps__dot { background: #146f88; border-color: #146f88; color: transparent; }
.pf-steps li.is-done .pf-steps__dot svg { opacity: 1; transform: scale(1); }
.pf-steps__label { font-size: .84rem; font-weight: 600; color: #a1958d; transition: color .3s; }
.pf-steps li.is-current .pf-steps__label { color: #2b2522; font-weight: 800; }
.pf-steps li.is-done .pf-steps__label { color: #146f88; }
@media (max-width: 640px) {
  .pf-prog { padding: 14px 8px 12px; border-radius: 14px; }
  .pf-steps__dot { width: 34px; height: 34px; font-size: .85rem; }
  .pf-steps li:not(:last-child)::after { top: 16px; left: calc(50% + 24px); right: calc(-50% + 24px); }
  .pf-steps__label { font-size: .68rem; }
}
