:root {
  --global-header-height: 68px;
}

html {
  scroll-padding-top: calc(var(--global-header-height) + 18px);
}

body {
  padding-top: var(--global-header-height);
}

[id] {
  scroll-margin-top: calc(var(--global-header-height) + 18px);
}

.global-site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 2147483500;
  min-height: var(--global-header-height);
  border-bottom: 1px solid rgba(252, 245, 241, 0.1);
  background: rgba(18, 20, 21, 0.9);
  backdrop-filter: blur(18px);
}

.global-nav {
  width: min(1220px, calc(100% - 28px));
  min-height: var(--global-header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.global-brand {
  flex: 0 0 auto;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
  font-size: 0.96rem;
}

.global-brand::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 9px;
  vertical-align: -5px;
  background: url("/assets/pablo-escobar-isotipo.png") center / contain no-repeat;
}

.global-nav-links {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  padding: 8px 0;
}

.global-nav-links::-webkit-scrollbar { display: none; }

.global-nav-links a {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(252, 245, 241, 0.75);
  font-weight: 750;
  font-size: 0.82rem;
  text-decoration: none;
}

.global-nav-links a:hover,
.global-nav-links a:focus-visible,
.global-nav-links a[aria-current="page"] {
  color: #fcf5f1;
  border-color: rgba(175, 142, 119, 0.34);
  background: rgba(252, 245, 241, 0.08);
  outline: none;
}

.global-nav-links a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 #af8e77;
}

.global-menu-item { position: relative; flex: 0 0 auto; }
.global-menu-parent { display: inline-flex; align-items: center; gap: 1px; }
.global-menu-parent > a { flex: 1 1 auto; }
.global-menu-caret { min-width: 31px; padding-inline: 7px; justify-content: center; }
.global-submenu { position: absolute; z-index: 30; top: calc(100% - 4px); right: 0; display: none; min-width: 170px; padding: 7px; border: 1px solid rgba(175, 142, 119, 0.34); border-radius: 10px; background: #201d1e; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.global-menu-item:hover > .global-submenu, .global-menu-item:focus-within > .global-submenu, .global-menu-item.is-open > .global-submenu { display: grid; }
.global-submenu a { width: 100%; }
.global-submenu .global-menu-item { width: 100%; }
.global-submenu .global-menu-item > .global-submenu { top: 0; left: calc(100% + 6px); right: auto; }
.global-menu-trigger, .global-menu-label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 11px; border: 1px solid transparent; border-radius: 9px; color: rgba(252,245,241,.82); background: transparent; font: inherit; font-size: .84rem; font-weight: 760; white-space: nowrap; }
.global-menu-trigger { cursor: pointer; }
.global-menu-trigger:hover, .global-menu-trigger:focus-visible { border-color: rgba(175,142,119,.34); color: #fcf5f1; background: rgba(175,142,119,.12); outline: none; }

.global-nav-separator {
  flex: 0 0 1px;
  width: 1px;
  height: 26px;
  margin: 0 4px;
  background: rgba(252, 245, 241, 0.14);
}

.skip-link.global-skip-link {
  position: fixed;
  top: -64px;
  left: 12px;
  z-index: 1100;
  padding: 11px 15px;
  border-radius: 0 0 10px 10px;
  background: #fcf5f1;
  color: #121415;
  font-weight: 800;
  text-decoration: none;
  transition: top 160ms ease;
}

.skip-link.global-skip-link:focus {
  top: 0;
}

.page-home h1,
.page-home .hero-subtitle,
.page-home .seo-heading,
.page-home .panel-inner > .eyebrow,
.page-biography .hero h1,
.page-biography .hero-subtitle,
.page-biography .section-head,
.page-presence .hero h1,
.page-presence .hero-lead,
.page-presence .section-head {
  text-align: center;
}

.page-home .panel-inner > .eyebrow,
.page-home .seo-heading,
.page-biography .section-head p {
  margin-left: auto;
  margin-right: auto;
}

.page-presence .filters-wrap {
  top: var(--global-header-height);
  z-index: 900;
}

.page-biography .section-head {
  display: block;
}

.page-biography .section-head p {
  margin-top: 8px;
}

.discography-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  margin-bottom: 20px;
}

