:root {
  color-scheme: light;
  color: #222;
  background: #fff;
  font: 100%/1.55 Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #a02134; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible { outline: 3px solid #f4ae5c; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: .4em 0 .7em; }
h2 { margin-top: 0; }
figure { margin: 0; }
figcaption { margin-top: .55rem; color: #55504b; font-size: .9rem; }

.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus { position: fixed; z-index: 4; background: white; padding: .7rem 1rem; }
.wrap { width: min(100% - 2.5rem, 74rem); margin-inline: auto; }
.section { padding-block: clamp(2rem, 5vw, 4rem); }
.masthead { position: sticky; top: 0; z-index: 3; background: #222; color: #fff; }
.masthead-inner { position: relative; width: 100%; min-height: 93px; }
.masthead a { color: inherit; text-decoration: none; }
.brand { position: absolute; z-index: 1; top: 0; left: .3rem; width: min(16vw, 148px); }
.brand-logo { width: 100%; }
.masthead nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: inherit; margin-left: 10%; }
.masthead nav a { display: grid; place-items: center; border-bottom: 2px solid transparent; padding: .4rem .2rem; font-size: 1rem; text-align: center; text-transform: uppercase; }
.masthead nav a:is(:hover, [aria-current]) { border-bottom-color: #fe0000; background: #1e1e1e; }

.highlights { position: relative; background: #211c18; color: #fff; }
.slide { position: relative; min-height: clamp(25rem, 55vw, 41.25rem); background: #372521; }
.slide:nth-child(2) { background: #4a292e; }
.slide:nth-child(3) { background: #282c40; }
.slide:nth-child(4) { background: #35362d; }
.slide:nth-child(5) { background: #3e2f28; }
.slide-with-photo { background: #211c18; }
.slide > img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.slide-with-photo:not(.slide-archival)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #170f0da8, transparent 75%); pointer-events: none; }
.slide-copy { position: relative; top: clamp(12rem, 26.75vw, 20rem); z-index: 1; width: fit-content; max-width: 75%; margin-left: 22%; border-left: 1.6rem solid #fe0000; color: #fff; text-shadow: 0 1px 3px #000; pointer-events: none; }
.slide h2 { margin: -.12em 0 .23em; font-size: clamp(1.65rem, 3.6vw, 2.15rem); line-height: 1; letter-spacing: -.04em; }
.slide p { margin: 0 0 .5rem; max-width: 36rem; font-size: 1rem; line-height: 1.05; }
.slide-link { position: absolute; z-index: 2; inset: 0; }
.slide-link:focus-visible { outline-offset: -4px; }
.slide-credit { position: absolute; z-index: 1; right: 1rem; bottom: 2.7rem; color: #fff; background: #191613; padding: 0 .3rem; }
.slide-controls { position: absolute; z-index: 2; bottom: .3rem; inset-inline: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.slide-controls button { min-height: 1.75rem; padding: 0; border: 0; color: #fff; background: transparent; cursor: pointer; pointer-events: auto; }
.slide-selector { width: 1.2rem; }
.slide-selector::before { content: ''; display: block; width: .75rem; height: .75rem; margin: auto; border: 1px solid #fff; background: #fff9; }
.slide-selector[aria-pressed="true"]::before { background: #181818; }
.slide-controls .slide-rotation { position: absolute; right: .75rem; padding-inline: .6rem; font: inherit; background: #222d; opacity: 0; }
.highlights:is(:hover, :focus-within) .slide-rotation { opacity: 1; }

.agenda { padding: 30px 0 21px; }
.museo_tit_agenda { list-style: none; width: min(100%, 496px); margin: 0 auto; padding: 15px; color: #fff; background: #fe0000; text-align: center; cursor: pointer; }
.museo_tit_agenda::-webkit-details-marker { display: none; }
.museo_tit_agenda:focus-visible { outline: 3px solid #222; outline-offset: 4px; }
.museo_tit_agenda h2 { margin: 0; font-size: 1.5rem; font-weight: 400; }
.agenda .cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.agenda details[open] .cards { margin-top: 1.5rem; }
.agenda .card { padding-bottom: 0; }
.agenda .card p { margin: .4rem 0 0; }
.museo_tit_proSociales, .museo_tit_contacto { text-align: center; font-size: 1.5rem; font-weight: 400; margin: 0 0 1rem; }
.museo_proSociales { color: #fff; background: #222; padding: 1rem 0 1.5rem; }
.program-strip { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2.5rem) / 3); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: #aaa #333; padding-bottom: .5rem; }
.program-strip:focus-visible { outline: 2px solid #f4ae5c; outline-offset: 4px; }
.program-strip .item { min-width: 0; padding: .75rem; color: #444; background: #fff; scroll-snap-align: start; }
.item_imagen a { display: block; font-weight: bold; }
.item_imagen img { width: 100%; aspect-ratio: 319 / 171; object-fit: cover; }
.item_texto { font-size: .9375rem; }
.item_texto p { margin: .8rem 0 0; }
.program-controls { display: flex; justify-content: center; gap: .5rem; margin-top: .5rem; }
.program-controls button { padding: .35rem .7rem; border: 1px solid #777; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.program-controls button:disabled { color: #999; cursor: default; }
.activities { padding-block: 2rem; }
.activities .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.effect-oscar { position: relative; display: grid; align-content: center; min-height: 5rem; background: #292929; }
.activity-photo { align-content: end; aspect-ratio: 394 / 277; }
.effect-oscar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.effect-oscar figcaption { z-index: 1; margin: 0; padding: 1rem; text-align: center; }
.activity-photo figcaption { background: linear-gradient(transparent, #000d); padding-top: 2.25rem; }
.effect-oscar h2 { font-size: 1rem; font-weight: 500; margin: 0; }
.effect-oscar a { color: #fff; text-decoration: none; }
.effect-oscar a::after { position: absolute; inset: 0; content: ''; }
.effect-oscar:is(:hover, :focus-within) a { text-decoration: underline; }
.effect-oscar:focus-within { outline: 3px solid #a02134; outline-offset: 2px; }
.museo_contacto { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1rem; padding: 1.5rem 1.25rem; color: #fff; background: #333; }
#map { text-align: center; }
#map a { display: inline-block; padding: .65rem .9rem; border: 1px solid #aaa; color: inherit; }
.legacy-contact { width: min(100%, 25rem); padding: 1.25rem; background: #222; }
.museo_contacto fieldset, .museo_boletin fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.museo_contacto a, .museo_boletin a { color: inherit; }
.museo_row, .museo_boton { margin-top: .6rem; }
.museo_contacto input[type="text"], .museo_boletin input[type="email"] { width: 100%; padding: .5rem; border: 1px solid #aaa; font: inherit; }
.museo_boton button, .boton_boletin { margin-top: .5rem; padding: .45rem .65rem; font: inherit; }
.form-note { font-size: .85rem; }
.gallery-section + .gallery-section { margin-top: 3.2rem; }
.gallery-group { margin-top: 1.75rem; padding-top: 1.1rem; border-top: 1px solid #cac3bc; }
.gallery-group h3 { margin: 0 0 1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.gallery-grid a { display: block; }
.gallery-grid a:hover { outline: 2px solid #a02134; outline-offset: 3px; }
.gallery-grid img { width: 100%; aspect-ratio: 2; object-fit: contain; background: #eeece7; }
.gallery-group .gallery-grid img { aspect-ratio: 3 / 2; }
.gallery-viewer { width: min(94vw, 70rem); max-height: 94vh; padding: 1rem; border: none; background: #222; color: #fff; }
.gallery-viewer::backdrop { background: #000c; }
.gallery-viewer form { display: flex; justify-content: end; margin-bottom: .75rem; }
.gallery-viewer button { border: 1px solid #ddd; padding: .4rem .8rem; font: inherit; color: inherit; background: transparent; cursor: pointer; }
.gallery-viewer img { width: 100%; max-height: 68vh; object-fit: contain; }
.gallery-viewer figcaption { color: #fff; text-align: center; }
.gallery-controls { display: flex; justify-content: center; gap: 1rem; margin-top: .8rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { border-top: 1px solid #a02134; padding: 1.15rem 0; }
.card h2, .card h3 { font-size: 1.15rem; margin: 0; }
.card p { margin-bottom: 0; }
.article { max-width: 52rem; }
.collection-page { width: min(100%, 1180px); }
.collection-banner img { width: 100%; aspect-ratio: 1180 / 587; }
.collection-detail { padding-top: 3rem; }
.collection-layout { display: grid; grid-template-columns: 22% 70%; justify-content: space-between; padding: 2rem 0; }
.collection-menu ul { margin: 0; padding: 0; list-style: none; }
.collection-menu li { border-bottom: 1px solid #ddd; }
.collection-menu a { display: block; padding: .625rem .75rem; color: #626262; font-size: .9375rem; text-decoration: none; }
.collection-menu a:hover { text-decoration: underline; }
.collection-menu a[aria-current="page"] { color: #990c1d; box-shadow: inset 3px 0 #df0000; font-weight: 700; }
.collection-article { min-width: 0; color: #444; }
.collection-article h1 { margin: 0 0 .35rem; color: #df0000; font-size: 1.5625rem; }
.collection-article p { margin: 0 0 1.1em; }
.collection-article .tit_articulo_sec { margin-bottom: .4rem; color: #626262; font-size: .9375rem; }
.collection-article .tit_articulo_sec:empty { display: none; }
.collection-works { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: .75rem; margin: 1.5rem 0 0; padding: 1rem 0 0; border-top: 1px solid #bbb; list-style: none; }
.collection-works a { display: block; color: inherit; }
.collection-works img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f3f1ef; margin-bottom: .4rem; }
@media (max-width: 75rem) {
  .collection-layout { padding-inline: 1.25rem; }
}
@media (max-width: 40rem) {
  .collection-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .collection-works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.article img { margin-block: 1rem; }
.article table { display: block; max-width: 100%; overflow-x: auto; }
.article :is(td, th) { padding: .45rem; }
.article :is(.tit_articulo, .tit_articulo_sec) { font-weight: bold; }
footer { background: #222; color: #fff; }
footer a { color: inherit; }
.legacy-footer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; padding-block: 2rem; }
.legacy-footer p { margin: .4em 0; }
.copy_img img { width: min(100%, 9rem); }

@media (max-width: 50rem) {
  .masthead { position: static; }
  .masthead-inner { min-height: 4.5rem; display: flex; align-items: center; }
  .brand { position: static; margin-inline: .5rem; flex: 0 0 4.5rem; }
  .masthead nav { width: 100%; min-height: 0; margin: 0; }
  .masthead nav a { font-size: .85rem; }
  .cards, .activities .grid, .legacy-footer, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-strip { grid-auto-columns: calc((100% - 1.25rem) / 2); }
}

@media (max-width: 32rem) {
  .masthead nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem .5rem; padding: .35rem .25rem; }
  .cards, .activities .grid, .legacy-footer, .gallery-grid, .museo_contacto { grid-template-columns: 1fr; }
  .program-strip { grid-auto-columns: 90%; }
  .museo_contacto { gap: 1rem; }
  .slide-copy { max-width: calc(100% - 2.5rem); margin-left: 1.25rem; border-left-width: 1rem; }
  .slide-archival > img { object-position: 58% top; }
}

@media (hover: none) {
  .slide-controls .slide-rotation { opacity: 1; }
}
