@font-face {
  font-family: "Crimson Pro";
  src: url("fuentes/crimson-pro-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fuentes/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: Heebo;
  src: url("fuentes/heebo-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  /* Biobío Global · «Cuenca»: tinta río, río, agua, bosque y ámbar madera. */
  --biobio-ink: #07313c;
  --biobio-blue: #0a6a86;
  --biobio-green: #0b7a6e;
  --biobio-aqua: #12a0c9;
  --biobio-forest: #1fb58f;
  --biobio-amber: #c2611f;
  --biobio-mint: #eaf6f3;
  --biobio-mist: #f3f9fa;
  --biobio-copy: #33444f;
  --biobio-muted: #4b5d68;
  --biobio-line: #cde2df;
  --biobio-curve: 24px;
  --biobio-title: "Schibsted Grotesk", Heebo, system-ui, sans-serif;
  --biobio-sans: Heebo, system-ui, sans-serif;
  --biobio-grad: linear-gradient(135deg, #1fb58f 0%, #12a0c9 100%);
  --biobio-surface: linear-gradient(145deg, #f8fcfc, var(--biobio-mint));
  --biobio-shadow: 0 18px 38px -28px rgb(7 49 60 / 50%);
}

body #app {
  --body: var(--biobio-sans);
  --heading: var(--biobio-title);
  font-family: var(--biobio-sans);
  color: var(--biobio-copy);
  accent-color: var(--biobio-green);
}

body.expediente50 {
  --font-text: var(--biobio-sans);
  --text-strong: var(--biobio-ink);
  --text-body: var(--biobio-copy);
  --text-muted: var(--biobio-muted);
  --color-link: var(--biobio-blue);
  --color-action: var(--biobio-green);
  --color-focus: var(--biobio-blue);
}

#app .entrance39,
#app .bb50 {
  --ink: var(--biobio-ink);
  --blue: var(--biobio-blue);
  --green: var(--biobio-green);
}

#app .entrance39 :is(h1, h2, h3),
body.expediente50 #app .bb50 :is(h1, h2, h3),
#app .regional-footer h2 {
  font-family: var(--biobio-title);
  font-weight: 600;
  letter-spacing: -.022em;
  text-wrap: balance;
}

#app :is(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--biobio-blue);
  outline-offset: 3px;
}

#app .site-header {
  width: min(calc(100% - 24px), 1328px);
  margin: 12px auto 16px;
  padding: 4px 8px 8px;
  border: 1px solid var(--biobio-line);
  border-radius: 28px;
  color: var(--biobio-ink);
  background: #fff;
  box-shadow: var(--biobio-shadow);
}

#app:has(.gateway38) .site-header {
  padding-bottom: 4px;
  border-radius: 999px;
}

#app .site-header .top {
  min-height: 66px;
  padding: 6px clamp(9px, 1.65vw, 22px);
  gap: 8px;
}

#app .site-header .brand {
  font: 600 clamp(1.9rem, 2.6vw, 2.7rem)/.9 var(--biobio-title);
  color: var(--biobio-ink);
}

#app .site-header .brand small {
  margin-top: 5px;
  font: 400 clamp(.625rem, 1.1vw, .76rem)/1.3 var(--biobio-sans);
  color: var(--biobio-muted);
}

#app .site-header .language-switch {
  flex: none;
  gap: 3px;
}

#app .site-header .language-switch a {
  display: grid;
  place-items: center;
  min-width: 35px;
  min-height: 38px;
  padding: 4px;
  color: var(--biobio-ink);
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--biobio-mist);
}

#app .site-header .language-switch a[aria-current] {
  color: #fff;
  background: var(--biobio-ink);
}

#app .site-header #primary-navigation {
  background: var(--biobio-mist);
  border: 0;
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

#app .site-header #primary-navigation a,
#app .site-header .menu33-toggle {
  min-height: 44px;
  color: var(--biobio-ink);
  background: transparent;
  border: 0;
  border-radius: 17px;
  font: 500 .91rem/1.3 var(--biobio-sans);
}

#app .site-header #primary-navigation a {
  padding: 8px 12px;
}