.discography-search label {
  display: block;
  margin-bottom: 7px;
  color: rgba(252, 245, 241, 0.72);
  font-size: 0.86rem;
  font-weight: 750;
}

.discography-search input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(252, 245, 241, 0.12);
  border-radius: 14px;
  color: #fcf5f1;
  background: rgba(252, 245, 241, 0.04);
  font: inherit;
}

.discography-filter-group,
.discography-view-group {
  align-self: end;
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(252, 245, 241, 0.1);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.14);
}

.discography-control {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: rgba(252, 245, 241, 0.74);
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.discography-control:hover,
.discography-control:focus-visible,
.discography-control[aria-pressed="true"] {
  color: #fcf5f1;
  border-color: rgba(175, 142, 119, 0.34);
  background: rgba(175, 142, 119, 0.16);
  outline: none;
}

.discography-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.discography-results[data-view="list"] {
  grid-template-columns: 1fr;
}

.discography-results[data-view="list"] .release-cover {
  display: none;
}

.discography-item {
  min-width: 0;
  border: 1px solid rgba(252, 245, 241, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(252, 245, 241, 0.04), rgba(252, 245, 241, 0.018));
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.discography-results[data-view="cards"] .discography-item {
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.discography-item[hidden] {
  display: none;
}

.release-details,
.release-summary {
  width: 100%;
}

.release-summary,
.single-open-button {
  min-height: 116px;
  padding: 20px;
  display: flex;
  align-items: center;
  color: #fcf5f1;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  list-style: none;
}

.release-summary::-webkit-details-marker {
  display: none;
}

.release-summary::after {
  content: "+";
  margin-left: auto;
  color: #af8e77;
  font-size: 1.6rem;
  font-weight: 600;
}

.discography-results[data-view="cards"] .release-summary,
.discography-results[data-view="cards"] .single-open-button {
  min-height: 88px;
  padding: 14px;
}

.discography-results[data-view="cards"] .release-summary::after {
  font-size: 1.25rem;
}

.discography-results[data-view="cards"] .release-copy {
  gap: 3px;
}

.discography-results[data-view="cards"] .release-copy strong {
  font-size: 1rem;
  line-height: 1.22;
}

.discography-results[data-view="cards"] .release-copy > span:last-child {
  font-size: 0.79rem;
}

.discography-results[data-view="cards"] .release-kind {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.release-details[open] .release-summary::after {
  content: "−";
}

.release-summary:hover,
.release-summary:focus-visible,
.single-open-button:hover,
.single-open-button:focus-visible {
  background: rgba(252, 245, 241, 0.05);
  outline: 2px solid rgba(175, 142, 119, 0.48);
  outline-offset: -2px;
}

.release-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.release-copy strong {
  font-size: 1.12rem;
  line-height: 1.24;
}

.release-copy > span:last-child,
.release-kind {
  color: rgba(252, 245, 241, 0.68);
  font-size: 0.88rem;
}

.release-kind {
  color: #af8e77;
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.release-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.release-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discography-results[data-view="cards"] .track-list {
  gap: 6px;
  padding: 0 10px 12px;
}

.discography-results[data-view="cards"] .track-row {
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.release-cover[data-cover-status="pending"] img {
  opacity: 0.78;
}

.track-list {
  margin: 0;
  padding: 0 16px 18px;
  display: grid;
  gap: 8px;
  list-style: none;
}

.track-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid rgba(252, 245, 241, 0.07);
  border-radius: 12px;
  background: rgba(252, 245, 241, 0.03);
}

.track-number {
  color: rgba(252, 245, 241, 0.54);
  font-variant-numeric: tabular-nums;
}

.track-title {
  min-width: 0;
}

.track-title-button {
  min-width: 0;
  padding: 7px 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.track-title-button:hover,
.track-title-button:focus-visible {
  color: #d6b9a5;
  outline: 2px solid rgba(175, 142, 119, 0.55);
  outline-offset: 3px;
}

.track-menu-button {
  min-width: 42px;
  min-height: 44px;
  border: 1px solid rgba(252, 245, 241, 0.1);
  border-radius: 12px;
  color: #fcf5f1;
  background: rgba(252, 245, 241, 0.04);
  cursor: pointer;
  font-weight: 900;
}

.track-menu-button:hover,
.track-menu-button:focus-visible {
  border-color: rgba(175, 142, 119, 0.42);
  background: rgba(175, 142, 119, 0.13);
  outline: none;
}

.track-authors,
.track-links {
  grid-column: 2 / -1;
  color: rgba(252, 245, 241, 0.65);
  font-size: 0.84rem;
}

.track-links,
.track-links-static {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.track-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.track-authors-static,
.track-links-static {
  margin: 0;
  padding: 0 20px 16px;
  color: rgba(252, 245, 241, 0.68);
  font-size: 0.86rem;
}

.discography-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px;
  border: 1px dashed rgba(252, 245, 241, 0.18);
  border-radius: 16px;
  color: rgba(252, 245, 241, 0.72);
  text-align: center;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reference-card a {
  min-height: 132px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid rgba(252, 245, 241, 0.08);
  border-radius: 18px;
  background: rgba(252, 245, 241, 0.03);
  text-decoration: none;
}

.reference-card a:hover,
.reference-card a:focus-visible {
  border-color: rgba(175, 142, 119, 0.34);
  background: rgba(252, 245, 241, 0.06);
  outline: none;
}

.reference-card span {
  color: rgba(252, 245, 241, 0.66);
  font-size: 0.88rem;
}

.reference-action {
  margin-top: auto;
  color: #fcf5f1 !important;
  font-weight: 800;
}

.reference-more {
  min-height: 44px;
  margin: 18px auto 0;
  padding: 11px 18px;
  display: block;
  border: 1px solid rgba(175, 142, 119, 0.34);
  border-radius: 999px;
  color: #fcf5f1;
  background: rgba(175, 142, 119, 0.12);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.reference-more:hover,
.reference-more:focus-visible {
  border-color: rgba(175, 142, 119, 0.72);
  background: rgba(175, 142, 119, 0.2);
  outline: none;
}

.reference-more[hidden] {
  display: none;
}

.track-modal {
  width: min(560px, calc(100% - 28px));
  max-height: min(82vh, 720px);
  padding: 0;
  border: 1px solid rgba(175, 142, 119, 0.34);
  border-radius: 24px;
  color: #fcf5f1;
  background: #272425;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.track-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.track-modal-inner {
  padding: 24px;
}

.track-modal-close {
  float: right;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(252, 245, 241, 0.12);
  border-radius: 50%;
  color: #fcf5f1;
  background: rgba(252, 245, 241, 0.05);
  cursor: pointer;
  font-size: 1.35rem;
}

.track-modal h2 {
  margin: 8px 56px 8px 0;
  text-align: left;
  text-transform: none;
}

.track-modal-meta {
  margin: 0 0 10px;
  color: rgba(252, 245, 241, 0.68);
}

.track-modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.track-modal-links a {
  min-height: 44px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(175, 142, 119, 0.34);
  border-radius: 12px;
  background: rgba(175, 142, 119, 0.12);
  font-weight: 800;
}

.track-modal-empty {
  margin: 18px 0 0;
  color: rgba(252, 245, 241, 0.62);
  font-size: 0.9rem;
}

@media (max-width: 1040px) {
  .discography-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .global-nav {
    gap: 10px;
  }

  .global-brand {
    font-size: 0.84rem;
  }

  .discography-controls {
    grid-template-columns: 1fr;
  }

  .discography-filter-group,
  .discography-view-group {
    align-self: auto;
  }

  .discography-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --global-header-height: 62px;
  }

  .global-nav {
    width: calc(100% - 18px);
  }

  .global-brand {
    font-size: 0;
  }

  .global-brand::before {
    width: 20px;
    height: 20px;
    margin-right: 0;
    vertical-align: middle;
  }

  .global-nav-links a {
    min-height: 44px;
    padding: 9px 12px;
  }

  .global-nav-separator {
    display: none;
  }

  .discography-results,
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .discography-filter-group,
  .discography-view-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .release-summary,
  .single-open-button {
    min-height: 104px;
    padding: 17px;
  }

  .track-modal-inner {
    padding: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-site-header,
  .track-modal::backdrop {
    backdrop-filter: none;
  }
}

/* Biblioteca is the visual reference for the public site. Keep page content and
   page-specific layouts intact while sharing its type, surfaces and palette. */
:root {
  --editorial-bg: #181416;
  --editorial-surface: #211c1e;
  --editorial-text: #fcf5f1;
  --editorial-border: rgba(175, 142, 119, 0.28);
  --editorial-muted: rgba(252, 245, 241, 0.68);
}

.global-site-header {
  border-bottom-color: var(--editorial-border);
  background: rgba(18, 17, 18, 0.94);
}

.global-brand,
.global-nav-links a,
.global-menu-trigger,
.global-menu-label {
  font-family: Georgia, "Times New Roman", serif;
}

.global-nav-links a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 #d6b9a5;
}

body.page-home,
body.page-biography,
body.page-presence,
body.page-wikipedia {
  color: var(--editorial-text);
  background:
    radial-gradient(circle at 12% 0%, rgba(113, 61, 49, 0.16), transparent 35rem),
    radial-gradient(circle at 92% 92%, rgba(35, 91, 60, 0.09), transparent 32rem),
    var(--editorial-bg);
}

.page-home .panel,
.page-home .support-panel,
.page-home .project-panel,
.page-biography .panel,
.page-biography .project,
.page-presence .project-card {
  border-color: var(--editorial-border);
  background: linear-gradient(140deg, rgba(99, 55, 43, 0.14), var(--editorial-surface) 72%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.page-home .panel-inner h1,
.page-biography .hero h1,
.page-presence .hero h1,
.page-wikipedia .article-header h1 {
  color: var(--editorial-text);
  background: none;
  -webkit-text-fill-color: currentColor;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
  overflow-wrap: break-word;
}

.page-home .section-head h2,
.page-biography .section-head h2,
.page-presence .section-head h2,
.page-wikipedia .article-section h2 {
  color: var(--editorial-text);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
}

.page-home .spotify-shell {
  border-color: var(--editorial-border);
  background: linear-gradient(140deg, #1d3627, var(--editorial-surface) 84%);
}

.page-home .spotify-frame {
  border-color: var(--editorial-border);
  background: #151719;
}

.page-presence .hero {
  border-color: var(--editorial-border);
  background: linear-gradient(115deg, rgba(99, 55, 43, 0.32), rgba(33, 28, 30, 0.96) 58%);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
}

.page-wikipedia .article,
.page-wikipedia .toc,
.page-wikipedia .infobox {
  border-color: var(--editorial-border);
}

/* The Wikipedia page owns its light/dark palette. The shared editorial theme
   must yield to its light palette when light is selected explicitly or by OS. */
:root[data-theme="light"] body.page-wikipedia {
  color: var(--text);
  background: var(--page-bg);
}

:root[data-theme="light"] .page-wikipedia .article-header h1,
:root[data-theme="light"] .page-wikipedia .article-section h2 {
  color: var(--text);
  -webkit-text-fill-color: currentColor;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) body.page-wikipedia {
    color: var(--text);
    background: var(--page-bg);
  }

  :root:not([data-theme]) .page-wikipedia .article-header h1,
  :root:not([data-theme]) .page-wikipedia .article-section h2 {
    color: var(--text);
    -webkit-text-fill-color: currentColor;
  }
}

@media (max-width: 640px) {
  .page-home .panel-inner h1,
  .page-biography .hero h1,
  .page-presence .hero h1 {
    font-size: clamp(2.8rem, 11vw, 4rem);
  }
}

/* Shared search: the DVD magnifier identity on every public search surface. */
.music-search-toggle { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 30; display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #ac8a73; border-radius: 50%; color: #f5dfca; background: #362a25; box-shadow: 0 5px 22px #0008; cursor: pointer; }
.music-search-panel { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(88px, calc(env(safe-area-inset-bottom) + 68px)); z-index: 30; width: min(360px, calc(100vw - 40px)); box-sizing: border-box; padding: 25px 20px 20px; border: 1px solid #8d6e59; border-radius: 12px; color: #f4e8df; background: #272021; box-shadow: 0 12px 36px #0009; transform: translateX(35px); opacity: 0; transition: transform 180ms ease, opacity 180ms ease; }
.music-search-panel[hidden] { display: none; }
.music-search-panel.is-open { transform: none; opacity: 1; animation: music-search-in 180ms ease; }
.music-search-panel h2 { margin: 0 20px 20px 0; font-size: 1.05rem; color: #f4e8df; }
.music-search-panel .library-search { width: 100%; flex-basis: auto; display: block; }
.music-search-panel label { font-size: 12px; color: #d8c4b4; }
.music-search-panel input[type="search"] { box-sizing: border-box; display: block; width: 100%; margin-top: 7px; padding: 10px; border: 1px solid #8d6e59; border-radius: 5px; background: #191614; color: #f4e8df; }
.music-search-close { position: absolute; right: 7px; top: 5px; width: 36px; height: 36px; border: 0; color: #ecd0ba; background: transparent; font-size: 26px; cursor: pointer; }
.music-search-toggle:focus-visible, .music-search-panel :focus-visible { outline: 3px solid #efc78d; outline-offset: 3px; }
@keyframes music-search-in { from { transform: translateX(35px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .music-search-panel { transition: none; animation: none; } }

.global-mobile-toggle { display: none; }
@media (max-width: 640px) {
  .page-biography .hero-visual .card-b { right: 12px; }
}
@media (max-width: 760px) {
  .global-nav { position: relative; justify-content: space-between; }
  .global-brand { font-size: .9rem; }
  .global-brand::before { margin-right: 8px; }
  .global-mobile-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-left: auto; border: 1px solid rgba(175,142,119,.34); border-radius: 12px; background: transparent; color: #fcf5f1; cursor: pointer; }
  .global-mobile-toggle span { width: 20px; height: 2px; background: currentColor; }
  .global-mobile-toggle:focus-visible { outline: 2px solid #c4a38c; outline-offset: 3px; }
  .js .global-nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 10px; max-height: calc(100dvh - var(--global-header-height) - 20px); overflow-y: auto; border: 1px solid rgba(175,142,119,.34); border-radius: 0 0 16px 16px; background: #181416; box-shadow: 0 14px 30px rgba(0,0,0,.35); align-items: stretch; flex-direction: column; }
  .js .mobile-menu-open .global-nav-links { display: flex; }
  .global-nav-links > a, .global-menu-item { width: 100%; }
  .global-nav-links a { justify-content: flex-start; }
  .global-menu-parent { width: 100%; }
  .global-submenu, .global-submenu .global-menu-item > .global-submenu { position: static; margin-left: 12px; min-width: 0; box-shadow: none; }
  .global-menu-item:hover > .global-submenu, .global-menu-item:focus-within > .global-submenu { display: none; }
  .global-menu-item.is-open > .global-submenu { display: grid; }
}
