/* Estilos principales del widget de testimonios */
.ntw-testimonios {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Diseño de lista */
.ntw-layout-lista .ntw-testimonio {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
}

.ntw-layout-lista .ntw-testimonio:last-child {
    margin-bottom: 0;
    border-bottom: 0;
    padding-bottom: 0;
}

/* Diseño de cuadrícula */
.ntw-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.ntw-layout-grid .ntw-testimonio {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.ntw-layout-grid .ntw-testimonio:hover {
    transform: translateY(-5px);
}

/* Imagen de perfil */
.ntw-testimonio-img {
    flex-shrink: 0;
    margin-right: 20px;
}

.ntw-layout-grid .ntw-testimonio-img {
    margin-right: 0;
    margin-bottom: 15px;
    text-align: center;
}

.ntw-avatar {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

/* Contenido del testimonio */
.ntw-testimonio-content {
    flex: 1;
}

.ntw-testimonio-text {
    font-style: italic;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.ntw-testimonio-text:before {
    content: '"';
    font-size: 40px;
    color: #0073aa;
    position: absolute;
    left: 0;
    top: -10px;
    font-family: Georgia, serif;
}

/* Calificación con estrellas */
.ntw-rating {
    margin-bottom: 10px;
}

.ntw-star {
    font-size: 20px;
    color: #ddd;
}

.ntw-star-full {
    color: #ffb900;
}

/* Información del autor */
.ntw-testimonio-author {
    margin-top: 15px;
}

.ntw-author-name {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.ntw-author-cargo,
.ntw-author-empresa {
    display: block;
    font-size: 14px;
    color: #666;
}

.ntw-author-cargo:after {
    content: " • ";
    margin: 0 5px;
}

/* Slider */
.ntw-layout-slider {
    position: relative;
    overflow: hidden;
}

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

.ntw-layout-slider .ntw-testimonio {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
}

.ntw-slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.ntw-slider-prev,
.ntw-slider-next {
    background: #0073aa;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
}

.ntw-slider-prev:hover,
.ntw-slider-next:hover {
    background: #005a87;
}

.ntw-slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.ntw-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
}

.ntw-slider-dot.active {
    background: #0073aa;
}

/* Shortcode */
.ntw-shortcode-testimonios.ntw-layout-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* Responsive */
@media (max-width: 768px) {
    .ntw-layout-lista .ntw-testimonio {
        flex-direction: column;
        text-align: center;
    }
    
    .ntw-testimonio-img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .ntw-layout-grid {
        grid-template-columns: 1fr;
    }
    
    .ntw-author-cargo:after {
        display: none;
    }
    
    .ntw-author-cargo,
    .ntw-author-empresa {
        display: block;
    }
}

/* Tema oscuro */
@media (prefers-color-scheme: dark) {
    .ntw-testimonio-text {
        color: #ccc;
    }
    
    .ntw-author-name {
        color: #fff;
    }
    
    .ntw-author-cargo,
    .ntw-author-empresa {
        color: #aaa;
    }
    
    .ntw-layout-grid .ntw-testimonio {
        background: #2c2c2c;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
}

/* Efecto de fade entre slides */
.ntw-slider-container {
    will-change: transform;
}

.ntw-testimonio {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.ntw-slider-container .ntw-testimonio {
    opacity: 1;
}

/* Sombra suave en los bordes del slider */
.ntw-layout-slider {
    position: relative;
}

.ntw-layout-slider:before,
.ntw-layout-slider:after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.ntw-layout-slider:before {
    left: 0;
    background: linear-gradient(to right, #f9f9f9, transparent);
}

.ntw-layout-slider:after {
    right: 0;
    background: linear-gradient(to left, #f9f9f9, transparent);
}

/* Animación de entrada */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ntw-testimonio {
    animation: slideIn 0.6s ease forwards;
}

/* Testimonios - Diseño como imagen de referencia */
.ntw-testimonios.ntw-layout-slider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ntw-testimonio {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.ntw-testimonio:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Icono de comillas */
.ntw-quote-icon {
    position: absolute;
    top: 30px;
    right: 40px;
    opacity: 0.1;
    transform: scale(1.5);
    z-index: 1;
}

.ntw-testimonio:hover .ntw-quote-icon {
    opacity: 0.15;
}

/* Contenedor de contenido */
.ntw-testimonio-content {
    position: relative;
    z-index: 2;
}

/* Calificación con estrellas */
.ntw-rating-stars {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.ntw-stars-container {
    display: flex;
    gap: 3px;
}

.ntw-star svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.ntw-star:hover svg {
    transform: scale(1.2);
}

.ntw-star-full svg {
    fill: #FFD700;
}

.ntw-star-empty svg {
    fill: #E0E0E0;
}

.ntw-rating-number {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

/* Texto del testimonio */
.ntw-testimonial-text {
    margin-bottom: 30px;
}

.ntw-testimonial-text p {
    font-size: 18px;
    line-height: 1.7;
    color: #444;
    font-style: italic;
    position: relative;
    padding-left: 25px;
    margin: 0;
}

.ntw-testimonial-text p:before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 36px;
    color: #D32F2F;
    font-family: Georgia, serif;
    opacity: 0.8;
}

/* Información del autor */
.ntw-testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.ntw-testimonio-img {
    flex-shrink: 0;
}

.ntw-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ntw-author-info {
    flex: 1;
}

.ntw-author-name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.ntw-author-position,
.ntw-author-company {
    display: block;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.ntw-author-position {
    font-weight: 500;
    color: #D32F2F;
}

.ntw-author-company {
    font-style: italic;
}

/* Navegación del slider */
.ntw-slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.ntw-slider-prev,
.ntw-slider-next {
    background: #D32F2F;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.ntw-slider-prev:hover,
.ntw-slider-next:hover {
    background: #B71C1C;
    transform: scale(1.1);
}

.ntw-slider-prev svg,
.ntw-slider-next svg {
    width: 24px;
    height: 24px;
}

.ntw-slider-dots {
    display: flex;
    gap: 10px;
}

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

.ntw-slider-dot.active {
    background: #D32F2F;
    transform: scale(1.3);
}

/* Slider container - 3 testimonios por página */
.ntw-slider-container {
    display: flex;
    gap: 40px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 10px;
}

.ntw-layout-slider .ntw-testimonio {
    flex: 0 0 calc(33.333% - 27px); /* 3 por página con gap */
    min-width: calc(33.333% - 27px);
    scroll-snap-align: start;
}

/* Indicador de página */
.ntw-slider-pagination {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1200px) {
    .ntw-layout-slider .ntw-testimonio {
        flex: 0 0 calc(50% - 20px); /* 2 por página */
        min-width: calc(50% - 20px);
    }
    
    .ntw-testimonio {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .ntw-layout-slider .ntw-testimonio {
        flex: 0 0 calc(100% - 20px); /* 1 por página */
        min-width: calc(100% - 20px);
    }
    
    .ntw-testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .ntw-testimonial-text p {
        font-size: 16px;
        padding-left: 20px;
    }
    
    .ntw-slider-nav {
        gap: 20px;
    }
    
    .ntw-slider-prev,
    .ntw-slider-next {
        width: 45px;
        height: 45px;
    }
}

/* Efectos adicionales */
.ntw-testimonio:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #D32F2F, #2196F3);
    border-radius: 15px 15px 0 0;
}