﻿/*==========================================================================
  TESTIMONIALS & VIDEO CORPORATIVO (Estilo Prototipo yirehmana)
==========================================================================*/

/*----------------------------------------------------------
  1. ESTRUCTURA Y CONTENEDOR PRINCIPAL
----------------------------------------------------------*/
.testimonials-video-section {
    padding: 20px 0 40px;
    width: 100%;
    background: transparent;
}

/* Contenedor alineado exactamente con la sección superior (BusinessPlan) */
.testimonials-video-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
}

/* Proporciones de columnas */
.testimonials-left {
    flex: 1.6;
    display: flex;
    flex-direction: column;
}

.video-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Estilos de títulos para ambas columnas */
.testimonials-video-section .section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #05111A;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.testimonials-video-section .highlight {
    color: #000000;
}


/*----------------------------------------------------------
  2. COLUMNA IZQUIERDA: TESTIMONIOS
----------------------------------------------------------*/
.testimonials-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    flex: 1;
}

/* Tarjeta individual de testimonio */
.testimonial-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    display: none;
    flex-direction: column;
}

    /* Solo las tarjetas visibles se muestran manteniendo flex */
    .testimonial-card.show {
        display: flex !important;
    }

.testimonial-stars {
    color: #D8A12C;
    font-size: 11px;
    margin-bottom: 8px;
}

.testimonial-body {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

    .testimonial-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.testimonial-info {
    flex: 1;
}

.testimonial-text {
    font-size: 0.76rem;
    color: #374151;
    line-height: 1.35;
    margin-bottom: 6px;
}

.testimonial-card h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #05111A;
    margin: 0 0 1px 0;
}

.testimonial-card span {
    color: #64748B;
    font-size: 0.7rem;
    display: block;
}

/* Flechas de navegación */
.testimonial-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #C89B3C;
    font-size: 0.95rem;
    padding: 2px;
    transition: transform 0.2s;
}

    .testimonial-arrow:hover {
        transform: scale(1.2);
    }

/* Indicadores / Dots */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

    .testimonial-dots span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #D6D6D6;
    }

    .testimonial-dots .active {
        background: #C89B3C;
    }


/*----------------------------------------------------------
  3. COLUMNA DERECHA: VIDEO CORPORATIVO
----------------------------------------------------------*/
.video-card {
    width: 100%;
    height: 165px;
    border-radius: 12px;
    background: url('../img/video-bg.png?version=1.0') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* Capa oscura sobre la imagen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Un ligero padding abajo compensa el espacio de la franja para que el play quede bien centrado visualmente */
    padding-bottom: 28px;
    box-sizing: border-box;
    z-index: 1;
}

/* Botón de reproducción estilo prototipo */
.play-btn-wrapper {
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-block;
}

    .play-btn-wrapper:hover {
        transform: scale(1.08);
    }

.play-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    padding-left: 4px; /* Centrado óptico para el triángulo */
    transition: background-color 0.2s, border-color 0.2s;
}

.play-btn-wrapper:hover .play-circle {
    background: #C89B3C;
    border-color: #C89B3C;
}

/* Franja inferior oscura para el texto */
.video-caption-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.75); /* Fondo oscuro semitransparente como el prototipo */
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;
    padding: 8px 10px;
    box-sizing: border-box;
    letter-spacing: 0.2px;
    z-index: 2;
}


/*----------------------------------------------------------
  4. ADAPTACIÓN RESPONSIVA (REEMPLAZA EL BLOQUE ACTUAL)
----------------------------------------------------------*/

/* Tablet (768px a 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .testimonials-video-container {
        gap: 20px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Móvil (< 768px) */
@media (max-width: 767px) {
    .testimonials-video-container {
        flex-direction: column;
        gap: 30px;
    }

    .testimonials-left,
    .video-right {
        width: 100%;
        flex: none;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .video-card {
        height: 190px;
    }
}
