/* Ventanas del sitio DSC: Búsqueda, Asistente, Ayuda y Contáctanos.
   Estilo de la portada nueva: superficie blanca sobria, azules #007a76 y #003366, radios suaves.
   Las pinta navbar.html.twig (una sola copia en todas las páginas de Gantry); dsc-windows-v1.js
   las abre y cierra. El modo oscuro sigue a la barra superior (clase dsc-tb-dark en <html>). */

html.dsc-dialog-open, html.dsc-dialog-open body{overflow:hidden !important}

.dsc-win{
  position:fixed; inset:0; z-index:320; display:none;
  align-items:center; justify-content:center; padding:24px 16px;
  background:rgba(13,27,46,.45); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px);
}
.dsc-win.is-open{display:flex}
.dsc-win__panel{
  display:flex; flex-direction:column; overflow:hidden;
  width:min(94vw, var(--win-w, 720px)); max-height:min(88vh, 860px);
  border-radius:18px; border:1px solid rgba(15,23,42,.12); background:#FFFFFF;
  box-shadow:0 24px 64px rgba(13,27,46,.28);
  color:#0f172a; font:16px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
  animation:dsc-win-in .16s ease-out;
}
.dsc-win__panel--wide{--win-w:1000px}
.dsc-win__panel--narrow{--win-w:640px}
@keyframes dsc-win-in{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.dsc-win__panel{animation:none}}

