/* Brand palette and dimensions shared by all of the editorial templates. */
:root {
  --prueba-papel: #f1eade;
  --prueba-violeta: #9472b5;
  --prueba-tinta: #18131d;
  --prueba-noche: #211925;
  --prueba-violeta-oscuro: #322040;
  --prueba-violeta-icono: #492d62;
  --prueba-lavanda: #dfd0ec;
  --prueba-amarillo: #f0d060;
  --prueba-fondo-footer: #563970;
  --prueba-superficie: #e6dfd4;
  --prueba-regla: rgb(24 19 29 / 30%);
  --prueba-regla-clara: rgb(241 234 222 / 34%);
  --prueba-titulo-seccion: clamp(2.1rem, 4vw, 4.25rem);
  --prueba-espacio-recorridos: clamp(45px, 7vw, 92px);
  --prueba-display: 'Prueba Bricolage', 'Inter Tight', system-ui, sans-serif;
  --prueba-texto: 'Prueba Inter', 'DM Sans', system-ui, sans-serif;
  --prueba-ancho-portada: 72rem;
  --prueba-margen: clamp(20px, 5vw, 72px);
  --prueba-margen-grilla: max(var(--prueba-margen), calc((100% - var(--prueba-ancho-portada)) / 2));
  --prueba-radio-superficie: 12px;
  --prueba-radio-detalle: 6px;
  --prueba-curva-movimiento: ease-in-out;
}

body.li-editorial-site {
  --li-button-radius: 8px;
  font-family: var(--prueba-texto);
}

body.li-editorial-site :is(.li-shell, .li-dialog, .li-assistant, .li-assistant-dock),
body.li-editorial-site #li-main :is(.li-article, .li-about-page, .li-privacy-consolidated, .li-blog-index-wrap, .li-blog-article-body, .li-tools-page, .li-atlas-index, .li-atlas-sheet),
body.li-editorial-site #li-main :is(p, li, dt, dd, th, td, label, legend, figcaption, .li-global-crumbs),
body.li-editorial-site :is(button, input:not([type=checkbox], [type=radio]), select, textarea) {
  font-family: var(--prueba-texto);
}

body.li-editorial-site #li-main :is(h1, h2, h3, h4, h5, h6),
body.li-editorial-site #li-main :is(h1, h2, h3, h4, h5, h6) > :is(a, span, em, strong),
body.li-editorial-site .li-footer :is(h2, h3) {
  font-family: var(--prueba-display) !important;
}

