/* ======================================
   TESTIMONIAL SECTION STYLES
   ====================================== */

.testimonial-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
    overflow: hidden;
}

@media (max-width: 768px) {
    .testimonial-section {
        padding: 3rem 0.5rem;
    }
}

/* Flexible container for two-column layout */
.testimonial-flex-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

@media (min-width: 992px) {
    .testimonial-flex-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .testimonial-left-content {
        width: 72%;
        margin-bottom: 0;
        align-self: flex-start;
    }
    
    .testimonial-right-content {
        width: 28%;
        align-self: flex-start;
        margin-top: 2rem;
    }
}

/* Estilos para el contenido izquierdo (testimonios) */
.testimonial-left-content {
    margin-bottom: 1.5rem;
}

.testimonial-heading {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #333333;
    text-align: left;
    letter-spacing: -0.01em;
    font-weight: 700;
}

/* Testimonial quotes */
.testimonial-quote-container {
    margin-top: 2rem;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonial-content {
        flex-direction: row;
        align-items: flex-start;
    }
}

.testimonial-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.testimonial-avatar-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #e2e2e2;
    border-radius: 50%;
    bottom: -0.5rem;
    right: -0.5rem;
    z-index: 0;
    box-shadow: none;
}

.testimonial-avatar {
    position: relative;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
    box-shadow: none;
}

.testimonial-quote {
    flex-grow: 1;
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #000000;
    font-weight: 400;
    margin-bottom: 1.75rem;
}

/* Author information */
.author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
    margin-top: 2.5em !important;
}

.author-name {
    font-size: 1.4em !important;
    font-weight: 800 !important;
    color: #000000;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.author-title {
    color: #6c757d;
    font-size: 0.65rem !important;
    margin: 0;
    margin-left: 0 !important;
    line-height: 1.4;
    font-weight: normal;
}

/* Testimonial avatars for legacy support */
.testimonial-avatars {
    display: none;
}

/* Estilos para el contenedor derecho (video) */
.testimonial-right-content {
    background-color: transparent;
    border-radius: 1rem;
    padding: 0;
    min-height: 500px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 768px) {
    .testimonial-right-content {
        min-height: 400px;
        margin: 0 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* Estilo para el contenedor del video */
.video-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
}

@media (max-width: 768px) {
    .video-container {
        min-height: 400px;
    }
}

/* Estilos específicos para el iframe */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    z-index: 2;
}

/* Mejora del alineamiento para dispositivos móviles */
@media (min-width: 768px) {
    .testimonial-author {
        display: flex;
        align-items: center;
        padding-top: 1.25rem;
    }
}
