/* ==========================================================================
   Credirenta · Portal de clientes (estilos propios; misma identidad del sitio)
   ========================================================================== */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/sora-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/sora-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --green: #0F3D2E; --green-2: #175A43; --green-3: #1F7A5A; --green-deep: #0A2B20; --gold: #C8A24A; --gold-2: #E2C06A;
  --cream: #F7F5EF; --cream-2: #EFEBE1; --cream-3: #E6E1D4; --white: #fff;
  --ink: #0E1F19; --ink-2: #2B3A33; --muted: #66746D; --sage: #4A5A52; --line: rgba(15, 61, 46, .12); --line-strong: rgba(15, 61, 46, .22);
  --danger: #B3261E; --ok: #1F7A5A; --warn: #8a5a00; --focus: #1F7A5A;
  --font: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --r: 18px; --r-lg: 24px; --shadow: 0 1px 2px rgba(15, 61, 46, .05), 0 10px 30px rgba(15, 61, 46, .07);
  --ease: cubic-bezier(.22, 1, .36, 1); --nav-w: 232px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--cream); }
body { margin: 0; font: 400 .97rem/1.55 var(--font); color: var(--ink); background: var(--cream); min-height: 100dvh; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.025em; color: var(--green); line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
h2 { font-size: 1.15rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; width: auto; height: auto; padding: .7rem 1rem; background: var(--green); color: var(--cream); border-radius: 999px; z-index: 999; clip: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.link { display: inline-flex; align-items: center; gap: .3rem; color: var(--green); font-weight: 500; border-bottom: 1px solid transparent; transition: border-color .2s; }
.link svg { width: 16px; height: 16px; }
.link:hover { border-color: var(--green); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--green); font-weight: 600; font-size: 1.35rem; letter-spacing: -.03em; }
.brand__icon { width: 30px; height: 30px; }
.brand em { font-style: normal; font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; background: rgba(15, 61, 46, .08); color: var(--green); margin-left: .2rem; }

/* ---------- Botones y campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.3rem; border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: .95rem; line-height: 1; white-space: nowrap; transition: transform .25s var(--ease), background .2s, box-shadow .25s, color .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn--primary { background: var(--green); color: var(--cream); }
.btn--primary:hover { background: var(--green-2); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--green); }
.btn--ghost:hover { background: rgba(15, 61, 46, .06); }
.btn--light { background: var(--cream); color: var(--green); }
.btn--light:hover { background: var(--white); }
.btn--sm { min-height: 40px; padding: .55rem 1rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.field { display: block; font-size: .88rem; font-weight: 500; color: var(--ink); margin: .9rem 0 .35rem; }
.input { width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(15, 61, 46, .1); }
.input:disabled { background: var(--cream-2); color: var(--muted); }
textarea.input { min-height: 120px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F3D2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.form-error { color: var(--danger); font-size: .88rem; font-weight: 500; margin-top: .5rem; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.badge { font-size: .72rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; background: var(--cream-2); color: var(--green); white-space: nowrap; }
.badge--demo { background: #F6E3A8; color: #5a4300; }

/* ---------- Acceso ---------- */
.plogin { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.plogin__side { background: var(--green); color: var(--cream); padding: clamp(1.5rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: 2.5rem; position: relative; overflow: hidden; isolation: isolate; }
.plogin__side::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -20%; top: -25%; border-radius: 50%; background: radial-gradient(circle, rgba(31, 122, 90, .7), transparent 65%); z-index: -1; filter: blur(30px); }
.plogin__side::after { content: ""; position: absolute; width: 45%; aspect-ratio: 1; left: -15%; bottom: -25%; border-radius: 50%; background: radial-gradient(circle, rgba(200, 162, 74, .28), transparent 65%); z-index: -1; filter: blur(30px); }
.plogin__side .brand { color: var(--cream); }
.plogin__copy { display: grid; gap: 1.2rem; max-width: 520px; margin: auto 0; }
.plogin__copy h1 { color: var(--cream); font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); }
.plogin__copy .lead { color: rgba(247, 245, 239, .78); }
.plogin__copy .eyebrow { color: var(--gold-2); }
.plogin__features { display: grid; gap: 1rem; margin-top: .5rem; }
.plogin__features li { display: flex; gap: .9rem; align-items: flex-start; }
.plogin__features svg { width: 22px; height: 22px; flex: none; color: var(--gold-2); margin-top: .15rem; }
.plogin__features strong { display: block; color: var(--cream); font-weight: 600; }
.plogin__features span { font-size: .9rem; color: rgba(247, 245, 239, .7); }
.plogin__foot { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: rgba(247, 245, 239, .6); }
.plogin__foot svg { width: 16px; height: 16px; }
.plogin__main { display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3.5rem); }
.plogin__card { width: min(100%, 440px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow); position: relative; }
.plogin__card h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.plogin__tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; padding: 4px; margin: 1rem 0 1.1rem; background: var(--cream-2); border-radius: 999px; }
.plogin__tabs button { min-height: 40px; padding: .45rem .4rem; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.plogin__tabs button.is-on { background: var(--white); color: var(--green); box-shadow: var(--shadow); }
.plogin__tabs button:hover:not(.is-on) { color: var(--green); }
@media (max-width: 420px) { .plogin__tabs { border-radius: 16px; } .plogin__tabs button { font-size: .72rem; } }
.plogin__card .btn--block { margin-top: 1.1rem; }
.plogin__note { font-size: .8rem; color: var(--muted); margin-top: .9rem; }
.plogin__done { display: flex; gap: .9rem; margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
.plogin__done > svg { width: 26px; height: 26px; color: var(--green-3); flex: none; margin-top: .1rem; }
.plogin__done strong { display: block; color: var(--green); margin-bottom: .2rem; }
.plogin__done p { font-size: .9rem; color: var(--ink-2); margin-bottom: .7rem; }
.plogin__done .btn { margin-right: .4rem; margin-bottom: .4rem; }
.plogin__demo { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.plogin__demo .link { color: var(--green); }
@media (max-width: 900px) {
  .plogin { grid-template-columns: 1fr; }
  .plogin__side { min-height: 0; gap: 1.5rem; }
  .plogin__copy { margin: 0; }
  .plogin__features { display: none; }
  .plogin__foot { display: none; }
  .plogin__main { align-items: start; padding-top: 1.5rem; }
}

/* ---------- App ---------- */
.papp { min-height: 100dvh; display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); grid-template-rows: auto 1fr; max-width: 100vw; }
.papp__top { grid-column: 1 / -1; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-width: 0; overflow: hidden; padding: .7rem clamp(1rem, 3vw, 1.8rem); background: rgba(247, 245, 239, .82); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); border-bottom: 1px solid var(--line); }
.papp__right { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.papp__user { font-size: .88rem; color: var(--ink-2); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.papp__nav { position: sticky; top: 64px; align-self: start; display: flex; flex-direction: column; gap: .25rem; padding: 1.2rem .9rem; height: calc(100dvh - 64px); border-right: 1px solid var(--line); }
.papp__nav a { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 12px; color: var(--ink-2); font-weight: 500; font-size: .93rem; transition: background .2s, color .2s; }
.papp__nav a svg { width: 20px; height: 20px; flex: none; }
.papp__nav .short { display: none; }
.papp__nav a:hover { background: rgba(15, 61, 46, .06); color: var(--green); }
.papp__nav a.is-active { background: var(--green); color: var(--cream); }
.papp__main { padding: clamp(1.2rem, 3vw, 2.2rem) clamp(1rem, 3vw, 2.2rem) 4rem; max-width: 1180px; width: 100%; }
.view { display: grid; gap: 1.4rem; animation: viewIn .5s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.view__head { display: grid; gap: .4rem; margin-bottom: .2rem; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; display: grid; gap: .2rem; box-shadow: var(--shadow); }
.kpi__label { font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }
.kpi__value { font-size: 1.55rem; font-weight: 600; letter-spacing: -.03em; color: var(--green); font-variant-numeric: tabular-nums; }
.kpi__sub { font-size: .82rem; color: var(--muted); }
.block { display: grid; gap: .9rem; }
.block__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); display: grid; gap: .6rem; }
.card h2 { margin-bottom: .2rem; }
.card--dark { background: var(--green); color: var(--cream); border-color: transparent; }
.card--dark h2 { color: var(--cream); }
.card--dark p { color: rgba(247, 245, 239, .78); }
.stack { display: grid; gap: 1.2rem; }
.hero-pay { position: relative; overflow: hidden; background: var(--green); color: var(--cream); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; isolation: isolate; }
.hero-pay::after { content: ""; position: absolute; right: -15%; bottom: -60%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(200, 162, 74, .3), transparent 65%); z-index: -1; }
.hero-pay .eyebrow { color: var(--gold-2); }
.hero-pay__amount { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; margin: .4rem 0 .3rem; }
.hero-pay__amount small { font-size: .4em; font-weight: 400; color: rgba(247, 245, 239, .7); letter-spacing: 0; margin-left: .35rem; }
.hero-pay__meta { color: rgba(247, 245, 239, .78); font-size: .95rem; }
.hero-pay__meta b { color: var(--cream); font-weight: 600; }
.hero-pay__side { display: grid; gap: .6rem; background: rgba(247, 245, 239, .08); border: 1px solid rgba(247, 245, 239, .14); border-radius: 16px; padding: 1rem 1.1rem; }
.hero-pay__side dt { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(247, 245, 239, .6); }
.hero-pay__side dd { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.02rem; overflow-wrap: anywhere; }
.hero-pay__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.hero-pay.is-overdue { background: linear-gradient(135deg, #5a1d17, #B3261E); }
.hero-pay.is-ok { background: var(--green); }
.hero-pay.is-empty { grid-template-columns: 1fr; }
.hero-pay .btn--ghost { color: var(--cream); border-color: rgba(247, 245, 239, .4); }
.hero-pay .btn--ghost:hover { background: rgba(247, 245, 239, .12); }

/* listas */
.list { display: grid; gap: .7rem; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem 1rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: .95rem 1.1rem; transition: transform .3s var(--ease), box-shadow .3s; }
.row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.row--link { cursor: pointer; }
.row__icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--cream-2); color: var(--green); }
.row__icon svg { width: 20px; height: 20px; }
.row__icon.is-ok { background: rgba(31, 122, 90, .12); color: var(--ok); }
.row__icon.is-warn { background: rgba(179, 38, 30, .1); color: var(--danger); }
.row__icon.is-gold { background: rgba(200, 162, 74, .2); color: #7a5b12; }
.row__main { display: grid; gap: .15rem; min-width: 0; }
.row__title { font-weight: 600; color: var(--green); letter-spacing: -.01em; }
.row__sub { font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.row__end { display: grid; justify-items: end; gap: .3rem; text-align: right; }
.row__amount { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.row__actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.st { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; }
.st--pendiente, .st--nuevo { background: #F6E3A8; color: #5a4300; }
.st--pagado, .st--aprobado, .st--activo, .st--vigente { background: #D6EEDF; color: #135c36; }
.st--vencido, .st--descartado { background: #F6DAD7; color: #8a1d16; }
.st--contactado, .st--en_firma { background: #DCE9F7; color: #1c4570; }
.st--en_analisis { background: #E7DDF5; color: #4a2a7a; }
.st--cerrado, .st--liquidado, .st--vencida { background: #E4E6E4; color: #3a443f; }
.progress { height: 6px; border-radius: 6px; background: var(--cream-3); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--green-3), var(--green)); transition: width 1s var(--ease); }
.empty { padding: 2rem 1.2rem; text-align: center; color: var(--muted); background: var(--white); border: 1px dashed var(--line-strong); border-radius: 16px; display: grid; gap: .6rem; justify-items: center; }
.empty strong { color: var(--green); }
.segmented { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; background: var(--cream-2); border-radius: 999px; }
.segmented button { min-height: 40px; padding: 0 1rem; border-radius: 999px; font-weight: 500; font-size: .9rem; color: var(--ink-2); transition: background .2s, color .2s; }
.segmented button.is-on { background: var(--white); color: var(--green); box-shadow: var(--shadow); }

/* detalle de contrato */
.detail { display: grid; gap: 1.2rem; }
.detail__back { display: inline-flex; align-items: center; gap: .4rem; color: var(--green); font-weight: 500; }
.detail__back svg { width: 18px; height: 18px; }
.detail__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.2rem; align-items: start; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
.kv div { display: grid; gap: .15rem; }
.kv dt { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }
.kv dd { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.table th { text-align: left; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); font-weight: 500; padding: .7rem .9rem; background: var(--cream-2); }
.table td { padding: .7rem .9rem; border-top: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.table tr.is-next td { background: rgba(200, 162, 74, .1); }
.table .num { text-align: right; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 80; background: var(--green-deep); color: var(--cream); padding: .8rem 1.2rem; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow); max-width: calc(100vw - 2rem); }
.toast.is-error { background: var(--danger); }
.noscript { padding: 2rem; text-align: center; }
.banner { display: flex; gap: .8rem; align-items: center; padding: .9rem 1.1rem; border-radius: 14px; background: #FBF3DD; border: 1px solid #ECD79A; color: #5a4300; font-size: .9rem; }
.banner svg { width: 20px; height: 20px; flex: none; }
.banner .btn { margin-left: auto; }

@media (max-width: 960px) {
  .papp { grid-template-columns: minmax(0, 1fr); }
  .badge--demo { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
  .papp__nav { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; justify-content: space-around; padding: .4rem .4rem calc(.4rem + env(safe-area-inset-bottom)); background: rgba(247, 245, 239, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-right: 0; border-top: 1px solid var(--line); z-index: 30; }
  .papp__nav a { flex-direction: column; gap: .25rem; padding: .45rem .3rem; font-size: .62rem; letter-spacing: .02em; border-radius: 10px; flex: 1; text-align: center; }
  .papp__nav a.is-active { background: transparent; color: var(--green); }
  .papp__nav a.is-active svg { color: var(--green); }
  .papp__nav a span { white-space: nowrap; }
  .papp__nav .long { display: none; }
  .papp__main { padding-bottom: 6rem; }
  .papp__user { display: none; }
  .two, .detail__grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-pay { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand em { display: none; }
  .badge--demo { font-size: .66rem; }
  .row { grid-template-columns: auto minmax(0, 1fr); }
  .row__end { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .row__actions { justify-content: flex-start; }
  .kv { grid-template-columns: 1fr; }
  .segmented { display: grid; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); border-radius: 18px; }
  .segmented button { padding: 0 .4rem; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Seguimiento de solicitudes (portal y solicitud en línea) ---------- */
.tl { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.tl__item { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .9rem; padding-bottom: 1.3rem; }
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--cream-3); }
.tl__item:last-child::before { display: none; }
.tl__item.is-done::before { background: var(--green-3); }
.tl__dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--cream-3); color: var(--cream); z-index: 1; }
.tl__dot svg { width: 14px; height: 14px; }
.tl__item.is-done .tl__dot { background: var(--green-3); border-color: var(--green-3); }
.tl__item.is-now .tl__dot { border-color: var(--green-3); box-shadow: 0 0 0 5px rgba(31, 122, 90, .14); }
.tl__item.is-now .tl__dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green-3); }
.tl__item div { display: grid; gap: .1rem; padding-top: .2rem; }
.tl__item strong { color: var(--green); font-weight: 600; }
.tl__item:not(.is-done):not(.is-now) strong { color: var(--muted); }
.tl__item span { font-size: .86rem; color: var(--muted); }
.tl__item time { font-size: .76rem; color: var(--sage); font-variant-numeric: tabular-nums; }

/* ---------- Avisos (campana) ---------- */
.pbell-wrap { position: relative; }
.pbell { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--green); background: var(--white); transition: background .2s; }
.pbell:hover { background: var(--cream-2); }
.pbell svg { width: 20px; height: 20px; }
.pbell__n { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--cream); font-variant-numeric: tabular-nums; }
.pnotes { position: fixed; right: clamp(1rem, 3vw, 1.8rem); top: 70px; width: min(380px, calc(100vw - 2rem)); max-height: 70vh; overflow-y: auto; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(15, 61, 46, .18); z-index: 60; padding: .5rem; animation: viewIn .25s var(--ease); }
.pnotes__head { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); font-weight: 500; padding: .6rem .7rem .4rem; }
.pnotes__empty { padding: 1rem .8rem 1.2rem; font-size: .88rem; color: var(--muted); }
.pnote { display: grid; gap: .15rem; padding: .75rem .8rem; border-radius: 12px; transition: background .2s; }
.pnote:hover { background: var(--cream); }
.pnote strong { font-size: .9rem; color: var(--green); font-weight: 600; }
.pnote span { font-size: .84rem; color: var(--ink-2); }
.pnote time { font-size: .74rem; color: var(--muted); }
.pnote.is-new { background: rgba(31, 122, 90, .07); }
.pnote.is-new strong::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green-3); margin-right: .45rem; vertical-align: middle; }

/* ---------- Tarjeta de solicitud ---------- */
.papp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.papp-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: grid; }
.papp-card__top { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .75rem 1.2rem; font-size: .84rem; }
.papp-card__st { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.papp-card__st svg { width: 17px; height: 17px; }
.papp-card__folio { font-variant-numeric: tabular-nums; font-size: .78rem; opacity: .8; }
.papp-card--info .papp-card__top { background: #E4EEF6; color: #1c4570; }
.papp-card--ok .papp-card__top { background: #D6EEDF; color: #135c36; }
.papp-card--off .papp-card__top { background: #EEE9E2; color: #4a4038; }
.papp-card--draft .papp-card__top { background: var(--cream-2); color: var(--green); }
.papp-card--gold .papp-card__top { background: #F6E9C4; color: #5a4300; }
.papp-card__body { display: grid; gap: .9rem; padding: 1.1rem 1.2rem 1.2rem; }
.papp-card__row { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.papp-card__kind { font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.papp-card__amount { font-size: 1.7rem; font-weight: 600; letter-spacing: -.035em; color: var(--green); font-variant-numeric: tabular-nums; line-height: 1.15; margin: .15rem 0; }
.papp-card__meta { font-size: .86rem; color: var(--ink-2); }
.papp-card__date { display: grid; justify-items: end; text-align: right; font-size: .74rem; color: var(--muted); flex: none; }
.papp-card__date strong { font-size: .92rem; color: var(--ink); font-weight: 600; }
.papp-card__prog { display: grid; gap: .35rem; }
.papp-cta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: var(--r); background: var(--white); border: 1px dashed var(--line-strong); }
.papp-cta div { display: grid; gap: .2rem; }
.papp-cta strong { color: var(--green); }
.papp-cta span { font-size: .88rem; color: var(--muted); }

/* ---------- Próximo paso ---------- */
.pnext { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .8rem; align-items: start; padding: .9rem 1rem; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
.pnext .btn { grid-column: 2; justify-self: start; margin-top: .4rem; }
.pnext__icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--green); }
.pnext__icon svg { width: 17px; height: 17px; }
.pnext__text { display: grid; gap: .1rem; }
.pnext__label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); font-weight: 500; }
.pnext__text strong { color: var(--green); font-weight: 600; }
.pnext__text p { font-size: .86rem; color: var(--ink-2); }
.pnext--ok { background: #EAF6EE; border-color: #CBE7D5; }
.pnext--ok .pnext__icon { background: var(--ok); color: #fff; }
.pnext--alerta { background: #FFF4F2; border-color: #F2D3CE; }
.pnext--alerta .pnext__icon { background: var(--danger); color: #fff; }
.pnext--accion { background: #FBF3DD; border-color: #ECD79A; }
.pnext--accion .pnext__icon { background: var(--green); color: var(--cream); }

/* ---------- Ayuda ---------- */
.phelp { display: grid; gap: .5rem; }
.phelp__item { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 14px; background: var(--white); border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.phelp__item:hover { background: var(--cream); border-color: var(--line-strong); }
.phelp__item > span:last-child { display: grid; }
.phelp__item strong { font-size: .92rem; color: var(--green); font-weight: 600; }
.phelp__item > span:last-child span { font-size: .8rem; color: var(--muted); }
.phelp__icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--cream-2); color: var(--green); flex: none; }
.phelp__icon svg { width: 19px; height: 19px; }
.phelp__icon.is-wa { background: #DDF3E5; color: #1F7A5A; }
.card .phelp__item { background: var(--cream); }

/* ---------- Detalle de solicitud ---------- */
.papp-pill { display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 999px; margin-top: .2rem; }
.papp-pill--info { background: #DCE9F7; color: #1c4570; }
.papp-pill--ok { background: #D6EEDF; color: #135c36; }
.papp-pill--off { background: #E4E6E4; color: #3a443f; }
.papp-pill--draft { background: var(--cream-2); color: var(--green); }
.papp-pill--gold { background: #F6E9C4; color: #5a4300; }
.card--gold { background: #FFFBF0; border-color: #ECD79A; }
.pnote-box { padding: .8rem 1rem; border-radius: 12px; background: var(--cream); border-left: 3px solid var(--green-3); font-size: .9rem; color: var(--ink-2); }
.phist { display: grid; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: .4rem 1.1rem; }
.phist__item { display: grid; gap: .1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.phist__item:last-child { border-bottom: 0; }
.phist__item strong { font-size: .9rem; color: var(--green); font-weight: 600; }
.phist__item span { font-size: .85rem; color: var(--ink-2); }
.phist__item time { font-size: .74rem; color: var(--muted); }
.st--doc-faltante { background: #EEE9E2; color: #4a4038; }
.st--doc-pendiente { background: #DCE9F7; color: #1c4570; }
.st--doc-aprobado { background: #D6EEDF; color: #135c36; }
.st--doc-rechazado { background: #F6DAD7; color: #8a1d16; }
.row__sub--warn { color: var(--danger); font-weight: 500; }
label.btn { cursor: pointer; }
label.is-busy { opacity: .6; pointer-events: none; }

@media (max-width: 960px) {
  .papp__right { gap: .5rem; }
  .pnotes { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 75vh; border-radius: 22px 22px 0 0; padding: .6rem .6rem calc(1rem + env(safe-area-inset-bottom)); z-index: 70; }
}
@media (max-width: 520px) {
  .papp-cards { grid-template-columns: minmax(0, 1fr); }
  .papp-card__amount { font-size: 1.45rem; }
  .papp-cta { flex-direction: column; align-items: stretch; }
  .papp-cta .btn { justify-content: center; }
  .pbell { width: 38px; height: 38px; }
}
@media (max-width: 960px) { .papp__nav .short { display: inline; } }
@media (max-width: 960px) { .papp .toast { bottom: calc(5.4rem + env(safe-area-inset-bottom)); } }

/* Celular sin saltos (25 nov 2026): campos de 16 px para que iPhone no haga zoom al tocarlos,
   sin zoom por doble toque, botones que bajan de línea en vez de salirse de la pantalla y
   barra inferior oculta mientras escribes (con el teclado abierto se encimaba). */
html { touch-action: manipulation; overscroll-behavior-x: none; }
@media (max-width: 1100px), (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea { font-size: 16px; }
}
@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; line-height: 1.2; }
}
@media (max-width: 960px) {
  html.is-typing .papp__nav { transform: translateY(110%); }
  .papp__nav { transition: transform .2s var(--ease); }
}
/* Correos largos bajo el saludo: que bajen de línea en vez de salirse de la pantalla */
.view__head p { overflow-wrap: anywhere; }

/* Información al corte del back office y sello de datos de ejemplo */
.kpis__note { grid-column: 1 / -1; margin: 0 0 .2rem; font-size: .82rem; color: var(--muted, #5C6B64); }
.demo-stamp { display: inline-block; margin-left: .45rem; padding: .1rem .45rem; border-radius: 999px; background: #C8A24A; color: #0F3D2E; font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
