/* Estilos para imágenes responsivas */
.responsive-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    object-fit: cover;
}

.responsive-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* Contenedor de imagen placeholder ajustado */
.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    min-height: 250px;
    background: linear-gradient(135deg, rgba(23, 112, 156, 0.05), rgba(135, 165, 193, 0.05));
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(23, 112, 156, 0.1), rgba(135, 165, 193, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-placeholder:hover::before {
    opacity: 1;
}

/* Ajustes específicos para diferentes tamaños de pantalla */
@media (max-width: 1200px) {
    .responsive-image {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .image-placeholder {
        min-height: 200px;
    }
    
    .responsive-image {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .image-placeholder {
        min-height: 180px;
    }
    
    .responsive-image {
        max-height: 200px;
        border-radius: 8px;
    }
}

/* Lazy loading placeholder */
.responsive-image[data-loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.responsive-image[data-loading="lazy"].loaded {
    opacity: 1;
}

/* Efecto de loading */
.image-placeholder.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mejoras para accesibilidad */
.responsive-image {
    alt: attr(alt);
}

/* Soporte para diferentes formatos de imagen */
.responsive-image {
    /* Optimización automática según el formato */
    image-rendering: auto;
}

/* Mejoras para pantallas de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .responsive-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Efectos adicionales para la sección de soluciones */
.solution-image .image-placeholder {
    border: 2px solid rgba(23, 112, 156, 0.1);
    transition: all 0.3s ease;
}

.solution-image .image-placeholder:hover {
    border-color: rgba(23, 112, 156, 0.3);
    transform: translateY(-5px);
}