#app .site-header #primary-navigation a:hover,
#app .site-header .menu33-toggle:hover {
  background: var(--biobio-mint);
  color: var(--biobio-green);
}

#app .site-header #primary-navigation a[aria-current],
#app .site-header #primary-navigation a.active {
  color: var(--biobio-green);
  background: var(--biobio-mint);
  box-shadow: inset 0 -2px var(--biobio-green);
  font-weight: 700;
}

#app .site-header .menu33-toggle {
  background: var(--biobio-mist);
}

#app .entrance39 .eyebrow,
#app .bb50 .eyebrow,
#app .regional-footer .footer-label {
  color: var(--biobio-green);
  letter-spacing: 0;
  text-transform: none;
  font-size: .875rem;
}

#app .v39-choice-heading .eyebrow,
#app .v39-section-heading .eyebrow,
#app .v39-organizations .eyebrow,
#app .v39-closing .eyebrow {
  display: none;
}

#app .v39-choice-heading {
  justify-content: flex-start;
}

#app .entrance39 .v39-cover {
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .97fr) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--biobio-line);
  border-radius: clamp(18px, 2.6vw, 38px);
  background:
    linear-gradient(90deg, rgb(248 252 252 / 56%), rgb(228 248 240 / 35%)),
    url("curvas.svg") left center / auto 135% no-repeat,
    var(--biobio-surface);
  box-shadow: var(--biobio-shadow);
}

#app .entrance39 .v39-cover::after {
  content: none;
}

#app .entrance39 .v39-cover-copy {
  position: relative;
  z-index: 1;
  justify-content: center;
  max-width: none;
  min-height: 0;
  padding: clamp(26px, 4.5vw, 67px);
}

#app .entrance39 .v39-cover h1 {
  max-width: 17ch;
  margin-bottom: 20px;
  color: var(--biobio-ink);
  font-size: clamp(2.45rem, 4.45vw, 4.5rem);
  line-height: .98;
  text-wrap: initial;
}

#app .entrance39 .v39-cover em {
  color: var(--biobio-green);
}

#app .entrance39 .v39-cover-copy > p:not(.eyebrow) {
  max-width: 43ch;
  margin-bottom: 22px;
  color: var(--biobio-copy);
  font-size: clamp(1.04rem, 1.35vw, 1.16rem);
  line-height: 1.55;
}

#app .entrance39 .v39-cover .v39-geography {
  color: var(--biobio-green);
  letter-spacing: 0;
}

#app .entrance39 .v39-cover .v39-photo {
  position: relative;
  inset: auto;
  z-index: auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: auto;
  margin: 12px;
  border-radius: 22px;
  background: #fff;
}

#app .entrance39 .v39-cover .v39-photo img {
  position: absolute;
  inset: 0;
  z-index: 0;
  object-position: center 58%;
}

#app .entrance39 .v39-cover figcaption {
  position: relative;
  z-index: 1;
  grid-row: 2;
  color: var(--biobio-copy);
  background: #fff;
  font-size: .72rem;
  text-align: left;
  text-shadow: none;
}

#app .entrance39 .v39-cover figcaption a {
  color: var(--biobio-blue);
}

#app .entrance39 .v39-button,
body.expediente50 #app .bb50 :is(.bb-btn.primary, .bb-btn.secondary) {
  border-radius: 999px;
}

#app .entrance39 .v39-cover a:not(figcaption a) {
  border-radius: 999px;
}

#app .entrance39 .v39-cover a:not(figcaption a):hover,
#app .entrance39 .v39-cover a:not(figcaption a):focus-visible {
  box-shadow: 0 4px 14px -5px rgb(0 34 83 / 45%);
}

#app .entrance39 .orientation45 h2 {
  font-size: clamp(1.9rem, 3vw, 2.85rem);
  line-height: 1;
}

#app .entrance39 .v39-choice,
#app .entrance39 .v39-card {
  border-color: var(--biobio-line);
  border-radius: var(--biobio-curve);
  background: #fff;
}

