/* Carrera 25N | Visor universal de archivos PDF, 10 noviembre 2026.
   Aislado para no alterar estilos, registro, dashboard ni animaciones existentes. */
.pdf25-dialog {
  position:fixed; inset:0; box-sizing:border-box;
  width:min(1160px,calc(100vw - 36px)); max-width:none;
  height:min(92dvh,970px); max-height:none;
  margin:auto; padding:0; overflow:hidden;
  color:#271b30; background:#fff; border:1px solid #e2d7e6;
  border-radius:20px; box-shadow:0 24px 85px rgba(17,10,27,.42);
  z-index:10005;
}
.pdf25-dialog::backdrop { background:rgba(14,8,24,.76); backdrop-filter:blur(8px); }
.pdf25-dialog[open]{display:flex; flex-direction:column;}
.pdf25-dialog .pdf25-header{
  display:flex; align-items:center; gap:12px; justify-content:space-between;
  padding:14px clamp(14px,2vw,24px);
  background:#fff; border-bottom:1px solid #e8deea;
  min-width:0;
}
.pdf25-title-group{min-width:0; display:flex; flex-direction:column; gap:2px;}
.pdf25-overline{font-size:10px; font-weight:800; letter-spacing:.12em; color:#833f8a; text-transform:uppercase;}
.pdf25-heading{font:800 clamp(16px,2vw,21px)/1.2 Outfit,'DM Sans',sans-serif; margin:0; color:#291632; white-space:nowrap; text-overflow:ellipsis; overflow:hidden;}
.pdf25-actions{display:flex; align-items:center; gap:8px; flex-shrink:0;}
.pdf25-actions :is(a,button){
  border:1px solid #dbcadd; background:#f9f3f9; color:#512564;
  text-decoration:none; padding:10px 13px; border-radius:11px;
  font:750 12px/1.25 'DM Sans',system-ui,sans-serif;
  min-height:40px; display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; transition:background .2s,border-color .2s,transform .2s;
}
.pdf25-actions :is(a,button):hover{background:#f0e4f5; border-color:#b58cc6;}
.pdf25-actions a.pdf25-download{background:#fa5d19; border-color:#fa5d19; color:#fff;}
.pdf25-actions a.pdf25-download:hover{background:#da4710;}
.pdf25-actions :is(a,button):focus-visible {outline:3px solid #e24d98;outline-offset:3px;}
.pdf25-close{font-size:21px!important;line-height:1!important;min-width:42px;}
.pdf25-viewer{display:block; width:100%; flex:1; min-height:0; border:0; background:#f4f0f5;}
.pdf25-fallback{padding:10px 18px;text-align:center;font:500 12px/1.45 'DM Sans',sans-serif;color:#5b5163;background:#fff;border-top:1px solid #e8deea;}
.pdf25-fallback a{color:#6c247e;font-weight:800;}
html[data-theme='dark'] .pdf25-dialog {background:#261b30; border-color:#5e4b68; color:#f9eefd;}
html[data-theme='dark'] .pdf25-dialog .pdf25-header,
html[data-theme='dark'] .pdf25-dialog .pdf25-fallback{background:#261b30;border-color:#58445e;color:#ead8ef;}
html[data-theme='dark'] .pdf25-overline {color:#e7a6e6;}
html[data-theme='dark'] .pdf25-heading {color:#fff4ff;}
html[data-theme='dark'] .pdf25-actions :is(a,button){color:#f3e5fa;background:#3a2a46;border-color:#6f597b;}
html[data-theme='dark'] .pdf25-actions a.pdf25-download{background:#f45a1b;border-color:#f45a1b;color:#fff;}
html[data-theme='dark'] .pdf25-fallback a{color:#ffb6e0;}
@media(max-width:670px){
  .pdf25-dialog{width:100vw; height:100dvh; border:0; border-radius:0;}
  .pdf25-dialog .pdf25-header{padding:12px 12px; flex-wrap:wrap; gap:9px;}
  .pdf25-title-group{width:100%;}
  .pdf25-actions{width:100%; justify-content:flex-end;}
  .pdf25-actions :is(a,button){padding:9px 11px; min-height:39px;}
  .pdf25-fallback{padding:8px 14px;font-size:11px;}
}
@media(prefers-reduced-motion:reduce){.pdf25-dialog,.pdf25-actions :is(a,button){animation:none!important;transition:none!important}}
@media(prefers-reduced-motion:no-preference){
  .pdf25-dialog[open]{animation:pdf25-open .25s cubic-bezier(.22,1,.36,1) both;}
  @keyframes pdf25-open{from{opacity:.5;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
}

.pdf25-form-note{font:600 13px/1.65 'DM Sans',sans-serif;color:var(--muted,#605365);margin:12px 0 14px;}
.pdf25-form-note a{color:var(--purple,#782e93);text-decoration:underline;text-underline-offset:3px;font-weight:850;}
html[data-theme='dark'] .pdf25-form-note{color:#e4d7e9;}
html[data-theme='dark'] .pdf25-form-note a{color:#f1c0f0;}
