/* Ruta: public/css/sobre-albert.css — Sobre Albert
   Reemplaza la versión anterior (hero con "wave" + timeline horizontal de 5 pasos).
   Nueva estructura: banner del candidato + timeline vertical alternada (Logros),
   timeline vertical alternada (Vida Política), Biografía, y modal/lightbox de evidencia.

   Paleta de marca:
   - Principal Guinda: #4A0A12
   - Oscuro Secundario: #2D0A0F
   - Intermedio: #6B0F1A
   - Acento Rojo: #CC0000
   - Fondo General: #F5F5F5
   - Tipografías: 'Space Grotesk' (títulos), 'Inter' (cuerpo)
*/

.albert-seccion {
  background-color: #F5F5F5;
  color: #1F1A1B;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  padding: 4rem 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.albert-seccion *, .albert-seccion *::before, .albert-seccion *::after {
  box-sizing: border-box;
}

.albert-seccion__contenedor {
  max-width: 1140px;
  margin: 0 auto;
}

.albert-seccion__bloque {
  margin-bottom: 5rem;
}

.albert-seccion__bloque:last-child {
  margin-bottom: 1rem;
}

/* BANNER DE IMAGEN PRINCIPAL DEL CANDIDATO */
.albert-banner {
  margin-bottom: 3.5rem;
}

/* Layout 50/50: imagen izquierda, texto derecha */
.albert-banner__contenedor-imagen {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(74, 10, 18, 0.12);
  border: 1px solid #E8E2E3;
  background-color: #FFFFFF;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

@media (max-width: 767px) {
  .albert-banner__contenedor-imagen {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.albert-banner__imagen {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 767px) {
  .albert-banner__imagen {
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
  }
}

/* Panel de texto derecho */
.albert-banner__texto {
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  background: #FFFFFF;
}

.albert-banner__etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #2D0A0F;
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  align-self: flex-start;
}

.albert-banner__nombre {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #2D0A0F;
  line-height: 1.15;
  margin: 0;
}

.albert-banner__nombre span {
  color: #CC0000;
}

.albert-banner__cargo {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-weight: 600;
  color: #6B0F1A;
  margin: 0;
}

.albert-banner__lema {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: rgba(45, 10, 15, 0.72);
  line-height: 1.6;
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid #CC0000;
  font-style: italic;
}

.albert-banner__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.albert-banner__stat {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: #F5F5F5;
  border-radius: 10px;
  border: 1px solid rgba(107, 15, 26, 0.08);
}

.albert-banner__stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #CC0000;
  display: block;
  line-height: 1;
}

.albert-banner__stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(45, 10, 15, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-top: 0.25rem;
}

/* ENCABEZADOS CENTRADOS DE SECCIÓN */
.albert-seccion__encabezado {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.albert-seccion__etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #2D0A0F;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(204, 0, 0, 0.4);
  margin-bottom: 1rem;
}

.albert-seccion__etiqueta svg {
  color: #CC0000;
}

.albert-seccion__titulo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1.2;
  color: #4A0A12;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .albert-seccion__titulo {
    font-size: 2.75rem;
  }
}

.albert-seccion__linea-decorativa {
  width: 60px;
  height: 4px;
  background-color: #CC0000;
  margin: 0 auto 1.25rem auto;
  border-radius: 2px;
}

.albert-seccion__bajada {
  font-size: 1rem;
  line-height: 1.6;
  color: #5C5254;
  margin: 0;
}

/* ==========================================================================
   LÍNEA DE TIEMPO VERTICAL ALTERNADA (ZIGZAG EN DESKTOP, COLAPSO EN MOBILE)
   ========================================================================== */
.timeline {
  position: relative;
  margin-top: 2rem;
  padding: 1rem 0;
}