#app .entrance39 .v39-choice.regional,
#app .entrance39 .v39-closing {
  background: var(--biobio-surface);
  color: var(--biobio-copy);
}

#app .entrance39 .v39-closing h2 {
  color: var(--biobio-ink);
}

#app .v39-hub-hero .v39-photo {
  border-radius: var(--biobio-curve);
}

#app .v39-hub-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: .98;
}

#app .v39-hub-hero .v39-lead {
  color: var(--biobio-copy);
}

body.expediente50 #app :is(.bb-context, .bb-localnav, .bb-stages-m) {
  background: var(--biobio-mist);
  border-color: var(--biobio-line);
}

body.expediente50 #app .bb-localnav ul {
  mask-image: none;
}

body.expediente50 #app .bb-localnav li {
  padding-block: 4px;
}

body.expediente50 #app .bb-localnav a[aria-current=true] {
  border-bottom-color: var(--biobio-green);
}

body.expediente50 #app .bb50-directory .directory-heading {
  margin-bottom: clamp(16px, 2vw, 30px);
}

body.expediente50 #app .bb50-directory .bb-filters {
  max-width: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: clamp(16px, 2vw, 26px);
  background: var(--biobio-mist);
  border: 1px solid var(--biobio-line);
  border-radius: var(--biobio-curve);
  gap: 14px;
}

body.expediente50 #app .bb50-directory .bb-field.search {
  grid-column: 1 / -1;
}

body.expediente50 #app .bb50-directory input[name=q] {
  min-height: 52px;
  padding-inline: 16px;
  background: #fff;
  border: 1px solid var(--biobio-green);
  border-radius: 16px;
  font-size: 1.0625rem;
}

body.expediente50 #app .bb50-directory .bb-row h2 {
  font-size: 1.56rem;
}

body.expediente50 #app :is(.bb-state, .bb50-report-meta, .bb-guidehero .journey47) {
  background: var(--biobio-surface);
  border-color: var(--biobio-line);
}

body.expediente50 #app .bb-cat-panel {
  border: 1px solid var(--biobio-line);
  background: var(--biobio-surface);
}

body.expediente50 #app .bb-cat-tab[aria-selected=true] {
  color: var(--biobio-green);
  background: var(--biobio-mint);
  border-radius: 14px;
}

#app .regional-footer {
  margin-top: clamp(30px, 6vw, 80px);
  color: var(--biobio-copy);
  border-top: 1px solid var(--biobio-line);
  background: var(--biobio-surface);
}

#app .regional-footer :is(h2, h3, a, .brand, .footer-signature, .footer-navigation nav > a),
body.expediente50 #app .regional-footer :is(h2, h3, a, .brand) {
  color: var(--biobio-ink);
}

#app .regional-footer :is(p, small, .footer-colophon, .footer-signature p) {
  color: var(--biobio-muted);
}

#app .regional-footer :is(.footer-navigation, .footer-colophon, .province-portraits a) {
  border-color: var(--biobio-line);
}

#app .regional-footer .footer-navigation nav > a {
  padding-block: 3px;
}

@media (max-width: 920px) {
  body.expediente50 #app .bb50-directory .bb-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  #app .site-header {
    margin-top: 8px;
    margin-bottom: 10px;
  }

  #app .site-header .top {
    min-height: 58px;
  }

  #app .site-header .language-switch a {
    min-width: 31px;
  }

  #app .entrance39 .v39-cover {
    grid-template-columns: minmax(0, 1fr);
  }

  #app .entrance39 .v39-cover h1 {
    max-width: 21ch;
  }

  #app .entrance39 .v39-cover-copy {
    padding: 24px 21px 12px;
  }

  #app .entrance39 .v39-cover .v39-photo {
    min-height: 182px;
    margin-top: 0;
    border-radius: 15px;
  }

  #app .entrance39 .v39-cover .v39-photo img {
    object-position: center 60%;
  }

  #app .v39-hub-hero {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  body.expediente50 #app .bb50-directory .bb-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.expediente50 #app .bb50-directory .bb-check {
    grid-column: 1 / -1;
  }
}

