body[data-page="referencias"] .nav { position: relative; }
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.refs-head {
  position: relative;
  isolation: isolate;
  background: var(--bg-deep);
  padding: var(--space-16) 0 var(--space-8);
  overflow: hidden;
}
.refs-head::before {
  content: '';
  position: absolute;
  inset: -40% 0 0;
  z-index: -1;
  background: var(--glow-sun);
  opacity: .7;
  pointer-events: none;
}
.refs-head__in { display: flex; flex-direction: column; gap: var(--space-4); }
.refs-head__t { font-size: var(--text-display-lg); font-weight: var(--fw-semibold); line-height: var(--lh-tight); }
.refs-head__lead { margin: 0; font: var(--type-lead); color: var(--text-strong); max-width: 34em; }
.refs-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(17, 11, 10, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-hair);
  padding: var(--space-3) 0;
}
.refs-bar__in { display: flex; flex-direction: column; gap: var(--space-3); }
.refs-search { margin: 0; }
.refs-search__in {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--text-strong);
  background: rgba(17, 11, 10, .55);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-1);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.refs-search__in::placeholder { color: var(--text-faint); }
.refs-search__in:focus { border-color: var(--gold-300); box-shadow: var(--focus-ring); }
.refs-chips {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
.refs-chips[hidden] { display: none; }
.refs-chip {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-1);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.refs-chip:hover { color: var(--gold-200); border-color: var(--border-strong); }
.refs-chip[aria-pressed="true"] { color: var(--action-on-primary); background: var(--gold-300); border-color: var(--gold-300); }
.refs { background: var(--surface-paper); color: var(--text-on-paper); padding: var(--space-8) 0 var(--space-24); }
.refs__in { max-width: 860px; }
.refs__status { margin: 0 0 var(--space-6); font-size: var(--fs-sm); font-style: italic; color: var(--text-on-paper-muted); }
.refs__empty { margin: 0; font-size: var(--fs-md); font-style: italic; color: var(--text-on-paper); }
.refs__empty[hidden] { display: none; }
.refs-cap + .refs-cap { margin-top: var(--space-12); }
.refs-cap[hidden] { display: none; }
.refs-cap__t {
  margin: 0;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-paper);
  font-size: 17px;
  font-weight: var(--fw-semibold);
  letter-spacing: .06em;
  line-height: var(--lh-snug);
  color: var(--text-on-paper);
}
.refs-list { list-style: none; margin: 0; padding: 0; }
.ref {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  column-gap: var(--space-4);
  row-gap: 10px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-paper);
  scroll-margin-top: 150px;
  transition: background-color var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.ref[hidden] { display: none; }
.ref.is-target { background: var(--parchment-100); box-shadow: 0 0 0 12px var(--parchment-100); }
.ref__n {
  grid-column: 1;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 22px;
  line-height: 1.1;
  color: var(--bronze-600);
  font-variant-numeric: tabular-nums;
}
.ref__t { grid-column: 2; margin: 0; font-size: 19px; line-height: 1.45; color: var(--text-on-paper); overflow-wrap: anywhere; }
.ref__links { grid-column: 3; justify-self: end; margin: 0; }
.ref--varios .ref__t { grid-column: 2 / -1; }
.ref__subs { grid-column: 2 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ref__subs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-4); align-items: baseline; }
.ref__subs li > span { font-size: 17px; line-height: 1.4; color: var(--text-on-paper-muted); }
.ref__panel { grid-column: 1 / -1; padding: 6px 0 8px; }
.ref__panel[hidden] { display: none; }
html.js:not(.refs-listo) .ref__panel { display: none; }
.ref__panel .ref__links { justify-self: auto; margin: 12px 0 0; text-align: center; }
.ref__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: var(--fw-bold);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bronze-600);
  background: transparent;
  border: 1px solid var(--border-paper);
  border-radius: var(--radius-1);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.ref__go::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 8 8 2M3.5 2H8v4.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 8 8 2M3.5 2H8v4.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ref__go:hover { background: var(--night-900); border-color: var(--night-900); color: var(--parchment-50); }
.ref__toggle { cursor: pointer; }
.ref__toggle[hidden] { display: none; }
.ref__toggle::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform var(--dur-base) var(--ease-out);
}
.ref__toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.ref__video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 4px 0 0;
  overflow: hidden;
  border-radius: var(--radius-1);
  background: var(--night-900);
  text-decoration: none;
}
.ref__video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glow-sun);
}
.ref__video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.ref__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: var(--gold-300);
  border-radius: var(--radius-1);
  transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.ref__play::after {
  content: '';
  position: absolute;
  left: 26px;
  top: 20px;
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent var(--night-950);
}
.ref__video:hover .ref__play { background: var(--gold-200); box-shadow: var(--glow-button); }
.ref__vt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-8) var(--space-4) var(--space-3);
  font-style: italic;
  font-size: 17px;
  line-height: 1.3;
  color: var(--parchment-50);
  background: var(--scrim-bottom);
}
.ref__texto {
  font-feature-settings: "locl" 0;
  max-width: 40em;
  margin: 4px auto 0;
  padding: var(--space-6) var(--space-8);
  background: var(--parchment-100);
  border: 1px solid var(--border-paper);
  border-radius: var(--radius-1);
}
.ref__texto-t {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: var(--fw-bold);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bronze-600);
}
.ref__texto p { margin: 0 0 10px; font-size: 18px; line-height: 1.5; color: var(--text-on-paper); }
.ref__texto .ref__texto-t { font-size: 13px; line-height: 1.4; color: var(--bronze-600); }
.ref__texto div + .ref__texto-t { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border-paper); }
.ref__texto div p:last-child { margin-bottom: 0; }
.ref__fuente {
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-paper);
  font-size: 15px;
  font-style: italic;
  color: var(--text-on-paper-muted);
}
.ref__fuente a { color: inherit; text-decoration-color: currentColor; }
.ref__ast { color: var(--bronze-500); }
.ref__aviso { margin: 10px 0 0; font-size: 15px; font-style: italic; color: var(--text-on-paper-muted); }
.ref__aviso a { color: inherit; text-decoration-color: currentColor; }
.ref__desde {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-200);
}
.ref__frame { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 4px 0 0; border: 0; border-radius: var(--radius-1); background: var(--night-900); }
@media (max-width: 640px) {
  .refs-head { padding-top: var(--space-10); }
  .refs-search__in { font-size: 18px; padding: 12px 14px; }
  .ref { grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--space-3); scroll-margin-top: 140px; }
  .ref__n { font-size: 20px; }
  .ref__t { font-size: 18px; }
  .ref__links { grid-column: 2; justify-self: start; }
  .ref__subs li { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .ref__subs li .ref__go { justify-self: start; }
  .ref__texto { padding: var(--space-5) var(--space-4); }
  .ref__texto p { font-size: 17px; }
}