@media screen {
  :root body.li-editorial-site {
    --li-v2-bg: var(--prueba-papel);
    --li-v2-surface: var(--prueba-superficie);
    --li-v2-raised: #fffaf0;
    --li-v2-text: var(--prueba-tinta);
    --li-v2-muted: #4b404e;
    --li-v2-dim: #5d5060;
    --li-v2-line: var(--prueba-regla);
    --li-v2-violet: var(--prueba-violeta-icono);
    --li-v2-control-line: #6d5a77;
    --li-v2-plot-edge: var(--prueba-violeta-icono);
    --li-v2-link: var(--prueba-violeta-icono);
    --li-v2-series-a: var(--prueba-violeta);
    --li-v2-accent: var(--prueba-amarillo);
    --li-v2-accent-hover: #f6db81;
    --li-v2-accent-ink: var(--prueba-tinta);
    --li-paper: var(--li-v2-bg) !important;
    --li-soft: var(--li-v2-surface) !important;
    --li-ink: var(--li-v2-text) !important;
    --li-muted: var(--li-v2-muted) !important;
    --li-line: var(--li-v2-line) !important;
    --li-link: var(--li-v2-link) !important;
    --li-yellow: var(--li-v2-accent) !important;
    background: var(--li-paper);
    color: var(--li-ink);
    color-scheme: light;
  }

  :root {
    color-scheme: only light;
  }

  body.li-editorial-site :is(.li-shell, .li-page, .li-main) {
    background-color: var(--li-paper);
    color: var(--li-ink);
  }

  body.li-editorial-site #li-main > .li-site-breadcrumbs,
  body.li-editorial-site #li-main :is(.li-entry-hero, .lb-hero, .about-hero, .li-courses-header, .li-contact-header, .li-search-hero, .li-blog-index-hero, .li-blog-article-hero, .li-agents-hero, .li-tools-hero, .atlas-hero) {
    --li-paper: var(--prueba-papel);
    --li-soft: var(--prueba-superficie);
    --li-ink: var(--prueba-tinta);
    --li-muted: var(--prueba-tinta);
    --li-link: var(--prueba-tinta);
    --li-line: var(--prueba-regla);
    --li-v2-text: var(--prueba-tinta);
    --li-v2-muted: var(--prueba-tinta);
    --li-v2-dim: var(--prueba-tinta);
    --li-v2-link: var(--prueba-tinta);
    --li-v2-violet: var(--prueba-violeta-icono);
    background: var(--prueba-violeta);
    color: var(--prueba-tinta);
    color-scheme: light;
  }

  body.li-editorial-site #li-main :is(.li-entry-hero, .lb-hero, .about-hero, .li-courses-header, .li-contact-header, .li-search-hero, .li-blog-index-hero, .li-blog-article-hero, .li-agents-hero, .li-tools-hero, .atlas-hero) {
    /* Paint the band beyond inset wrappers without expanding scrollable width or clipping focus. */
    border-image: linear-gradient(var(--prueba-violeta) 0 0) fill 0 // 0 100vmax;
    border-bottom: 0;
    padding-block: clamp(44px, 6vw, 88px) clamp(36px, 4.5vw, 68px);
  }

  body.li-editorial-site #li-main .about-hero {
    padding: 0;
  }

  body.li-editorial-site #li-main .about-hero > .about-shell {
    padding-block: clamp(44px, 6vw, 88px) clamp(36px, 4.5vw, 68px);
  }

  body.li-editorial-site #li-main :is(.li-entry-hero, .lb-hero, .about-hero, .li-courses-header, .li-contact-header, .li-search-hero, .li-blog-index-hero, .li-blog-article-hero, .li-agents-hero, .li-tools-hero, .atlas-hero) h1 {
    max-width: 19ch;
    margin-block: 0 clamp(18px, 2.8vw, 40px);
    font-size: clamp(2.55rem, 6.05vw, 6.15rem) !important;
    font-weight: 800 !important;
    letter-spacing: -.065em !important;
    line-height: .98 !important;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  body.li-editorial-site #li-main .li-entry-hero .li-lead {
    max-width: 38ch;
    margin: 0;
    font-size: clamp(1.05rem, 1.85vw, 1.6rem);
    line-height: 1.4;
    letter-spacing: -.023em;
  }

  body.li-editorial-site #li-main .li-entry-hero .li-entry-eyebrow {
    margin-bottom: 20px;
    font: 650 .6875rem/1.5 var(--prueba-texto);
    letter-spacing: .085em;
    text-transform: uppercase;
  }

  body.li-editorial-site #li-main :is(.li-entry-actions > button, .li-search-controls input) {
    color: var(--prueba-tinta);
    background: var(--prueba-papel);
    border-color: var(--prueba-tinta);
  }

  body.li-editorial-site #li-main > :is(.li-entry-hero, .li-site-breadcrumbs),
  body.li-editorial-site #li-main > .li-blog-article-hero {
    max-width: none;
    padding-inline: var(--prueba-margen-grilla);
  }

  body.li-editorial-site #li-main :is(.li-entry-native, .li-search-page) {
    max-width: none;
    padding-inline: var(--prueba-margen-grilla);
    padding-block-start: 0;
  }

  body.li-editorial-site #li-main :is(.li-library-index, .li-about-page, .li-contact-page, .li-courses-page, .li-blog-index-wrap) {
    --lb-gutter: var(--prueba-margen-grilla);
    --about-gutter: var(--prueba-margen-grilla);
    --contact-gutter: var(--prueba-margen-grilla);
    --ci-gutter: var(--prueba-margen-grilla);
    --li-blog-index-gutter: var(--prueba-margen-grilla);
  }

  body.li-editorial-site #li-main :is(.li-contact-page, .li-blog-index-wrap) {
    padding-block-start: 0;
  }

  body.li-editorial-site #li-main .li-article .li-section > h2 {
    font-size: var(--prueba-titulo-seccion) !important;
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1 !important;
  }

  body.li-editorial-site #li-main .li-section:is([aria-labelledby=subhubs], [aria-labelledby=modelo-minimo], :has(> .lh-routes)) {
    --li-ink: var(--prueba-tinta);
    --li-muted: var(--prueba-tinta);
    --li-line: var(--prueba-regla);
    --li-v2-violet: var(--prueba-tinta);
    --li-v2-text: var(--prueba-tinta);
    --li-v2-muted: var(--prueba-tinta);
    --li-v2-dim: var(--prueba-tinta);
    --li-v2-control-line: var(--prueba-tinta);
    --li-v2-link: var(--prueba-tinta);
    --li-v2-surface: var(--prueba-superficie);
    --li-v2-raised: var(--prueba-papel);
    --li-soft: var(--prueba-superficie);
    --li-paper: var(--prueba-papel);
    --li-link: var(--prueba-tinta);
    padding-block: var(--prueba-espacio-recorridos);
    border-image: linear-gradient(var(--prueba-violeta) 0 0) fill 0 // 0 100vmax;
    color: var(--prueba-tinta);
  }

  body.li-editorial-site #li-main .li-section[aria-labelledby=modelo-minimo] {
    --li-v2-series-a: var(--prueba-tinta);
    padding-block: clamp(42px, 6vw, 84px);
  }

  body.li-editorial-site #li-main :is(.lb-route-card, .li-tool-card, .li-masterclass-card, .li-blog-card) {
    border-radius: var(--prueba-radio-superficie);
  }

  body.li-editorial-site #li-main .li-agent-detail-icon {
    box-sizing: content-box;
    padding: 3px;
    border-radius: var(--prueba-radio-detalle);
    background: var(--prueba-violeta);
    color: var(--prueba-tinta);
  }

  body.li-editorial-site #li-main .lh-routes {
    gap: clamp(14px, 2vw, 24px);
  }

  body.li-editorial-site #li-main .lh-route {
    --li-ink: var(--prueba-tinta);
    --li-muted: var(--prueba-tinta);
    --li-link: var(--prueba-tinta);
    padding: clamp(16px, 2.5vw, 28px);
    border: 1px solid var(--prueba-regla);
    border-radius: var(--prueba-radio-superficie);
    background: var(--prueba-papel);
    color: var(--prueba-tinta);
  }

  body.li-editorial-site #li-main .lh-route-link::after {
    border-radius: var(--prueba-radio-superficie);
  }

  body.li-editorial-site #li-main .lh-route-arrow {
    inset-block-start: clamp(16px, 2.5vw, 28px);
    inset-inline-end: clamp(16px, 2.5vw, 28px);
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: var(--prueba-radio-detalle);
    color: var(--prueba-tinta);
  }

  body.li-editorial-site #li-main .lh-route:is(:hover, :focus-within) {
    border-color: var(--prueba-tinta);
    background: #fffaf0;
  }

  body.li-editorial-site #li-main .lh-route:is(:hover, :focus-within) h3 {
    text-decoration: underline;
    text-underline-offset: .23em;
    text-decoration-thickness: 1px;
  }

  body.li-editorial-site #li-main .lh-route:is(:hover, :focus-within) .lh-route-arrow {
    background: var(--prueba-amarillo);
  }

  body.li-editorial-site #li-main .li-section :is(.li-hub-symbol, .li-hub-inline-icon) {
    border-color: transparent;
    border-radius: var(--prueba-radio-detalle);
    background: var(--prueba-violeta);
    color: var(--prueba-tinta);
  }

  body.li-editorial-site #li-main :is(.li-dg-symbol, .li-v2-case-icon, .li-v2-hypothesis-icon, .li-v2-mistake-icon, .li-v2-record-icon, .li-v3-error-icon) {
    border-color: transparent;
    border-radius: var(--prueba-radio-detalle);
    background: var(--prueba-violeta);
    color: var(--prueba-tinta);
  }

  body.li-editorial-site #li-main .li-section .li-hub-inline-icon {
    padding: 3px;
  }

  body.li-editorial-site #li-main .lh-route .li-hub-symbol {
    background: var(--prueba-lavanda);
    color: var(--prueba-violeta-icono);
  }

  body.li-editorial-site #li-main :is(.li-hub-option, .li-hub-network dl > div, .li-library-path, .li-library-guide, .li-ai-info) {
    border-radius: var(--prueba-radio-superficie);
  }

  body.li-editorial-site #li-main .li-hub-capacity :is(.li-hub-track:not(.li-hub-allocation) > span, .li-hub-allocation > span + span, .li-hub-key-reserve) {
    background: var(--li-v2-violet);
  }

  body.li-editorial-site #li-main .li-hub-capacity :is(.li-hub-key-work, .li-hub-allocation > span:first-child) {
    background: var(--prueba-amarillo);
  }

  body.li-editorial-site #li-main .li-hub-demand .li-hub-track > span {
    position: relative;
  }

  body.li-editorial-site #li-main .li-hub-capacity-legend .li-hub-key-gap {
    border: 1px dashed var(--li-ink);
    background: var(--li-paper);
  }

  body.li-editorial-site #li-main .li-hub-demand .li-hub-track > span::after {
    content: "";
    position: absolute;
    inset: 0 0 0 66.666667%;
    border: 1px dashed var(--li-ink);
    background: var(--li-paper);
  }

  body.li-editorial-site.li-color-theme.li-sitemap {
    --li-map-bg: #f1eade;
    --li-map-panel: #fffaf0;
    --li-map-ink: #322040;
    --li-map-muted: #53425d;
    --li-map-highlight: #563970;
    --li-map-rule: #897c8d;
    --li-map-node-rgb: 50,32,64;
    --li-map-branch-rgb: 86,57,112;
    --li-map-active-rgb: 74,35,102;
  }

  html[data-li-reading="dark"] body.li-editorial-site.li-color-theme.li-sitemap {
    --li-map-bg: #211925;
    --li-map-panel: #322040;
    --li-map-ink: #f1eade;
    --li-map-muted: #dfd0ec;
    --li-map-highlight: #f0d060;
    --li-map-rule: #a48eaf;
    --li-map-node-rgb: 241,234,222;
    --li-map-branch-rgb: 210,187,225;
    --li-map-active-rgb: 240,208,96;
  }

  body.li-sitemap #li-main .li-map-3d {
    --fg: var(--li-map-ink);
    --yellow: var(--prueba-amarillo);
    background: var(--li-map-bg);
    color: var(--li-map-ink);
  }

  body.li-sitemap #li-main .li-map-3d :is(.map-tooltip, .map-info-panel, .map-no-canvas, .map-info-button, .map-controls button) {
    color: var(--li-map-ink);
    background: var(--li-map-panel);
    border-color: var(--li-map-rule);
  }

  body.li-sitemap #li-main .li-map-3d :is(.map-info-title, .map-nojs) { color: var(--li-map-ink); }
  body.li-sitemap #li-main .li-map-3d .map-info-kicker { color: var(--li-map-highlight); }
  body.li-sitemap #li-main .li-map-3d .map-info-description { color: var(--li-map-muted); }
  body.li-sitemap #li-main .li-map-3d :focus-visible { outline-color: var(--li-map-highlight); }
  body.li-sitemap #li-main .li-map-3d .map-core-glow {
    background: radial-gradient(circle, rgba(var(--li-map-active-rgb), .3), transparent 65%);
    mix-blend-mode: normal;
  }
  body.li-sitemap #li-main .li-map-3d .map-core-glow::after {
    background: var(--li-map-highlight);
    box-shadow: 0 0 14px rgba(var(--li-map-active-rgb), .5);
  }

  body.li-editorial-site #li-main .map-info-link {
    border-color: var(--prueba-amarillo);
    background: var(--prueba-amarillo);
    color: var(--prueba-tinta);
  }

  body.li-editorial-site .li-back-to-top {
    border-color: var(--li-ink);
    background: var(--li-paper);
    color: var(--li-ink);
  }

  body.li-editorial-site .li-footer.li-footer-complete.li-footer-plain {
    --li-paper: var(--prueba-fondo-footer) !important;
    --li-soft: var(--prueba-fondo-footer) !important;
    --li-ink: var(--prueba-papel) !important;
    --li-muted: var(--prueba-papel) !important;
    --li-line: var(--prueba-regla-clara) !important;
    --li-footer-link: var(--prueba-papel) !important;
    --li-footer-link-hover: var(--prueba-amarillo) !important;
    --li-footer-heading: var(--prueba-amarillo) !important;
    background: var(--prueba-fondo-footer) !important;
    color: var(--prueba-papel) !important;
    color-scheme: dark;
  }

  body.li-editorial-site .li-footer .li-footer-body :is(p, a, button, small, span),
  body.li-editorial-site .li-footer .li-footer-bottom :is(a, button, span) {
    font-family: var(--prueba-texto);
  }

  body.li-editorial-site .li-footer .li-footer-link-row.li-footer-explore a {
    background: var(--prueba-amarillo) !important;
    color: var(--prueba-tinta) !important;
    -webkit-text-fill-color: currentColor !important;
  }

  body.li-editorial-site .li-footer .li-footer-channel-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--prueba-amarillo);
    color: var(--prueba-noche);
  }

  body.li-editorial-site .li-footer .li-footer-channel-icon svg {
    width: 19px;
    height: 19px;
    stroke-width: 2.75;
  }

  body.li-editorial-site .li-footer :focus-visible {
    outline-color: var(--prueba-amarillo);
  }

  body.li-editorial-site .li-footer .li-iso path {
    fill: #0a0a0c;
  }

  body.li-editorial-site .li-footer .li-iso :is(.st0, .li-iso-primary) {
    fill: white;
  }
}

