/* Archivo expositivo unificado.
   La identidad global del sitio —logo, nombre, cabecera y navegación—
   permanece intacta. Este archivo solo modifica la cronología de Exhibiciones. */

.exhibitions-unified {
  --exhibition-red: #d94a3a;
  --exhibition-gold: #b9975b;
  --exhibition-blue: #6f89a6;
  --exhibition-silver: #b9bcc2;
  --exhibition-line: rgba(225, 226, 229, 0.2);
  --exhibition-line-soft: rgba(225, 226, 229, 0.11);

  width: min(100%, 72rem);
  margin: clamp(4rem, 8vw, 7rem) auto 2rem;
}

.exhibitions-unified__header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(3.25rem, 6vw, 5rem);
  padding: 1.35rem 0 clamp(2.4rem, 4vw, 3.4rem);
  border-top: 1px solid var(--exhibition-line);
  border-bottom: 1px solid var(--exhibition-line-soft);
}

.exhibitions-unified__header::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(18rem, 42%);
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--exhibition-red),
    rgba(185, 151, 91, 0.72) 42%,
    rgba(111, 137, 166, 0.5) 72%,
    transparent
  );
}

.exhibitions-unified__eyebrow {
  margin: 0 0 0.95rem;
  color: rgba(225, 226, 229, 0.58);
  font-family: var(--parrafo-font, Arial, sans-serif);
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.exhibitions-unified__header h2 {
  max-width: 15ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.97);
  font-family: var(--titulo-font, Arial, sans-serif);
  font-size: clamp(2.25rem, 3.7vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-wrap: balance;
}

.exhibitions-unified__intro {
  max-width: 36rem;
  margin: 0;
  color: rgba(235, 235, 235, 0.68);
  font-family: var(--parrafo-font, Arial, sans-serif);
  font-size: clamp(0.96rem, 1.1vw, 1.06rem);
  line-height: 1.78;
  text-wrap: pretty;
}

.exhibitions-line {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0.5rem 0 0;
  list-style: none;
}

.exhibitions-line::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0;
  left: 7.05rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--exhibition-line) 2rem,
    var(--exhibition-line) calc(100% - 2rem),
    transparent
  );
}

.exhibitions-event {
  position: relative;
  display: grid;
  grid-template-columns: 5.8rem 2.5rem minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  content-visibility: auto;
  contain-intrinsic-size: 13rem;
}

.exhibitions-event__year {
  position: sticky;
  top: 5rem;
  z-index: 1;
  align-self: start;
  padding: 1.65rem 0.8rem 0 0;
  color: rgba(230, 230, 230, 0.74);
  font-family: var(--titulo-font, Arial, sans-serif);
  font-size: clamp(0.78rem, 1vw, 0.96rem);
  font-weight: 650;
  letter-spacing: 0.015em;
  line-height: 1.15;
  text-align: right;
}

.exhibitions-event__axis {
  position: relative;
  align-self: stretch;
  min-height: 100%;
}

.exhibitions-event__marker {
  position: absolute;
  top: 1.75rem;
  left: 50%;
  width: 0.66rem;
  height: 0.66rem;
  border: 1px solid rgba(225, 226, 229, 0.5);
  border-radius: 50%;
  background: #17191d;
  box-shadow: inset 0 0 0 2px var(--exhibition-red);
  transform: translateX(-50%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.exhibitions-event:nth-child(3n + 2) .exhibitions-event__marker {
  box-shadow: inset 0 0 0 2px var(--exhibition-gold);
}

.exhibitions-event:nth-child(3n) .exhibitions-event__marker {
  box-shadow: inset 0 0 0 2px var(--exhibition-blue);
}

.exhibitions-event__card {
  min-width: 0;
  margin: 0;
  padding: clamp(1.45rem, 3vw, 2.35rem) clamp(0.2rem, 1vw, 0.75rem) clamp(1.7rem, 3.4vw, 2.65rem);
  border-top: 1px solid var(--exhibition-line-soft);
  background: transparent;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.exhibitions-event:first-child .exhibitions-event__card {
  border-top-color: var(--exhibition-line);
}

.exhibitions-event__card:hover {
  border-top-color: rgba(225, 226, 229, 0.26);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.025),
    rgba(255, 255, 255, 0.008) 62%,
    transparent
  );
  transform: translateX(0.22rem);
}

.exhibitions-event:hover .exhibitions-event__marker {
  transform: translateX(-50%) scale(1.18);
}

.exhibitions-event__category {
  display: block;
  margin: 0 0 0.75rem;
  color: rgba(190, 192, 197, 0.68);
  font-family: var(--parrafo-font, Arial, sans-serif);
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  line-height: 1.45;
  text-transform: uppercase;
}

.exhibitions-event__card h3 {
  max-width: 48rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.98);
  font-family: var(--titulo-font, Arial, sans-serif);
  font-size: clamp(1.35rem, 2.25vw, 2.05rem);
  font-weight: 680;
  letter-spacing: -0.012em;
  line-height: 1.12;
  text-wrap: balance;
}