@media (max-width: 360px) {
  #app .site-header .top {
    flex-wrap: nowrap;
  }

  #app .site-header .brand small {
    max-width: 15ch;
  }

  #app .site-header .language-switch {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #app * {
    scroll-behavior: auto;
  }
}

#app .v39-cover .eyebrow,
#app .v39-hub-hero .eyebrow {
  display: none;
}

#app .entrance39 .orientation45 .clarity44 {
  max-width: 72ch;
}

body.expediente50 #app .bb-state .row {
  position: relative;
  display: block;
  padding-inline-start: 56px;
}

body.expediente50 #app .bb-state .row .n {
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 44px;
  transform: translateY(-50%);
}

#app .biobio-hub-search {
  width: min(100%, 490px);
  margin: 0 0 22px;
  padding: 15px;
  color: var(--biobio-ink);
  border: 1px solid var(--biobio-line);
  border-radius: 18px;
  background: var(--biobio-surface);
}

#app .biobio-hub-search label {
  display: block;
  margin-bottom: 7px;
  font-size: .9rem;
  font-weight: 700;
}

#app .biobio-hub-search div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

#app .biobio-hub-search input[type=search],
#app .biobio-hub-search button {
  min-height: 44px;
  padding: 8px 12px;
  font: 500 .875rem/1.25 var(--biobio-sans);
  border: 1px solid var(--biobio-green);
  border-radius: 12px;
}

#app .biobio-hub-search input[type=search] {
  width: 100%;
  color: var(--biobio-ink);
  background: #fff;
}

#app .biobio-hub-search button {
  color: #fff;
  background: var(--biobio-green);
  cursor: pointer;
}

#app .biobio-hub-search button:hover {
  background: var(--biobio-ink);
  border-color: var(--biobio-ink);
}

@media (max-width: 600px) {
  body.expediente50 #app .bb50-directory {
    padding-top: 14px;
  }

  body.expediente50 #app .bb50-directory .directory-heading {
    padding-bottom: 0;
  }

}

body.expediente50 #app .bb50 .int18-compare thead th[scope=col],
body.expediente50 #app .bb50 .int18-compare thead th[scope=col] a {
  color: var(--biobio-ink);
  background: var(--biobio-mist);
}

@media (max-width: 600px) {
  body.expediente50 #app .bb50-directory .directory-heading {
    display: block;
  }

  body.expediente50 #app .bb50-directory .biobio-directory-extras {
    display: grid;
    gap: 4px;
    margin-block: 12px;
  }

  body.expediente50 #app .bb50-directory .biobio-directory-extras details {
    margin: 0;
  }
}

#app .entrance39 .v39-hub-hero .v39-button,
#app .entrance39 .v39-hub-hero .v39-button:hover,
#app .entrance39 .v39-hub-hero .v39-button:focus-visible {
  color: #fff;
}

body.expediente50 #app :is(.bb50-example .mark49, .measure47 dt .icon47) {
  margin-inline-end: 8px;
  vertical-align: middle;
}

#app .entrance39 .v39-closing .v39-button[data-nav-audience=regional] {
  color: #fff;
  background: var(--biobio-green);
}

#app .site-header .top:has(.biobio-blog-link) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

#app .site-header .top:has(.biobio-blog-link) .brand {
  width: fit-content;
  min-width: 0;
}

#app .site-header .top:has(.biobio-blog-link) .language-switch {
  margin-inline-start: 0;
}

#app .site-header .biobio-blog-link {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 999px;
  color: var(--biobio-ink);
  font: 600 .88rem/1.25 var(--biobio-sans);
  text-decoration: none;
}

#app .site-header .biobio-blog-link:hover {
  background: var(--biobio-mint);
  color: var(--biobio-green);
}

@media (max-width: 420px) {
  #app .site-header .top:has(.biobio-blog-link) {
    column-gap: 5px;
  }

  #app .site-header .biobio-blog-link {
    padding-inline: 5px;
  }

  #app .site-header .top:has(.biobio-blog-link) .brand small {
    max-width: 20ch;
  }
}