@media screen and (max-width: 680px) {
  body.li-editorial-site #li-main :is(.li-entry-hero, .lb-hero, .about-hero, .li-courses-header, .li-contact-header, .li-search-hero, .li-blog-index-hero, .li-blog-article-hero, .li-agents-hero, .li-tools-hero, .atlas-hero) h1 {
    font-size: clamp(2.35rem, 9.5vw, 4rem) !important;
    line-height: 1 !important;
    text-wrap: initial;
  }
}

@media screen and (hover: hover) and (prefers-reduced-motion: no-preference) {
  body.li-editorial-site #li-main .lh-route {
    transition: transform .22s var(--prueba-curva-movimiento), background-color .22s, border-color .22s;
  }
  body.li-editorial-site #li-main .lh-route:hover {
    transform: translateY(-3px);
  }
}

/* Layout applies after the editorial navigation has a desktop counterpart. */
body.li-editorial-site:has(.li-head > .li-nav-desktop) {
  --li-nav: 0px;
  --li-header-violet: #9472b5;
  --li-header-paper: #f1eade;
  --li-header-ink: #18131d;
  --li-header-icon: #492d62;
  --li-header-rule: rgb(24 19 29 / 30%);
  --li-header-inset: max(clamp(20px, 5vw, 72px), calc((100% - 72rem) / 2));
}
body.li-editorial-site:has(.li-head > .li-nav-desktop) .li-shell {
  background-color: var(--li-header-violet);
}
body.li-editorial-site .li-head:has(> .li-nav-desktop) {
  position: relative !important;
  inset-block-start: auto !important;
  background: transparent !important;
  border-bottom: 1px solid var(--li-header-rule);
  color: var(--li-header-ink);
  box-shadow: none;
  z-index: 60;
  gap: 12px;
}
body.li-editorial-site:has(.li-head > .li-nav-desktop) .li-page {
  margin-inline-start: 0 !important;
}
body.li-editorial-site:has(.li-head > .li-nav-desktop) .li-sidebar {
  display: none;
}
body.li-editorial-site .li-head:has(> .li-nav-desktop) :is(.li-brand, .li-brand strong, .li-brand small, .li-nav-desktop a, .li-megamenu summary) {
  color: var(--li-header-ink);
}
.li-head .li-nav-desktop { display: none; }
.li-head:has(> .li-nav-desktop) .li-brand-copy strong { font-weight: 700; }
body.li-editorial-site .li-head:has(> .li-nav-desktop) .li-iso {
  display: block;
  box-sizing: border-box;
  width: 62px;
  padding: 5px 7px;
  background: transparent !important;
  border: 0;
}
body.li-editorial-site .li-head:has(> .li-nav-desktop) .li-iso svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transform: scale(1.24762);
}
body.li-editorial-site .li-head:has(> .li-nav-desktop) .li-iso path { fill: #0a0a0c !important; }
body.li-editorial-site .li-head:has(> .li-nav-desktop) .li-iso path:is(.st0, .li-iso-primary) { fill: #fff !important; }
body.li-editorial-site .li-head:has(> .li-nav-desktop) .li-iso svg > g:first-of-type > path:last-child {
  stroke: #0a0a0c;
  stroke-width: .625px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
body.li-editorial-site .li-head:has(> .li-nav-desktop) .li-utilities button {
  flex: none;
  aspect-ratio: 1;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--li-header-rule) !important;
  border-radius: 50% !important;
  background: var(--li-header-paper) !important;
  color: var(--li-header-icon) !important;
}
body.li-editorial-site .li-head:has(> .li-nav-desktop) .li-utilities svg {
  color: var(--li-header-icon);
  stroke-width: 2.75 !important;
}
body.li-editorial-site .li-head:has(> .li-nav-desktop) .li-utilities button:hover { background: #fffaf0 !important; }
.li-nav-desktop a, .li-nav-desktop summary { text-decoration: none; }
.li-megamenu > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 9px;
  cursor: pointer;
  list-style: none;
  font-weight: 680;
}
.li-megamenu > summary::-webkit-details-marker { display: none; }
.li-megamenu > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.li-megamenu[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.li-nav-desktop > a:hover,
.li-nav-desktop > a[aria-current],
.li-megamenu > summary:is(:hover, [aria-current]),
.li-megamenu[open] > summary {
  text-decoration: underline;
  text-underline-offset: .38em;
}
.li-megamenu-panel {
  position: absolute;
  z-index: 1;
  inset-block-start: calc(100% - 1px);
  inset-inline: var(--li-header-inset);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 28px;
  max-height: calc(100dvh - var(--li-header) - var(--li-admin, 0px) - 16px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(20px, 2.8vw, 36px);
  border: 1px solid var(--li-header-rule);
  border-radius: 12px;
  background: var(--li-header-paper);
  color: var(--li-header-ink);
  white-space: normal;
}
.li-megamenu-label { margin: 0 0 12px; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.li-megamenu-panel ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.li-megamenu-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.li-shell .li-megamenu-panel ul a {
  display: grid;
  align-content: start;
  height: 100%;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.4;
  text-decoration: none;
}
.li-megamenu-panel ul a:is(:hover, :focus-visible, [aria-current]) { background: #dfd0ec; }
.li-megamenu-panel ul a span { font-weight: 440; }
.li-megamenu-guides { padding-inline-start: 24px; border-inline-start: 1px solid var(--li-header-rule); }
.li-menu-library-link a { display: inline-block; margin-block-start: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: .3em; }

@media (min-width: 960px) {
  .li-head .li-nav-desktop {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.55vw, 24px);
    font-size: .82rem;
    font-weight: 560;
    white-space: nowrap;
  }
  .li-nav-desktop > a { padding-block: 9px; }
  body.li-editorial-site .li-head:has(> .li-nav-desktop) .li-utilities [data-li-menu] { display: none !important; }
  body.li-editorial-site .li-head:has(> .li-nav-desktop) { padding-inline: max(32px, calc((100% - 72rem) / 2)); }
}

@media (max-width: 959px) {
  body.li-editorial-site .li-head:has(> .li-nav-desktop) .li-utilities [data-li-menu] { display: grid !important; }
  body.li-editorial-site:has(.li-head > .li-nav-desktop) .li-shell { position: relative; }
  body.li-editorial-site:has(.li-head > .li-nav-desktop) .li-sidebar.is-open {
    display: block;
    position: absolute;
    inset-block-start: var(--li-header);
    inset-block-end: auto;
    inset-inline-start: 0;
    z-index: 55;
    width: min(330px, 90vw);
    max-height: calc(100dvh - var(--li-header) - var(--li-admin, 0px));
    background: var(--li-header-paper);
    color: var(--li-header-ink);
  }
  body.li-editorial-site:has(.li-head > .li-nav-desktop) .li-sidebar :is(a, summary, button) { color: var(--li-header-ink); }
}
@media (max-width: 820px) {
  body.li-editorial-site .li-head:has(> .li-nav-desktop) .li-iso { width: 52px; padding-inline: 6px; }
}
@media (max-width: 540px) {
  body.li-editorial-site .li-head:has(> .li-nav-desktop) .li-iso { width: 46px; padding: 4px 5px; }
}
@media (max-width: 350px) {
  body.li-editorial-site .li-head:has(> .li-nav-desktop) .li-iso { width: 40px; }
}

@media screen {
  body.li-editorial-site #li-main > .li-reading.li-reading-opens-with-summary {
    padding-block-start: 0;
  }
}

/* Shared reading frame and inline index. Mobile uses the same links as desktop. */
body.li-editorial-site .li-reading.li-reading-with-index {
  --li-reading-gutter: 0px;
  --li-rule-end: 0px;
  display: block;
  box-sizing: border-box;
  width: auto;
  max-width: 72rem;
  margin-inline: max(clamp(20px, 5vw, 72px), calc((100% - 72rem) / 2));
  padding: 0 0 clamp(48px, 7vw, 96px);
}
body.li-editorial-site .li-reading-with-index > .li-article {
  grid-area: auto;
  min-width: 0;
  max-width: none;
  padding-inline: 0;
}
body.li-editorial-site .li-reading-with-index .li-reading-index {
  box-sizing: border-box;
  align-self: start;
  padding: 14px;
  margin-block: 20px;
  border: 1px solid #18131d;
  border-radius: 12px;
  background: #322040;
  color: #f1eade;
  z-index: 2;
  position: relative;
  font-family: inherit;
  min-width: 0;
}
body.li-editorial-site .li-reading-index details {
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
body.li-editorial-site .li-reading-index summary {
  margin: 0;
  padding: 4px 8px;
  cursor: pointer;
  color: #f1eade;
  -webkit-text-fill-color: currentColor;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .055em;
}
body.li-editorial-site .li-reading-index [data-li-toc] {
  display: grid;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}
body.li-editorial-site .li-reading-index li {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}
body.li-editorial-site .li-reading-index li + li { border-block-start: 1px solid #18131d; }
body.li-editorial-site .li-reading-index li::before { content: none; }
body.li-editorial-site .li-reading-index li > a {
  display: flex;
  align-items: center;
  min-height: 38px;
  box-sizing: border-box;
  padding: 7px 8px;
  margin: 0;
  font-size: .65625rem;
  line-height: 1.35;
  color: #f1eade !important;
  -webkit-text-fill-color: currentColor !important;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-decoration: none;
  overflow-wrap: anywhere;
}
body.li-editorial-site .li-reading-index li > a:is([aria-current="true"], [aria-current="location"]) {
  color: #f0d060 !important;
  background: #492d62;
  font-weight: 650;
}
body.li-editorial-site .li-reading-index :is(a,summary):focus-visible {
  outline: 2px solid #f0d060;
  outline-offset: 1px;
}
body.li-editorial-site .li-reading-index li > a:hover {
  background: #492d62;
  text-decoration: underline;
}
@media (min-width: 600px) and (max-width: 1119px) {
  body.li-editorial-site .li-reading-index [data-li-toc] { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  body.li-editorial-site .li-reading-index li:nth-child(2) { border: 0; }
}
@media (min-width: 1120px) {
  body.li-editorial-site .li-reading.li-reading-with-index {
    display: grid;
    grid-template-columns: 212px minmax(0, 1fr);
    column-gap: clamp(22px, 3vw, 44px);
    align-items: start;
  }
  body.li-editorial-site .li-reading-with-index > .li-article { grid-column: 2; grid-row: 1; }
  body.li-editorial-site .li-reading-with-index > .li-reading-index {
    grid-column: 1;
    grid-row: 1;
    margin-block: var(--li-index-offset, 0) 0;
  }
}
body.li-editorial-site #li-main .li-article .li-definition {
  --li-ink: #f1eade;
  --li-muted: #f1eade;
  --li-link: #f0d060;
  --li-v2-text: #f1eade;
  --li-v2-muted: #f1eade;
  position: relative;
  isolation: isolate;
  padding-block: clamp(32px, 5vw, 64px);
  margin-block: 0;
  color: #f1eade !important;
  background: #322040 !important;
  border: 0;
  border-radius: 0;
  border-image: linear-gradient(#322040, #322040) fill 0 // 0 100vw;
}
body.li-editorial-site #li-main .li-article .li-definition :is(p,h2,h3,strong) {
  color: #f1eade !important;
  -webkit-text-fill-color: currentColor !important;
}
body.li-editorial-site #li-main .li-article .li-definition :is(.li-label,.li-section-kicker,a) {
  color: #f0d060 !important;
  -webkit-text-fill-color: currentColor !important;
}
body.li-editorial-site #li-main .li-article .li-definition::after { content:none; }
body.li-editorial-site #li-main :is(.li-ai-assist button.li-ai-shortcut, button[data-li-ai-brand-return]) {
  background: #322040 !important;
  border-color: #322040 !important;
  color: #f0d060 !important;
  -webkit-text-fill-color: currentColor !important;
  border-radius: 8px;
}
body.li-editorial-site #li-main button[data-li-ai-brand-return] {
  padding: 12px 22px;
  min-height: 44px;
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
}
body.li-editorial-site #li-main .li-library-return > a.li-button {
  background: #f0d060 !important;
  color: #18131d !important;
  border-color: #f0d060 !important;
}
body.li-editorial-site #li-main .li-library-return::before,
body.li-editorial-site #li-main .li-library-return::after { content: none; }
body.li-editorial-site #li-main .li-article details.li-faq > summary {
  position: relative;
  padding-inline-end: 50px;
  list-style: none;
}
body.li-editorial-site #li-main .li-article details.li-faq > summary::after {
  content: '+';
  display: grid;
  place-items: center;
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: 50%;
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  transform: translateY(-50%);
  border: 1px solid #492d62;
  border-radius: 50%;
  background: #9472b5;
  color: #18131d;
  -webkit-text-fill-color: currentColor;
  font: 600 22px/1 sans-serif;
}
body.li-editorial-site #li-main .li-article details.li-faq[open] > summary::after {
  content: '−';
  background: #492d62;
  color: #f0d060;
}
@media print {
  body.li-editorial-site .li-reading.li-reading-with-index { display: block; margin: 0; padding: 0; }
  .li-reading-index, [data-li-ai-brand-return] { display: none !important; }
}

