/* Exclusivo de Historia: selección privada, encuadres completos y navegación por edición. */
html { scroll-behavior: auto; scroll-padding-top: calc(var(--a-header-h) + 70px); }
.his-preview { margin: 0 0 1.8rem; padding: .8rem 1rem; border-left: 3px solid var(--a-accent, #a02b94); font-size: .82rem; background: #eee6ed; color: #4d3549; }
.his-years { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 2rem; list-style: none; }
.his-years a { display: block; min-width: 4.7rem; padding: .65rem 1rem; border: 1px solid #c6b8c4; text-decoration: none; text-align: center; font-weight: 700; border-radius: 2px; }
.his-years a[aria-current="true"] { background: var(--a-night); color: #fff; border-color: var(--a-night); }
.his-cover { background: var(--a-night); color: var(--a-on-stage); display: grid; grid-template-columns: .7fr 1.5fr; gap: 2.5rem; padding: 2.5rem; align-items: center; }
.his-cover__year { margin: 0; font-size: clamp(4.5rem, 8vw, 8rem); line-height: 1.1; font-weight: 600; letter-spacing: -.06em; }
.his-cover__copy p { margin-top: 1rem; }
.his-cover .pi-note { color: var(--a-on-stage-muted); }
.his-cover__figure { margin: 0; display: flex; justify-content: center; align-items: center; min-width: 0; }
.his-cover__figure .m-img { width: 100%; height: auto; object-fit: contain; max-height: 530px; }
.his-cover--2018 .his-cover__figure { max-width: 700px; }
.his-cover__empty { padding: 3rem 1rem; border: 1px solid var(--a-stage-line); font-size: 1.2rem; }
.his-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; padding: 1.1rem 0 2rem; border-bottom: 1px solid #d4cbd2; }
.his-nav a { padding: .35rem 0; font-size: .85rem; }
.his-part { padding-top: 3rem; scroll-margin-top: 0; }
.his-part h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 1.5rem; }
.his-part h4 { font-size: 1rem; margin: 2rem 0 1rem; }
.his-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; align-items: start; }
.his-grid li { min-width: 0; }
.his-photo { display: block; padding: 0; width: 100%; background: #120b17; border: 0; cursor: zoom-in; }
.his-photo .m-img { width: 100%; height: auto; max-height: 440px; object-fit: contain; display: block; }
.his-cover__figure .his-photo { background: transparent; }
.his-cover__figure .his-photo .m-img { width: 100%; max-width: 100%; height: auto; max-height: 530px; margin: auto; }
.his-photo:focus-visible, .his-years a:focus-visible { outline: 3px solid #b7349f; outline-offset: 4px; }
.his-more { margin-top: 1.5rem; }
.his-jury-head { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: start; }
.his-jury-head label { display: grid; gap: .45rem; font-size: .85rem; }
.his-jury-head select { padding: .65rem 2.5rem .65rem .8rem; font: inherit; background: #fff; color: #231329; border: 1px solid #9c8a9b; }
.his-plates { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.his-plates figure { margin: 0; }
.his-plates img { display: block; width: 100%; height: auto; object-fit: contain; }
.his-plates figcaption { padding-top: .6rem; font-size: .83rem; line-height: 1.5; }
.his-plates small { display: block; color: #6c5969; }
.his-credits { margin-top: 3rem; padding: 2rem; border-top: 1px solid #d4cbd2; background: #eee8ed; border-radius: var(--a-radius); }
.his-credits h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 1rem; }
.his-credits p { max-width: 75ch; font-size: .9rem; line-height: 1.5; }
.his-credits__intro { font-weight: 600; color: var(--a-ink); margin: 0 0 .5rem; }
.his-credits__list { list-style: none; padding: 0; margin: .8rem 0 1rem; display: flex; flex-wrap: wrap; gap: .75rem 1.6rem; align-items: baseline; }
.his-credits__item { display: inline-flex; align-items: baseline; font-size: .95rem; line-height: 1.4; }
.his-credits__item a { font-weight: 600; display: inline-flex; align-items: baseline; gap: .25rem; }
.his-credits__name { font-weight: 600; color: var(--a-ink); display: inline-block; }
.his-credits__nota { margin-top: 1rem; font-size: .82rem; color: var(--a-ink-muted); }
.his-part .pa-feat__meta, .his-part .vcard__titulo { color: var(--a-ink-muted); }
.his-lightbox { width: min(1150px,96vw); max-height: 96vh; border: 0; padding: 1rem; background: #120b17; color: white; }
.his-lightbox::backdrop { background: #08050dec; }
.his-lightbox__bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.his-lightbox button { background: transparent; color: white; border: 1px solid #9e879d; padding: .6rem .9rem; cursor: pointer; font: inherit; }
.his-lightbox__image > div { display: flex; justify-content: center; }
.his-lightbox__image img { width: 100%; height: 72vh; max-width: min(100%,var(--his-img-w)); max-height: min(72vh,var(--his-img-h)); object-fit: contain; display: block; margin: .75rem 0; }
@media(max-width:860px) {
  .his-cover { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
  .his-cover__copy p { margin: .5rem 0; }
  .his-cover__year { font-size: 5rem; }
  .his-plates { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:600px) {
  .his-years a { min-width: 3.7rem; padding: .65rem .7rem; }
  .his-cover { padding: 1.1rem; }
  .his-cover__figure .m-img { max-height: none; }
  .his-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
  .his-grid--featured { grid-template-columns: 1fr; gap: 1rem; }
  .his-plates { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
  .his-photo .m-img { max-height: none; }
  .his-credits { padding: 1.1rem; }
  .his-nav { gap: .3rem 1rem; }
}
