/* Estilos para las tarjetas de imágenes y texto */
.image-item {
    display: flex;
    align-items: center;
    margin: 20px 0;
    transition: transform 0.5s ease;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.image-item:hover {
    transform: translateX(
        10px
    ); /* Deslizar hacia la derecha al pasar el ratón */
}

.image-container {
    width: 300px;
    height: 400px;
    margin-right: 20px;
    position: relative;
    transition: transform 0.5s ease;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.image:hover {
    filter: brightness(0.8); /* Aplica brillo al pasar el ratón */
    transform: scale(1.05); /* Aumenta ligeramente el tamaño de la imagen */
}

.text-container {
    flex: 1;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    animation: fadeInUp 0.7s forwards;
}

.text {
    font-size: 18px;
    line-height: 1.6;
    text-align: justify;
}

.date {
    font-size: 14px;
    font-weight: bold;
    margin-top: 15px;
    color: #555;
}

.button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    text-align: center;
    margin-top: 15px;
    opacity: 0;
    animation: fadeIn 0.7s forwards;
    animation-delay: 0.3s;
}

.button:hover {
    background-color: #0056b3;
}

/* Animación para los elementos de texto */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilo para el título */
.tituloVistas {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s forwards;
}

/* Efecto de entrada para las tarjetas */
.card {
    opacity: 0;
    transform: translateY(50px);
    animation: slideIn 0.8s forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para la animación de tarjetas */
.card:hover {
    transform: translateY(
        -10px
    ); /* Efecto de elevar la tarjeta al pasar el ratón */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .image-item {
        flex-direction: column;
        text-align: center;
    }

    .image-container {
        width: 80%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .text-container {
        width: 80%;
        margin: 0 auto;
        padding: 10px;
    }

    .tituloVistas {
        font-size: 1.5rem;
        margin-top: 20px;
    }

    .button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .image-container {
        width: 100%;
        height: auto;
    }

    .text {
        font-size: 16px;
    }

    .date {
        font-size: 12px;
    }

    .button {
        font-size: 12px;
        padding: 8px 12px;
    }
}