/* Each Library collection carries its original editorial illustration. */
body.li-editorial-site .li-figura-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .75fr);
  align-items: end;
  gap: clamp(24px, 6vw, 88px);
  margin-block-end: clamp(20px, 4vw, 48px);
}
body.li-editorial-site .li-figura-intro > .li-lead { margin: 0; }
body.li-editorial-site .li-figura-area {
  display: block;
  justify-self: end;
  width: min(100%, 365px);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #211925;
}
body.li-editorial-site .li-figura-intro > .li-figura-area:only-child { grid-column: 2; }
.li-figura-dibujo { display: block; width: 100%; aspect-ratio: 16 / 9; }
.li-figura-dibujo > svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.li-figura-marca .li-figura-dibujo,
.li-figura-estrategia .li-figura-dibujo {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  touch-action: pan-y pinch-zoom;
}
.li-figura-marca .li-figura-dibujo {
  aspect-ratio: auto;
  gap: clamp(7px, 1.2vw, 16px) 5.7%;
}
.li-figura-marca .li-figura-pieza { aspect-ratio: 1; }
.li-figura-pieza::before {
  content: "";
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  background: currentColor;
}
.li-figura-marca .li-figura-pieza::before { border-radius: 50%; }
.li-figura-marca .li-figura-pieza:nth-child(9)::before {
  border: 1px solid currentColor;
  border-radius: 0;
  background: #F0D060;
}
@media (max-width: 760px) {
  body.li-editorial-site .li-figura-intro { grid-template-columns: minmax(0, 1fr); }
  body.li-editorial-site .li-figura-area { justify-self: start; width: min(100%, 285px); }
  body.li-editorial-site .li-figura-intro > .li-figura-area:only-child { grid-column: auto; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .li-figura-visible .li-figura-pieza {
    animation: li-figura-entrada 1.5s cubic-bezier(.45,0,.55,1) both;
    animation-delay: calc(var(--li-orden) * 95ms);
  }
  .li-figura-visible .li-figura-dibujo > svg {
    animation: li-figura-entrada 1.5s cubic-bezier(.45,0,.55,1) both;
  }
  .li-figura-pieza::before { transition: transform .3s cubic-bezier(.45,0,.55,1); }
  .li-figura-pieza.li-figura-activa::before { transform: scale(.84); }
  @keyframes li-figura-entrada {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(.89); }
  }
}
@media (forced-colors: active) {
  .li-figura-pieza::before { background: CanvasText; }
  .li-figura-marca .li-figura-pieza:nth-child(9)::before { background: Highlight; border-color: CanvasText; }
}

