/* Scale Reviews - Widget para Elementor */

.rt-reviews-widget {
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
}

.rt-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
    margin-bottom: 18px;
}

.rt-widget-heading {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1.1;
    color: #0f172a;
}

.rt-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d7e2ec;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2d3d;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 14px;
    cursor: default;
}

.rt-filter-btn svg {
    width: 16px;
    height: 16px;
}

.rt-swiper-container {
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
    overflow: hidden;
}

.rt-grid-container {
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
}

.rt-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(var(--rt-grid-columns-desktop, 4), minmax(0, 1fr));
    gap: var(--rt-grid-gap, 20px);
}

.rt-grid-item {
    min-width: 0;
}

.rt-masonry-container {
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
}

.rt-masonry-wrapper {
    column-count: var(--rt-grid-columns-desktop, 4);
    column-gap: var(--rt-grid-gap, 20px);
}

.rt-masonry-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 var(--rt-grid-gap, 20px);
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

.rt-swiper-container .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.rt-swiper-container .swiper-slide {
    height: auto;
    box-sizing: border-box;
}

.rt-review-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.rt-review-card:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.rt-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rt-avatar-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #eaf0f8;
    color: #1f2d3d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rt-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rt-avatar-fallback {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.rt-customer-meta {
    min-width: 0;
    flex: 1;
}

.rt-customer-name {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 700;
    color: #0f172a;
}

.rt-customer-role,
.rt-customer-email {
    margin-top: 2px;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #5f6b76;
    overflow-wrap: anywhere;
}

.rt-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #18864b;
    background: #e9f8ef;
}

.rt-verified-badge svg {
    width: 11px;
    height: 11px;
}

.rt-review-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #334155;
    flex: 1;
}

.rt-review-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    border-top: 1px solid #eef2f7;
    padding-top: 12px;
}

.rt-stars {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}

.rt-star {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rt-star svg {
    width: 100%;
    height: 100%;
}

.rt-star.filled svg {
    fill: #d4a853;
}

.rt-star.empty svg {
    stroke: #d6dce3;
}

.rt-rating-text {
    font-size: 0.78rem;
    color: #5f6b76;
}

.rt-review-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #5f6b76;
}

.rt-review-meta-item svg {
    width: 13px;
    height: 13px;
}

.rt-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    padding: 0 24px;
}

.rt-progress-bar {
    flex-grow: 1;
    height: 3px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.rt-progress-fill {
    height: 100%;
    width: 0;
    background-color: #333333;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.rt-nav-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.rt-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background-color: #ffffff;
    color: #333333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rt-nav-btn:hover:not(.swiper-button-disabled) {
    border-color: #333333;
    background-color: #333333;
    color: #ffffff;
}

.rt-nav-btn.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.rt-nav-btn svg {
    width: 20px;
    height: 20px;
}

.rt-swiper-container .swiper-pagination {
    position: relative;
    margin-top: 25px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.rt-swiper-container .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e0e0e0;
    opacity: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.rt-swiper-container .swiper-pagination-bullet-active {
    background-color: #333333;
}

@media (max-width: 1023px) {
    .rt-grid-wrapper {
        grid-template-columns: repeat(var(--rt-grid-columns-tablet, 2), minmax(0, 1fr));
    }

    .rt-masonry-wrapper {
        column-count: var(--rt-grid-columns-tablet, 2);
    }
}

@media (max-width: 767px) {
    .rt-widget-header,
    .rt-swiper-container,
    .rt-grid-container,
    .rt-masonry-container,
    .rt-navigation {
        padding: 0 16px;
    }

    .rt-widget-header {
        margin-bottom: 14px;
    }

    .rt-filter-btn {
        padding: 8px 12px;
    }

    .rt-nav-btn {
        width: 36px;
        height: 36px;
    }

    .rt-nav-btn svg {
        width: 16px;
        height: 16px;
    }

    .rt-grid-wrapper {
        grid-template-columns: repeat(var(--rt-grid-columns-mobile, 1), minmax(0, 1fr));
    }

    .rt-masonry-wrapper {
        column-count: var(--rt-grid-columns-mobile, 1);
    }
}
