/* Archivo Audiovisual — brand layer on top of Bootstrap 5.3.
   Tokens from museo.precolombino.cl (see ../static_homepage/assets/css/style.css).
   Layout comes from Bootstrap classes; this file only sets theme + a few media treatments. */

@font-face { font-family: "Brandon Grotesque"; font-weight: 300; font-display: swap; src: url("../vendor/fonts/BrandonGrotesque-Light.woff") format("woff"); }
@font-face { font-family: "Brandon Grotesque"; font-weight: 400; font-display: swap; src: url("../vendor/fonts/BrandonGrotesque-Regular.woff") format("woff"); }
@font-face { font-family: "Brandon Grotesque"; font-weight: 500; font-display: swap; src: url("../vendor/fonts/BrandonGrotesque-Medium.woff") format("woff"); }
@font-face { font-family: "Brandon Grotesque"; font-weight: 500; font-style: italic; font-display: swap; src: url("../vendor/fonts/BrandonGrotesque-MediumItalic.woff") format("woff"); }
@font-face { font-family: "Brandon Grotesque"; font-weight: 700; font-display: swap; src: url("../vendor/fonts/BrandonGrotesque-Bold.woff") format("woff"); }

:root {
  --brand-orange: #f73700;
  --brand-magenta: #99398e;
  --brand-ink: #1a1a1a;
  --brand-muted: #54595f;
  --brand-sand: #e2dfd5;
  --brand-paper: #f7f7f7;
  /* museum colour-block palette */
  --archivo-1: #e2dfd5;
  --archivo-2: #fffe7b;
  --archivo-3: #5e652e;
  --archivo-4: #a41515;
  --archivo-5: #3d8696;

  --bs-font-sans-serif: "Brandon Grotesque", "Segoe UI", system-ui, sans-serif;
  --bs-body-font-size: 1.0625rem;
  --bs-body-color: var(--brand-ink);
  --bs-body-color-rgb: 26, 26, 26;
  --bs-secondary-color: var(--brand-muted);
  --bs-tertiary-bg: var(--brand-paper);
  --bs-primary: var(--brand-orange);
  --bs-primary-rgb: 247, 55, 0;
  --bs-link-color: var(--brand-ink);
  --bs-link-color-rgb: 26, 26, 26;
  --bs-link-hover-color: var(--brand-orange);
  --bs-link-hover-color-rgb: 247, 55, 0;
  --bs-focus-ring-color: rgba(247, 55, 0, .25);
  --bs-border-radius: .25rem;
}

