/**
 * Reviews Block Styles
 * 
 * Estilos para el bloque de testimonios/reviews de clientes
 */

.reviews-block {
    background-color: #EAF8FD;
    padding: 60px 0;
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Title */
.reviews-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: #1E1E1E;
    margin: 0 0 40px 105px;
    text-align: left;
}

/* Carousel Wrapper */
.reviews-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
}

/* Left Side: Navigation + Reviews */
.reviews-left-side {
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 550px;
}

/* Navigation Buttons */
.reviews-nav-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.reviews-nav-button:hover {
    transform: scale(1.3);
    opacity: 0.8;
    background: none !important;
    box-shadow: none;
}

.reviews-nav-button:focus {
    outline: none;
    background: none;
    box-shadow: none;
}

.reviews-nav-button:active {
    transform: scale(0.95);
}

.reviews-nav-button svg {
    width: 100%;
    height: 100%;
}

/* Reviews Track */
.reviews-track {
    flex: 1;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 200px;
}

/* Review Item */
.review-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Show only active review */
.review-item.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

/* Content Wrapper */
.review-content-wrapper {
    width: 100%;
}

/* Review Text */
.review-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: #666666;
    margin-bottom: 30px;
}

.review-text p {
    margin: 0;
    font-size: 18px;
    line-height: 27px;
    font-weight: 400;
}

/* Author Name */
.review-author {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: #666666;
}

/* Fixed Image on the Right */
.review-image-fixed {
    flex-shrink: 0;
    width: 503px;
    height: 470px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-image-svg {
    width: 100%;
    height: 100%;
    max-height: 470px;
    object-fit: contain;
    transition: object-fit 0.3s ease;
}

/* Responsive Design */

/* Tablets */
@media (max-width: 1024px) {
    .reviews-title {
        font-size: 32px;
        margin: 0 0 30px 50px;
    }
    
    .reviews-carousel-wrapper {
        gap: 30px;
    }
    
    .reviews-left-side {
        max-width: 450px;
    }
    
    .review-text {
        font-size: 18px;
    }
    
    .review-author {
        font-size: 18px;
    }
    
    .review-image-fixed {
        width: 400px;
        height: 373px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .reviews-block {
        padding: 40px 0;
    }
    
    .reviews-container {
        padding: 0 16px;
    }
    
    .reviews-title {
        font-size: 28px;
        margin: 0 0 30px 20px;
        text-align: center;
    }
    
    .reviews-carousel-wrapper {
        flex-direction: column-reverse;
        gap: 30px;
    }
    
    .reviews-left-side {
        max-width: 100%;
        width: 100%;
    }
    
    .review-item {
        padding: 0;
        text-align: center;
    }
    
    .review-content-wrapper {
        width: 100%;
    }
    
    .review-text {
        font-size: 16px;
        width: 100%;
    }
    
    .review-text p {
        font-size: 16px;
        line-height: 1.4;
        text-align: left;
    }
    
    .review-author {
        font-size: 16px;
    }
    
    .review-image-fixed {
        width: 300px;
        height: 280px;
        margin: 0 auto;
    }
    
    .review-image-svg {
        max-height: 280px;
    }
    
    .reviews-nav-button {
        width: 40px;
        height: 40px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .reviews-title {
        font-size: 24px;
        margin: 0 0 20px 10px;
    }
    
    .review-text {
        font-size: 14px;
    }
    
    .review-author {
        font-size: 14px;
    }
    
    .review-image-fixed {
        width: 250px;
        height: 233px;
        margin: 0 auto;
    }
    
    .review-image-svg {
        max-height: 233px;
    }
}

/* Editor Styles */
.wp-block[data-type="astra-child-ta/reviews"] {
    background-color: #EAF8FD;
    padding: 20px;
    border-radius: 8px;
}

.wp-block[data-type="astra-child-ta/reviews"] .reviews-title {
    margin-left: 0;
}