.dsc-win__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid rgba(15,23,42,.12)}
.dsc-win__head h2{margin:0;font-size:18px;font-weight:700}
.dsc-win__x{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:999px;border:0;background:transparent;color:inherit;cursor:pointer}
.dsc-win__x:hover{background:rgba(15,23,42,.06)}
.dsc-win__x:focus-visible,.dsc-win :focus-visible{outline:3px solid #007a76;outline-offset:2px}
.dsc-win__body{overflow:auto;padding:18px 20px 22px}
.dsc-win__body--flush{padding:0;display:flex;flex-direction:column;min-height:0}

/* Búsqueda y Asistente */
.dsc-win__bar{display:flex;align-items:center;gap:10px;padding:2px 4px}
.dsc-win__bar svg{flex:none;color:#4D5A70}
.dsc-win__bar input{
  flex:1;min-width:0;min-height:46px;padding:10px 16px;border-radius:999px;
  border:1px solid rgba(15,23,42,.18);background:#FFFFFF;color:inherit;
  font:16px/1.3 inherit;
}
.dsc-win__bar input:focus{outline:3px solid rgba(0,122,118,.35);border-color:#007a76}
.dsc-win__chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0;padding:0;list-style:none}
.dsc-win__chips button{min-height:34px;padding:6px 14px;border-radius:999px;border:1px solid rgba(15,23,42,.14);background:#eaf5f3;color:#0f172a;font:600 13.5px/1.2 inherit;cursor:pointer}
.dsc-win__chips button:hover{border-color:#007a76;color:#007a76}
.dsc-win__res{margin-top:14px}
.dsc-win__list,.dsc-win__list--tight{list-style:none;margin:0;padding:0}
.dsc-win__list > li + li{border-top:1px solid rgba(15,23,42,.08)}
.dsc-win__list a{display:block;padding:11px 12px;border-radius:12px;color:inherit;text-decoration:none}
.dsc-win__list a:hover{background:#eaf5f3}
.dsc-win__list strong{display:block;font-weight:600}
.dsc-win__kind{display:block;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#4D5A70}
.dsc-win__sum{display:block;font-size:13.5px;color:#4D5A70}
.dsc-win__empty{margin:14px 4px 0;color:#4D5A70}
.dsc-win__empty a{color:#007a76}
.dsc-win__more{margin:12px 4px 0;font-size:13.5px;color:#4D5A70}

/* Asistente: conversación */
.dsc-win__log{display:flex;flex-direction:column;gap:10px;flex:1;overflow:auto;padding:18px 20px;min-height:180px}
.dsc-win__msg{max-width:86%;padding:10px 14px;border-radius:14px;font-size:15px}
.dsc-win__msg--bot{align-self:flex-start;background:#EDF1F7;border-bottom-left-radius:4px}
.dsc-win__msg--user{align-self:flex-end;background:#003366;color:#FFFFFF;border-bottom-right-radius:4px}
.dsc-win__msg p{margin:0 0 6px}
.dsc-win__msg p:last-child{margin-bottom:0}
.dsc-win__msg--user a{color:inherit}
.dsc-win__msg a{color:#007a76}
.dsc-win__form{display:flex;gap:10px;padding:14px 20px;border-top:1px solid rgba(15,23,42,.12)}
.dsc-win__form input{flex:1;min-width:0;min-height:44px;padding:10px 16px;border-radius:12px;border:1px solid rgba(15,23,42,.18);font:15px/1.3 inherit;color:inherit;background:#FFFFFF}
.dsc-win__form input:focus{outline:3px solid rgba(0,122,118,.35);border-color:#007a76}
.dsc-win__send{min-height:44px;padding:10px 18px;border-radius:12px;border:0;background:#003366;color:#FFFFFF;font:700 15px/1 inherit;cursor:pointer}
.dsc-win__send:hover{background:#002244}
.dsc-win__send[disabled]{opacity:.6;cursor:default}

/* Ayuda: guía dentro de la ventana */
.dsc-win__frame{width:100%;flex:1;min-height:0;border:0}
.dsc-win__alt{margin:0;padding:10px 20px;border-top:1px solid rgba(15,23,42,.12);font-size:13.5px;color:#4D5A70}
.dsc-win__alt a{color:#007a76}

/* Contáctanos */
.dsc-wf{display:flex;flex-direction:column;gap:12px}
.dsc-wf a{color:#007a76}
.dsc-wf__note{margin:0;font-size:13.5px;color:#4D5A70}
.dsc-wf__grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:640px){.dsc-wf__grid{grid-template-columns:1fr}}
.dsc-wf input[type="text"],.dsc-wf input[type="email"],.dsc-wf select,.dsc-wf textarea{
  width:100%;box-sizing:border-box;min-height:46px;padding:10px 14px;border-radius:12px;
  border:1px solid rgba(15,23,42,.18);background:#FFFFFF;color:inherit;font:15px/1.35 inherit;
}
.dsc-wf textarea{resize:vertical}
.dsc-wf input:focus,.dsc-wf select:focus,.dsc-wf textarea:focus{outline:3px solid rgba(0,122,118,.35);border-color:#007a76}
.dsc-wf input[readonly]{background:#EDF1F7}
.dsc-wf__hp{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.dsc-wf__files{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border:1px dashed rgba(15,23,42,.24);border-radius:12px;background:#fafafa}
.dsc-wf__files span{font-weight:600;font-size:14.5px}
.dsc-wf__files small{color:#4D5A70}
.dsc-wf__files input{font-size:13.5px}
.dsc-wf__fmeta{font-size:13.5px;font-weight:600;color:#4D5A70}
.dsc-wf__fprev{display:flex;flex-wrap:wrap;gap:10px}
.dsc-wf__fitem{position:relative;width:76px;text-align:center}
.dsc-wf__fitem img{display:block;width:76px;height:76px;object-fit:cover;border-radius:10px;border:1px solid rgba(15,23,42,.12)}
.dsc-wf__fname{display:block;font-size:11px;color:#4D5A70;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dsc-wf__fx{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:999px;border:0;background:#003366;color:#FFFFFF;font:700 13px/1 inherit;cursor:pointer}
.dsc-wf__aid{padding:12px 14px;border-radius:12px;border:1px solid rgba(15,23,42,.12);background:#eaf5f3;font-size:14px}
.dsc-wf__aid > span{display:block;font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#4D5A70}
.dsc-wf__aid strong{display:block;margin:2px 0 4px}
.dsc-wf__aid p{margin:0 0 6px}
.dsc-wf__aid ul{margin:0;padding-left:18px}
.dsc-wf__chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.dsc-wf__chip{padding:3px 10px;border-radius:999px;background:#d5efe9;color:#0f172a;font:600 12.5px/1.3 inherit}
.dsc-wf__chip--urgent{background:#FDEDEB;color:#C0392B}
.dsc-wf__chip--ok{background:#E5F3EC;color:#16704A}
.dsc-wf__cas{padding:12px 14px;border-radius:12px;border:1px solid rgba(15,23,42,.12);background:#fafafa;font-size:14px}
.dsc-wf__cas strong{display:block}
.dsc-wf__cas a{font-weight:600}
.dsc-wf__state{padding:12px 14px;border-radius:12px;font-size:14.5px}
.dsc-wf__state strong{display:block}
.dsc-wf__state a{color:#007a76}
.dsc-wf__state--ok{background:#E5F3EC;color:#16704A}
.dsc-wf__state--error{background:#FDEDEB;color:#C0392B}
.dsc-wf__state--info{background:#eaf5f3;color:#0f172a}
.dsc-wf__submit{align-self:flex-start;min-height:46px;padding:11px 22px;border-radius:12px;border:0;background:#003366;color:#FFFFFF;font:700 15px/1 inherit;cursor:pointer}
.dsc-wf__submit:hover{background:#002244}
.dsc-wf__submit[disabled]{opacity:.6;cursor:default}

/* Enlace de salto (accesibilidad) */
.dsc-skip-link{position:fixed;top:-48px;left:16px;z-index:400;padding:10px 16px;border-radius:12px;background:#003366;color:#FFFFFF;font:600 14px/1 system-ui,sans-serif;text-decoration:none;transition:top .12s ease-out}
.dsc-skip-link:focus{top:12px}

/* Oscuro: sigue a la barra superior */
html.dsc-tb-dark .dsc-win{background:rgba(2,8,20,.6)}
html.dsc-tb-dark .dsc-win__panel{background:#161F33;border-color:rgba(255,255,255,.12);color:#E8EDF5;box-shadow:0 24px 64px rgba(0,0,0,.5)}
html.dsc-tb-dark .dsc-win__head{border-color:rgba(255,255,255,.12)}
html.dsc-tb-dark .dsc-win__x:hover{background:rgba(255,255,255,.08)}
html.dsc-tb-dark .dsc-win__bar svg{color:#A5B1C4}
html.dsc-tb-dark .dsc-win__bar input,html.dsc-tb-dark .dsc-win__form input{background:#1F2A42;border-color:rgba(255,255,255,.18);color:#E8EDF5}
html.dsc-tb-dark .dsc-win__chips button{background:#16284A;border-color:rgba(255,255,255,.14);color:#E8EDF5}
html.dsc-tb-dark .dsc-win__chips button:hover{border-color:#00a19c;color:#00a19c}
html.dsc-tb-dark .dsc-win__list > li + li{border-color:rgba(255,255,255,.08)}
html.dsc-tb-dark .dsc-win__list a:hover{background:#16284A}
html.dsc-tb-dark .dsc-win__kind,html.dsc-tb-dark .dsc-win__sum,html.dsc-tb-dark .dsc-win__empty,html.dsc-tb-dark .dsc-win__more,html.dsc-tb-dark .dsc-win__alt{color:#A5B1C4}
html.dsc-tb-dark .dsc-win__msg--bot{background:#1F2A42}
html.dsc-tb-dark .dsc-win__form{border-color:rgba(255,255,255,.12)}
html.dsc-tb-dark .dsc-win__send,html.dsc-tb-dark .dsc-wf__submit{background:#00a19c;color:#0B1424}
html.dsc-tb-dark .dsc-win__send:hover,html.dsc-tb-dark .dsc-wf__submit:hover{background:#33c1bc}
html.dsc-tb-dark .dsc-wf input[type="text"],html.dsc-tb-dark .dsc-wf input[type="email"],html.dsc-tb-dark .dsc-wf select,html.dsc-tb-dark .dsc-wf textarea{background:#1F2A42;border-color:rgba(255,255,255,.18);color:#E8EDF5}
html.dsc-tb-dark .dsc-wf input[readonly]{background:#16284A}
html.dsc-tb-dark .dsc-wf__files{background:#1F2A42;border-color:rgba(255,255,255,.2)}
html.dsc-tb-dark .dsc-wf__fmeta,html.dsc-tb-dark .dsc-wf__fname,html.dsc-tb-dark .dsc-wf__note,html.dsc-tb-dark .dsc-wf__aid > span{color:#A5B1C4}
html.dsc-tb-dark .dsc-wf__aid{background:#16284A;border-color:rgba(255,255,255,.12)}
html.dsc-tb-dark .dsc-wf__chip{background:#1E335C;color:#E8EDF5}
html.dsc-tb-dark .dsc-wf__chip--urgent{background:#3A1714;color:#FF7A6E}
html.dsc-tb-dark .dsc-wf__chip--ok{background:#12291E;color:#7FE0B4}
html.dsc-tb-dark .dsc-wf__cas{background:#1F2A42;border-color:rgba(255,255,255,.12)}
html.dsc-tb-dark .dsc-wf__state--ok{background:#12291E;color:#7FE0B4}
html.dsc-tb-dark .dsc-wf__state--error{background:#3A1714;color:#FF7A6E}
html.dsc-tb-dark .dsc-wf__state--info{background:#16284A;color:#E8EDF5}
html.dsc-tb-dark .dsc-wf__fitem img{border-color:rgba(255,255,255,.14)}

@media print{.dsc-win{display:none !important}}

/* Pie de página Gantry (footer-7567) y su ventana "Nosotros / Equipo DSC".
   Sus estilos estaban en las hojas del portal anterior; ahora siguen el diseño del sitio. */
.dsc-ft{display:grid;gap:18px;padding:28px 24px 34px;color:#0f172a;font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif}
.dsc-ft.dsc-mt,html body .dsc-mt{background-color:rgba(255,255,255,.72)}
.dsc-ft-overlay{display:none}
.dsc-ft-grid{display:grid;gap:24px;align-items:start}
.dsc-ft h2{margin:0 0 6px;font-size:20px;line-height:1.25}
.dsc-ft p{margin:0 0 8px}
.dsc-ft-kicker{margin:0 0 8px;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#4D5A70}
.dsc-ft-links{list-style:none;margin:0;padding:0}
.dsc-ft-links li{margin:6px 0}
.dsc-ft-links a{color:#007a76;text-decoration:none}
.dsc-ft-links a:hover{text-decoration:underline}
.dsc-ft-about-link{min-height:38px;padding:8px 16px;border-radius:10px;border:1px solid rgba(15,23,42,.18);background:#eaf5f3;color:#0f172a;font:600 14px/1.2 inherit;cursor:pointer}
.dsc-ft-about-link:hover{border-color:#007a76;color:#007a76}
.dsc-ft-divider{height:1px;background:rgba(15,23,42,.12)}
.dsc-ft-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.dsc-ft-bottom p{margin:0;font-size:13.5px;color:#4D5A70}
.dsc-ft-empty{display:grid;gap:6px;font-size:14.5px}
.dsc-ft-empty strong{font-weight:700}
.dsc-ft-empty span{color:#4D5A70}

.dsc-ui-btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 16px;border-radius:10px;border:1px solid rgba(15,23,42,.18);background:#FFFFFF;color:#0f172a;font:600 14px/1.2 inherit;cursor:pointer;text-decoration:none}
.dsc-ui-btn--secondary{background:#eaf5f3}
.dsc-ui-btn--ghost{background:transparent}

.dsc-ft-modal{position:fixed;inset:0;z-index:330;display:none;align-items:center;justify-content:center;padding:24px 16px;background:rgba(13,27,46,.45);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.dsc-ft-modal.is-open{display:flex}
.dsc-ft-modal__backdrop{position:absolute;inset:0}
.dsc-ft-modal__panel{
  position:relative;display:flex;flex-direction:column;overflow:hidden;
  width:min(94vw,900px);max-height:min(88vh,860px);padding:22px 24px;
  border-radius:18px;border:1px solid rgba(15,23,42,.12);background:#FFFFFF;
  box-shadow:0 24px 64px rgba(13,27,46,.28);color:#0f172a;
  font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
  animation:dsc-win-in .16s ease-out;
}
.dsc-ft-modal__close{position:absolute;top:14px;right:16px}
.dsc-ft-modal__panel h4{margin:0 24px 14px 0;font-size:20px}
.dsc-ft-modal__panel .dsc-ft-tabs{overflow:auto;min-height:0;padding-right:2px}
.dsc-ft-tabs__nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.dsc-ft-tab-btn.is-active{background:#003366;border-color:#003366;color:#FFFFFF}
.dsc-ft-tab-panel{display:none;overflow:auto}
.dsc-ft-tab-panel.is-active{display:block}
.dsc-ft-modal__panel .dsc-modal-content h3{margin:14px 0 8px;font-size:18px}
.dsc-ft-modal__panel .dsc-modal-content h3:first-child{margin-top:0}
.dsc-ft-modal__panel .dsc-modal-content h4{margin:12px 0 6px;font-size:16px;color:#003366}
.dsc-ft-modal__panel .dsc-modal-content p{margin:0 0 10px}
.dsc-ft-modal__panel .dsc-modal-content ul{margin:0 0 10px;padding-left:20px}
.dsc-ft-modal__panel .dsc-modal-content a{color:#007a76}
.dsc-ft-team{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin-top:16px}
.dsc-ft-team__card{display:grid;gap:2px;padding:12px 14px;border-radius:12px;border:1px solid rgba(15,23,42,.12);background:#fafafa}
.dsc-ft-team__card strong{font-weight:700}
.dsc-ft-team__card small{color:#4D5A70}
.dsc-ft-team__card span a{color:#007a76;text-decoration:none}
.dsc-ft-team__card em{font-style:normal;font-size:13.5px;color:#4D5A70}

html.dsc-tb-dark .dsc-ft{color:#E8EDF5}
html.dsc-tb-dark .dsc-ft-kicker,html.dsc-tb-dark .dsc-ft-bottom p,html.dsc-tb-dark .dsc-ft-empty span,html.dsc-tb-dark .dsc-ft-team__card small,html.dsc-tb-dark .dsc-ft-team__card em{color:#A5B1C4}
html.dsc-tb-dark .dsc-ft-links a,html.dsc-tb-dark .dsc-ft-team__card span a,html.dsc-tb-dark .dsc-modal-content a{color:#00a19c}
html.dsc-tb-dark .dsc-ft-about-link{background:#16284A;border-color:rgba(255,255,255,.14);color:#E8EDF5}
html.dsc-tb-dark .dsc-ft-divider{background:rgba(255,255,255,.12)}
html.dsc-tb-dark .dsc-ui-btn{background:#1F2A42;border-color:rgba(255,255,255,.18);color:#E8EDF5}
html.dsc-tb-dark .dsc-ui-btn--secondary{background:#16284A}
html.dsc-tb-dark .dsc-ft-modal{background:rgba(2,8,20,.6)}
html.dsc-tb-dark .dsc-ft-modal__panel{background:#161F33;border-color:rgba(255,255,255,.12);color:#E8EDF5;box-shadow:0 24px 64px rgba(0,0,0,.5)}
html.dsc-tb-dark .dsc-ft-tab-btn.is-active{background:#00a19c;border-color:#00a19c;color:#0B1424}
html.dsc-tb-dark .dsc-ft-modal__panel .dsc-modal-content h4{color:#33c1bc}
html.dsc-tb-dark .dsc-ft-team__card{background:#1F2A42;border-color:rgba(255,255,255,.12)}


/* Ventana de Ayuda: alto fijo (antes el iframe quedaba en ~150 px y no se leía nada). */
#dscWinHelp .dsc-win__panel{height:min(88vh,860px)}
#dscWinHelp .dsc-win__frame{flex:1 1 auto;min-height:0;background:#fafafa}
@media (max-width:640px){
  #dscWinHelp{padding:8px}
  #dscWinHelp .dsc-win__panel{width:100%;height:calc(100vh - 16px);height:calc(100dvh - 16px);max-height:none;border-radius:14px}
}

/* Paleta 3 (27 oct 2026): azul clásico UBB #003366 en cabeceras y bandas; verde azulado #007a76 como acento (contraste AA);
   fondo #FAFAFA, texto #0F172A. Restauración: ops/restore/20261027-paleta/. */