.exhibitions-event__card p {
  max-width: 48rem;
  margin: 0.9rem 0 0;
  color: rgba(232, 232, 232, 0.68);
  font-family: var(--parrafo-font, Arial, sans-serif);
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  line-height: 1.72;
  text-wrap: pretty;
}

.exhibitions-event__media {
  width: min(100%, 34rem);
  margin: 1.35rem 0 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.exhibitions-event__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 260ms ease;
}

.exhibitions-event__card:hover .exhibitions-event__media img {
  transform: scale(1.012);
}

.exhibitions-enhanced .exhibitions-unified__header,
.exhibitions-enhanced .exhibitions-event {
  animation: exhibitions-reveal 420ms ease both;
}

.exhibitions-enhanced .exhibitions-event:nth-child(2) { animation-delay: 35ms; }
.exhibitions-enhanced .exhibitions-event:nth-child(3) { animation-delay: 70ms; }
.exhibitions-enhanced .exhibitions-event:nth-child(4) { animation-delay: 105ms; }
.exhibitions-enhanced .exhibitions-event:nth-child(n + 5) { animation-delay: 140ms; }

@keyframes exhibitions-reveal {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .exhibitions-unified__header {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    align-items: start;
  }

  .exhibitions-unified__header h2 {
    max-width: 18ch;
  }

  .exhibitions-unified__intro {
    max-width: 46rem;
  }
}

@media (max-width: 760px) {
  .exhibitions-unified {
    margin-top: 3.25rem;
  }

  .exhibitions-unified__header {
    margin-bottom: 2.75rem;
    padding-bottom: 2.2rem;
  }

  .exhibitions-unified__header h2 {
    font-size: clamp(2.15rem, 10.5vw, 3.35rem);
  }

  .exhibitions-line::before {
    left: 4.85rem;
  }

  .exhibitions-event {
    grid-template-columns: 3.8rem 2.1rem minmax(0, 1fr);
  }

  .exhibitions-event__year {
    top: 4.5rem;
    padding-top: 1.55rem;
    padding-right: 0.45rem;
    font-size: 0.71rem;
  }

  .exhibitions-event__marker {
    top: 1.65rem;
    width: 0.6rem;
    height: 0.6rem;
  }

  .exhibitions-event__card {
    padding: 1.35rem 0 1.75rem;
  }

  .exhibitions-event__card:hover {
    transform: none;
  }
}

@media (max-width: 430px) {
  .exhibitions-unified__header h2 {
    font-size: clamp(2rem, 12vw, 2.9rem);
  }

  .exhibitions-line::before {
    left: 0.44rem;
  }

  .exhibitions-event {
    grid-template-columns: 0.9rem minmax(0, 1fr);
  }

  .exhibitions-event__year {
    position: static;
    grid-column: 2;
    padding: 1.35rem 0 0.35rem;
    color: rgba(225, 226, 229, 0.72);
    font-size: 0.74rem;
    text-align: left;
  }

  .exhibitions-event__axis {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .exhibitions-event__marker {
    top: 1.45rem;
    left: 50%;
  }

  .exhibitions-event__card {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exhibitions-enhanced .exhibitions-unified__header,
  .exhibitions-enhanced .exhibitions-event {
    animation: none;
  }

  .exhibitions-event__card,
  .exhibitions-event__marker,
  .exhibitions-event__media img {
    transition: none;
  }
}