body { background: #fff; }
h1, h2, h3, .h1, .h2, .h3 { font-weight: 700; letter-spacing: -.01em; }

/* Bootstrap compiles these with its blue; point them at the brand */
.form-control:focus, .form-select:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.form-check-input:checked { background-color: var(--brand-ink); border-color: var(--brand-ink); }
.form-check-input:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.page-link { --bs-pagination-color: var(--brand-ink); --bs-pagination-active-bg: var(--brand-ink); --bs-pagination-active-border-color: var(--brand-ink); --bs-pagination-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--brand-ink); --bs-nav-link-color: var(--brand-ink); --bs-nav-link-hover-color: var(--brand-orange); }
.accordion { --bs-accordion-active-bg: var(--brand-paper); --bs-accordion-active-color: var(--brand-ink); --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.list-group { --bs-list-group-active-bg: var(--brand-ink); --bs-list-group-active-border-color: var(--brand-ink); }
.nav-underline { --bs-nav-underline-link-active-color: var(--brand-ink); --bs-nav-link-color: var(--brand-ink); --bs-nav-link-hover-color: var(--brand-orange); --bs-nav-underline-gap: 1.5rem; }

/* Header and footer: same as museo.precolombino.cl */
:root { --brand-pink: #f73700; --bs-link-decoration: none; --bs-link-hover-decoration: underline; }
.text-pink { color: var(--brand-orange) !important; }
a { text-decoration: none; }
a:hover { text-decoration: none; }
article > p a, article > ul a, article > ol a { text-decoration: underline; text-underline-offset: .15em; }
article > p a:hover, article > ul a:hover { color: var(--brand-orange); }
.container-xl-custom { max-width: 1320px; margin-inline: auto; padding-inline: 1rem; }

.site-header { background: var(--brand-paper); padding-top: .75rem; position: relative; z-index: 1030; }
.utility-nav { font-size: .8rem; font-weight: 400; }
.utility-nav a, .header-search-btn { color: var(--brand-orange); margin-left: 1.5rem; white-space: nowrap; }
.utility-nav a:hover, .header-search-btn:hover, .header-search-btn:focus-visible { text-decoration: underline; }
.header-search-btn { border: 0; background: transparent; padding: 0; font-size: .8rem; }
.header-search-btn--mobile { margin-left: auto; color: var(--brand-ink); font-size: 1.1rem; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.header-search-form { max-width: 32rem; margin-left: auto; }
.brand-logo { color: #000; }
.brand-logo__img { height: 52px; width: auto; }
.brand-logo__name { font-weight: 700; font-size: 1.05rem; line-height: 1.1; padding-left: 1rem; border-left: 1px solid #000; }
a.brand-logo__name, a.brand-logo__name:hover { color: #000; text-decoration: none; }
.main-nav { font-size: .82rem; }
.main-nav .nav-link { color: var(--brand-ink); padding: .5rem .65rem; font-weight: 400; }
.main-nav .nav-link:hover, .main-nav .nav-link:focus { color: var(--brand-orange); }
.main-nav .nav-link.active { color: var(--brand-orange); }
.dropdown-menu { border: 0; border-radius: .5rem; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.dropdown-item:hover { background: #f2f2f2; color: var(--brand-orange); }

.site-footer { background: #000; color: #fff; margin-top: 4rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brand-orange); }
.footer-top { padding: 18px 0 24px; border-top: 1px solid rgba(255,255,255,.6); }
.footer-menu-grid { display: grid; grid-template-columns: 1fr; row-gap: 30px; }
@media (min-width: 576px) { .footer-menu-grid { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } .footer-grid__brand { grid-column: 1 / -1; } }
@media (min-width: 992px) { .footer-menu-grid { grid-template-columns: 22% 20% 28% 24%; column-gap: 3%; } .footer-grid__brand { grid-column: auto; } }
.footer-brand { opacity: 1 !important; margin: 0 !important; }
.site-footer .brand-logo__name { color: #fff; border-left-color: #fff; }
.footer-brand__img { display: block; max-width: 160px; flex: none; width: 100%; height: auto; filter: brightness(0) invert(1); }
.footer-col h2 { color: #fff; font-weight: 500; font-size: 1.2rem; line-height: 1.18; margin: 0 0 10px; }
.footer-col a { display: block; font-size: 1rem; line-height: 1.2; margin-bottom: 10px; opacity: .92; }
.footer-text { font-size: .9rem; opacity: .8; margin-top: .75rem; }
.footer-apoyo__img { max-width: 100%; width: 202px; height: auto; }
.footer-logos { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.footer-logos a { margin: 0; display: inline-block; }
.footer-logos img { height: 40px; width: auto; filter: grayscale(1) invert(1); mix-blend-mode: screen; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.6); font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.footer-social { display: flex; gap: 18px; font-size: 1.4rem; }

/* Buttons: black pills, uppercase */
.btn-dark, .btn-outline-dark { border-radius: 17px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; font-size: .9rem; }
.btn-dark { --bs-btn-bg: #000; --bs-btn-border-color: #000; --bs-btn-hover-bg: #222; --bs-btn-hover-border-color: #222; --bs-btn-color: #f2f2f2; box-shadow: 0 3px 6px rgba(0,0,0,.16); }
.btn-outline-dark { --bs-btn-color: #000; --bs-btn-border-color: #000; --bs-btn-hover-bg: #000; --bs-btn-hover-color: #fff; }

/* Hero: image with dark scrim */
.hero { background-color: #1a1a1a; background-position: center; background-size: cover; background-repeat: no-repeat; }

/* Colour blocks */
.bg-archivo-1 { background: var(--archivo-1); color: var(--brand-ink); }
.bg-archivo-2 { background: var(--archivo-2); color: var(--brand-ink); }
.bg-archivo-3 { background: var(--archivo-3); color: #fff; }
.bg-archivo-4 { background: var(--archivo-4); color: #fff; }
.bg-archivo-5 { background: var(--archivo-5); color: #fff; }

/* Media tiles */
.tile-img { object-fit: cover; }
.topic-overlay { background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0) 60%); }
@media (min-width: 992px) { .h5-lg { font-size: 1.25rem; } }
.card-hover { transition: transform .15s ease, box-shadow .15s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.12) !important; }

/* Section headers and home entries: one neutral background */
.bg-seccion { background: #f8f9fa; }
.nav-tabs-scroll { scrollbar-width: none; }
.nav-tabs-scroll::-webkit-scrollbar { display: none; }

/* Home: links per media type, underlined on hover only */
.tipo-links a { color: var(--brand-ink); text-decoration: none; }
.tipo-links a:hover { text-decoration: underline; }

/* Session (prototype: localStorage, set in <head>) */
html:not(.sesion) .si-sesion, html.sesion .sin-sesion { display: none !important; }

/* Disc track list */
.tracklist .list-group-item { cursor: pointer; }
.tracklist .list-group-item.active .track-num { color: rgba(255,255,255,.7) !important; }
.list-columns { columns: 2; column-gap: 2rem; }
.list-columns li { break-inside: avoid; }

/* Viewer for local PDFs and images (website/_visor.html + difusion.js) */
.visor .modal-dialog { max-width: min(1200px, calc(100vw - 2rem)); }
.visor-body { height: calc(100vh - 8rem); background: #525659; }
.visor-body iframe { display: block; width: 100%; height: 100%; border: 0; }
.visor-body.is-image { display: flex; align-items: center; justify-content: center; padding: 1rem; }
.visor-body.is-image img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* disc page: the track list sits next to the cover and is as tall as it (scrolls); stacked on phones */
.disc-player { position: relative; }
.disc-player .tracklist, .disc-tracks-only .tracklist { max-height: 20rem; }
.disc-player-inner > :not(.tracklist) { flex-shrink: 0; }
@media (min-width: 576px) {
  /* only next to a cover: without one the list is full width and keeps its own max-height */
  .disc-player .disc-player-inner { position: absolute; inset: 0; }
  .disc-player .tracklist { max-height: none; min-height: 0; }
}

@media (max-width: 575px) {
  .brand-logo { gap: .5rem !important; }
  .brand-logo__img { height: 38px; }
  .brand-logo__name { font-size: .8rem; padding-left: .5rem; }
  .site-header .container-fluid { flex-wrap: wrap; }
}
