/* ============================================================
   Historia — Parallax + panel de cristal lateral
   Texto siempre legible sobre imagen o video
   ============================================================ */

.rd-historia-section {
  background-color: var(--rd-negro);
  overflow: hidden;
}

/* Parallax: el contenido queda sobre el overlay */
.rd-historia-section.rd-parallax > .rd-container {
  position: relative;
  z-index: 2;
}

/* ── Overlay degradado lateral ───────────────────────────── */
.rd-historia-section .rd-parallax-overlay {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.90) 0%,
    rgba(0, 0, 0, 0.65) 55%,
    rgba(0, 0, 0, 0.20) 100%
  );
}

/* ── Columna texto — panel cristal ──────────────────────── */
.rd-historia__texto-wrap {
  padding: 48px 44px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 3px solid var(--rd-borgona);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Texto sobre imagen — sombra */
.rd-historia__texto-wrap h2,
.rd-historia__texto-wrap p,
.rd-historia__texto-wrap .rd-label {
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

/* ── Video / Imagen ──────────────────────────────────────── */
.rd-historia__media {
  position: relative;
  overflow: hidden;
}

.rd-historia__media img,
.rd-historia__media video {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.rd-historia__media:hover img,
.rd-historia__media:hover video {
  transform: scale(1.04);
}

/* Borde decorativo en la imagen */
.rd-historia__media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 169, 110, 0.25);
  pointer-events: none;
  z-index: 1;
}

/* Placeholder sin imagen */
.rd-historia-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.rd-historia-placeholder i {
  font-size: 5rem;
  color: rgba(139,26,26,0.3);
}

/* ── Timeline ────────────────────────────────────────────── */
.rd-timeline {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
}

.rd-timeline-item {
  display: grid;
  grid-template-columns: 56px 20px 1fr;
  gap: 0 14px;
  align-items: start;
  padding: 10px 0;
}

.rd-timeline-año {
  font-family: var(--rd-font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rd-dorado);
  text-align: right;
  line-height: 1.6;
  padding-top: 2px;
}

.rd-timeline-linea {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}
.rd-timeline-linea::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rd-borgona);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(139,26,26,0.2);
}
.rd-timeline-linea::after {
  content: '';
  flex: 1;
  width: 1px;
  background: rgba(139,26,26,0.3);
  margin-top: 5px;
  min-height: 20px;
}
.rd-timeline-item:last-child .rd-timeline-linea::after {
  display: none;
}

.rd-timeline-texto {
  font-size: 0.9rem;
  color: rgba(240,232,220,0.75);
  line-height: 1.55;
  padding-top: 2px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
  .rd-historia__texto-wrap {
    padding: 36px 28px;
    margin-top: 32px;
  }
  .rd-historia-section .rd-parallax-overlay {
    background: rgba(0,0,0,0.75);
  }
}

@media (max-width: 768px) {
  .rd-historia__texto-wrap { padding: 28px 20px; border-left-width: 2px; }
  .rd-historia-section.rd-parallax { background-attachment: scroll; }
}

@media (max-width: 480px) {
  .rd-historia__texto-wrap { padding: 22px 16px; }
  .rd-historia__media img, .rd-historia__media video { aspect-ratio: 16/9; }
}
