/* PERSEi group integration. No reset, font download or Tailwind/Flowbite replacement.
   Typography inherits Alpha's base. Tokens are scoped to group components only. */
.pg {
  --pg-hero:#1e3a8a; --pg-ink:#14223a; --pg-body:#3a4860; --pg-muted:#6b7a90;
  --pg-line:#e5e7eb; --pg-panel:#fff; --pg-soft:#fafbfc; --pg-surface:#f4f5f8;
  --pg-accent:#1e3a8a; --pg-selection:#eef2ff; --pg-control:#d1d5db;
  font-family:inherit; color:var(--pg-ink); font-size:16px; line-height:1.5;
}
.dark .pg {
  --pg-hero:#233b67; --pg-ink:#f1f5f9; --pg-body:#d1d8e3; --pg-muted:#a4afc0;
  --pg-line:#374151; --pg-panel:#1f2937; --pg-soft:#1b2534; --pg-surface:#182232;
  --pg-accent:#b8cdff; --pg-selection:#293d65; --pg-control:#4b5563;
}
.pg, .pg *, .pg *::before, .pg *::after { box-sizing:border-box; }
.pg [hidden] { display:none !important; }
.pg h1,.pg h2,.pg h3,.pg h4,.pg p,.pg dl,.pg dd,.pg ul { margin:0; }
.pg button,.pg input,.pg select { font:inherit; }
.pg button { cursor:pointer; }
.pg button:disabled { cursor:default; opacity:.45; }
.pg svg { display:inline-block; flex-shrink:0; vertical-align:middle; }
.pg a,.pg button,.pg input,.pg select { touch-action:manipulation; }
.pg :is(a,button,input,select,[tabindex]):focus-visible { outline:3px solid #668cf5; outline-offset:3px; }
.pg-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.pg-page { width:100%; max-width:1680px; margin:0 auto; padding:24px 16px 48px; }
.pg-card { border:1px solid var(--pg-line); border-radius:12px; background:var(--pg-panel); box-shadow:0 6px 24px -16px #17264c4d; }
.pg-hero { position:relative; isolation:isolate; background:var(--pg-hero); border-radius:11px 11px 0 0; color:#fff; }
.pg-cover { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 57%; border-radius:inherit; z-index:-2; }
.pg-hero-photo::before { content:""; position:absolute; inset:0; border-radius:inherit; background:linear-gradient(90deg,var(--pg-hero) 5%,color-mix(in srgb,var(--pg-hero) 92%,transparent) 45%,#1d3a5f8c); z-index:-1; }
.pg-identity { display:grid; grid-template-columns:68px minmax(0,1fr); align-items:center; gap:20px 16px; padding:24px 20px; }
.pg-logo { width:68px; height:68px; object-fit:contain; border-radius:8px; filter:drop-shadow(0 2px 5px #0b163d26); }
.pg-logo-placeholder { display:grid; place-items:center; background:#ffffff24; font-size:24px; font-weight:600; }
.pg-description { min-width:0; }
.pg .pg-eyebrow { margin-bottom:8px; font-size:12px; font-weight:500; color:#edf2ff; }
.pg .pg-hero h1 { font-size:30px; line-height:1.1; font-weight:600; overflow-wrap:anywhere; color:#fff; }
.pg .pg-subtitle { margin-top:8px; font-size:16px; line-height:1.5; color:#edf2ff; text-wrap:balance; }
.pg-meta { grid-column:1/-1; display:flex; align-items:center; flex-wrap:wrap; gap:12px 20px; font-size:14px; color:#edf2ff; }
.pg-meta>div { display:flex; align-items:baseline; flex-wrap:wrap; gap:6px; }
.pg-meta dd { color:#fff; }
.pg-meta-category { padding:6px 12px; border:1px solid #ffffff40; border-radius:999px; background:#ffffff12; }
.pg-tools { position:absolute; top:16px; right:16px; z-index:30; }
.pg-icon-button { display:grid; place-items:center; width:32px; height:32px; border:1px solid #ffffff40; border-radius:8px; color:#fff; background:#ffffff12; font-size:22px !important; line-height:1; }
.pg-icon-button:hover { background:#ffffff25; }
.pg-menu { min-width:240px; max-width:calc(100vw - 48px); background:var(--pg-panel); border:1px solid var(--pg-line); border-radius:8px; color:var(--pg-body); box-shadow:0 12px 32px #0003; z-index:40; }
.pg-menu ul { list-style:none; padding:6px; }
.pg-menu a { display:block; padding:10px 12px; border-radius:8px; font-size:14px; text-decoration:none; }
.pg-menu a:hover { background:var(--pg-surface); }
.pg-research { display:grid; gap:20px; padding:20px; background:var(--pg-soft); border-top:1px solid var(--pg-line); }
.pg-research h2 { font-size:14px; font-weight:500; line-height:1.5; color:var(--pg-body); margin-bottom:10px; }
.pg-research section+section { border-top:1px solid var(--pg-line); padding-top:16px; }
.pg-research ul { display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; }
.pg-research li { border-radius:999px; padding:2px 10px; background:#dbeafe; font-size:14px; font-weight:500; line-height:1.5; color:#1e40af; }
.dark .pg-research li { background:#1e3a8a; color:#bfdbfe; }
.pg-research .pg-unregistered { padding:0; border:0; background:none; color:var(--pg-muted); }
.pg-tabs { display:flex; gap:24px; padding:0 20px; border-top:1px solid var(--pg-line); overflow-x:auto; scrollbar-width:thin; }
.pg-tabs a { flex-shrink:0; padding:16px 0; border-bottom:3px solid transparent; color:var(--pg-body); font-size:14px; font-weight:500; text-decoration:none; }
.pg-tabs a:hover { color:var(--pg-accent); }
.pg-tabs a[aria-current=page] { border-color:#2754d6; color:var(--pg-accent); font-weight:600; }
.pg-profile,.pg-introduction,.pg-links { margin-top:24px; }
.pg-introduction { padding:24px; }
.pg-introduction h2 { margin-bottom:12px; font-size:20px; font-weight:600; }
.pg .pg-website { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; font-size:14px; }
.pg-website span { color:var(--pg-muted); }
.pg-website a,.pg-table a,.pg-link-website a,.pg-clear-filters { color:var(--pg-accent); text-decoration:underline; text-decoration-color:var(--pg-control); text-underline-offset:4px; overflow-wrap:anywhere; }
.pg-section-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:16px 20px; border-bottom:1px solid var(--pg-line); border-radius:11px 11px 0 0; background:var(--pg-soft); }
.pg-section-header h2 { font-size:20px; font-weight:600; }
.pg-section-header p { margin-top:4px; font-size:14px; color:var(--pg-muted); }
.pg-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:8px 16px; border:1px solid var(--pg-control); border-radius:8px; background:var(--pg-panel); color:var(--pg-accent); font-size:14px !important; font-weight:500; text-decoration:none; }
.pg-button:hover { background:var(--pg-selection); }
.pg-fold+.pg-fold { border-top:1px solid var(--pg-line); }
.pg-fold h3 { font-size:18px; font-weight:600; }
.pg-fold h3 button { display:flex; align-items:center; justify-content:space-between; width:100%; padding:20px; gap:16px; border:0; background:transparent; color:var(--pg-ink); text-align:left; }
.pg-fold h3 button[aria-expanded=true] { color:var(--pg-accent); background:var(--pg-soft); }
.pg-fold-all-icon,.pg-chevron { display:block; flex:none; width:24px; height:24px; }
.pg-chevron { transition:transform .2s; }
.pg [data-pg-fold-all] { min-height:44px; }
[data-pg-fold][aria-expanded=true] .pg-chevron { transform:rotate(180deg); }
.pg-prose { font-size:16px; line-height:1.75; color:var(--pg-body); }
.pg-prose p,.pg-prose ul { max-width:100ch; font-size:16px; line-height:1.75; }
.pg-prose p+p { margin-top:16px; }
.pg .pg-copy-color { color:var(--pg-body); }
.pg-fold-copy { padding:16px 20px 24px; }
.pg-prose ul { padding-left:24px; list-style:disc; margin:12px 0 16px; }
.pg-prose li+li { margin-top:8px; }
.pg-links-heading { display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:20px; }
.pg-links-heading h2 { font-size:20px; font-weight:600; }
.pg-links-heading p { margin-top:6px; font-size:14px; color:var(--pg-muted); }
.pg-filters { display:grid; gap:12px; padding:16px; margin-bottom:20px; }
.pg-filters input,.pg-filters select { display:block; width:100%; min-height:42px; border:1px solid var(--pg-control); border-radius:8px; padding:10px 12px; background:var(--pg-surface); color:var(--pg-ink); font-size:14px; }
.pg-filters input { font-size:16px; }
.pg-filters select { padding-right:32px; }
.pg-filters input::placeholder { color:var(--pg-muted); }
.pg-search-field { position:relative; }
.pg-search-icon { position:absolute; left:12px; top:14px; color:var(--pg-muted); pointer-events:none; }
.pg-filters .pg-search-field input { padding-left:40px; }
.pg-table-scroll { overflow-x:auto; scrollbar-width:thin; scrollbar-color:var(--pg-control) transparent; box-shadow:none; }
.pg-table { width:100%; border-collapse:collapse; text-align:left; }
.pg-table thead { background:var(--pg-soft); color:var(--pg-muted); }
.pg-table thead th { font-size:12px; font-weight:500; }
.pg-table th,.pg-table td { padding:20px 16px; border-bottom:1px solid var(--pg-line); vertical-align:top; }
.pg-table thead th { padding-top:16px; padding-bottom:16px; }
.pg-table :is(th,td):first-child { padding-left:20px; }
.pg-table tbody tr:last-child>* { border-bottom:0; }
.pg-table tbody tr:hover { background:var(--pg-soft); }
.pg-table tbody th { font-size:16px; font-weight:500; line-height:1.625; color:var(--pg-ink); }
.pg-table td { font-size:14px; line-height:1.625; color:var(--pg-body); }
.pg-table a { font-size:14px; }
.pg-link-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
.pg-link-card { display:flex; flex-direction:column; min-width:0; padding:20px; box-shadow:none; }
.pg-link-country { align-self:flex-start; margin-bottom:16px !important; }
.pg-link-card h3 { margin-bottom:20px; font-size:18px; font-weight:600; line-height:1.625; overflow-wrap:anywhere; }
.pg-link-classification { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:16px; margin-bottom:20px !important; }
.pg-link-classification dt { margin-bottom:4px; color:var(--pg-muted); font-size:12px; font-weight:500; }
.pg-link-classification dd { color:var(--pg-body); font-size:14px; line-height:1.625; overflow-wrap:anywhere; }
.pg-link-website { margin-top:auto; padding-top:16px; border-top:1px solid var(--pg-line); }
.pg-link-website a { display:inline-flex; align-items:flex-start; gap:8px; max-width:100%; font-size:14px; line-height:1.625; }
.pg-link-website a span { min-width:0; overflow-wrap:anywhere; }
.pg-link-website svg { margin-top:2px; }
.pg-link-empty { grid-column:1/-1; }
.pg-country { display:inline-flex; max-width:100%; align-items:center; gap:8px; padding:2px 10px; border-radius:999px; background:#dbeafe; color:#1e40af; font-size:14px; font-weight:500; line-height:1.5; }
.dark .pg-country { background:#1e3a8a; color:#bfdbfe; }
.pg-muted { color:var(--pg-muted); }
.pg-pagination { display:flex; align-items:center; flex-wrap:wrap; gap:12px 20px; margin-top:20px; color:var(--pg-muted); font-size:14px; }
.pg-pagination nav { display:flex; gap:6px; margin-left:auto; }
.pg-page-button { display:grid; place-items:center; min-width:36px; height:36px; padding:0 8px; border:1px solid var(--pg-line); border-radius:8px; background:var(--pg-panel); color:var(--pg-body); font-size:14px; text-decoration:none; }
.pg-page-button[aria-current=page] { background:var(--pg-hero); border-color:var(--pg-hero); color:#fff; font-weight:600; }
.pg-page-button[aria-disabled=true] { opacity:.4; }
.pg-page-button:not([aria-disabled]):hover { outline:1px solid var(--pg-control); }
.pg .pg-empty { padding:36px 20px; text-align:center; }
.pg-empty p { margin-top:6px; color:var(--pg-muted); }
.pg #perfil-grupo-regresar { max-width:none; margin:24px 0 0; padding:0; }
.pg-return { max-width:1680px; margin:24px auto; padding:0 16px; }
.pg-return[hidden] { display:none !important; }
.pg-return svg { width:16px; height:16px; }
/* Selected modal: proposal 2, blue area, restrained summary and boxed actions. */
.pg-modal { position:fixed; inset:0; z-index:100; width:100%; height:100%; padding:16px; overflow-y:auto; background:#13223c80; backdrop-filter:blur(3px); }
.pg-modal-stage { display:flex; min-height:100%; align-items:center; justify-content:center; }
.pg-dialog { width:100%; max-width:1064px; max-height:calc(100dvh - 32px); overflow-y:auto; border:1px solid #1731631a; border-radius:12px; background:var(--pg-panel); color:var(--pg-ink); box-shadow:0 18px 55px -15px #17264c4d; }
.pg-modal-header { position:relative; padding:22px 20px 24px; background:var(--pg-hero); color:#fff; }
.pg-modal-top { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:15px; }
.pg-group-state { display:inline-flex; align-items:center; gap:10px; font-size:14px; font-weight:600; }
.pg-state-dot { width:7px; height:7px; border-radius:50%; background:#c5cad5; }
[data-group-state="Vigente"] .pg-state-dot { background:#8bd4b0; }
[data-group-state="Próximo"] .pg-state-dot { background:#f3d99c; }
[data-group-state="Renovación"] .pg-state-dot { background:#aecbff; }
[data-group-state="Vencida"] .pg-state-dot { background:#f8a6a6; }
[data-group-state="Suprimido"] .pg-state-dot { background:#c5cad5; }
.pg-close { border:0; background:transparent; color:#d5def3; font-size:24px !important; line-height:1; width:28px; height:28px; border-radius:4px; }
.pg-close:hover { background:#ffffff1a; color:#fff; }
.pg-modal-header h2 { font-size:30px; font-weight:600; line-height:1.1; }
.pg-modal-header>p { margin-top:6px; font-size:16px; color:#edf1fc; }
.pg-modal-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; font-size:12px; }
.pg-modal-meta span { padding:4px 10px; border-radius:999px; color:#1e40af; background:#eef4ff; font-weight:500; }
.pg-modal-overview { display:grid; gap:20px; padding:20px; background:var(--pg-surface); border-bottom:1px solid var(--pg-line); }
.pg-info>div+div { margin-top:13px; }
.pg-info-dates { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.pg-info dt { font-size:12px; font-weight:500; color:var(--pg-muted); margin-bottom:4px; }
.pg-info dd { font-size:14px; font-weight:500; line-height:1.625; overflow-wrap:anywhere; }
.pg-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; border-top:1px solid var(--pg-line); padding-top:18px; }
.pg-metric strong { font-size:24px; font-weight:700; line-height:1.2; font-variant-numeric:tabular-nums; }
.pg-metric span { display:block; margin-top:4px; font-size:14px; color:var(--pg-body); overflow-wrap:anywhere; }
.pg-history { padding:22px 20px; }
.pg-history-heading { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.pg-history h3 { font-size:18px; font-weight:600; }
.pg-history-heading>span { display:inline-flex; align-items:center; padding:2px 10px; border-radius:999px; background:var(--pg-selection); color:var(--pg-accent); font-size:14px; font-weight:500; line-height:1.5; }
.pg-history-table { min-width:850px; }
.pg-history-table thead th { padding:12px 16px; font-size:12px; font-weight:600; text-transform:uppercase; color:var(--pg-body); white-space:nowrap; }
.pg-history-table td { padding:12px 16px; font-size:14px; vertical-align:middle; }
.pg-history-table td:first-child { color:var(--pg-accent); font-weight:600; font-variant-numeric:tabular-nums; }
.pg-status { display:inline-flex; align-items:center; white-space:nowrap; padding:4px 8px; border-radius:999px; background:#f3f4f6; color:#374151; font-size:12px; font-weight:600; line-height:1.4; }
.pg-status[data-state="Culminado"] { background:#dcfce7; color:#15803d; }
.pg-status[data-state="Aprobado"],.pg-status[data-state="Aprobada"] { background:#dbeafe; color:#2563eb; }
.pg-status[data-state="Pendiente"],.pg-status[data-state="Por asignar"] { background:#fff2d7; color:#8b641a; }
.pg-status:is([data-state="Entregado"],[data-state="Evaluado"],[data-state="VIPE"]) { background:#dbeafe; color:#2563eb; }
.pg-status:is([data-state="En proceso"],[data-state="En revisión"],[data-state="En evaluación"],[data-state="Evaluación por Comisión"]) { background:#eef0fc; color:#585f9e; }
.pg-status:is([data-state="Rechazado"],[data-state="Rechazada"]) { background:#fee2e2; color:#991b1b; }
.dark .pg-status { background:#30394b; color:#c7d0e5; }
.dark .pg-status[data-state="Culminado"] { background:#183f34; color:#a0e0c1; }
.dark .pg-status:is([data-state="Aprobado"],[data-state="Aprobada"],[data-state="Entregado"],[data-state="Evaluado"],[data-state="VIPE"]) { background:#29466c; color:#c5dbff; }
.dark .pg-status:is([data-state="Pendiente"],[data-state="Por asignar"]) { background:#483a20; color:#f3d99c; }
.dark .pg-status:is([data-state="En proceso"],[data-state="En revisión"],[data-state="En evaluación"],[data-state="Evaluación por Comisión"]) { background:#343951; color:#d0d4fa; }
.dark .pg-status:is([data-state="Rechazado"],[data-state="Rechazada"]) { background:#4b242c; color:#fecaca; }
.pg-modal[data-pill-style=new] .pg-status { border-radius:8px; font-weight:500; }
.pg-modal[data-pill-style=new] .pg-status[data-state="Culminado"] { background:#e8f1ed; color:#29694f; }
.dark .pg-modal[data-pill-style=new] .pg-status[data-state="Culminado"] { background:#183f34; color:#a0e0c1; }
.pg-history-table :is(th,td):last-child { text-align:center; }
.pg-row-actions { display:flex; justify-content:center; gap:8px; }
.pg-row-action { display:inline-flex; align-items:center; gap:6px; min-height:32px; border:1px solid var(--pg-control); border-radius:8px; padding:6px 12px; background:var(--pg-panel); color:var(--pg-accent); font-size:12px !important; font-weight:500; text-decoration:none !important; white-space:nowrap; }
.pg-row-action:hover { background:var(--pg-hero); border-color:var(--pg-hero); color:#fff; }
.pg-history .pg-pagination { margin-top:16px; font-size:14px; }
.pg-modal-footer { position:sticky; bottom:0; display:flex; justify-content:flex-end; flex-wrap:wrap; gap:9px; padding:15px 20px; border-top:1px solid var(--pg-line); background:var(--pg-soft); }
.pg-button-primary { background:var(--pg-hero); border-color:var(--pg-hero); color:#fff; }
.pg-button-primary:hover { background:#163174; color:#fff; }
.pg-error { color:#b42318; }
.dark .pg-error { color:#fca5a5; }
body.modal-detalle-open { overflow:hidden; }
@media(min-width:640px) {
  .pg-page { padding:28px 32px 48px; }
  .pg-identity { grid-template-columns:104px minmax(0,1fr); gap:20px 24px; padding:32px; min-height:252px; margin-right:20%; }
  .pg-logo { width:104px; height:104px; grid-row:1/3; }
  .pg .pg-eyebrow { font-size:12px; margin-bottom:12px; }
  .pg .pg-hero h1 { font-size:36px; }
  .pg .pg-subtitle { font-size:20px; }
  .pg-meta { grid-column:2; font-size:14px; }
  .pg-research { grid-template-columns:minmax(0,1fr) minmax(0,2.75fr); padding:20px 32px; gap:24px; }
  .pg-research section+section { border-top:0; border-left:1px solid var(--pg-line); padding-top:0; padding-left:24px; }
  .pg-tabs { gap:32px; padding:0 32px; }
  .pg-section-header { padding:16px 24px; }
  .pg-fold h3 button { padding-left:24px; padding-right:24px; }
  .pg-fold-copy { padding-left:24px; padding-right:24px; }
  .pg-link-card { padding:24px; }
  .pg-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pg-search-field { grid-column:1/-1; }
  .pg-filters input { font-size:14px; }
}
@media(min-width:768px) {
  .pg-link-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pg-modal-header { padding:22px 28px 24px; }
  .pg-modal-meta { position:absolute; right:28px; bottom:26px; max-width:45%; }
  .pg-modal-header h2,.pg-modal-header>p { max-width:55%; }
  .pg-modal-overview { grid-template-columns:1.1fr 1fr; gap:28px; padding:21px 28px; }
  .pg-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 24px; align-content:center; border-top:0; border-left:1px solid var(--pg-line); padding-top:0; padding-left:28px; }
  .pg-metric { display:flex; align-items:baseline; gap:9px; }
  .pg-metric span { margin-top:0; font-size:14px; }
  .pg-history { padding-left:28px; padding-right:28px; }
  .pg-modal-footer { padding-left:28px; padding-right:28px; }
}
@media(min-width:1100px) {
  .pg-filters { grid-template-columns:minmax(200px,1fr) 190px 170px; }
  .pg-search-field { grid-column:auto; }
}
@media(prefers-reduced-motion:reduce) { .pg * { transition:none !important; scroll-behavior:auto !important; } }
