/* PS Testimonios v3 */
.ps-test-wrap { position: relative; }
.ps-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.ps-test-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: .5rem;
}
.ps-test-carousel::-webkit-scrollbar { display: none; }

.ps-test-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(72,126,128,.10);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}
.ps-test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #487e80, #bde6de);
    border-radius: 20px 20px 0 0;
}

.ps-test-card__quote { color: #bde6de; opacity: .8; }

.ps-test-card__texto {
    font-size: .95rem;
    color: #62605d;
    line-height: 1.7;
    font-style: italic;
    flex: 1;
    margin: 0;
}

.ps-test-card__footer {
    display: flex;
    align-items: center;
    gap: .875rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}

.ps-test-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #bde6de;
}
.ps-test-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.ps-test-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.ps-test-card__info strong { font-size: .9rem; color: #335a5c; }
.ps-test-card__info span   { font-size: .78rem; color: #8e8c89; }

.ps-test-card__stars { display: flex; gap: 1px; }
.ps-test-star { font-size: .85rem; color: #ddd; }
.ps-test-star.filled { color: #F4C842; }

.ps-test-card__badge {
    display: inline-block;
    padding: .25rem .7rem;
    border-radius: 9999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
    margin-left: auto;
}

/* Navegación */
.ps-test-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.ps-test-prev, .ps-test-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #487e80;
    color: #fff;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}
.ps-test-prev:hover, .ps-test-next:hover { background: #335a5c; }

.ps-test-dots { display: flex; gap: .4rem; }
.ps-test-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e8e2da;
    border: none;
    cursor: pointer;
    transition: background .2s ease;
    padding: 0;
}
.ps-test-dot.active { background: #487e80; width: 20px; border-radius: 4px; }

/* Formulario de testimonio */
.ps-test-form-wrap {
    max-width: 560px;
    margin-inline: auto;
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(72,126,128,.10);
}

.ps-star-picker { display: flex; gap: .3rem; }
.ps-star-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #ddd;
    transition: color .15s ease;
    padding: 0;
    line-height: 1;
}
.ps-star-btn.active, .ps-star-btn:hover { color: #F4C842; }

.ps-test-form__msg {
    padding: .875rem 1rem;
    border-radius: 10px;
    font-size: .9rem;
    margin-bottom: 1rem;
}
.ps-test-form__msg.success { background: #bde6de; color: #335a5c; }
.ps-test-form__msg.error   { background: #fde8e8; color: #c0392b; }

.ps-test-form__submit { width: 100%; justify-content: center; }
.ps-test-form__spinner { animation: ps-spin .7s linear infinite; display: inline-block; }
@keyframes ps-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
    .ps-test-card { flex: 0 0 290px; }
}