@media (max-width: 767px) {
  body.expediente50 #app .bb-crumbs:has(a[href*="#directory-"]) li {
    display: none;
  }

  body.expediente50 #app .bb-crumbs li:has(> a[href*="#directory-"]) {
    display: flex;
  }

  body.expediente50 #app .bb-crumbs a[href*="#directory-"] {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 6px;
  }

  body.expediente50 #app .bb-crumbs a[href*="#directory-"]::before {
    content: "←";
  }
}

@media (max-width: 360px) {
  #app .regional-footer .footer-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #app .regional-footer .footer-navigation > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* ==========================================================================
   Biobío Global · dirección «Cuenca»
   Curvas de nivel, río y madera. Títulos en Schibsted Grotesk; cuerpo en Heebo.
   ========================================================================== */

#app .bg-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#app .bg-icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* Cabecera y wordmark */
#app .site-header {
  border-color: transparent;
  box-shadow: 0 1px 0 rgb(7 49 60 / 6%), var(--biobio-shadow);
}

#app .site-header .brand,
#app .footer-signature > a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

#app .bg-iso {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background-color: #16a9a8;
  background-image: var(--biobio-grad);
}

#app .bg-iso svg {
  width: 24px;
  height: 24px;
}

#app .bg-word {
  display: block;
  font: 800 clamp(1.35rem, 1.9vw, 1.62rem)/1 var(--biobio-title);
  letter-spacing: -.035em;
  color: var(--biobio-ink);
  white-space: nowrap;
}

#app .bg-word em {
  font-style: normal;
  font-weight: 400;
  color: var(--biobio-green);
}

#app .site-header .brand .bg-word small {
  display: block;
  margin-top: 5px;
  font: 400 .74rem/1.2 var(--biobio-sans);
  letter-spacing: 0;
  color: var(--biobio-muted);
  white-space: normal;
}

#app .site-header .language-switch a[aria-current] {
  background: var(--biobio-mint);
  color: var(--biobio-green);
  box-shadow: inset 0 0 0 1px rgb(11 122 110 / 28%);
}

/* Portada: trama de curvas de nivel */
#app .entrance39 .v39-cover {
  border-color: transparent;
  background:
    url("curvas.svg") left -120px center / auto 150% no-repeat,
    linear-gradient(150deg, #fbfefd 20%, var(--biobio-mint) 70%, #e6f4fa);
  background-color: var(--biobio-mint);
  box-shadow: 0 0 0 1px rgb(7 49 60 / 6%), var(--biobio-shadow);
}

#app .entrance39 .v39-cover h1 {
  max-width: 16ch;
  font-size: clamp(2.35rem, 4.3vw, 4.1rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.04em;
}

#app .entrance39 .v39-cover .lead45 {
  max-width: 44ch;
}

#app .entrance39 .actions45.bg-routes {
  order: 9;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
}

#app .entrance39 .actions45.bg-routes a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  color: var(--biobio-ink);
  background: none;
  border: 0;
  box-shadow: none;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgb(11 122 110 / 45%);
  text-underline-offset: 5px;
}

#app .entrance39 .actions45.bg-routes a:hover {
  color: var(--biobio-green);
}

#app .bg-search {
  display: flex;
  gap: 6px;
  width: min(100%, 540px);
  padding: 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(11 122 110 / 30%), 0 22px 40px -30px rgb(7 49 60 / 60%);
}

#app .bg-search:focus-within {
  box-shadow: 0 0 0 2px var(--biobio-green), 0 22px 40px -30px rgb(7 49 60 / 60%);
}

#app .bg-search-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 14px 4px;
  color: var(--biobio-muted);
}

#app .bg-search-icon {
  width: 21px;
  height: 21px;
  flex: none;
}

#app .bg-search input[type=search] {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--biobio-ink);
  font: 400 1rem/1.3 var(--biobio-sans);
}

#app .bg-search input[type=search]::placeholder {
  color: #5d6f79;
}

#app .bg-search button {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background-color: var(--biobio-green);
  background-image: linear-gradient(120deg, #0b7a6e, #0a7a93);
  font: 700 .95rem/1 var(--biobio-sans);
  cursor: pointer;
}

