/**
 * CINIA - Custom Sliders (sin dependencias)
 * Sliders nativos con JavaScript vanilla
 */

/* ========================================
   CLIENT SLIDER (Logos)
   ======================================== */

#client-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 30px 0;
}

.client-slider-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.client-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100px;
}

.client-logo img {
    max-width: 150px;
    max-height: 80px;
    width: auto;
    height: auto;
    display: block;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Responsive para client slider */
@media (min-width: 1200px) {
    .client-logo {
        width: calc(100% / 6);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .client-logo {
        width: calc(100% / 5);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .client-logo {
        width: calc(100% / 4);
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .client-logo {
        width: calc(100% / 2);
    }
}

@media (max-width: 479px) {
    .client-logo {
        width: 100%;
    }
}

/* ========================================
   TESTIMONIAL SLIDER (Libro de visitas)
   ======================================== */

.testimonial-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-item {
    flex: 0 0 100%;
    padding: 0 15px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-item.active {
    opacity: 1;
}

.testimonial-content {
    background: #fff;
    padding: 50px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-content h5 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 20px;
    color: #ad060e;
}

.testimonial-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.testimonial-content h4 {
    font-style: italic;
    color: #333;
    line-height: 1.8;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}

/* Testimonial Navigation Dots */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

.testimonial-dots li {
    margin: 0;
}

.testimonial-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.testimonial-dots button:hover {
    background: #ad060e;
    transform: scale(1.2);
}

.testimonial-dots li.active button {
    background: #ad060e;
    width: 30px;
    border-radius: 6px;
}

/* Responsive para testimonials */
@media (max-width: 767px) {
    .testimonial-content {
        padding: 30px 20px;
        min-height: 250px;
    }
    
    .testimonial-content h5 {
        font-size: 18px;
    }
    
    .testimonial-content h4 {
        font-size: 15px;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-item.active .testimonial-content {
    animation: fadeIn 0.5s ease;
}

