.testimonios-section {
    padding: 14px 0px;
    display: flex;
    justify-content: center;
}

.testimonios-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.testimonios-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
}

.testimonios-content h2 {
    font-weight: 700;
    color: var(--midNight-900);
    line-height: 1.2;
}

.testimonios-content .primary-button {
    border-radius: 99px;
    padding: 16px 32px;
    background-color: var(--midNight-500);
}

/* --- Right Column: Carrusel/Pestañas --- */
.testimonios-carousel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.testimonios-tabs {
    display: flex;
    gap: 32px;
    border-bottom: 2px solid transparent;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    /* Space for the active indicator */
}

.testimonios-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--midNight-300);
    padding-bottom: 8px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.tab-btn.active {
    color: var(--midNight-700);
}

.tab-btn.active::after {
    background-color: var(--midNight-700);
}

.tab-btn:hover:not(.active) {
    color: var(--midNight-500);
}

/* Carrusel Placeholder */
.iframe-container {
    width: 100%;
    height: 200px;
    background-color: var(--midNight-50);
    border-radius: 8px;
    display: none;
    /* Oculto por defecto, JS mostrará el activo */
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--midNight-900);
}

.iframe-container.active {
    display: flex;
}


@media (max-width: 1050px) {
    .testimonios-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 600px) {
    .testimonios-tabs {
        gap: 24px;
    }

    .tab-btn {
        font-size: 15px;
    }
}