/* El fondo conserva sus píxeles; la opacidad de las tarjetas protege la lectura. */
:root { color-scheme: dark; }
body { background-color: #080e21; }
::selection { background: #b6a1d8; color: #101426; }
a { text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #d2c1ef !important;
  outline-offset: 4px;
}
.service-card, .bookmark {
  background-color: rgba(13, 20, 39, 0.93) !important;
  border-radius: 12px;
  border: 1px solid rgba(185, 171, 211, 0.22);
}
.service-card:hover, .bookmark:hover {
  background-color: rgba(30, 35, 61, 0.97) !important;
  border-color: #a69ac5;
}
.service-name { color: #f0edf7 !important; font-weight: 600; }
.service-description { color: #c7c5d8 !important; }
.service-block { font-variant-numeric: tabular-nums; }
.service-group-name, .bookmark-group-name { color: #e1d6f3 !important; }

/* Distribución: resumen arriba y tres columnas de trabajo debajo. */
#layout-groups { display: grid !important; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .85fr); gap: 28px !important; align-items: start; }
#layout-groups > .services-group { min-width: 0; padding: 0 !important; }
#layout-groups > .services-group:first-child { grid-column: 1 / -1; }
.service-group-name, .bookmark-group-name { margin-bottom: 16px; font-size: 1.15rem; }
.service-card { margin-bottom: 14px !important; padding: 9px !important; box-shadow: none !important; }
.service-title-text { min-width: 0; }
.service-name { overflow-wrap: anywhere; }
.service-description { line-height: 1.5; margin-top: 3px; }
.service-block { padding-top: 10px; padding-bottom: 10px; }
#layout-groups > .services-group:nth-child(2) { grid-column: 1; grid-row: 2 / span 2; }
#layout-groups > .services-group:nth-child(3) { grid-column: 2; grid-row: 2 / span 2; }
#layout-groups > .services-group:nth-child(4) { grid-column: 3; grid-row: 2; }
#layout-groups > .bookmark-group { grid-column: 3; grid-row: 3; padding: 0 !important; margin: 0; }
.bookmark-description { display: none; }
/* Separación vertical y horizontal propia: la cuadrícula nativa solo añade gap-x. */                                .bookmark-group ul { gap: 14px !important; }
.bookmark { min-width: 0; overflow: hidden; }
.bookmark > a {
  display: flex;
  align-items: center;
  margin-bottom: 0 !important;
  min-height: 58px;
  background: transparent !important;
  box-shadow: none !important;
}
.bookmark > a > div { width: 100%; }
.bookmark-name { padding: 12px 10px !important; font-size: 13px !important; line-height: 1.4; }
.bookmark-icon { width: 42px !important; background: transparent !important; }

.bookmark { min-height: 48px; }
@media (max-width: 1023px) {
  #layout-groups > .services-group:nth-child(n+2), #layout-groups > .bookmark-group { grid-column: auto; grid-row: auto; }
  #layout-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px !important; }
}
@media (max-width: 639px) {
  #layout-groups { grid-template-columns: minmax(0, 1fr); gap: 24px !important; }
  .service-card { margin-bottom: 12px !important; }
}
