/* views/css/imagecarousel.css */
.imagecarousel-wrapper {
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.imagecarousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.imagecarousel-slides {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.imagecarousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagecarousel-slide.active {
    opacity: 1;
}

.imagecarousel-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.imagecarousel-picture {
    width: 100%;
    height: 100%;
    display: block;
}

.imagecarousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.imagecarousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
}

.imagecarousel-content-inner {
    max-width: 800px;
    margin: 0 auto;
}

.imagecarousel-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.imagecarousel-description {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Navegación */
.imagecarousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.imagecarousel-prev,
.imagecarousel-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagecarousel-prev:hover,
.imagecarousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Indicadores */
.imagecarousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.imagecarousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.imagecarousel-indicator.active,
.imagecarousel-indicator:hover {
    background: white;
    border-color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .imagecarousel-slides {
        height: 250px;
    }
    
    .imagecarousel-title {
        font-size: 1.5rem;
    }
    
    .imagecarousel-description {
        font-size: 1rem;
    }
    
    .imagecarousel-content {
        padding: 20px 15px 15px;
    }
    
    .imagecarousel-nav {
        padding: 0 10px;
    }
    
    .imagecarousel-prev,
    .imagecarousel-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .imagecarousel-slides {
        height: 200px;
    }
    
    .imagecarousel-title {
        font-size: 1.2rem;
    }
    
    .imagecarousel-description {
        font-size: 0.9rem;
    }
    
    .imagecarousel-prev,
    .imagecarousel-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .imagecarousel-indicator {
        width: 10px;
        height: 10px;
    }
}

/* Animaciones adicionales */
.imagecarousel-slide.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.imagecarousel-slide.fade-out {
    animation: fadeOut 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Mejoras de accesibilidad */
.imagecarousel-prev:focus,
.imagecarousel-next:focus,
.imagecarousel-indicator:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Pausar animación cuando el usuario prefiere reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    .imagecarousel-slide {
        transition: none;
    }
    
    .imagecarousel-slide.fade-in,
    .imagecarousel-slide.fade-out {
        animation: none;
    }
}