.timeline__eje {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 4px;
  background: linear-gradient(180deg, #4A0A12 0%, #6B0F1A 50%, #CC0000 100%);
  border-radius: 2px;
}

@media (min-width: 768px) {
  .timeline__eje {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline__item {
  position: relative;
  margin-bottom: 3.5rem;
  padding-left: 54px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .timeline__item {
    padding-left: 0;
    width: 50%;
    margin-left: 0;
  }

  .timeline__item--invertido {
    margin-left: 50%;
  }
}

.timeline__nodo {
  position: absolute;
  top: 20px;
  left: 20px;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background-color: #FFFFFF;
  border: 4px solid #4A0A12;
  border-radius: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(74, 10, 18, 0.12);
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.timeline__nodo-punto {
  width: 8px;
  height: 8px;
  background-color: #CC0000;
  border-radius: 50%;
}

.timeline__item:hover .timeline__nodo {
  border-color: #CC0000;
  background-color: #2D0A0F;
  transform: translateX(-50%) scale(1.25);
}

@media (min-width: 768px) {
  .timeline__nodo {
    left: 100%;
  }

  .timeline__item--invertido .timeline__nodo {
    left: 0;
  }
}

.timeline__tarjeta {
  background-color: #FFFFFF;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #E8E2E3;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 768px) {
  .timeline__item:not(.timeline__item--invertido) .timeline__tarjeta {
    margin-right: 2.25rem;
  }

  .timeline__item--invertido .timeline__tarjeta {
    margin-left: 2.25rem;
  }
}

.timeline__tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(74, 10, 18, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
  border-color: #6B0F1A;
}

.timeline__tarjeta-cabecera {
  margin-bottom: 1rem;
}

.timeline__ano {
  display: inline-block;
  background-color: #4A0A12;
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.timeline__ano--destacado {
  background-color: #CC0000;
}

.timeline__titulo-hito {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #2D0A0F;
  margin: 0 0 0.25rem 0;
}

.timeline__entidad {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #8C2230;
  margin-bottom: 0.5rem;
}

.timeline__descripcion {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4A4244;
  margin: 0;
}

/* EVIDENCIA THUMBNAIL EN TARJETA */
.timeline__evidencia-box {
  margin-top: 1.25rem;
}

.timeline__evidencia-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background-color: #2D0A0F;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.timeline__evidencia-btn:hover,
.timeline__evidencia-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(74, 10, 18, 0.2);
}

.timeline__evidencia-thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.timeline__evidencia-btn:hover .timeline__evidencia-thumb {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.timeline__evidencia-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(45, 10, 15, 0.35);
  transition: background-color 0.3s ease;
}

.timeline__evidencia-overlay--lupa {
  opacity: 0;
  color: #FFFFFF;
  background: rgba(74, 10, 18, 0.7);
  transition: opacity 0.3s ease;
}

.timeline__evidencia-btn:hover .timeline__evidencia-overlay--lupa,
.timeline__evidencia-btn:focus-visible .timeline__evidencia-overlay--lupa {
  opacity: 1;
}

.timeline__play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(204, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, background-color 0.3s ease;
  padding-left: 4px;
}

.timeline__evidencia-btn:hover .timeline__play-circle {
  transform: scale(1.15);
  background-color: #CC0000;
}

.timeline__evidencia-texto {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   MODAL / LIGHTBOX DE EVIDENCIA (IMAGEN O VIDEO)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-contenedor {
  position: relative;
  width: 100%;
  max-width: 920px;
  background-color: #1A0508;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-cerrar-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.modal-cerrar-btn:hover {
  background-color: #CC0000;
  border-color: #CC0000;
  transform: scale(1.1);
}

.modal-titulo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 2.5rem 1rem 0;
  line-height: 1.3;
}

.modal-titulo:empty {
  display: none;
}

.modal-cuerpo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  background-color: #000000;
}

.modal-cuerpo--imagen {
  max-height: 70vh;
}

.modal-imagen {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.modal-cuerpo--video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.modal-iframe,
.modal-video-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  object-fit: contain;
  background-color: #000000;
}

/* ==========================================================================
   BLOQUE BIOGRAFÍA
   ========================================================================== */
.biografia {
  margin-top: 2rem;
}

.biografia__tarjeta {
  background-color: #FFFFFF;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
  border: 1px solid #E8E2E3;
}

@media (min-width: 768px) {
  .biografia__tarjeta {
    padding: 3rem;
  }
}

.biografia__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .biografia__grid {
    grid-template-columns: 340px 1fr;
  }
}

.biografia__imagen-marco {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(74, 10, 18, 0.18);
  border: 4px solid #FFFFFF;
  background-color: #2D0A0F;
}

.biografia__foto {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.biografia__sello-partido {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background-color: #4A0A12;
  color: #FFFFFF;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.biografia__sello-texto {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.biografia__nombre {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #2D0A0F;
  margin: 0 0 0.25rem 0;
}

@media (min-width: 768px) {
  .biografia__nombre {
    font-size: 2.25rem;
  }
}

.biografia__subtitulo {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #8C2230;
  margin-bottom: 1.5rem;
}

.biografia__parrafo {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #383032;
  margin: 0 0 1.25rem 0;
}

.biografia__destacado {
  background-color: #FDF8F9;
  border-left: 4px solid #CC0000;
  padding: 1.25rem 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 1.5rem 0;
  position: relative;
}

.biografia__comilla-icon {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.biografia__cita-texto {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
  color: #4A0A12;
  margin: 0;
  font-style: italic;
}

.biografia__detalles-lista {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.biografia__detalle-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #2D0A0F;
}

.biografia__detalle-icono {
  color: #CC0000;
  font-weight: 800;
}