/* Estilos para el carrusel de Instagram con paleta morada y negra */

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0.5rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* background eliminado para evitar errores de layout */
}

.carousel-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.carousel-button {
    background-color: rgba(255, 255, 255, 0.9);
    color: #ff69b4;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-button:hover {
    background-color: #ff69b4;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.carousel-button:active {
    transform: scale(0.95);
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    pointer-events: auto;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e040fb88;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: #ff69b4;
    transform: scale(1.2);
    box-shadow: 0 0 5px #e040fbcc;
}

/* Mejoras para la visualización de imágenes */
.carousel-slide .relative {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, #ff69b4, #e040fb 60%, #181820 100%);
    padding: 10px;
    border-radius: 8px;
}

/* Estilos para pantallas pequeñas */
@media (max-width: 640px) {
    .carousel-button {
        width: 32px;
        height: 32px;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
}

/* Estilos para estados de carga y error */
.carousel-slide.loading,
.carousel-slide.error {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb; /* gray-50 */
}

/* Animación para la transición entre slides */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel-slide {
    animation: fadeIn 0.5s ease-in-out;
}