#app .bg-search button:hover {
  background-image: none;
  background-color: var(--biobio-ink);
}

#app .bg-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

#app .bg-quick a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--biobio-ink);
  font: 600 .92rem/1.2 var(--biobio-sans);
  text-decoration: none;
}

#app .bg-quick a:hover {
  color: var(--biobio-green);
}

#app .bg-quick-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--biobio-green);
  background: #fff;
  box-shadow: 0 0 0 1px rgb(11 122 110 / 22%);
}

#app .bg-quick-icon .bg-icon {
  width: 17px;
  height: 17px;
}

/* Mosaico de tres fotografías */
#app .entrance39 .v39-cover .bg-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px;
  min-height: 430px;
}

#app .entrance39 .v39-cover .bg-mosaic .v39-photo {
  grid-row: 1 / 3;
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
}

#app .bg-tile {
  position: relative;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--biobio-mint);
}

#app .bg-tile > a {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
  text-decoration: none;
}

#app .bg-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

#app .bg-tile > a:hover img {
  transform: scale(1.04);
}

#app .bg-tile-label {
  position: absolute;
  left: 10px;
  top: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--biobio-ink);
  background: rgb(255 255 255 / 94%);
  font: 700 .82rem/1.2 var(--biobio-sans);
}

#app .bg-tile figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--biobio-copy);
  background: rgb(255 255 255 / 92%);
  font-size: .7rem;
}

#app .bg-tile figcaption a {
  color: var(--biobio-blue);
}

/* Cifras con ícono */
#app .bg-stats {
  margin: clamp(14px, 2vw, 22px) 0 0;
  padding: clamp(14px, 1.8vw, 20px);
  border-radius: 28px;
  background-color: var(--biobio-mint);
  background-image: linear-gradient(115deg, #eaf6f3, #e8f4fa);
}

#app .bg-stats ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#app .bg-stats a {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 12px 14px;
  border-radius: 20px;
  color: var(--biobio-copy);
  text-decoration: none;
  transition: background-color .2s ease;
}

#app .bg-stats a:hover {
  background: rgb(255 255 255 / 72%);
}

#app .bg-stat-icon,
#app .bg-choice-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background-color: #16a9a8;
  background-image: var(--biobio-grad);
}

#app .bg-stats li:last-child .bg-stat-icon {
  background-color: #c96a26;
  background-image: linear-gradient(135deg, #e3913f, var(--biobio-amber));
}

#app .bg-stat-icon .bg-icon {
  width: 24px;
  height: 24px;
}

#app .bg-stat-text {
  min-width: 0;
}

#app .bg-stat-text strong {
  display: block;
  font: 800 2rem/1 var(--biobio-title);
  letter-spacing: -.03em;
  color: var(--biobio-ink);
  font-variant-numeric: tabular-nums;
}

#app .bg-stat-text span {
  display: block;
  margin-top: 4px;
  font-size: .9rem;
  line-height: 1.3;
}

/* Recorridos de la portada: jerarquía e ícono */
#app .entrance39 .v39-choices {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

#app .entrance39 .v39-choice {
  border-color: transparent;
  box-shadow: 0 0 0 1px rgb(7 49 60 / 8%), var(--biobio-shadow);
}

#app .entrance39 .v39-choice:not(.regional) {
  background-color: #fff;
  background-image: url("curvas.svg");
  background-size: 900px auto;
  background-position: right -260px top -120px;
  background-repeat: no-repeat;
}

#app .entrance39 .v39-choice .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--biobio-green);
  font: 700 .9rem/1.2 var(--biobio-sans);
  letter-spacing: 0;
  text-transform: none;
}

#app .bg-choice-icon {
  width: 40px;
  height: 40px;
}

#app .bg-choice-icon .bg-icon {
  width: 21px;
  height: 21px;
}

#app .entrance39 .v39-choice h2 {
  font-weight: 800;
  letter-spacing: -.03em;
}

/* Muro de logos */
#app .bg-logos {
  margin-top: clamp(34px, 5vw, 64px);
}

