/* ==========================================
   ESTILOS EXCLUSIVOS: HISTORIA.HTML
   ========================================== */

/* Animación de entrada por scroll */
.img-scroll-effect {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.img-scroll-effect.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Carta Constitutiva - Desplazamiento desde la izquierda en Escritorio */
@media (min-width: 769px) {
  .carta-slide-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .carta-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
  }
  .interactive-zoom {
    cursor: zoom-in;
  }
}

/* Escala suave en Celulares al scrollear */
@media (max-width: 768px) {
  img.scroll-active {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
}

/* Visor de Imágenes Ampliadas (Modal Zoom) */
.modal-image-viewer {
  display: none;
  position: fixed;
  z-index: 2500;
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.modal-image-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-image-container img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}

.close-modal {
  position: absolute;
  top: -35px; 
  right: 0;
  color: #ffffff;
  font-size: 30px;
  cursor: pointer;
}

/* Escritorio: mantiene el tamaño cómodo original */
.list-fundadores li {
  font-weight: 600;
  color: #5a6268;
  line-height: 1.9;
  font-size: 1rem;
}

/* Celular: ajuste fino de tipografía para evitar saltos de línea */
@media (max-width: 575.98px) {
  .list-fundadores li {
    font-size: 0.8rem; /* Tamaño optimizado para pantallas chicas */
    line-height: 1.6;
    white-space: nowrap; /* Fuerza que el nombre quede completo en 1 solo renglón */
  }
}

/* Para pantallas extremadamente angostas (iPhone SE o pantallas < 360px) */
@media (max-width: 360px) {
  .list-fundadores li {
    font-size: 0.55rem;
  }
}