/* Estilos para dispositivos móveis */
@media (max-width: 768px) {
    .testimonials-container {
        position: relative;
        height: 100vh;
        overflow: hidden;
        background: white;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }

    .phone-frame {
        position: relative;
        width: 100%;
        max-width: 300px;
        height: 600px;
        border-radius: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }

    .phone-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }

    .testimonials-wrapper {
        position: absolute;
        width: 100%;
        height: auto;
        top: 0;
        left: 0;
        animation: scrollUpMobile 40s linear infinite;
        /* ← Aumentado para 40s */
        /* ← Aumentado para 40s */
        display: flex;
        flex-direction: column;
        padding: 30px 10px;
        box-sizing: border-box;
        z-index: 2;
    }

    .testimonial-item {
        width: 100%;
        margin: 8px 0;
        display: flex;
        justify-content: center;
        flex-shrink: 0;
    }

    .testimonial-item img {
        width: 95%;
        max-width: 280px;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        object-fit: contain;
        background: white;
        display: block;
    }

    .gradient-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 100px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
        z-index: 3;
        pointer-events: none;
    }

    .gradient-overlay-bottom {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
        z-index: 3;
        pointer-events: none;
    }
}

@keyframes scrollUpMobile {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* Estilos para desktop - 258x508px */
@media (min-width: 769px) {
    .testimonials-container {
        position: relative;
        height: auto;
        min-height: 508px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 40px 20px;
        background: transparent;
    }

    .phone-frame {
        position: relative;
        width: 258px;
        height: 508px;
        border-radius: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        background: white;
    }

    .phone-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }

    .testimonials-wrapper {
        position: absolute;
        width: 100%;
        height: auto;
        top: 0;
        left: 0;
        animation: scrollUpDesktop 40s linear infinite;
        /* ← Aumentado para 40s */
        display: flex;
        flex-direction: column;
        padding: 20px 10px;
        box-sizing: border-box;
        z-index: 2;
    }

    .testimonial-item {
        width: 100%;
        margin: 6px 0;
        display: flex;
        justify-content: center;
        flex-shrink: 0;
    }

    .testimonial-item img {
        width: 95%;
        max-width: 238px;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        object-fit: contain;
        background: white;
        display: block;
    }

    .gradient-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
        z-index: 3;
        pointer-events: none;
    }

    .gradient-overlay-bottom {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
        z-index: 3;
        pointer-events: none;
    }
}

@keyframes scrollUpDesktop {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}