@media screen {
  body.li-library-reading .li-library-document > :is(.li-section, .li-library-continuation)::before {
    height: 1px;
    border: 0;
    background: var(--li-line);
    box-shadow: 0 0 0 100vmax var(--li-line);
    clip-path: inset(0 -100vmax);
  }
}

@media screen {
  /* The Library's summary, navigation bands and reading sections meet edge to edge. */
  body.li-library-reading #li-main .li-library-document > .li-definition + .li-section::before,
  body.li-library-reading #li-main .li-library-document > .li-definition + :is(.li-reading-index, .li-mobile-toc, hr.li-rule) + .li-section::before,
  body.li-library-reading #li-main .li-library-document > .li-definition + :is(.li-reading-index, .li-mobile-toc) + hr.li-rule + .li-section::before,
  body.li-library-reading #li-main .li-library-document > .li-section:not([aria-labelledby=subhubs], [aria-labelledby=modelo-minimo], :has(> .lh-routes)) + .li-section:is([aria-labelledby=subhubs], [aria-labelledby=modelo-minimo], :has(> .lh-routes))::before,
  body.li-library-reading #li-main .li-library-document > .li-section:is([aria-labelledby=subhubs], [aria-labelledby=modelo-minimo], :has(> .lh-routes)) + .li-section:not([aria-labelledby=subhubs], [aria-labelledby=modelo-minimo], :has(> .lh-routes))::before {
    content: none;
  }

  body.single-que-es #li-main .gl-content > :is(.li-divider, .li-glossary-section-heading)::before,
  body.single-que-es #li-main .li-migrated-content.gl-page > :is(h2, .li-divider, .li-glossary-section-heading)::before {
    block-size: 1px;
    border: 0;
    background: var(--li-line);
    box-shadow: 0 0 0 100vmax var(--li-line);
    clip-path: inset(0 -100vmax);
  }

  /* A different background already marks the end of the glossary summary. */
  body.single-que-es #li-main .gl-wrap > .li-definition ~ .gl-content > :is(.li-divider, .li-glossary-section-heading):first-child::before,
  body.single-que-es #li-main .li-migrated-content.gl-page > .li-definition + :is(h2, .li-divider, .li-glossary-section-heading)::before,
  body.single-que-es #li-main .li-migrated-content.gl-page > .li-definition + :is(.li-reading-index, .li-mobile-toc) + :is(h2, .li-divider, .li-glossary-section-heading)::before {
    content: none;
  }
}
@media screen {
  .li-reading-end-action:has(button:not([hidden])) {
    margin-block: 2rem;
  }
  #li-article .li-blog-return:has([data-li-ai-brand-return]) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
  }

  /* The legacy hub paints an extra canvas behind the route grid. The section owns the full-width band. */
  body.li-editorial-site #li-main .li-section:is([aria-labelledby=subhubs], [aria-labelledby=modelo-minimo], :has(> .lh-routes)) {
    background-color: var(--prueba-violeta);
  }

  body.li-editorial-site #li-main .li-section:is([aria-labelledby=subhubs], [aria-labelledby=modelo-minimo], :has(> .lh-routes))::after {
    content: none;
    background: var(--prueba-violeta);
  }

  body.li-editorial-site #li-main .li-section:is([aria-labelledby=subhubs], [aria-labelledby=modelo-minimo], :has(> .lh-routes)) :is(.lh-routes, .lh-model) {
    background: transparent;
  }

  /* These native catalogues put the title inside the content wrapper. Their breadcrumb is outside it. */
  body.li-editorial-site #li-main > .li-glossary-index {
    padding-inline: var(--prueba-margen-grilla);
    padding-block-start: 0;
  }

  body.li-editorial-site:is(.li-atlas-index-screen, .page-id-11392, .page-id-11395) #li-main > .li-reading:not(.li-reading-with-index) {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding-inline: var(--prueba-margen-grilla);
    padding-block-start: 0;
  }

  body.li-editorial-site #li-main .li-reading:has(.atlas-hero, .li-privacy-header) {
    padding-block-start: 0;
  }

  /* The old divider extended into the former empty space above the home header. */
  body.li-editorial-site #li-main .li-home-hero::after {
    inset-block-start: 0;
  }

  body.li-editorial-site #li-main .li-privacy-header {
    --li-ink: var(--prueba-tinta);
    --li-muted: var(--prueba-tinta);
    --li-link: var(--prueba-tinta);
    --li-line: var(--prueba-regla);
    --li-v2-text: var(--prueba-tinta);
    --li-v2-muted: var(--prueba-tinta);
    --li-v2-link: var(--prueba-tinta);
    color: var(--prueba-tinta);
    background: var(--prueba-violeta);
    border-image: linear-gradient(var(--prueba-violeta) 0 0) fill 0 // 0 100vmax;
    padding-block: clamp(44px, 6vw, 88px) clamp(36px, 4.5vw, 68px);
    color-scheme: light;
  }

  body.li-editorial-site #li-main .li-privacy-header h1 {
    font-size: clamp(2.55rem, 6.05vw, 6.15rem) !important;
    font-weight: 800 !important;
    letter-spacing: -.065em !important;
    line-height: .98 !important;
    text-wrap: balance;
  }

  body.li-editorial-site #li-main .li-reading-with-index:has(.li-reading-index) .li-privacy-mobile-index {
    display: none;
  }

  body.li-editorial-site #li-main .li-privacy-header > .li-privacy-summary {
    margin-block-end: 0;
  }
}

@media screen and (max-width: 680px) {
  body.li-editorial-site #li-main .li-privacy-header h1 {
    font-size: clamp(2.35rem, 9.5vw, 4rem) !important;
    line-height: 1 !important;
  }
}

@media screen {
  body.li-editorial-site #li-assistant-launcher,
  body.li-editorial-site #li-main .li-ai-assist button.li-ai-switch,
  body.li-editorial-site .li-footer-capture button {
    background: var(--prueba-tinta) !important;
    border-color: var(--prueba-tinta) !important;
    color: var(--prueba-papel) !important;
    -webkit-text-fill-color: currentColor !important;
  }
  body.li-editorial-site #li-assistant-launcher svg,
  body.li-editorial-site #li-main .li-ai-assist button.li-ai-switch svg {
    color: var(--prueba-amarillo);
  }
  body.li-editorial-site .li-assistant-dock button { box-shadow: none !important; }
  body.li-editorial-site .li-assistant-dock:not([hidden]) { filter: none; }
  body.li-editorial-site .li-back-to-top,
  body.li-editorial-site [data-li-assistant-hide] {
    --li-button-radius: 50%;
    border-radius: 50% !important;
    aspect-ratio: 1;
  }
}