#app .bg-logos-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 16px;
}

#app .bg-logos h2 {
  margin: 0;
  font: 800 clamp(1.5rem, 2.3vw, 2rem)/1.1 var(--biobio-title);
  letter-spacing: -.03em;
  color: var(--biobio-ink);
}

#app .bg-more {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--biobio-green);
  font-weight: 700;
}

#app .bg-logos ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#app .bg-logos li a,
#app .entrance39 .v39-logos a {
  display: grid;
  place-items: center;
  height: 92px;
  padding: 14px 18px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(7 49 60 / 7%), 0 14px 28px -24px rgb(7 49 60 / 55%);
  transition: box-shadow .2s ease, transform .2s ease;
}

#app .bg-logos li a:hover,
#app .entrance39 .v39-logos a:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgb(11 122 110 / 35%), 0 18px 30px -22px rgb(7 49 60 / 55%);
}

#app .bg-logos img {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
}

#app .bg-note {
  margin-top: 12px;
  font-size: .82rem;
  color: var(--biobio-muted);
}

/* Actores: tarjetas con jerarquía */
#app .entrance39 .v39-card {
  border-color: transparent;
  box-shadow: 0 0 0 1px rgb(7 49 60 / 8%), var(--biobio-shadow);
}

#app .entrance39 .v39-card .eyebrow {
  color: var(--biobio-green);
  font: 700 .9rem/1.2 var(--biobio-sans);
  letter-spacing: 0;
  text-transform: none;
}

#app .entrance39 .v39-closing {
  border: 0;
  background:
    url("curvas.svg") right -200px center / auto 170% no-repeat,
    linear-gradient(120deg, #eaf6f3, #e8f4fa);
  background-color: var(--biobio-mint);
}

/* Directorio: tipos de organización como barra segmentada */
body.expediente50 #app .bb50-directory .bb-filters {
  border-color: transparent;
  background-color: var(--biobio-mist);
  background-image: linear-gradient(140deg, #f6fbfb, #eef7f6);
  box-shadow: 0 0 0 1px rgb(7 49 60 / 7%);
}

body.expediente50 #app .bb50-directory input[name=q] {
  border-color: rgb(11 122 110 / 40%);
  border-radius: 999px;
  padding-inline: 20px;
}

body.expediente50 #app .bb50-directory .bb-kinds,
body.expediente50 #app .bb50-directory [class*=kind-tabs] {
  gap: 4px;
}

body.expediente50 #app .bb50-directory .bb-btn.quiet {
  border-color: transparent;
  border-radius: 999px;
  background: var(--biobio-mist);
  color: var(--biobio-ink);
}

body.expediente50 #app .bb50-directory .bb-btn.quiet:hover {
  background: var(--biobio-mint);
  color: var(--biobio-green);
}

body.expediente50 #app .bb50-directory .bb-btn.quiet[aria-pressed=true],
body.expediente50 #app .bb50-directory .bb-btn.quiet[aria-current],
body.expediente50 #app .bb50-directory .bb-btn.quiet.active {
  color: #fff;
  background: var(--biobio-ink);
}

/* Pie */
#app .regional-footer {
  border-top: 0;
  background:
    url("curvas.svg") right -260px top -80px / 1100px auto no-repeat,
    linear-gradient(180deg, #f6fbfb, var(--biobio-mint));
  background-color: var(--biobio-mint);
}

#app .footer-signature > a {
  font-size: inherit !important;
}

#app .footer-signature .bg-word {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
}

#app .footer-signature .bg-iso {
  width: 50px;
  height: 50px;
}

#app .regional-footer .bg-sign a {
  color: var(--biobio-green);
  font-weight: 700;
}

#app .regional-footer .bg-sign small {
  font-size: inherit;
}

