/* =========================================
   TESTIMONIOS SECTION
   ========================================= */
.testimonios-section {
    position: relative;
    width: 100%;
    padding: 100px 0;
    background-color: #f8f9fa;
}

.testimonios-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.testimonios-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #5f5c5c;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.testimonios-subtitle {
    font-size: 1.1rem;
    color: #666666;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Wrapper que contiene botones + scroll */
.testimonios-wrapper {
    position: relative;
    max-width: 1400px; /* Mismo ancho que el contenedor general */
    margin: 0 auto;
    padding: 0 60px; /* Espacio para los botones */
}

/* Contenedor con Scroll Horizontal */
.testimonios-scroll-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 0 40px;
    -webkit-overflow-scrolling: touch;
    
    /* Ocultar barra de scroll */
    scrollbar-width: none;
}
.testimonios-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Efecto desvanecido en los bordes */
.testimonios-wrapper::before,
.testimonios-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none; /* Permite hacer clic a través del degradado */
}

.testimonios-wrapper::before {
    left: 60px; /* Alineado con el inicio del scroll */
    background: linear-gradient(to right, #f8f9fa 0%, transparent 100%);
}

.testimonios-wrapper::after {
    right: 60px; /* Alineado con el final del scroll */
    background: linear-gradient(to left, #f8f9fa 0%, transparent 100%);
}

/* Botones de navegación */
.testimonios-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    color: #c45416;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.testimonios-btn:hover {
    background-color: #c45416;
    color: #ffffff;
    border-color: #c45416;
    transform: translateY(-50%) scale(1.1);
}

.testimonios-btn-prev {
    left: 0;
}

.testimonios-btn-next {
    right: 0;
}

/* Tarjeta de Testimonio */
.testimonio-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
    background-color: #ffffff;
    padding: 35px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.testimonio-card:hover {
    transform: translateY(-5px);
}

.testimonio-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonio-text {
    font-size: 1rem;
    color: #444444;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 30px;
    flex-grow: 1;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.author-initial {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #c45416;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 0.95rem;
    color: #5f5c5c;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.author-info span {
    font-size: 0.8rem;
    color: #999999;
    margin-top: 2px;
}

.testimonios-cta {
    text-align: center;
    margin-top: 40px;
}

.btn-testimonios {
    display: inline-block;
    padding: 16px 40px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    background-color: #c45416;
    border: 2px solid #c45416;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.btn-testimonios:hover {
    background-color: transparent;
    color: #c45416;
    transform: translateY(-2px);
}

/* =========================================
   TESTIMONIOS RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .testimonios-section {
        padding: 70px 0;
    }

    .testimonios-title {
        font-size: 1.6rem;
    }

    .testimonios-subtitle {
        font-size: 1rem;
    }

    /* Ocultar botones en móvil (scroll con dedo) */
    .testimonios-btn {
        display: none;
    }

    .testimonios-wrapper {
        padding: 0;
    }

    .testimonios-wrapper::before,
    .testimonios-wrapper::after {
        display: none; /* Quitar fade en móvil para no tapar contenido */
    }

    .testimonios-scroll-container {
        padding: 20px 5% 40px;
        scroll-snap-type: x mandatory;
    }

    .testimonio-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
    }
    
    .btn-testimonios {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}