/* CSS responsive usando Flexbox para animación de una única imagen con efecto de entrada */
.imagen-index-A {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  aspect-ratio: 954 / 340; /* Ratio para navegadores modernos */
}

.imagen-index-A a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.imagen-index-A img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* para estar seguros de que la imagen cubre todo el área sin distorsión */
  opacity: 0;
  transform: scale(1.05);
  animation: singleImageEntry 1.5s forwards;
}

@keyframes singleImageEntry {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

/* Hover effect opcional */
.imagen-index-A:hover img {
  transition: transform 0.5s ease;
  transform: scale(1.02);
}

/* Fallback para navegadores que no soporten aspect-ratio */
@supports not (aspect-ratio: 954 / 340) {
  .imagen-index-A {
    height: 0;
    padding-bottom: 35.64%; /* 340/954 = 35.64% */
  }
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
  .imagen-index-A {
    aspect-ratio: 954 / 340;
  }
  
  @supports not (aspect-ratio: 954 / 340) {
    .imagen-index-A {
      padding-bottom: 35.64%; /* 340/954 = 35.64% */
    }
  }
}