@media (max-width: 980px) {
  #app .bg-stats ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  #app .entrance39 .v39-cover {
    background:
      url("curvas.svg") left -300px top -40px / auto 80% no-repeat,
      linear-gradient(170deg, #fbfefd 30%, var(--biobio-mint));
    background-color: var(--biobio-mint);
  }

  #app .entrance39 .v39-cover .bg-mosaic {
    min-height: 0;
    grid-template-rows: 200px 120px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 12px 12px;
  }

  #app .entrance39 .v39-cover .bg-mosaic .v39-photo {
    grid-row: 1;
    grid-column: 1 / -1;
    min-height: 0;
  }

  #app .bg-tile figcaption {
    display: none;
  }

  #app .entrance39 .v39-choices {
    grid-template-columns: minmax(0, 1fr);
  }

  #app .bg-search button {
    padding-inline: 16px;
  }

  #app .bg-iso {
    width: 36px;
    height: 36px;
  }

  #app .bg-iso svg {
    width: 21px;
    height: 21px;
  }
}

@media (max-width: 520px) {
  #app .bg-stats a {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
  }

  #app .bg-stat-icon {
    width: 40px;
    height: 40px;
  }

  #app .bg-stat-text strong {
    font-size: 1.7rem;
  }

  #app .bg-logos ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #app .site-header .brand .bg-word small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #app .bg-tile img,
  #app .bg-logos li a,
  #app .entrance39 .v39-logos a {
    transition: none;
  }
}

/* Ajustes tras la primera revisión visual */
#app .entrance39 .v39-cover .bg-tile figcaption {
  position: absolute;
  inset: auto 10px 10px auto;
  grid-row: auto;
  text-align: right;
}

#app .entrance39 .v39-cover h1 {
  max-width: 18ch;
  font-size: clamp(2.3rem, 3.9vw, 3.75rem);
}

#app .v39-hub-hero h1 {
  font-size: clamp(2.5rem, 4.2vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -.04em;
}

#app .v39-card-image {
  background-color: var(--biobio-mint);
}

@media (max-width: 700px) {
  #app .bg-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 10px;
  }

  #app .bg-quick a {
    font-size: .86rem;
    align-items: flex-start;
  }

  #app .bg-quick-icon {
    margin-top: 6px;
  }

  #app .bg-search-icon {
    display: none;
  }

  #app .bg-search-field {
    padding-inline: 12px 0;
  }

  #app .bg-search input[type=search] {
    font-size: .95rem;
  }
}

/* Tipos de organización: un solo riel segmentado */
body.expediente50 #app .bb50-directory .bb50-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 5px;
  border-radius: 26px;
  background: var(--biobio-mist);
  box-shadow: inset 0 0 0 1px rgb(7 49 60 / 7%);
}

body.expediente50 #app .bb50-directory .bb50-kinds .bb-btn.quiet {
  min-height: 40px;
  background: transparent;
}

body.expediente50 #app .bb50-directory .bb50-kinds .bb-btn.quiet[aria-pressed=true] {
  color: #fff;
  background: var(--biobio-ink);
  box-shadow: 0 8px 18px -12px rgb(7 49 60 / 70%);
}

body.expediente50 #app .bb50-directory .bb50-kinds .bb-btn span {
  margin-inline-start: 6px;
  color: inherit;
  opacity: .78;
  font-variant-numeric: tabular-nums;
}

/* Logos de Actores: la placa contiene logo y nombre */
#app .entrance39 .v39-logos a {
  height: auto;
  min-height: 132px;
  gap: 12px;
  align-content: center;
  text-align: center;
  color: var(--biobio-ink);
  font-weight: 600;
  text-decoration: none;
}

#app .entrance39 .v39-logos img {
  max-height: 56px;
  width: auto;
}

/* Cifras y monogramas con la tipografía de títulos de Biobío Global */
body.expediente50,
body.expediente50 #app {
  --font-figure: var(--biobio-title);
  --heading: var(--biobio-title);
}

#app .entrance39 .v39-card,
#app .entrance39 .v39-choice {
  border: 0;
}

@media (max-width: 700px) {
  #app .regional-footer .footer-signature {
    grid-column: 1 / -1;
    min-width: 0;
  }

  #app .footer-signature .bg-word {
    font-size: 1.6rem;
  }

  #app .regional-footer .footer-navigation > * {
    min-width: 0;
  }
}
