/* Estilos principales del Thumbnail Slider */

.qodef-thumbnail-slider {
    width: 100%;
    overflow: hidden;
}

.qodef-m-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Lado Izquierdo - Slider Principal */
.qodef-m-left {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.qodef-m-slides {
    width: 100%;
    height: 500px; /* Altura por defecto, ajustable */
}

.qodef-e-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lado Derecho - Miniaturas */
.qodef-m-right {
    flex: 0 0 400px;
    max-width: 400px;
    position: relative;
}

.qodef-m-right-inner {
    height: 100%;
}

.qodef-m-thumbnails-holder {
    position: relative;
    height: 500px; /* Debe coincidir con la altura del slider principal */
    overflow: hidden;
}

.qodef-m-thumbnails {
    height: 100% !important;
}

.qodef-m-thumb-item {
    height: auto !important;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
    opacity: 0.6;
}

.qodef-m-thumb-item.swiper-slide-active {
    opacity: 1;
    background-color: #f9f9f9;
}

.qodef-m-thumb-image {
    margin-bottom: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qodef-m-thumb-image svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.qodef-m-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qodef-title-number {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

.qodef-m-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Línea activa */
.qodef-active-line {
    position: absolute;
    left: 0;
    width: 3px;
    background-color: #000;
    transition: top 0.3s ease, height 0.3s ease;
    z-index: 10;
}

/* Responsive */
@media (max-width: 768px) {
    .qodef-m-inner {
        flex-direction: column;
    }
    
    .qodef-m-right {
        flex: auto;
        max-width: 100%;
    }
    
    .qodef-m-slides {
        height: 300px;
    }
    
    .qodef-m-thumbnails-holder {
        height: 300px;
    }
}
