/**
 * Estilos para el Carousel de Testimonios de ConducePro
 */

/* Importar fuentes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* Contenedor principal */
.conducepro-testimonials-carousel-wrapper {
    position: relative;
    padding: 20px 60px;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Wrapper con borde negro (simulando el borde) */
.conducepro-testimonial-card {
    background: transparent url('/wp-content/plugins/conducepro/assets/img/bg-slider.svg') no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
    padding: 1px !important; /* Grosor del borde */
    margin: 0 15px;
    display: inline-block !important;
    padding-right: 40px;
    aspect-ratio: 255/339;
    min-height: 360px;
    box-sizing: border-box !important;
}

/* Contenido interno de la tarjeta */
.conducepro-testimonial-content-wrapper {

    padding: 30px 25px;
    padding-right: 40px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

/* Estrellas de calificación */
.conducepro-testimonial-rating {
    margin-bottom: 20px;
    display: flex;
    gap: 4px;
}

.conducepro-testimonial-rating .star {
    font-size: 24px;
    color: #FED700;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.conducepro-testimonial-rating .star.empty {
    color: #e0e0e0;
}

/* Título del testimonio */
.conducepro-testimonial-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px!important;
    font-weight: 700;
    color: #000000!important;
    margin: 0 0 20px 0;
    line-height: 1.3;
    min-height: auto;
}

/* Contenido del testimonio */
.conducepro-testimonial-content {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    margin: 0 0 25px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Información del usuario */
.conducepro-testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    padding-top: 15px;
    border-top: none;
}

/* Avatar del usuario */
.conducepro-testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #000000;
    box-shadow: none;
}

.conducepro-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Información del usuario */
.conducepro-testimonial-info {
    flex: 1;
}

.conducepro-testimonial-name {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 5px 0;
}

.conducepro-testimonial-location {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #F57E20;
    margin: 0;
}

/* Navegación del Swiper */
.conducepro-testimonials-carousel-wrapper .swiper-button-next,
.conducepro-testimonials-carousel-wrapper .swiper-button-prev {
    width: 80px;
    height: 80px;
    background: transparent;
    border: none;
    color: #000000;
    margin-top: -40px;
    transition: all 0.3s ease;
}

/* Ocultar los iconos predeterminados de Swiper */
.conducepro-testimonials-carousel-wrapper .swiper-button-next::after,
.conducepro-testimonials-carousel-wrapper .swiper-button-prev::after {
    display: none;
}

/* Crear flechas personalizadas con CSS */
.conducepro-testimonials-carousel-wrapper .swiper-button-next::before,
.conducepro-testimonials-carousel-wrapper .swiper-button-prev::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 30px;
    height: 30px;
    border-top: 1px solid #000000;
    border-right: 1px solid #000000;
    transition: all 0.3s ease;
}

.conducepro-testimonials-carousel-wrapper .swiper-button-prev::before {
    transform: translate(-50%, -50%) rotate(-135deg);
}

.conducepro-testimonials-carousel-wrapper .swiper-button-next:hover::before,
.conducepro-testimonials-carousel-wrapper .swiper-button-prev:hover::before {
    border-color: #02006D !important;
    transform: translate(-50%, -50%) rotate(45deg) scale(1.1);
}

.conducepro-testimonials-carousel-wrapper .swiper-button-prev:hover::before {
    transform: translate(-50%, -50%) rotate(-135deg) scale(1.1);
}

.conducepro-testimonials-carousel-wrapper .swiper-button-next {
    right: -20px;
}

.conducepro-testimonials-carousel-wrapper .swiper-button-prev {
    left: -20px;
}

/* Paginación */
.conducepro-testimonials-carousel-wrapper .swiper-pagination {
    bottom: -50px;
}

.conducepro-testimonials-carousel-wrapper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cccccc;
    opacity: 1;
    margin: 0 4px;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.conducepro-testimonials-carousel-wrapper .swiper-pagination-bullet-active {
    background: #000000;
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 768px) {
    .conducepro-testimonials-carousel-wrapper {
        padding: 20px 50px;
    }
    
    .conducepro-testimonial-card {
        margin: 0 10px;
        aspect-ratio: 255/339;
    }
    
    .conducepro-testimonial-content-wrapper {
        padding: 20px !important;
    }
    
    .conducepro-testimonial-title {
        font-size: 13px;
        min-height: auto;
    }
    
    .conducepro-testimonial-content {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
    
    .conducepro-testimonial-avatar {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }
    
    .conducepro-testimonial-name {
        font-size: 13px;
    }
    
    .conducepro-testimonial-location {
        font-size: 13px;
    }
    
    .conducepro-testimonials-carousel-wrapper .swiper-button-next,
    .conducepro-testimonials-carousel-wrapper .swiper-button-prev {
        width: 60px;
        height: 60px;
        margin-top: -30px;
    }
    
    .conducepro-testimonials-carousel-wrapper .swiper-button-next::before,
    .conducepro-testimonials-carousel-wrapper .swiper-button-prev::before {
        width: 20px;
        height: 20px;
        border-width: 4px;
    }
    
    .conducepro-testimonials-carousel-wrapper .swiper-button-next {
        right: -25px;
    }
    
    .conducepro-testimonials-carousel-wrapper .swiper-button-prev {
        left: -25px;
    }
}

@media (max-width: 480px) {
    .conducepro-testimonials-carousel-wrapper {
        padding: 20px 40px;
    }
    
    .conducepro-testimonials-carousel-wrapper .swiper-button-next {
        right: -20px;
    }
    
    .conducepro-testimonials-carousel-wrapper .swiper-button-prev {
        left: -20px;
    }
    
    .conducepro-testimonial-card {
        margin: 0 5px;
    }
    
    .conducepro-testimonial-content-wrapper {
    }
}

/* Animaciones simples */
.conducepro-testimonial-card {
    transition: border-color 0.3s ease;
}

/* Estados de hover simples */
.conducepro-testimonial-card:hover .conducepro-testimonial-title {
    color: #02006D;
    transition: color 0.3s ease;
}